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 undefined reference to 'pthread_setaffinity_np'
Summary: net-wireless/gnuradio-3.7.10 fails to build with undefined reference...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Radio project
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: ---

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

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.

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/  -o gnuradio-config-info -rdynamic ../lib/ -lboost_date_time-mt -lboost_program_options-mt -lboost_filesystem-mt -lboost_system-mt -lboost_regex-mt -lboost_thread-mt ../lib/pmt/ -lboost_date_time-mt -lboost_program_options-mt -lboost_filesystem-mt -lboost_system-mt -lboost_regex-mt -lboost_thread-mt ../../volk/lib/ -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/ error: undefined reference to 'pthread_setaffinity_np'
../lib/ 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]

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 please reopen