[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cmake build system 'ld: cannot find -lpthreads' (OpenClonk)
From: |
Tonton |
Subject: |
Re: cmake build system 'ld: cannot find -lpthreads' (OpenClonk) |
Date: |
Sat, 17 Nov 2018 16:43:44 +0100 |
On Sat, 17 Nov 2018 16:23:47 +0100
Tonton <address@hidden> wrote:
> The relevant errors I get here are:
> /tmp/guix-build-openclonk-8.1.drv-0/build/CMakeFiles/CMakeError.log:
>
> Linking C executable cmTC_e2823
> /gnu/store/g85ikfjxs2d7aydvg5w06jn2h9xrjmpc-cmake-3.11.0/bin/cmake -E
> cmake_link_script CMakeFiles/cmTC_e2823.dir/link.txt --verbose=1
> /gnu/store/zrhwhlqqk51qslbddk4cip2z2p3fpvxd-gcc-5.5.0/bin/gcc
> -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic
> CMakeFiles/cmTC_e2823.dir/CheckFunctionExists.c.o -o cmTC_e2823
> -lpthreads
> ld: cannot find -lpthreads
> collect2: error: ld returned 1 exit status
>
I should add that cmake's configure and the compilation phase seems to find
pthreads. I looked through the log and found the following though:
/tmp/guix-build-openclonk-8.1.drv-0/build/CMakeFiles/CMakeOutput.log:
Determining if the function pthread_create exists in the pthread passed with
the following output:
Change Dir: /tmp/guix-build-openclonk-8.1.drv-0/build/CMakeFiles/CMakeTmp
Run Build
Command:"/gnu/store/nx21fqlb8jixwhbs83xlfp9a3h5p3g9a-make-4.2.1/bin/make"
"cmTC_56777/fast"
/gnu/store/nx21fqlb8jixwhbs83xlfp9a3h5p3g9a-make-4.2.1/bin/make
-f CMakeFiles/cmTC_56777.dir/build.make
CMakeFiles/cmTC_56777.dir/build
make[1]: Entering directory
'/tmp/guix-build-openclonk-8.1.drv-0/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_56777.dir/CheckFunctionExists.c.o
/gnu/store/zrhwhlqqk51qslbddk4cip2z2p3fpvxd-gcc-5.5.0/bin/gcc
-DCHECK_FUNCTION_EXISTS=pthread_create -o
CMakeFiles/cmTC_56777.dir/CheckFunctionExists.c.o
-c
/gnu/store/g85ikfjxs2d7aydvg5w06jn2h9xrjmpc-cmake-3.11.0/share/cmake-3.11/Modules/CheckFunctionExists.c
Linking C executable cmTC_56777
/gnu/store/g85ikfjxs2d7aydvg5w06jn2h9xrjmpc-cmake-3.11.0/bin/cmake
-E cmake_link_script CMakeFiles/cmTC_56777.dir/link.txt
--verbose=1
/gnu/store/zrhwhlqqk51qslbddk4cip2z2p3fpvxd-gcc-5.5.0/bin/gcc
-DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic
CMakeFiles/cmTC_56777.dir/CheckFunctionExists.c.o -o cmTC_56777
-lpthread
make[1]: Leaving directory
'/tmp/guix-build-openclonk-8.1.drv-0/build/CMakeFiles/CMakeTmp'
-----------------------------------------------------------------------------------------------------------
Does 'make[1]: ....' mean return status 1 - e.g. failed? I guess. If so why
does it succed compiling...