From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Darrington Subject: Re: [PATCH] gnu: Add LDFLAGS=-lpthread to configure-flags where needed. Date: Tue, 21 Mar 2017 13:15:53 +0100 Message-ID: <20170321121553.GB13334@jocasta.intra> References: <1490059331-32049-1-git-send-email-john@darrington.wattle.id.au> <1490059331-32049-2-git-send-email-john@darrington.wattle.id.au> <20170321122905.64b408a6@scratchpost.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wq9mPyueHGvFACwf" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47885) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cqIhr-0001Sp-6n for guix-devel@gnu.org; Tue, 21 Mar 2017 08:16:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cqIhm-000815-SC for guix-devel@gnu.org; Tue, 21 Mar 2017 08:16:07 -0400 Received: from de.cellform.com ([88.217.224.109]:33240 helo=jocasta.intra) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cqIhm-0007x5-GA for guix-devel@gnu.org; Tue, 21 Mar 2017 08:16:02 -0400 Content-Disposition: inline In-Reply-To: <20170321122905.64b408a6@scratchpost.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Danny Milosavljevic Cc: guix-devel@gnu.org --wq9mPyueHGvFACwf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 21, 2017 at 12:29:05PM +0100, Danny Milosavljevic wrote: Hi John, =20 thanks for looking into the problem. =20 On Tue, 21 Mar 2017 02:22:11 +0100 John Darrington wrote: > + (arguments `(#:configure-flags '("LDFLAGS=3D-lpthread"))) =20 Hmm, that seems to be a very unsafe thing to do. I was afraid you might say that. =20 In order to actually use pthread, one has to switch gcc into pthread m= ode (which influences how it handles variables etc). But just passing "-lpthread" to the linker does no such things and wil= l only make it link - with the wrong actual instructions in the object file= s! It used to work. Only recently has it stopped working. So that would seem to confirm to me that a version of gcc (or some other pa= rt of the tool chain) recently checked into core-updates might have been misconfi= gured. Is it possible that somehow pthread mode has been inadvertently switched on? =20 =20 It would be better to check out the object files (with objdump -r or o= bjdump -t) and find out where the symbol is listed as undefined ("U"). Then= check the associated source file whether it actually intended to use pthre= ad. I'm not familiar enough with the internals to know exactly which source fil= e=20 would be involved. But the error message clearly says to relink libpng and= libfontconfig=20 using -lpthread. I just did as told. J' --=20 Avoid eavesdropping. Send strong encrypted email. PGP Public key ID: 1024D/2DE827B3=20 fingerprint =3D 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3 See http://sks-keyservers.net or any PGP keyserver for public key. --wq9mPyueHGvFACwf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAljRGXkACgkQimdxnC3oJ7NMFgCfWLj/1zMmOTo1BdWRYL5WnLAH lIYAn3y9YvK8YUZMdf5vN0NV1lfVpp0l =zVe7 -----END PGP SIGNATURE----- --wq9mPyueHGvFACwf--