On Sat, Jan 29, 2022 at 02:33:25PM +0100, Petter Reinholdtsen wrote:
> [Lucas Nussbaum]
> > Relevant part (hopefully):
> > > /usr/bin/ld: CMakeFiles/cmTC_af046.dir/src.c.o: in function `main':
> > > ./obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/src.c:11: undefined reference 
> > > to `pthread_create'
> > > /usr/bin/ld: ./obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/src.c:12: 
> > > undefined reference to `pthread_detach'
> > > /usr/bin/ld: ./obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/src.c:13: 
> > > undefined reference to `pthread_cancel'
> > > /usr/bin/ld: ./obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/src.c:14: 
> > > undefined reference to `pthread_join'
> > > collect2: error: ld returned 1 exit status
> 
> Look like something, somewhere, is missing -lpthread to find the
> required functions.  Anyone got a patch to fix it?

Blindly dumping the end of the build log is often not helpful.

The actual problem is:

...
CMake Error at swig/CMakeLists.txt:37 (include):
  include could not find requested file:

    GrSwig


CMake Error at swig/CMakeLists.txt:51 (GR_SWIG_MAKE):
  Unknown CMake command "GR_SWIG_MAKE".


-- Configuring incomplete, errors occurred!
...


AFAIK this is due to a change in gnuradio 3.9.


> Happy hacking
> Petter Reinholdtsen

cu
Adrian

Reply via email to