LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-09-2016, 04:30 AM   #1
cthibal
LQ Newbie
 
Registered: Apr 2015
Distribution: Slackware64-14.2
Posts: 27

Rep: Reputation: Disabled
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
 
Old 10-09-2016, 04:57 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,111

Rep: Reputation: 4182Reputation: 4182Reputation: 4182Reputation: 4182Reputation: 4182Reputation: 4182Reputation: 4182Reputation: 4182Reputation: 4182Reputation: 4182Reputation: 4182
Quote:
Originally Posted by cthibal View Post
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?

Last edited by ponce; 10-09-2016 at 05:01 AM.
 
Old 10-09-2016, 07:01 AM   #3
cthibal
LQ Newbie
 
Registered: Apr 2015
Distribution: Slackware64-14.2
Posts: 27

Original Poster
Rep: Reputation: Disabled
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

Last edited by cthibal; 10-09-2016 at 07:02 AM.
 
Old 10-09-2016, 11:33 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,111

Rep: Reputation: 4182Reputation: 4182Reputation: 4182Reputation: 4182Reputation: 4182Reputation: 4182Reputation: 4182Reputation: 4182Reputation: 4182Reputation: 4182Reputation: 4182
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

Last edited by ponce; 10-09-2016 at 11:45 AM.
 
1 members found this post helpful.
Old 10-09-2016, 02:00 PM   #5
cthibal
LQ Newbie
 
Registered: Apr 2015
Distribution: Slackware64-14.2
Posts: 27

Original Poster
Rep: Reputation: Disabled
Great ;-)

I missed that one !

Merci Ponce, fix worked like a charm
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Help with Abi Word Tirnanog Linux - Software 15 06-27-2016 06:41 PM
ABI questions dayalan_cse Programming 1 08-25-2008 12:58 AM
Linux-ABI problem chronom1 Linux - Software 2 07-28-2004 08:58 AM
abi-word digital abuzer Slackware 3 09-18-2003 11:36 AM
svr4 abi xmasman Programming 0 09-25-2001 04:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration