|
Boost Interest : |
Subject: [Boost-cmake] 1.40.0.cmake4 build problem
From: Denis Arnaud (denis.arnaud_boost_at_[hidden])
Date: 2009-10-31 20:06:37
With the 1.40.0.cmake4 version (
http://sodium.resophonic.com/boost-cmake/1.40.0.cmake4/boost-1.40.0.cmake4.tar.gz),
I get a build error on the binaries (e.g., bcp, inspect).
======================================================================
[ 98%] Built target boost_wave-mt-static-debug
make -f tools/inspect/CMakeFiles/inspect.dir/build.make
tools/inspect/CMakeFiles/inspect.dir/depend
make[2]: Entering directory
`/home/build/dev/packages/BUILD/boost-1.40.0.cmake4/build'
cd /home/build/dev/packages/BUILD/boost-1.40.0.cmake4/build &&
/usr/bin/cmake -E cmake_depends "Unix Makefiles"
/home/build/dev/packages/BUILD/boost-1.40.0.cmake4
/home/build/dev/packages/BUILD/boost-1.40.0.cmake4/tools/inspect
/home/build/dev/packages/BUILD/boost-1.40.0.cmake4/build
/home/build/dev/packages/BUILD/boost-1.40.0.cmake4/build/tools/inspect
/home/build/dev/packages/BUILD/boost-1.40.0.cmake4/build/tools/inspect/CMakeFiles/inspect.dir/DependInfo.cmake
--color=
make[2]: Leaving directory
`/home/build/dev/packages/BUILD/boost-1.40.0.cmake4/build'
make -f tools/inspect/CMakeFiles/inspect.dir/build.make
tools/inspect/CMakeFiles/inspect.dir/build
make[2]: Entering directory
`/home/build/dev/packages/BUILD/boost-1.40.0.cmake4/build'
Linking CXX executable ../../bin/inspect
cd /home/build/dev/packages/BUILD/boost-1.40.0.cmake4/build/tools/inspect &&
/usr/bin/cmake -E cmake_link_script CMakeFiles/inspect.dir/link.txt
--verbose=1
/usr/lib64/ccache/c++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic -fPIC CMakeFiles/inspect.dir/inspect.cpp.o
CMakeFiles/inspect.dir/license_check.cpp.o
CMakeFiles/inspect.dir/link_check.cpp.o
CMakeFiles/inspect.dir/path_name_check.cpp.o
CMakeFiles/inspect.dir/tab_check.cpp.o
CMakeFiles/inspect.dir/crlf_check.cpp.o
CMakeFiles/inspect.dir/end_check.cpp.o
CMakeFiles/inspect.dir/unnamed_namespace_check.cpp.o
CMakeFiles/inspect.dir/ascii_check.cpp.o
CMakeFiles/inspect.dir/copyright_check.cpp.o
CMakeFiles/inspect.dir/minmax_check.cpp.o -o ../../bin/inspect -rdynamic
../../lib/libboost_filesystem-mt.a ../../lib/libboost_system-mt.a
-lboost_regex-mt-static -lpthread -lrt
/usr/bin/ld: cannot find -lboost_regex-mt-static
collect2: ld returned 1 exit status
make[2]: *** [bin/inspect] Error 1
make[2]: Leaving directory
`/home/build/dev/packages/BUILD/boost-1.40.0.cmake4/build'
make[1]: *** [tools/inspect/CMakeFiles/inspect.dir/all] Error 2
make[1]: Leaving directory
`/home/build/dev/packages/BUILD/boost-1.40.0.cmake4/build'
make: *** [all] Error 2
======================================================================
To compile the inspect binary, the linker searches for the
libboost_regex-mt-static library, where as the static version of that
library is named libboost_regex-mt.a .
Note that there was a similar issue with the building of bcp, but I
de-activated it by passing the -DBUILD_BCP=OFF option to cmake (and, for
some reason, the -DBUILD_INSPECT=OFF option does not hinder the inspect
binary to be built). For info, I use the following cmake options:
-DBUILD_BCP=OFF -DBUILD_INSPECT=OFF -DBUILD_TESTS=NONE -DBUILD_TOOLS=NONE
(I used the following documentation:
http://sodium.resophonic.com/boost-cmake/current-docs/build_configuration.html#build-tools
).
Any idea welcome.
Denis