Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 591412 - net-wireless/gnuradio-3.7.10 fails to build with ld.gold: undefined reference to 'pthread_setaffinity_np'
Summary: net-wireless/gnuradio-3.7.10 fails to build with ld.gold: undefined reference...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Radio project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: systemwide-gold
  Show dependency tree
 
Reported: 2016-08-16 18:35 UTC by WGH
Modified: 2020-12-17 16:55 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info '=net-wireless/gnuradio-3.7.10::gentoo' (emerge-info.txt,8.47 KB, text/plain)
2016-08-16 18:36 UTC, WGH
Details
emerge -pqv '=net-wireless/gnuradio-3.7.10::gentoo' (emerge-pqv.txt,1.06 KB, text/plain)
2016-08-16 18:37 UTC, WGH
Details
build.log.gz (build.log.gz,62.35 KB, application/gzip)
2016-08-16 18:39 UTC, WGH
Details

Note You need to log in before you can comment on or make changes to this bug.
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