Discussion:
[brlcad-devel] compiling on debian stretch
John Griessen
2017-05-08 18:42:31 UTC
Permalink
Hello,

I'm getting 29% through make, then hit this message:

[ 28%] Building C object src/bwish/CMakeFiles/bwish.dir/input.c.o
[ 28%] Linking C executable ../../bin/bwish
/usr/bin/ld: warning: librt.so.1, needed by //lib/x86_64-linux-gnu/libbsd.so.0, may conflict with librt.so.20
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libfreetype.so: undefined reference to `***@PNG16_0'
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libfreetype.so: undefined reference to `***@PNG16_0'
.
.
.
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libfreetype.so: undefined reference to `***@PNG16_0'
collect2: error: ld returned 1 exit status
src/bwish/CMakeFiles/bwish.dir/build.make:192: recipe for target 'bin/bwish' failed


configure output and more of make output here:

https://pastebin.com/3Hnjah7P


John Griessen
Vasco Alexandre da Silva Costa
2017-05-08 19:24:00 UTC
Permalink
Post by John Griessen
Hello,
[ 28%] Building C object src/bwish/CMakeFiles/bwish.dir/input.c.o
[ 28%] Linking C executable ../../bin/bwish
/usr/bin/ld: warning: librt.so.1, needed by //lib/x86_64-linux-gnu/libbsd.so.0,
may conflict with librt.so.20
Basically this means that there's a library conflict with some other
library with the same name but a different version number.
Post by John Griessen
collect2: error: ld returned 1 exit status
src/bwish/CMakeFiles/bwish.dir/build.make:192: recipe for target 'bin/bwish' failed
The linker can't find libpng. Plus all your library paths look weird.
Post by John Griessen
https://pastebin.com/3Hnjah7P
Did you delete the build directory and re-run cmake prior to compilation?
--
Vasco Alexandre da Silva Costa
PhD in Computer Engineering (Computer Graphics)
Instituto Superior Técnico/University of Lisbon, Portugal
John Griessen
2017-05-09 16:50:55 UTC
Permalink
Now after adding some png dependencies, I get farther:

[ 85%] Built target plot3-X
Scanning dependencies of target creo-brl
[ 85%] Building CXX object src/conv/step/step-g/CMakeFiles/step-g.dir/SurfaceOfLinearExtrusion.cpp.o
[ 85%] Building CXX object src/external/CREO/CMakeFiles/creo-brl.dir/assembly.cpp.o
[ 85%] Building CXX object src/external/CREO/CMakeFiles/creo-brl.dir/csg.cpp.o
[ 85%] Building CXX object src/conv/step/step-g/CMakeFiles/step-g.dir/SurfaceOfRevolution.cpp.o
[ 85%] Building CXX object src/external/CREO/CMakeFiles/creo-brl.dir/main.cpp.o
[ 85%] Building CXX object src/conv/step/step-g/CMakeFiles/step-g.dir/SurfacePatch.cpp.o
[ 85%] Building CXX object src/external/CREO/CMakeFiles/creo-brl.dir/part.cpp.o
[ 85%] Building CXX object src/conv/step/step-g/CMakeFiles/step-g.dir/SurfaceReplica.cpp.o
/modatabig/src/brlcad-code/src/external/CREO/part.cpp: In function ‘ProError tessellate_part(creo_conv_info*, ProMdl, bu_vls**)’:
/modatabig/src/brlcad-code/src/external/CREO/part.cpp:658:36: error: ‘norm_tree’ may be used uninitialized in this function
[-Werror=maybe-uninitialized]
bn_vert_tree_destroy(norm_tree);
^
/modatabig/src/brlcad-code/src/external/CREO/part.cpp:657:36: error: ‘vert_tree’ may be used uninitialized in this function
[-Werror=maybe-uninitialized]
bn_vert_tree_destroy(vert_tree);
^
At global scope:
cc1plus: error: unrecognized command line option ‘-Wno-c11-extensions’ [-Werror]
cc1plus: all warnings being treated as errors
src/external/CREO/CMakeFiles/creo-brl.dir/build.make:134: recipe for target 'src/external/CREO/CMakeFiles/creo-brl.dir/part.cpp.o'
failed
make[2]: *** [src/external/CREO/CMakeFiles/creo-brl.dir/part.cpp.o] Error 1
CMakeFiles/Makefile2:30346: recipe for target 'src/external/CREO/CMakeFiles/creo-brl.dir/all' failed
make[1]: *** [src/external/CREO/CMakeFiles/creo-brl.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 85%] Building CXX object src/conv/step/step-g/CMakeFiles/step-g.dir/SweptSurface.cpp.o
[ 85%] Building CXX object src/conv/step/step-g/CMakeFiles/step-g.dir/ThermodynamicTemperatureContextDependentUnit.cpp.o
[ 85%] Building CXX object src/conv/step/step-g/CMakeFiles/step-g.dir/ThermodynamicTemperatureConversionBasedUnit.cpp.o

Is there a dependency that CREO needs ?

Should I be compiling from HEAD, or an earlier tag or commit?
--
John Griessen
Vasco Alexandre da Silva Costa
2017-05-09 17:08:46 UTC
Permalink
Post by John Griessen
[ 85%] Built target plot3-X
Scanning dependencies of target creo-brl
[ 85%] Building CXX object src/conv/step/step-g/CMakeFiles/step-g.dir/
SurfaceOfLinearExtrusion.cpp.o
[ 85%] Building CXX object src/external/CREO/CMakeFiles/
creo-brl.dir/assembly.cpp.o
[ 85%] Building CXX object src/external/CREO/CMakeFiles/
creo-brl.dir/csg.cpp.o
[ 85%] Building CXX object src/conv/step/step-g/CMakeFiles/step-g.dir/
SurfaceOfRevolution.cpp.o
[ 85%] Building CXX object src/external/CREO/CMakeFiles/
creo-brl.dir/main.cpp.o
[ 85%] Building CXX object src/conv/step/step-g/CMakeFiles/step-g.dir/
SurfacePatch.cpp.o
[ 85%] Building CXX object src/external/CREO/CMakeFiles/
creo-brl.dir/part.cpp.o
[ 85%] Building CXX object src/conv/step/step-g/CMakeFiles/step-g.dir/
SurfaceReplica.cpp.o
/modatabig/src/brlcad-code/src/external/CREO/part.cpp: In function
‘norm_tree’ may be used uninitialized in this function
[-Werror=maybe-uninitialized]
bn_vert_tree_destroy(norm_tree);
^
‘vert_tree’ may be used uninitialized in this function
[-Werror=maybe-uninitialized]
bn_vert_tree_destroy(vert_tree);
^
cc1plus: error: unrecognized command line option ‘-Wno-c11-extensions’
[-Werror]
cc1plus: all warnings being treated as errors
src/external/CREO/CMakeFiles/creo-brl.dir/build.make:134: recipe for
target 'src/external/CREO/CMakeFiles/creo-brl.dir/part.cpp.o'
failed
make[2]: *** [src/external/CREO/CMakeFiles/creo-brl.dir/part.cpp.o] Error 1
CMakeFiles/Makefile2:30346: recipe for target
'src/external/CREO/CMakeFiles/creo-brl.dir/all' failed
make[1]: *** [src/external/CREO/CMakeFiles/creo-brl.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 85%] Building CXX object src/conv/step/step-g/CMakeFiles/step-g.dir/
SweptSurface.cpp.o
[ 85%] Building CXX object src/conv/step/step-g/CMakeFiles/step-g.dir/
ThermodynamicTemperatureContextDependentUnit.cpp.o
[ 85%] Building CXX object src/conv/step/step-g/CMakeFiles/step-g.dir/
ThermodynamicTemperatureConversionBasedUnit.cpp.o
Is there a dependency that CREO needs ?
Should I be compiling from HEAD, or an earlier tag or commit?
The most recent code, as usual in an SVN project, is in the trunk/
directory.
--
Vasco Alexandre da Silva Costa
PhD in Computer Engineering (Computer Graphics)
Instituto Superior Técnico/University of Lisbon, Portugal
Christopher Sean Morrison
2017-05-11 03:44:50 UTC
Permalink
John,

If you’re not planning on doing development, you should specify the -DBRLCAD_ENABLE_STRICT=OFF flag to cmake before running make. Otherwise, every little compiler warning will turn into an error, which is what you’re encountering below. The error is from very recent code changes issuing a pretty benign warning (and different compiler versions issue different warnings, so it often takes a few days to catch them all).

The latest development is on trunk. There is a STABLE branch that is some fully-tested prior version. There are also tags for every released version.

Cheers!
Sean
Post by John Griessen
[ 85%] Built target plot3-X
Scanning dependencies of target creo-brl
[ 85%] Building CXX object src/conv/step/step-g/CMakeFiles/step-g.dir/SurfaceOfLinearExtrusion.cpp.o
[ 85%] Building CXX object src/external/CREO/CMakeFiles/creo-brl.dir/assembly.cpp.o
[ 85%] Building CXX object src/external/CREO/CMakeFiles/creo-brl.dir/csg.cpp.o
[ 85%] Building CXX object src/conv/step/step-g/CMakeFiles/step-g.dir/SurfaceOfRevolution.cpp.o
[ 85%] Building CXX object src/external/CREO/CMakeFiles/creo-brl.dir/main.cpp.o
[ 85%] Building CXX object src/conv/step/step-g/CMakeFiles/step-g.dir/SurfacePatch.cpp.o
[ 85%] Building CXX object src/external/CREO/CMakeFiles/creo-brl.dir/part.cpp.o
[ 85%] Building CXX object src/conv/step/step-g/CMakeFiles/step-g.dir/SurfaceReplica.cpp.o
/modatabig/src/brlcad-code/src/external/CREO/part.cpp:658:36: error: ‘norm_tree’ may be used uninitialized in this function
[-Werror=maybe-uninitialized]
bn_vert_tree_destroy(norm_tree);
^
/modatabig/src/brlcad-code/src/external/CREO/part.cpp:657:36: error: ‘vert_tree’ may be used uninitialized in this function
[-Werror=maybe-uninitialized]
bn_vert_tree_destroy(vert_tree);
^
cc1plus: error: unrecognized command line option ‘-Wno-c11-extensions’ [-Werror]
cc1plus: all warnings being treated as errors
src/external/CREO/CMakeFiles/creo-brl.dir/build.make:134: recipe for target 'src/external/CREO/CMakeFiles/creo-brl.dir/part.cpp.o'
failed
make[2]: *** [src/external/CREO/CMakeFiles/creo-brl.dir/part.cpp.o] Error 1
CMakeFiles/Makefile2:30346: recipe for target 'src/external/CREO/CMakeFiles/creo-brl.dir/all' failed
make[1]: *** [src/external/CREO/CMakeFiles/creo-brl.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 85%] Building CXX object src/conv/step/step-g/CMakeFiles/step-g.dir/SweptSurface.cpp.o
[ 85%] Building CXX object src/conv/step/step-g/CMakeFiles/step-g.dir/ThermodynamicTemperatureContextDependentUnit.cpp.o
[ 85%] Building CXX object src/conv/step/step-g/CMakeFiles/step-g.dir/ThermodynamicTemperatureConversionBasedUnit.cpp.o
Is there a dependency that CREO needs ?
Should I be compiling from HEAD, or an earlier tag or commit?
--
John Griessen
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BRL-CAD Developer mailing list
https://lists.sourceforge.net/lists/listinfo/brlcad-devel
Loading...