Board index FlightGear Support Compiling

I tray to compile but ... abort cause "-lpthreads" missing

Building FlightGear from source, and in the need for help?

I tray to compile but ... abort cause "-lpthreads" missing

Postby abassign » Tue Dec 20, 2016 1:21 pm

The compile procedure FLIGHTGEAR abort, this is the compilation log:

Code: Select all
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/abassign/fgfs/build/flightgear/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_1e726/fast"
/usr/bin/make -f CMakeFiles/cmTC_1e726.dir/build.make CMakeFiles/cmTC_1e726.dir/build
make[1]: ingresso nella directory "/home/abassign/fgfs/build/flightgear/CMakeFiles/CMakeTmp"
Building C object CMakeFiles/cmTC_1e726.dir/CheckFunctionExists.c.o
/usr/bin/cc    -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTC_1e726.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.5/Modules/CheckFunctionExists.c
Linking C executable cmTC_1e726
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_1e726.dir/link.txt --verbose=1
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create    CMakeFiles/cmTC_1e726.dir/CheckFunctionExists.c.o  -o cmTC_1e726 -rdynamic -lpthreads
/usr/bin/ld: impossibile trovare -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_1e726.dir/build.make:97: set di istruzioni per l'obiettivo "cmTC_1e726" non riuscito
make[1]: *** [cmTC_1e726] Errore 1
make[1]: uscita dalla directory "/home/abassign/fgfs/build/flightgear/CMakeFiles/CMakeTmp"
Makefile:126: set di istruzioni per l'obiettivo "cmTC_1e726/fast" non riuscito
make: *** [cmTC_1e726/fast] Errore 2


I check "pthread*"
Code: Select all
find /lib -name "*pthread*"
/lib/i386-linux-gnu/libpthread-2.23.so
/lib/i386-linux-gnu/libpthread.so.0
/lib/x86_64-linux-gnu/libpthread-2.23.so
/lib/x86_64-linux-gnu/libpthread.so.0


and:

Code: Select all
nm /lib/x86_64-linux-gnu/libpthread.so.0 | grep "pthread_create"
0000000000007990 t __pthread_create_2_1
0000000000007990 T pthread_create@@GLIBC_2.2.5


I use the script:
download_and_compile.sh version: "2.34"
On Mint 18.1
A month ago I compiled all the program and everything went well.
abassign
 
Posts: 737
Joined: Mon Feb 27, 2012 5:09 pm
Location: Italy (living 5 Km from airport LIME)
Callsign: I-BASSY
Version: 2018.3
OS: Linux Mint 19. x

Re: I tray to compile but ... abort cause "-lpthreads" missi

Postby abassign » Wed Dec 21, 2016 9:55 pm

Oggi, mysteriously, without any mention of the solution of the problem ;) ... the compilation is finished happily. And now I have my new, shiny Fgfs under linux ok!

Thanks for the speed!
abassign
 
Posts: 737
Joined: Mon Feb 27, 2012 5:09 pm
Location: Italy (living 5 Km from airport LIME)
Callsign: I-BASSY
Version: 2018.3
OS: Linux Mint 19. x


Return to Compiling

Who is online

Users browsing this forum: No registered users and 2 guests