LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Dual abi for boost 1.59 in 14.2 ? (https://www.linuxquestions.org/questions/slackware-14/dual-abi-for-boost-1-59-in-14-2-a-4175591055/)

cthibal 10-09-2016 04:30 AM

Dual abi for boost 1.59 in 14.2 ?
 
Hello,

It seems that boost 1.59 in slackware x64 14.2 is compiled with a single ABI (ie, doesn't contains c++11 entries...) which leads to error when compiling programs such GnuRadio.

I don't clearly see the side effects of building it with the _GLIBCXX_USE_CXX11_ABI=1 flag. From my understanding, it would be using dual-ABI.

Any idea ?

Thanks and best regards

Larry

[][4] ~ : readelf -h /usr/lib64/libboost_context.so
ELF Header:
Magic: 7f 45 4c 46 02 01 01 03 00 00 00 00 00 00 00 00
Class: ELF64
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - GNU
ABI Version: 0
Type: DYN (Shared object file)
Machine: Advanced Micro Devices X86-64
Version: 0x1
Entry point address: 0x5d40
Start of program headers: 64 (bytes into file)
Start of section headers: 52088 (bytes into file)
Flags: 0x0
Size of this header: 64 (bytes)
Size of program headers: 56 (bytes)
Number of program headers: 5
Size of section headers: 64 (bytes)
Number of section headers: 27
Section header string table index: 26

ponce 10-09-2016 04:57 AM

Quote:

Originally Posted by cthibal (Post 5615686)
It seems that boost 1.59 in slackware x64 14.2 is compiled with a single ABI (ie, doesn't contains c++11 entries...) which leads to error when compiling programs such GnuRadio.

hi cthibal, just for curiosity I tried building gnuradio from SBo and all went fine...

can you please paste here (or on pastebin.com if it's too long) the log with the error you got building that?

cthibal 10-09-2016 07:01 AM

Hello Ponce,
Thanks for the test, I forgot to mention that I was able to build up to version 3.7.9.2 with SBo script.
I am trying to build the last released version 3.7.10.1 with same cmake command than SBo script and I got some missing '[abi:cxx11]' functions, has shown below.

Command line in build folder:
cmake -DCMAKE_C_FLAGS:STRING="-O2 -fPIC" -DCMAKE_CXX_FLAGS:STRING="-O2 -fPIC" -DCMAKE_INSTALL_PREFIX=/usr -DSYSCONFDIR=/etc -DLIB_SUFFIX=64 -DCMAKE_MODULES_DIR=lib64/cmake/gnuradio -Wno-dev -DCMAKE_BUILD_TYPE=Release ..

Output:
CMakeFiles/volk_profile.dir/volk_profile.cc.o: In function `boost::program_options::validation_error::validation_error(boost::program_options::validation_error ::kind_t, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)':
volk_profile.cc:(.text._ZN5boost15program_options16validation_errorC2ENS1_6kind_tERKNSt7__cxx1112bas ic_stringIcSt11char_traitsIcESaIcEEESA_i[_ZN5boost15program_options16validation_errorC5ENS1_6kind_tERKNSt7__cxx1112basic_stringIcSt11char_tra itsIcESaIcEEESA_i]+0x26): undefined reference to `boost::program_options::validation_error::get_template[abi:cxx11](boost::program_options::validation_error::kind_t)'
volk_profile.cc:(.text._ZN5boost15program_options16validation_errorC2ENS1_6kind_tERKNSt7__cxx1112bas ic_stringIcSt11char_traitsIcESaIcEEESA_i[_ZN5boost15program_options16validation_errorC5ENS1_6kind_tERKNSt7__cxx1112basic_stringIcSt11char_tra itsIcESaIcEEESA_i]+0x3c): undefined reference to `boost::program_options::error_with_option_name::error_with_option_name(std::__cxx11::basic_string<c har, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
<snap>
make[2]: *** [volk/apps/volk_profile] Error 1
CMakeFiles/Makefile2:309: recipe for target 'volk/apps/CMakeFiles/volk_profile.dir/all' failed
make[1]: *** [volk/apps/CMakeFiles/volk_profile.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

ponce 10-09-2016 11:33 AM

IMHO, the issue start with this commit in volk that, if I have understood it correctly, repairs one thing (non-related to your issue) but, in practice, breaks another one.

https://github.com/gnuradio/volk/com...bbd9718250f029

that's unwanted, I think, because if you look at gnuradio you can see that they are still using gnu99.

if you add this sed (that reverts that commit) after the other one in SBo's gnuradio.SlackBuild you should be able to build 3.7.10.1 on slackware 14.2 just fine
Code:

sed -i "/GLIBCXX_USE_CXX11_ABI/d" volk/CMakeLists.txt

cthibal 10-09-2016 02:00 PM

Great ;-)

I missed that one !

Merci Ponce, fix worked like a charm


All times are GMT -5. The time now is 07:54 PM.