Compile problem with current repository

42 views
Skip to first unread message

Robert Krawitz

unread,
Jun 24, 2015, 8:01:16 PM6/24/15
to hugi...@googlegroups.com
[ 2%] Building C object src/foreign/levmar/CMakeFiles/huginlevmar.dir/lmlec.c.o
In file included from /home/rlk/sandbox/hugin/src/foreign/levmar/lmlec.c:72:0:
/home/rlk/sandbox/hugin/src/foreign/levmar/lmlec_core.c: In function ‘dlevmar_lec_dif’:
/home/rlk/sandbox/hugin/src/foreign/levmar/lmlec_core.c:605:3: warning: passing argument 2 of ‘dlevmar_dif’ from incompatible pointer type [enabled by default]
ret=LEVMAR_DIF(LMLEC_FUNC, pp, x, mm, n, itmax, opts, info, work, NULL, (void *)&data);
^
In file included from /home/rlk/sandbox/hugin/src/foreign/levmar/lmlec.c:30:0:
/home/rlk/sandbox/hugin/src/foreign/levmar/levmar.h:113:12: note: expected ‘int (*)(double *, double *, int, int, int, double, void *)’ but argument is of type ‘double *’
extern int dlevmar_dif(
^
In file included from /home/rlk/sandbox/hugin/src/foreign/levmar/lmlec.c:72:0:
/home/rlk/sandbox/hugin/src/foreign/levmar/lmlec_core.c:605:3: warning: passing argument 4 of ‘dlevmar_dif’ makes pointer from integer without a cast [enabled by default]
ret=LEVMAR_DIF(LMLEC_FUNC, pp, x, mm, n, itmax, opts, info, work, NULL, (void *)&data);
^
In file included from /home/rlk/sandbox/hugin/src/foreign/levmar/lmlec.c:30:0:
/home/rlk/sandbox/hugin/src/foreign/levmar/levmar.h:113:12: note: expected ‘double *’ but argument is of type ‘int’
extern int dlevmar_dif(
^
In file included from /home/rlk/sandbox/hugin/src/foreign/levmar/lmlec.c:72:0:
/home/rlk/sandbox/hugin/src/foreign/levmar/lmlec_core.c:605:3: warning: passing argument 7 of ‘dlevmar_dif’ makes integer from pointer without a cast [enabled by default]
ret=LEVMAR_DIF(LMLEC_FUNC, pp, x, mm, n, itmax, opts, info, work, NULL, (void *)&data);
^
In file included from /home/rlk/sandbox/hugin/src/foreign/levmar/lmlec.c:30:0:
/home/rlk/sandbox/hugin/src/foreign/levmar/levmar.h:113:12: note: expected ‘int’ but argument is of type ‘double *’
extern int dlevmar_dif(
^
In file included from /home/rlk/sandbox/hugin/src/foreign/levmar/lmlec.c:72:0:
/home/rlk/sandbox/hugin/src/foreign/levmar/lmlec_core.c:605:3: error: too few arguments to function ‘dlevmar_dif’
ret=LEVMAR_DIF(LMLEC_FUNC, pp, x, mm, n, itmax, opts, info, work, NULL, (void *)&data);
^
In file included from /home/rlk/sandbox/hugin/src/foreign/levmar/lmlec.c:30:0:
/home/rlk/sandbox/hugin/src/foreign/levmar/levmar.h:113:12: note: declared here
extern int dlevmar_dif(
^
src/foreign/levmar/CMakeFiles/huginlevmar.dir/build.make:123: recipe for target 'src/foreign/levmar/CMakeFiles/huginlevmar.dir/lmlec.c.o' failed
make[2]: *** [src/foreign/levmar/CMakeFiles/huginlevmar.dir/lmlec.c.o] Error 1
CMakeFiles/Makefile2:250: recipe for target 'src/foreign/levmar/CMakeFiles/huginlevmar.dir/all' failed
make[1]: *** [src/foreign/levmar/CMakeFiles/huginlevmar.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2


$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/4.8/lto-wrapper
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.8 --enable-ssp --disable-libssp --disable-plugin --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --enable-linker-build-id --enable-linux-futex --program-suffix=-4.8 --without-system-libunwind --with-arch-32=i586 --with-tune=generic --build=x86_64-suse-linux --host=x86_64-suse-linux
Thread model: posix
gcc version 4.8.3 20140627 [gcc-4_8-branch revision 212064] (SUSE Linux)

--
Robert Krawitz <r...@alum.mit.edu>

*** MIT Engineers A Proud Tradition http://mitathletics.com ***
Member of the League for Programming Freedom -- http://ProgFree.org
Project lead for Gutenprint -- http://gimp-print.sourceforge.net

"Linux doesn't dictate how I work, I dictate how Linux works."
--Eric Crampton

T. Modes

unread,
Jun 25, 2015, 12:18:13 PM6/25/15
to hugi...@googlegroups.com


Am Donnerstag, 25. Juni 2015 02:01:16 UTC+2 schrieb rlk:

In file included from /home/rlk/sandbox/hugin/src/foreign/levmar/lmlec.c:72:0:
/home/rlk/sandbox/hugin/src/foreign/levmar/lmlec_core.c:605:3: error: too few arguments to function ‘dlevmar_dif’
   ret=LEVMAR_DIF(LMLEC_FUNC, pp, x, mm, n, itmax, opts, info, work, NULL, (void *)&data);
   ^

Related to building with LAPACK support, which was not mentioned.

Fixed in repository.
Reply all
Reply to author
Forward
0 new messages