discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] cmake fails when installing maint_3.7 branch on V


From: Chris Kuethe
Subject: Re: [Discuss-gnuradio] cmake fails when installing maint_3.7 branch on VM-Ubuntu 18.04
Date: Tue, 1 Oct 2019 12:10:02 -0700

"/usr/bin/ld: cannot find -lpthreads"

and there probably isn't a libpthread*s* ... just libpthread

I'd start with "grep -r pthreads /home/anastas/workarea-gnuradio/" to
figure out what file is trying to search for pthreads and replace it
with pthread.

On Tue, Oct 1, 2019 at 12:04 PM Achilleas Anastasopoulos
<address@hidden> wrote:
>
> Hi all,
>
> I have the following issue trying a fresh installation on a VM-Ubuntu 18.04.
> After installing the dependencies etc from here:
> https://wiki.gnuradio.org/index.php/UbuntuInstall
>
> and after checking out the maint_3.7 branch the cmake fails with the 
> following CMakeError.log file.
>
> Something tell me I am missing something obvious, but don't know what...
> This is the first time I see something like this.
>
> Any help is appreciated.
>
> best
> Achilleas
>
>
>
>
> -----------
>
> Determining if the pthread_create exist failed with the following output:
> Change Dir: /home/anastas/workarea-gnuradio/build_maint37/CMakeFiles/CMakeTmp
>
> Run Build Command:"/usr/bin/make" "cmTC_a2fc5/fast"
> /usr/bin/make -f CMakeFiles/cmTC_a2fc5.dir/build.make 
> CMakeFiles/cmTC_a2fc5.dir/build
> make[1]: Entering directory 
> '/home/anastas/workarea-gnuradio/build_maint37/CMakeFiles/CMakeTmp'
> Building C object CMakeFiles/cmTC_a2fc5.dir/CheckSymbolExists.c.o
> /usr/bin/cc   -std=gnu99 -fvisibility=hidden -Wsign-compare -Wall 
> -Wno-uninitialized    -o CMakeFi
> les/cmTC_a2fc5.dir/CheckSymbolExists.c.o   -c 
> /home/anastas/workarea-gnuradio/build_maint37/CMakeF
> iles/CMakeTmp/CheckSymbolExists.c
> Linking C executable cmTC_a2fc5
> /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a2fc5.dir/link.txt 
> --verbose=1
> /usr/bin/cc  -std=gnu99 -fvisibility=hidden -Wsign-compare -Wall 
> -Wno-uninitialized     -rdynamic
> CMakeFiles/cmTC_a2fc5.dir/CheckSymbolExists.c.o  -o cmTC_a2fc5
> CMakeFiles/cmTC_a2fc5.dir/CheckSymbolExists.c.o: In function `main':
> CheckSymbolExists.c:(.text+0x1b): undefined reference to `pthread_create'
> collect2: error: ld returned 1 exit status
> CMakeFiles/cmTC_a2fc5.dir/build.make:97: recipe for target 'cmTC_a2fc5' failed
> make[1]: *** [cmTC_a2fc5] Error 1
> make[1]: Leaving directory 
> '/home/anastas/workarea-gnuradio/build_maint37/CMakeFiles/CMakeTmp'
> Makefile:126: recipe for target 'cmTC_a2fc5/fast' failed
> make: *** [cmTC_a2fc5/fast] Error 2
>
> File 
> /home/anastas/workarea-gnuradio/build_maint37/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
> /* */
> #include <pthread.h>
>
> int main(int argc, char** argv)
> {
>  (void)argv;
> #ifndef pthread_create
>  return ((int*)(&pthread_create))[argc];
> #else
>  (void)argc;
>  return 0;
> #endif
> }
>
> Determining if the function pthread_create exists in the pthreads failed with 
> the following output
> :
> Change Dir: /home/anastas/workarea-gnuradio/build_maint37/CMakeFiles/CMakeTmp
>
> Run Build Command:"/usr/bin/make" "cmTC_cfcc3/fast"
> /usr/bin/make -f CMakeFiles/cmTC_cfcc3.dir/build.make 
> CMakeFiles/cmTC_cfcc3.dir/build
> make[1]: Entering directory 
> '/home/anastas/workarea-gnuradio/build_maint37/CMakeFiles/CMakeTmp'
> Building C object CMakeFiles/cmTC_cfcc3.dir/CheckFunctionExists.c.o
> /usr/bin/cc   -std=gnu99 -fvisibility=hidden -Wsign-compare -Wall 
> -Wno-uninitialized -DCHECK_FUNCT
> ION_EXISTS=pthread_create   -o 
> CMakeFiles/cmTC_cfcc3.dir/CheckFunctionExists.c.o   -c /usr/share/c
> make-3.10/Modules/CheckFunctionExists.c
> Linking C executable cmTC_cfcc3
> /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_cfcc3.dir/link.txt 
> --verbose=1
> /usr/bin/cc  -std=gnu99 -fvisibility=hidden -Wsign-compare -Wall 
> -Wno-uninitialized -DCHECK_FUNCTI
> ON_EXISTS=pthread_create    -rdynamic 
> CMakeFiles/cmTC_cfcc3.dir/CheckFunctionExists.c.o  -o cmTC_c
> fcc3 -lpthreads
> /usr/bin/ld: cannot find -lpthreads
> collect2: error: ld returned 1 exit status
> CMakeFiles/cmTC_cfcc3.dir/build.make:97: recipe for target 'cmTC_cfcc3' failed
> make[1]: *** [cmTC_cfcc3] Error 1
> make[1]: Leaving directory 
> '/home/anastas/workarea-gnuradio/build_maint37/CMakeFiles/CMakeTmp'
> Makefile:126: recipe for target 'cmTC_cfcc3/fast' failed
> make: *** [cmTC_cfcc3/fast] Error 2
>
>
> ---------
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio



-- 
GDB has a 'break' feature; why doesn't it have 'fix' too?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]