guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/5] gnu: gnupg: Fixed cross-compile issues.


From: Ludovic Courtès
Subject: Re: [PATCH 2/5] gnu: gnupg: Fixed cross-compile issues.
Date: Sun, 15 Dec 2013 22:14:24 +0100
User-agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux)

John Darrington <address@hidden> skribis:

>      However, is --with-gpg-error-prefix really needed?  By default the cross
>      gcc will find the target libgpg-error in its search path, and not the
>      native one, so I would guess this is OK.
>      
>
> Without --with-gpg-error-prefix I get the following error when cross 
> compiling:
>
> libtool: link: mips64el-linux-gnu-gcc -shared  -fPIC -DPIC  
> .libs/libgcrypt_la-visibility.o .libs/libgcrypt_la-misc.o 
> .libs/libgcrypt_la-global.o .libs/libgcrypt_la-sexp.o 
> .libs/libgcrypt_la-hwfeatures.o .libs/libgcrypt_la-stdmem.o 
> .libs/libgcrypt_la-secmem.o .libs/libgcrypt_la-missing-string.o 
> .libs/libgcrypt_la-module.o .libs/libgcrypt_la-fips.o 
> .libs/libgcrypt_la-hmac256.o .libs/libgcrypt_la-ath.o  -Wl,--whole-archive 
> ../cipher/.libs/libcipher.a ../random/.libs/librandom.a ../mpi/.libs/libmpi.a 
> ../compat/.libs/libcompat.a -Wl,--no-whole-archive  -Wl,-rpath 
> -Wl,/nix/store/c3crv7mdmbc5sib7vznf0183n5xxa8kv-libgpg-error-1.12/lib 
> -Wl,-rpath 
> -Wl,/nix/store/c3crv7mdmbc5sib7vznf0183n5xxa8kv-libgpg-error-1.12/lib 
> -L/nix/store/c3crv7mdmbc5sib7vznf0183n5xxa8kv-libgpg-error-1.12/lib 
> /nix/store/c3crv7mdmbc5sib7vznf0183n5xxa8kv-libgpg-error-1.12/lib/libgpg-error.so
>   -O2 -Wl,--version-script=./libgcrypt.vers   -Wl,-soname -Wl,libgcrypt.so.11 
> -o .libs/libgcrypt.so.11.8.2
> /nix/store/c3crv7mdmbc5sib7vznf0183n5xxa8kv-libgpg-error-1.12/lib/libgpg-error.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

Actually libgcrypt’s ‘configure’ reports this above:

--8<---------------cut here---------------start------------->8---
configure: WARNING:
***
*** The config script 
/nix/store/j47ldsz3p5mc3k5yp00lx1jwkan88k53-libgpg-error-1.12/bin/gpg-error-config
 was
*** built for x86_64-unknown-linux-gnu and thus may not match the
*** used host mips64el-unknown-linux-gnu.
*** You may want to use the configure option --with-gpg-error-prefix
*** to specify a matching config script.
***
--8<---------------cut here---------------end--------------->8---

So CROSS_LIBRARY_PATH and LIBRARY_PATH are correct (no confusion between
target and native libraries).  However ‘configure’ uses the
‘gpg-error-config’ tool to determine the library’s location, and it gets
the run that of the native libgpg-error (because the target libgpg-error
isn’t in $PATH), which returns the location of the native libgpg-error.

So indeed, --with-gpg-error-prefix is needed.

Could you send the patch with just a comment above explaining that?

Thanks, and sorry for taking so long!

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]