From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Darrington Subject: Re: [PATCH 2/5] gnu: gnupg: Fixed cross-compile issues. Date: Sun, 15 Dec 2013 09:24:28 +0100 Message-ID: <20131215082427.GA5093@intra> References: <1387043002-6138-1-git-send-email-john@darrington.wattle.id.au> <1387043002-6138-2-git-send-email-john@darrington.wattle.id.au> <87y53nthwo.fsf@gnu.org> <20131214190218.GA8061@intra> <8761qrta62.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ibTvN161/egqYuK8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45512) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vs75V-0005Eu-Fw for guix-devel@gnu.org; Sun, 15 Dec 2013 03:30:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vs75R-0002fw-CK for guix-devel@gnu.org; Sun, 15 Dec 2013 03:30:09 -0500 Content-Disposition: inline In-Reply-To: <8761qrta62.fsf@gnu.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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic Court??s Cc: guix-devel@gnu.org --ibTvN161/egqYuK8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Dec 14, 2013 at 10:06:13PM +0100, Ludovic Court??s wrote: John Darrington skribis: =20 > On Sat, Dec 14, 2013 at 07:19:03PM +0100, Ludovic Court??s wrote: > John Darrington skribis: > =20 > > *gnu/packages/gnupg.scm (libgpg-error): Added gcc as a native= input, > > and set the CC_FOR_BUILD variable. > =20 > The implicit inputs when cross-compiling include both the cross= -gcc and > the native gcc (see build-system/gnu.scm.) > =20 > AFAICS setting CC_FOR_BUILD=3Dgcc should be enough (it uses ???= cc??? by > default.) Can you confirm. > > You are right. setting gcc as a native input seems to be unnecessar= y. Somewhat on > a tangent: > Would it not be a good idea to have CC_FOR_BUILD=3Dgcc the default= setting at least > fot the gnu build-system. =20 Yeah, perhaps we could add that when cross building (we have only two occurrences currently, but it may be needed quite often.) Pspp should have CC_FOR_BUILD set, but doesn't currently. =20 However, is --with-gpg-error-prefix really needed? By default the cro= ss gcc will find the target libgpg-error in its search path, and not the native one, so I would guess this is OK. =20 Without --with-gpg-error-prefix I get the following error when cross compil= ing: libtool: link: mips64el-linux-gnu-gcc -shared -fPIC -DPIC .libs/libgcrypt= _la-visibility.o .libs/libgcrypt_la-misc.o .libs/libgcrypt_la-global.o .lib= s/libgcrypt_la-sexp.o .libs/libgcrypt_la-hwfeatures.o .libs/libgcrypt_la-st= dmem.o .libs/libgcrypt_la-secmem.o .libs/libgcrypt_la-missing-string.o .lib= s/libgcrypt_la-module.o .libs/libgcrypt_la-fips.o .libs/libgcrypt_la-hmac25= 6.o .libs/libgcrypt_la-ath.o -Wl,--whole-archive ../cipher/.libs/libcipher= =2Ea ../random/.libs/librandom.a ../mpi/.libs/libmpi.a ../compat/.libs/libc= ompat.a -Wl,--no-whole-archive -Wl,-rpath -Wl,/nix/store/c3crv7mdmbc5sib7v= znf0183n5xxa8kv-libgpg-error-1.12/lib -Wl,-rpath -Wl,/nix/store/c3crv7mdmbc= 5sib7vznf0183n5xxa8kv-libgpg-error-1.12/lib -L/nix/store/c3crv7mdmbc5sib7vz= nf0183n5xxa8kv-libgpg-error-1.12/lib /nix/store/c3crv7mdmbc5sib7vznf0183n5x= xa8kv-libgpg-error-1.12/lib/libgpg-error.so -O2 -Wl,--version-script=3D./l= ibgcrypt.vers -Wl,-soname -Wl,libgcrypt.so.11 -o .libs/libgcrypt.so.11.8.2 /nix/store/c3crv7mdmbc5sib7vznf0183n5xxa8kv-libgpg-error-1.12/lib/libgpg-er= ror.so: could not read symbols: File in wrong format collect2: error: ld returned 1 exit status Makefile:493: recipe for target 'libgcrypt.la' failed make[2]: *** [libgcrypt.la] Error 1 J' --=20 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. --ibTvN161/egqYuK8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlKtZzoACgkQimdxnC3oJ7MUFQCgiXee5FMAKPyo5J4YYW/UsEU8 +/cAn05I73MXdgkouzNE9XwVMjKqItRX =RNi3 -----END PGP SIGNATURE----- --ibTvN161/egqYuK8--