[mlpack-svn] [MLPACK] #287: Build error during linking mlpack
MLPACK Trac
trac at coffeetalk-1.cc.gatech.edu
Fri May 10 11:14:26 EDT 2013
#287: Build error during linking mlpack
----------------------------+-----------------------------------------------
Reporter: shyi | Owner: rcurtin
Type: defect | Status: accepted
Priority: major | Milestone: mlpack 1.0.6
Component: build system | Resolution:
Keywords: boost, linker | Blocking:
Blocked By: |
----------------------------+-----------------------------------------------
Comment (by shyi):
Here is the result of running VERBOSE=1 make.
$ VERBOSE=1 make
/usr/bin/cmake -H/home/shyi/Software/mlpack-1.0.5
-B/home/shyi/Software/mlpack-1.0.5/build --check-build-system
CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start
/home/shyi/Software/mlpack-1.0.5/build/CMakeFiles
/home/shyi/Software/mlpack-1.0.5/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/home/shyi/Software/mlpack-1.0.5/build'
make -f src/mlpack/CMakeFiles/mlpack.dir/build.make
src/mlpack/CMakeFiles/mlpack.dir/depend
make[2]: Entering directory `/home/shyi/Software/mlpack-1.0.5/build'
cd /home/shyi/Software/mlpack-1.0.5/build && /usr/bin/cmake -E
cmake_depends "Unix Makefiles" /home/shyi/Software/mlpack-1.0.5
/home/shyi/Software/mlpack-1.0.5/src/mlpack
/home/shyi/Software/mlpack-1.0.5/build
/home/shyi/Software/mlpack-1.0.5/build/src/mlpack
/home/shyi/Software/mlpack-1.0.5/build/src/mlpack/CMakeFiles/mlpack.dir/DependInfo.cmake
--color=
make[2]: Leaving directory `/home/shyi/Software/mlpack-1.0.5/build'
make -f src/mlpack/CMakeFiles/mlpack.dir/build.make
src/mlpack/CMakeFiles/mlpack.dir/build
make[2]: Entering directory `/home/shyi/Software/mlpack-1.0.5/build'
make[2]: Nothing to be done for `src/mlpack/CMakeFiles/mlpack.dir/build'.
make[2]: Leaving directory `/home/shyi/Software/mlpack-1.0.5/build'
/usr/bin/cmake -E cmake_progress_report
/home/shyi/Software/mlpack-1.0.5/build/CMakeFiles 19 20 21 22 23 24 25 26
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
[ 31%] Built target mlpack
make -f src/mlpack/methods/det/CMakeFiles/det.dir/build.make
src/mlpack/methods/det/CMakeFiles/det.dir/depend
make[2]: Entering directory `/home/shyi/Software/mlpack-1.0.5/build'
cd /home/shyi/Software/mlpack-1.0.5/build && /usr/bin/cmake -E
cmake_depends "Unix Makefiles" /home/shyi/Software/mlpack-1.0.5
/home/shyi/Software/mlpack-1.0.5/src/mlpack/methods/det
/home/shyi/Software/mlpack-1.0.5/build
/home/shyi/Software/mlpack-1.0.5/build/src/mlpack/methods/det
/home/shyi/Software/mlpack-1.0.5/build/src/mlpack/methods/det/CMakeFiles/det.dir/DependInfo.cmake
--color=
make[2]: Leaving directory `/home/shyi/Software/mlpack-1.0.5/build'
make -f src/mlpack/methods/det/CMakeFiles/det.dir/build.make
src/mlpack/methods/det/CMakeFiles/det.dir/build
make[2]: Entering directory `/home/shyi/Software/mlpack-1.0.5/build'
Linking CXX executable ../../../../bin/det
cd /home/shyi/Software/mlpack-1.0.5/build/src/mlpack/methods/det &&
/usr/bin/cmake -E cmake_link_script CMakeFiles/det.dir/link.txt
--verbose=1
/usr/bin/c++ -Wall -Wextra -O3 CMakeFiles/det.dir/det_main.cpp.o -o
../../../../bin/det -rdynamic ../../../../lib/libmlpack.so.1.0 -larmadillo
-lboost_program_options-mt -lboost_unit_test_framework-mt -lboost_random-
mt -lboost_program_options-mt -lboost_unit_test_framework-mt
-lboost_random-mt -lxml2
-Wl,-rpath,/home/shyi/Software/mlpack-1.0.5/build/lib:
CMakeFiles/det.dir/det_main.cpp.o: In function
`boost::program_options::validation_error::validation_error(boost::program_options::validation_error::kind_t,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, int)':
det_main.cpp:(.text._ZN5boost15program_options16validation_errorC2ENS1_6kind_tERKSsS4_i[_ZN5boost15program_options16validation_errorC5ENS1_6kind_tERKSsS4_i]+0x2c):
undefined reference to
`boost::program_options::validation_error::get_template(boost::program_options::validation_error::kind_t)'
det_main.cpp:(.text._ZN5boost15program_options16validation_errorC2ENS1_6kind_tERKSsS4_i[_ZN5boost15program_options16validation_errorC5ENS1_6kind_tERKSsS4_i]+0x44):
undefined reference to
`boost::program_options::error_with_option_name::error_with_option_name(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, int)'
CMakeFiles/det.dir/det_main.cpp.o: In function
`boost::program_options::validation_error::~validation_error()':
det_main.cpp:(.text._ZN5boost15program_options16validation_errorD2Ev[_ZN5boost15program_options16validation_errorD5Ev]+0x7):
undefined reference to `vtable for
boost::program_options::error_with_option_name'
CMakeFiles/det.dir/det_main.cpp.o: In function
`boost::program_options::invalid_option_value::~invalid_option_value()':
det_main.cpp:(.text._ZN5boost15program_options20invalid_option_valueD2Ev[_ZN5boost15program_options20invalid_option_valueD5Ev]+0x7):
undefined reference to `vtable for
boost::program_options::error_with_option_name'
CMakeFiles/det.dir/det_main.cpp.o: In function
`boost::program_options::invalid_option_value::~invalid_option_value()':
det_main.cpp:(.text._ZN5boost15program_options20invalid_option_valueD0Ev[_ZN5boost15program_options20invalid_option_valueD5Ev]+0x7):
undefined reference to `vtable for
boost::program_options::error_with_option_name'
CMakeFiles/det.dir/det_main.cpp.o: In function
`boost::exception_detail::error_info_injector<boost::program_options::validation_error>::~error_info_injector()':
det_main.cpp:(.text._ZN5boost16exception_detail19error_info_injectorINS_15program_options16validation_errorEED2Ev[_ZN5boost16exception_detail19error_info_injectorINS_15program_options16validation_errorEED5Ev]+0x2c):
undefined reference to `vtable for
boost::program_options::error_with_option_name'
CMakeFiles/det.dir/det_main.cpp.o: In function
`boost::program_options::validation_error::~validation_error()':
det_main.cpp:(.text._ZN5boost15program_options16validation_errorD0Ev[_ZN5boost15program_options16validation_errorD5Ev]+0x7):
undefined reference to `vtable for
boost::program_options::error_with_option_name'
CMakeFiles/det.dir/det_main.cpp.o:det_main.cpp:(.text._ZN5boost16exception_detail19error_info_injectorINS_15program_options20invalid_option_valueEED2Ev[_ZN5boost16exception_detail19error_info_injectorINS_15program_options20invalid_option_valueEED5Ev]+0x2c):
more undefined references to `vtable for
boost::program_options::error_with_option_name' follow
CMakeFiles/det.dir/det_main.cpp.o:(.rodata._ZTVN5boost15program_options16validation_errorE[vtable
for boost::program_options::validation_error]+0x20): undefined reference
to `boost::program_options::error_with_option_name::what() const'
CMakeFiles/det.dir/det_main.cpp.o:(.rodata._ZTVN5boost15program_options16validation_errorE[vtable
for boost::program_options::validation_error]+0x30): undefined reference
to
`boost::program_options::error_with_option_name::substitute_placeholders(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&) const'
CMakeFiles/det.dir/det_main.cpp.o:(.rodata._ZTVN5boost16exception_detail19error_info_injectorINS_15program_options16validation_errorEEE[vtable
for
boost::exception_detail::error_info_injector<boost::program_options::validation_error>]+0x20):
undefined reference to
`boost::program_options::error_with_option_name::what() const'
CMakeFiles/det.dir/det_main.cpp.o:(.rodata._ZTVN5boost16exception_detail19error_info_injectorINS_15program_options16validation_errorEEE[vtable
for
boost::exception_detail::error_info_injector<boost::program_options::validation_error>]+0x30):
undefined reference to
`boost::program_options::error_with_option_name::substitute_placeholders(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&) const'
CMakeFiles/det.dir/det_main.cpp.o:(.rodata._ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15program_options16validation_errorEEEEE[vtable
for
boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::program_options::validation_error>
>]+0x28): undefined reference to
`boost::program_options::error_with_option_name::what() const'
CMakeFiles/det.dir/det_main.cpp.o:(.rodata._ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15program_options16validation_errorEEEEE[vtable
for
boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::program_options::validation_error>
>]+0x38): undefined reference to
`boost::program_options::error_with_option_name::substitute_placeholders(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&) const'
CMakeFiles/det.dir/det_main.cpp.o:(.rodata._ZTVN5boost15program_options20invalid_option_valueE[vtable
for boost::program_options::invalid_option_value]+0x20): undefined
reference to `boost::program_options::error_with_option_name::what()
const'
CMakeFiles/det.dir/det_main.cpp.o:(.rodata._ZTVN5boost15program_options20invalid_option_valueE[vtable
for boost::program_options::invalid_option_value]+0x30): undefined
reference to
`boost::program_options::error_with_option_name::substitute_placeholders(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&) const'
CMakeFiles/det.dir/det_main.cpp.o:(.rodata._ZTVN5boost16exception_detail19error_info_injectorINS_15program_options20invalid_option_valueEEE[vtable
for
boost::exception_detail::error_info_injector<boost::program_options::invalid_option_value>]+0x20):
undefined reference to
`boost::program_options::error_with_option_name::what() const'
CMakeFiles/det.dir/det_main.cpp.o:(.rodata._ZTVN5boost16exception_detail19error_info_injectorINS_15program_options20invalid_option_valueEEE[vtable
for
boost::exception_detail::error_info_injector<boost::program_options::invalid_option_value>]+0x30):
undefined reference to
`boost::program_options::error_with_option_name::substitute_placeholders(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&) const'
CMakeFiles/det.dir/det_main.cpp.o:(.rodata._ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15program_options20invalid_option_valueEEEEE[vtable
for
boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::program_options::invalid_option_value>
>]+0x28): undefined reference to
`boost::program_options::error_with_option_name::what() const'
CMakeFiles/det.dir/det_main.cpp.o:(.rodata._ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15program_options20invalid_option_valueEEEEE[vtable
for
boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::program_options::invalid_option_value>
>]+0x38): undefined reference to
`boost::program_options::error_with_option_name::substitute_placeholders(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&) const'
CMakeFiles/det.dir/det_main.cpp.o:(.rodata._ZTIN5boost15program_options16validation_errorE[typeinfo
for boost::program_options::validation_error]+0x10): undefined reference
to `typeinfo for boost::program_options::error_with_option_name'
../../../../lib/libmlpack.so.1.0: undefined reference to
`boost::program_options::detail::cmdline::get_canonical_option_prefix()'
collect2: ld returned 1 exit status
make[2]: *** [bin/det] Error 1
make[2]: Leaving directory `/home/shyi/Software/mlpack-1.0.5/build'
make[1]: *** [src/mlpack/methods/det/CMakeFiles/det.dir/all] Error 2
make[1]: Leaving directory `/home/shyi/Software/mlpack-1.0.5/build'
make: *** [all] Error 2
Replying to [comment:1 rcurtin]:
> Can you post the output of the following command?
>
> {{{
> $ VERBOSE=1 make
> }}}
>
> This will give a lot more information as to what is going on. Also, if
you can attach (or paste) the CMakeCache.txt from your build directory,
that would be helpful too.
>
> Thanks!
--
Ticket URL: <http://trac.research.cc.gatech.edu/fastlab/ticket/287#comment:2>
MLPACK <www.fast-lab.org>
MLPACK is an intuitive, fast, and scalable C++ machine learning library developed by the FASTLAB at Georgia Tech under Dr. Alex Gray.
More information about the mlpack-svn
mailing list