/bin/sh ../libtool --tag=CC --mode=link armv4tl-softfloat-linux-gnueabi-gcc -march=armv4t -mtune=arm920t -Os -pipe -Wall -version-info 8:13:8 -L/usr/lib64 -lgcrypt -lgpg-error -Wl,-O1 -o libexslt.la -rpath /usr/lib exslt.lo common.lo crypto.lo math.lo sets.lo functions.lo strings.lo date.lo saxon.lo dynamic.lo ../libxslt/libxslt.la -lxml2 -lz -lm -lm libtool: link: armv4tl-softfloat-linux-gnueabi-gcc -shared .libs/exslt.o .libs/common.o .libs/crypto.o .libs/math.o .libs/sets.o .libs/functions.o .libs/strings.o .libs/date.o .libs/saxon.o .libs/dynamic.o -Wl,-rpath -Wl,/var/tmp/portage/dev-libs/libxslt-1.1.24-r1/work/libxslt-1.1.24/libxslt/.libs -Wl,-rpath -Wl,/usr/armv4tl-softfloat-linux-gnueabi/usr/lib -Wl,-rpath -Wl,/usr/armv4tl-softfloat-linux-gnueabi/usr/lib -L/usr/lib64 /usr/lib64/libgcrypt.so /usr/lib64/libgpg-error.so ../libxslt/.libs/libxslt.so -L/usr/armv4tl-softfloat-linux-gnueabi/usr/lib /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/libxml2.so /usr/lib64/libxml2.so -ldl -lz -lm -march=armv4t -mtune=arm920t -Wl,-O1 -Wl,-soname -Wl,libexslt.so.0 -o .libs/libexslt.so.0.8.13 /usr/lib64/libgcrypt.so: file not recognized: File format not recognized collect2: ld returned 1 exit status make[2]: *** [libexslt.la] Error 1 make[2]: Leaving directory `/var/tmp/portage/dev-libs/libxslt-1.1.24-r1/work/libxslt-1.1.24/libexslt' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-libs/libxslt-1.1.24-r1/work/libxslt-1.1.24' make: *** [all] Error 2 * * ERROR: dev-libs/libxslt-1.1.24-r1 failed. Reproducible: Always Steps to Reproduce:
Created attachment 189467 [details, diff] Tell configure to use the right libgcrypt-config script
It would be simpler if libgcrypt provided a pkgconfig files.
SYSROOT seems to be specific to cross-compile environment, it'd be nicer to use something that makes sense even in non-cross-compile env.
In non-cross-compile environments ${SYSROOT} will be replaced by empty-string so the path resulting will be "/usr/bin/libgcrypt-config" which makes sense for native builds.
since I don't have this test environment, you should retry with 1.1.26 and report back if this 'hack' is still required.
if it is, please make it a patch that can be applied upstream.
It's still reproducible with libxslt-1.1.26. And I don't see what upstream could do about this unless libgcrypt switches to using pkgconfig like Gilles Dartiguelongue suggested in comment #2.
+ 08 Oct 2009; Samuli Suominen <ssuominen@gentoo.org> libxslt-1.1.26.ebuild: + Because libgcrypt is missing pkg-config file, fixing cross-compile here + wrt #267503, thanks to Andrei Slavoiu. + # libgcrypt is missing pkg-config file, so fixing cross-compile + # here. see bug 267503. + if tc-is-cross-compiler; then + export LIBGCRYPT_CONFIG="${SYSROOT}/usr/bin/libgcrypt-config" + fi