|
Boost Users : |
Subject: Re: [Boost-users] Many undefined references for libboost_filesystem
From: mahmood n (nt_mahmood_at_[hidden])
Date: 2017-10-16 18:58:01
I have stuck at this error and tried many versions but they all say the same thing. The makefile is available at
https://github.com/gpgpu-sim/ispass2009-benchmarks
mahmood_at_vb:ispass2009-benchmarks$ grep BOOST Makefile.ispass-2009
          export BOOST_LIB=/home/mahmood/boost_1_54_0/stage/lib; \
          export BOOST_ROOT=/home/mahmood/boost_1_54_0; \
          export BOOST_VER=""; \
mahmood_at_vb:ispass2009-benchmarks$ grep boost AES/Makefile
LINKFLAGSÂ Â Â Â Â Â := -L$(BOOST_LIB) -lboost_system -lboost_filesystem$(BOOST_VER)
mahmood_at_vb:ispass2009-benchmarks$ make -f Makefile.ispass-2009
rm -f ../common; ln -s /home/mahmood/NVIDIA_GPU_Computing_SDK/C/common ../common;
export BINDIR=/home/mahmood/gpgpu-sim_distribution/ispass2009-benchmarks/bin; export ROOTDIR=/home/mahmood/NVIDIA_GPU_Computing_SDK/C/src/; export BINSUBDIR=release; export BOOST_LIB=/home/mahmood/boost_1_54_0/stage/lib; export BOOST_ROOT=/home/mahmood/boost_1_54_0; export BOOST_VER=""; export OPENMPI_BINDIR=/usr/bin/;Â make noinline=0 -C AES
make[1]: Entering directory `/home/mahmood/gpgpu-sim_distribution/ispass2009-benchmarks/AES'
obj/x86_64/release/aescuda.cpp.o: In function `_GLOBAL__sub_I_aescuda.cpp':
aescuda.cpp:(.text.startup+0x68b): undefined reference to `boost::system::get_system_category()'
aescuda.cpp:(.text.startup+0x697): undefined reference to `boost::system::get_generic_category()'
aescuda.cpp:(.text.startup+0x6a3): undefined reference to `boost::system::get_generic_category()'
aescuda.cpp:(.text.startup+0x6af): undefined reference to `boost::system::get_generic_category()'
aescuda.cpp:(.text.startup+0x6bb): undefined reference to `boost::system::get_system_category()'
obj/x86_64/release/aesCudaUtils.cpp.o: In function `boost::enable_if<boost::filesystem::is_basic_path<boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> >, bool>::type boost::filesystem::exists<boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> >(boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> const&)':
aesCudaUtils.cpp:(.text._ZN5boost10filesystem6existsINS0_10basic_pathISsNS0_11path_traitsEEEEENS_9enable_ifINS0_13is_basic_pathIT_EEbE4typeERKS7_[boost::enable_if<boost::filesystem::is_basic_path<boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> >, bool>::type boost::filesystem::exists<boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> >(boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> const&)]+0x22): undefined reference to `boost::system::get_system_category()'
aesCudaUtils.cpp:(.text._ZN5boost10filesystem6existsINS0_10basic_pathISsNS0_11path_traitsEEEEENS_9enable_ifINS0_13is_basic_pathIT_EEbE4typeERKS7_[boost::enable_if<boost::filesystem::is_basic_path<boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> >, bool>::type boost::filesystem::exists<boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> >(boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> const&)]+0x6b): undefined reference to `boost::filesystem::detail::status_api(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::system::error_code&)'
obj/x86_64/release/aesCudaUtils.cpp.o: In function `boost::enable_if<boost::filesystem::is_basic_path<boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> >, unsigned long>::type boost::filesystem::file_size<boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> >(boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> const&)':
aesCudaUtils.cpp:(.text._ZN5boost10filesystem9file_sizeINS0_10basic_pathISsNS0_11path_traitsEEEEENS_9enable_ifINS0_13is_basic_pathIT_EEmE4typeERKS7_[boost::enable_if<boost::filesystem::is_basic_path<boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> >, unsigned long>::type boost::filesystem::file_size<boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> >(boost::filesystem::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem::path_traits> const&)]+0x55): undefined reference to `boost::filesystem::detail::file_size_api(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
obj/x86_64/release/aesCudaUtils.cpp.o: In function `_GLOBAL__sub_I_aesCudaUtils.cpp':
aesCudaUtils.cpp:(.text.startup+0x5): undefined reference to `boost::system::get_system_category()'
aesCudaUtils.cpp:(.text.startup+0x11): undefined reference to `boost::system::get_generic_category()'
aesCudaUtils.cpp:(.text.startup+0x1d): undefined reference to `boost::system::get_generic_category()'
aesCudaUtils.cpp:(.text.startup+0x29): undefined reference to `boost::system::get_generic_category()'
aesCudaUtils.cpp:(.text.startup+0x35): undefined reference to `boost::system::get_system_category()'
collect2: ld returned 1 exit status
make[1]: *** [/home/mahmood/gpgpu-sim_distribution/ispass2009-benchmarks/bin/release/AES] Error 1
make[1]: Leaving directory `/home/mahmood/gpgpu-sim_distribution/ispass2009-benchmarks/AES'
make: *** [default] Error 2
mahmood_at_vb:ispass2009-benchmarks$ ls -l /home/mahmood/boost_1_54_0/stage/lib/libboost_filesystem.*
-rw-rw-r-- 1 mahmood mahmood 213286 Oct 16 21:52 /home/mahmood/boost_1_54_0/stage/lib/libboost_filesystem.a
lrwxrwxrwx 1 mahmood mahmood    29 Oct 16 21:44 /home/mahmood/boost_1_54_0/stage/lib/libboost_filesystem.so -> libboost_filesystem.so.1.54.0
-rwxrwxr-x 1 mahmood mahmood 113400 Oct 16 21:44 /home/mahmood/boost_1_54_0/stage/lib/libboost_filesystem.so.1.54.0
mahmood_at_vb:ispass2009-benchmarks$ ls -l /home/mahmood/boost_1_54_0/stage/lib/libboost_system.*
-rw-rw-r-- 1 mahmood mahmood 49018 Oct 16 21:52 /home/mahmood/boost_1_54_0/stage/lib/libboost_system.a
lrwxrwxrwx 1 mahmood mahmood   25 Oct 16 21:44 /home/mahmood/boost_1_54_0/stage/lib/libboost_system.so -> libboost_system.so.1.54.0
-rwxrwxr-x 1 mahmood mahmood 20431 Oct 16 21:44 /home/mahmood/boost_1_54_0/stage/lib/libboost_system.so.1.54.0
Sent from Mail for Windows 10
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net