Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 591412

Summary: net-wireless/gnuradio-3.7.10 fails to build with ld.gold: undefined reference to 'pthread_setaffinity_np'
Product: Gentoo Linux Reporter: WGH <wgh>
Component: Current packagesAssignee: Gentoo Radio project <radio>
Status: RESOLVED OBSOLETE    
Severity: normal CC: esigra, zerochaos
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: http://gnuradio.org/redmine/issues/750
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 269315    
Attachments: emerge --info '=net-wireless/gnuradio-3.7.10::gentoo'
emerge -pqv '=net-wireless/gnuradio-3.7.10::gentoo'
build.log.gz

Description WGH 2016-08-16 18:35:38 UTC
Someone mentioned this on GNU Radio redmine recently, and I've encountered it myself today.

http://gnuradio.org/redmine/issues/750#note-5

Relevant lines from the log:
/usr/bin/x86_64-pc-linux-gnu-g++   -march=core-avx2 -O2 -pipe -msahf -mmovbe --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=core-avx2 -fstack-protector  -std=c++98 -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized   -Wl,-O1 -Wl,--as-needed CMakeFiles/gnuradio-config-info.dir/gnuradio-config-info.cc.o  -o gnuradio-config-info -rdynamic ../lib/libgnuradio-runtime-3.7.10.so.0.0.0 -lboost_date_time-mt -lboost_program_options-mt -lboost_filesystem-mt -lboost_system-mt -lboost_regex-mt -lboost_thread-mt ../lib/pmt/libgnuradio-pmt-3.7.10.so.0.0.0 -lboost_date_time-mt -lboost_program_options-mt -lboost_filesystem-mt -lboost_system-mt -lboost_regex-mt -lboost_thread-mt ../../volk/lib/libvolk.so.1.3 -ldl -lorc-0.4 -llog4cpp -lrt -Wl,-rpath,/var/tmp/portage/net-wireless/gnuradio-3.7.10/work/gnuradio-3.7.10_build/gnuradio-runtime/lib:/var/tmp/portage/net-wireless/gnuradio-3.7.10/work/gnuradio-3.7.10_build/gnuradio-runtime/lib/pmt:/var/tmp/portage/net-wireless/gnuradio-3.7.10/work/gnuradio-3.7.10_build/volk/lib: 
../lib/libgnuradio-runtime-3.7.10.so.0.0.0: error: undefined reference to 'pthread_setaffinity_np'
../lib/libgnuradio-runtime-3.7.10.so.0.0.0: error: undefined reference to 'pthread_sigmask'
collect2: error: ld returned 1 exit status
gnuradio-runtime/apps/CMakeFiles/gnuradio-config-info.dir/build.make:111: recipe for target 'gnuradio-runtime/apps/gnuradio-config-info' failed
make[2]: *** [gnuradio-runtime/apps/gnuradio-config-info] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-wireless/gnuradio-3.7.10/work/gnuradio-3.7.10_build'
Comment 1 WGH 2016-08-16 18:36:15 UTC
Created attachment 443526 [details]
emerge --info '=net-wireless/gnuradio-3.7.10::gentoo'
Comment 2 WGH 2016-08-16 18:37:02 UTC
Created attachment 443528 [details]
emerge -pqv '=net-wireless/gnuradio-3.7.10::gentoo'
Comment 3 WGH 2016-08-16 18:39:17 UTC
Created attachment 443530 [details]
build.log.gz

It was past 1M limit to be attached as a plain text file, sorry
Comment 4 Chí-Thanh Christopher Nguyễn gentoo-dev 2016-08-16 19:44:36 UTC
Can you try with ld.bfd instead of gold?
Comment 5 WGH 2016-08-16 21:17:50 UTC
Huh, I've forgot I ever enabled it.

It actually builds fine with ld.bfd.
Comment 6 Rick Farina (Zero_Chaos) gentoo-dev 2020-12-17 16:55:46 UTC
If this is still reproducible on 3.8.2.0 please reopen