unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Tonton <tonton@riseup.net>
To: guix-devel@gnu.org
Subject: Re: cmake build system 'ld: cannot find -lpthreads' (OpenClonk)
Date: Sat, 17 Nov 2018 16:43:44 +0100	[thread overview]
Message-ID: <20181117164344.02ff6452@merlin.browniehive.net> (raw)
In-Reply-To: <20181117162347.6a9e04d1@merlin.browniehive.net>

On Sat, 17 Nov 2018 16:23:47 +0100
Tonton <tonton@riseup.net> 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...

      reply	other threads:[~2018-11-17 15:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-17 15:23 cmake build system 'ld: cannot find -lpthreads' (OpenClonk) Tonton
2018-11-17 15:43 ` Tonton [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181117164344.02ff6452@merlin.browniehive.net \
    --to=tonton@riseup.net \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).