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: Achilleas Anastasopoulos
Subject: Re: [Discuss-gnuradio] cmake fails when installing maint_3.7 branch on VM-Ubuntu 18.04
Date: Tue, 1 Oct 2019 15:25:23 -0400

Hi Michael,

not sure what you mean by "these errors are normal?" 
I thought that gnuradio development at the 3.7 branch is beyond "normal errors" status...

In any case, I also attach the CMakeOutput.log file in case this is more useful:

Thanks again,
Achilleas





On Tue, Oct 1, 2019 at 3:08 PM Michael Dickens <address@hidden> wrote:
Those errors are normal. Guessing there's info in the cmake output that's more useful. - MLD

On Tue, Oct 1, 2019 at 3:03 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:

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


--
Michael Dickens
Ettus Research Technical Support
Email: address@hidden
Web: https://ettus.com/

Attachment: CMakeOutput.log
Description: Text Data


reply via email to

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