On 25.03.2016 13:35, Dan Johansson wrote: > I have setup one of my VM's to do cross-compiling for my Raspberry PI 2. > Now some packages (e.g. app-editors/vim and its dependencies) emerges > fine while other (e.g. net-misc/wget or rather one of its dependencies > dev-libs/libpcre-8.38:3) does not. > > What I have done is this: > # emerge sys-devel/crossdev > (installed sys-devel/crossdev-20150716) > > # crossdev -S -P -v -t armv7a-hardfloat-linux-gnueabi > (which "installed" fine without any errors) > > # armv7a-hardfloat-linux-gnueabi-emerge --verbose --oneshot > =net-misc/wget-1.16.3-r1 > > Which pulls in dev-libs/libpcre-8.38:3::gentoo which then fails with this: > > ln -sf pcre_compile2.3 > /usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-libs/libpcre-8.38/image//usr/share/man/man3/pcre16_compile2.3 > /usr/libexec/gcc/armv7a-hardfloat-linux-gnueabi/ld: skipping > incompatible /usr/lib/libpthread.so when searching for -lpthread > /usr/libexec/gcc/armv7a-hardfloat-linux-gnueabi/ld: skipping > incompatible /usr/lib/libc.so when searching for -lc > /usr/lib/libc.a: error adding symbols: File format not recognized > collect2: error: ld returned 1 exit status >
Another one that is also failing (and is a dependency of many packages) is sys-libs/ncurses-6.0-r1. ncurses fails with another error than libpcre. cd c++ && make DESTDIR="" RPATH_LIST="/usr/lib" all make[1]: Entering directory '/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-libs/ncurses-6.0-r1/work/ncurses-6.0-.arm/ncurses/c++' cd ../obj_s; -DHAVE_CONFIG_H -I. -I/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-libs/ncurses-6.0-r1/work/ncurses-6.0/c++ -I../include -I/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-libs/ncurses-6.0-r1/work/ncurses-6.0/c++/../include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DXTSTRINGDEFINES -DNDEBUG -O2 -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -fPIC -c /usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-libs/ncurses-6.0-r1/work/ncurses-6.0/c++/cursesf.cc cd ../obj_s; -DHAVE_CONFIG_H -I. -I/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-libs/ncurses-6.0-r1/work/ncurses-6.0/c++ -I../include -I/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-libs/ncurses-6.0-r1/work/ncurses-6.0/c++/../include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DXTSTRINGDEFINES -DNDEBUG -O2 -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -fPIC -c /usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-libs/ncurses-6.0-r1/work/ncurses-6.0/c++/cursesm.cc /bin/bash: -DHAVE_CONFIG_H: command not found Makefile:366: recipe for target '../obj_s/cursesf.o' failed make[1]: *** [../obj_s/cursesf.o] Error 127 make[1]: *** Waiting for unfinished jobs.... /bin/bash: -DHAVE_CONFIG_H: command not found Makefile:372: recipe for target '../obj_s/cursesm.o' failed make[1]: *** [../obj_s/cursesm.o] Error 127 make[1]: Leaving directory '/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-libs/ncurses-6.0-r1/work/ncurses-6.0-.arm/ncurses/c++' Makefile:113: recipe for target 'all' failed make: *** [all] Error 2 -- Dan Johansson, <http://www.dmj.nu> *************************************************** This message is printed on 100% recycled electrons! ***************************************************
smime.p7s
Description: S/MIME Cryptographic Signature