[brlcad-tracker] [ brlcad-Bugs-2131397 ] Latest svn revision failed to build on Debian sid
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: SourceForge.net <no...@so...> - 2008-09-27 17:46:48
|
Bugs item #2131397, was opened at 2008-09-27 03:17 Message generated for change (Comment added) made by derevko You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=640802&aid=2131397&group_id=105292 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Compilation Group: other bug / workaround >Status: Open Resolution: None Priority: 7 Private: No Submitted By: Giuseppe Iuculano (derevko) Assigned to: Sean Morrison (brlcad) Summary: Latest svn revision failed to build on Debian sid Initial Comment: Hello, svn revision 32778. brlcad failed to build with these errors: ./.libs/libtie1.a(libtie1_la-tie_kdtree.o): In function `tie_kdtree_build': /tmp/buildd/brlcad-7.12.6+svn32778/src/adrt/libtie/tie_kdtree.c:739: undefined reference to `bu_free' /tmp/buildd/brlcad-7.12.6+svn32778/src/adrt/libtie/tie_kdtree.c:751: undefined reference to `bu_free' /tmp/buildd/brlcad-7.12.6+svn32778/src/adrt/libtie/tie_kdtree.c:752: undefined reference to `bu_free' /tmp/buildd/brlcad-7.12.6+svn32778/src/adrt/libtie/tie_kdtree.c:743: undefined reference to `bu_realloc' ./.libs/libtie1.a(libtie1_la-tie_kdtree.o): In function `tie_kdtree_prep1': /tmp/buildd/brlcad-7.12.6+svn32778/src/adrt/libtie/tie_kdtree.c:916: undefined reference to `bu_realloc' /tmp/buildd/brlcad-7.12.6+svn32778/src/adrt/libtie/tie_kdtree.c:918: undefined reference to `bu_free' ./.libs/libtie1.a(libtie1_la-tie_kdtree.o): In function `tie_kdtree_prep_head': /tmp/buildd/brlcad-7.12.6+svn32778/src/adrt/libtie/tie_kdtree.c:203: undefined reference to `bu_malloc' /tmp/buildd/brlcad-7.12.6+svn32778/src/adrt/libtie/tie_kdtree.c:204: undefined reference to `bu_malloc' /tmp/buildd/brlcad-7.12.6+svn32778/src/adrt/libtie/tie_kdtree.c:210: undefined reference to `bu_malloc' ./.libs/libtie1.a(libtie1_la-tie_kdtree.o): In function `tie_kdtree_free_node': /tmp/buildd/brlcad-7.12.6+svn32778/src/adrt/libtie/tie_kdtree.c:122: undefined reference to `bu_free' /tmp/buildd/brlcad-7.12.6+svn32778/src/adrt/libtie/tie_kdtree.c:122: undefined reference to `bu_free' /tmp/buildd/brlcad-7.12.6+svn32778/src/adrt/libtie/tie_kdtree.c:123: undefined reference to `bu_free' /tmp/buildd/brlcad-7.12.6+svn32778/src/adrt/libtie/tie_kdtree.c:122: undefined reference to `bu_free' /tmp/buildd/brlcad-7.12.6+svn32778/src/adrt/libtie/tie_kdtree.c:123: undefined reference to `bu_free' ./.libs/libtie1.a(libtie1_la-tie_kdtree.o):/tmp/buildd/brlcad-7.12.6+svn32778/src/adrt/libtie/tie_kdtree.c:122: more undefined references to `bu_free' follow collect2: ld returned 1 exit status make[4]: *** [libtie.la] Error 1 make[4]: Leaving directory `/tmp/buildd/brlcad-7.12.6+svn32778/src/adrt/libtie' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/tmp/buildd/brlcad-7.12.6+svn32778/src/adrt' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/tmp/buildd/brlcad-7.12.6+svn32778/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/buildd/brlcad-7.12.6+svn32778' make: *** [build-stamp] Error 2 Let me know if you need the full build log. Regards. Giuseppe. ---------------------------------------------------------------------- >Comment By: Giuseppe Iuculano (derevko) Date: 2008-09-27 19:46 Message: Attached also the full build log. (cd .libs && rm -f libtie0.la && ln -s ../libtie0.la libtie0.la) /bin/sh ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../include -I/usr/include/tcl8.4 -I/usr/include/jama -I/usr/lib/jvm/java -6-openjdk/include -I/usr/local/include -DBRLCADBUILD=1 -I../../../include -I../../../src/other/openNURBS -DTIE_PRECISION=1 -g -O2 -I/usr/include/tcl8.4 -I/ usr/include/jama -I/usr/lib/jvm/java-6-openjdk/include -pipe -fno-strict-aliasing -fno-common -fexceptions -g -O3 -W -Wall -Wundef -Wfloat-equal -Wshadow -Wu nreachable-code -Winline -Wconversion -c -o libtie1_la-tie.lo `test -f 'tie.c' || echo './'`tie.c gcc -DHAVE_CONFIG_H -I. -I../../../include -I/usr/include/tcl8.4 -I/usr/include/jama -I/usr/lib/jvm/java-6-openjdk/include -I/usr/local/include -DBRLCADBUIL D=1 -I../../../include -I../../../src/other/openNURBS -DTIE_PRECISION=1 -g -O2 -I/usr/include/tcl8.4 -I/usr/include/jama -I/usr/lib/jvm/java-6-openjdk/includ e -pipe -fno-strict-aliasing -fno-common -fexceptions -g -O3 -W -Wall -Wundef -Wfloat-equal -Wshadow -Wunreachable-code -Winline -Wconversion -c tie.c -fPIC -DPIC -o .libs/libtie1_la-tie.o tie.c: In function 'tie_work1': tie.c:214: warning: comparing floating point with == or != is unsafe tie.c:217: warning: conversion to 'int' from 'double' may alter its value tie.c:221: warning: conversion to 'int' from 'long int' may alter its value tie.c:260: warning: conversion to 'int' from 'long int' may alter its value tie.c:292: warning: comparison between signed and unsigned gcc -DHAVE_CONFIG_H -I. -I../../../include -I/usr/include/tcl8.4 -I/usr/include/jama -I/usr/lib/jvm/java-6-openjdk/include -I/usr/local/include -DBRLCADBUIL D=1 -I../../../include -I../../../src/other/openNURBS -DTIE_PRECISION=1 -g -O2 -I/usr/include/tcl8.4 -I/usr/include/jama -I/usr/lib/jvm/java-6-openjdk/includ e -pipe -fno-strict-aliasing -fno-common -fexceptions -g -O3 -W -Wall -Wundef -Wfloat-equal -Wshadow -Wunreachable-code -Winline -Wconversion -c tie.c -o lib tie1_la-tie.o >/dev/null 2>&1 /bin/sh ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../include -I/usr/include/tcl8.4 -I/usr/include/jama -I/usr/lib/jvm/java -6-openjdk/include -I/usr/local/include -DBRLCADBUILD=1 -I../../../include -I../../../src/other/openNURBS -DTIE_PRECISION=1 -g -O2 -I/usr/include/tcl8.4 -I/ usr/include/jama -I/usr/lib/jvm/java-6-openjdk/include -pipe -fno-strict-aliasing -fno-common -fexceptions -g -O3 -W -Wall -Wundef -Wfloat-equal -Wshadow -Wu nreachable-code -Winline -Wconversion -c -o libtie1_la-tie_kdtree.lo `test -f 'tie_kdtree.c' || echo './'`tie_kdtree.c gcc -DHAVE_CONFIG_H -I. -I../../../include -I/usr/include/tcl8.4 -I/usr/include/jama -I/usr/lib/jvm/java-6-openjdk/include -I/usr/local/include -DBRLCADBUIL D=1 -I../../../include -I../../../src/other/openNURBS -DTIE_PRECISION=1 -g -O2 -I/usr/include/tcl8.4 -I/usr/include/jama -I/usr/lib/jvm/java-6-openjdk/includ e -pipe -fno-strict-aliasing -fno-common -fexceptions -g -O3 -W -Wall -Wundef -Wfloat-equal -Wshadow -Wunreachable-code -Winline -Wconversion -c tie_kdtree.c -fPIC -DPIC -o .libs/libtie1_la-tie_kdtree.o In file included from ../../../include/raytrace.h:43, from tie_kdtree.c:38: ../../../include/bn.h:492: warning: 'extern' is not at beginning of declaration tie_kdtree.c: In function 'tie_kdtree_cache_free_node': tie_kdtree.c:152: warning: conversion to 'uint32_t' from 'long unsigned int' may alter its value tie_kdtree.c:154: warning: conversion to 'uint8_t' from 'long int' may alter its value tie_kdtree.c:172: warning: conversion to 'uint32_t' from 'long unsigned int' may alter its value tie_kdtree.c:180: warning: conversion to 'uint32_t' from 'long int' may alter its value tie_kdtree.c:182: warning: conversion to 'uint32_t' from 'long unsigned int' may alter its value tie_kdtree.c: In function 'tie_kdtree_build': tie_kdtree.c:333: warning: conversion to 'unsigned int' from 'int' may change the sign of the result tie_kdtree.c:333: warning: conversion to 'int' from 'unsigned int' may change the sign of the result tie_kdtree.c:540: warning: conversion to 'unsigned int' from 'double' may alter its value tie_kdtree.c:541: warning: conversion to 'unsigned int' from 'double' may alter its value tie_kdtree.c:550: warning: conversion to 'unsigned int' from 'double' may alter its value tie_kdtree.c:551: warning: conversion to 'unsigned int' from 'double' may alter its value tie_kdtree.c:585: warning: conversion to 'int' from 'unsigned int' may change the sign of the result tie_kdtree.c:585: warning: conversion to 'int' from 'unsigned int' may change the sign of the result tie_kdtree.c:605: warning: conversion to 'unsigned int' from 'double' may alter its value tie_kdtree.c:646: warning: conversion to 'unsigned int' from 'int' may change the sign of the result tie_kdtree.c:646: warning: conversion to 'int' from 'unsigned int' may change the sign of the result tie_kdtree.c:737: warning: suggest explicit braces to avoid ambiguous 'else' tie_kdtree.c:318: warning: unused parameter 'node_a' tie_kdtree.c:318: warning: unused parameter 'node_b' tie_kdtree.c: In function 'tie_kdtree_cache_load1': tie_kdtree.c:814: warning: declaration of 'index' shadows a global declaration /usr/include/string.h:309: warning: shadowed declaration is here tie_kdtree.c:831: warning: conversion to 'uint32_t' from 'long unsigned int' may alter its value tie_kdtree.c:840: warning: conversion to 'uint32_t' from 'long unsigned int' may alter its value tie_kdtree.c:859: warning: conversion to 'uint32_t' from 'long unsigned int' may alter its value tie_kdtree.c: In function 'tie_kdtree_prep1': tie_kdtree.c:914: warning: suggest explicit braces to avoid ambiguous 'else' tie_kdtree.c:926:22: warning: "TIE_PRECISION_SINGLE" is not defined tie_kdtree.c:938: warning: conversion to 'unsigned int' from 'int' may change the sign of the result tie_kdtree.c: In function 'tie_kdtree_build': tie_kdtree.c:394: warning: 'd_max' may be used uninitialized in this function tie_kdtree.c:394: warning: 'd_min' may be used uninitialized in this function tie_kdtree.c:392: warning: 'split_slice' may be used uninitialized in this function tie_kdtree.c:322: warning: 'split' may be used uninitialized in this function gcc -DHAVE_CONFIG_H -I. -I../../../include -I/usr/include/tcl8.4 -I/usr/include/jama -I/usr/lib/jvm/java-6-openjdk/include -I/usr/local/include -DBRLCADBUILD=1 -I../../../include -I../../../src/other/openNURBS -DTIE_PRECISION=1 -g -O2 -I/usr/include/tcl8.4 -I/usr/include/jama -I/usr/lib/jvm/java-6-openjdk/include -pipe -fno-strict-aliasing -fno-common -fexceptions -g -O3 -W -Wall -Wundef -Wfloat-equal -Wshadow -Wunreachable-code -Winline -Wconversion -c tie_kdtree.c -o libtie1_la-tie_kdtree.o >/dev/null 2>&1 /bin/sh ../../../libtool --tag=CC --mode=link gcc -DTIE_PRECISION=1 -g -O2 -I/usr/include/tcl8.4 -I/usr/include/jama -I/usr/lib/jvm/java-6-openjdk/include -pipe -fno-strict-aliasing -fno-common -fexceptions -g -O3 -W -Wall -Wundef -Wfloat-equal -Wshadow -Wunreachable-code -Winline -Wconversion -Wl,-z,defs,-lstdc++,-lm,-lXi,-ldl,-litcl3.2,-lBLT,-lpthread -L/usr/local/lib -pipe -fno-strict-aliasing -fno-common -fexceptions -g -O3 -W -Wall -Wundef -Wfloat-equal -Wshadow -Wunreachable-code -Winline -Wconversion -o libtie1.la libtie1_la-tie.lo libtie1_la-tie_kdtree.lo ar cru .libs/libtie1.a .libs/libtie1_la-tie.o .libs/libtie1_la-tie_kdtree.o ranlib .libs/libtie1.a creating libtie1.la (cd .libs && rm -f libtie1.la && ln -s ../libtie1.la libtie1.la) /bin/sh ../../../libtool --tag=CC --mode=link gcc -g -O2 -I/usr/include/tcl8.4 -I/usr/include/jama -I/usr/lib/jvm/java-6-openjdk/include -pipe -fno-strict-aliasing -fno-common -fexceptions -g -O3 -W -Wall -Wundef -Wfloat-equal -Wshadow -Wunreachable-code -Winline -Wconversion -Wl,-z,defs,-lstdc++,-lm,-lXi,-ldl,-litcl3.2,-lBLT,-lpthread -L/usr/local/lib -pipe -fno-strict-aliasing -fno-common -fexceptions -g -O3 -W -Wall -Wundef -Wfloat-equal -Wshadow -Wunreachable-code -Winline -Wconversion -o libtie.la -rpath /usr/lib/brlcad libtie0.la libtie1.la -ltcl8.4 -lpng -lz -lm -lc -lpthread gcc -shared -Wl,--whole-archive ./.libs/libtie0.a ./.libs/libtie1.a -Wl,--no-whole-archive -L/usr/local/lib -ltcl8.4 -lpng -lz -lm -lc -lpthread -Wl,-z -Wl,defs -Wl,-lstdc++ -Wl,-lm -Wl,-lXi -Wl,-ldl -Wl,-litcl3.2 -Wl,-lBLT -Wl,-lpthread -Wl,-soname -Wl,libtie.so.0 -o .libs/libtie.so.0.0.0 ./.libs/libtie0.a(libtie0_la-tie.o): In function `tie_push0': /tmp/buildd/brlcad-7.12.6+dfsg+svn32780/src/adrt/libtie/tie.c:439: undefined reference to `bu_malloc' /tmp/buildd/brlcad-7.12.6+dfsg+svn32780/src/adrt/libtie/tie.c:408: undefined reference to `bu_realloc' ./.libs/libtie0.a(libtie0_la-tie.o): In function `tie_init0': /tmp/buildd/brlcad-7.12.6+dfsg+svn32780/src/adrt/libtie/tie.c:123: undefined reference to `bu_malloc' ./.libs/libtie0.a(libtie0_la-tie.o): In function `tie_free0': /tmp/buildd/brlcad-7.12.6+dfsg+svn32780/src/adrt/libtie/tie.c:143: undefined reference to `bu_free' /tmp/buildd/brlcad-7.12.6+dfsg+svn32780/src/adrt/libtie/tie.c:144: undefined reference to `bu_free' ./.libs/libtie0.a(libtie0_la-tie_kdtree.o): In function `tie_kdtree_cache_free_node': [...] /tmp/buildd/brlcad-7.12.6+dfsg+svn32780/src/adrt/libtie/tie_kdtree.c:122: undefined reference to `bu_free' /tmp/buildd/brlcad-7.12.6+dfsg+svn32780/src/adrt/libtie/tie_kdtree.c:123: undefined reference to `bu_free' /tmp/buildd/brlcad-7.12.6+dfsg+svn32780/src/adrt/libtie/tie_kdtree.c:122: undefined reference to `bu_free' /tmp/buildd/brlcad-7.12.6+dfsg+svn32780/src/adrt/libtie/tie_kdtree.c:123: undefined reference to `bu_free' ./.libs/libtie1.a(libtie1_la-tie_kdtree.o):/tmp/buildd/brlcad-7.12.6+dfsg+svn32780/src/adrt/libtie/tie_kdtree.c:122: more undefined references to `bu_free' follow collect2: ld returned 1 exit status make[4]: *** [libtie.la] Error 1 make[4]: Leaving directory `/tmp/buildd/brlcad-7.12.6+dfsg+svn32780/src/adrt/libtie' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/tmp/buildd/brlcad-7.12.6+dfsg+svn32780/src/adrt' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/tmp/buildd/brlcad-7.12.6+dfsg+svn32780/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/buildd/brlcad-7.12.6+dfsg+svn32780' make: *** [build-stamp] Error 2 File Added: brlcad.log.bz2 ---------------------------------------------------------------------- Comment By: Sean Morrison (brlcad) Date: 2008-09-27 18:21 Message: Hm, the last time a problem like this was seen on Debian, it was due to Debian incorrectly setting link_all_deplibs to 'no' in the generated libtool script (it needs to be 'yes' or 'unknown'). To be sure, though, can you provide more of the proceeding error, at least up to the last two lines that say gcc and libtool before that error just so it's clear where in the build it's at? If it's easier for you to just provide the full build log, that'd work just fine too. Oh, yes -- and please attach the libtool script that was generated as well. That said, for integration, adrt can be disabled for integration with a patch without us loosing any critical functionality. This patch would do the trick: Index: src/Makefile.am =================================================================== --- src/Makefile.am (revision 32779) +++ src/Makefile.am (working copy) @@ -55,7 +55,6 @@ libmultispectral \ libtclcad \ libtermio \ - adrt \ anim \ archer \ brlman \ ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=640802&aid=2131397&group_id=105292 |