I am trying to compile a new System for an ARM board from my x64 computer. When updating the system, it fails at gmp because it tries to include libraries from main system (/usr/lib) instead of the ones from the defined ROOT (which is linked to /usr/armv7a-hardfloat-linux-gnueabi). An extract of the end of the log, containing the last executed command is : libtool: relink: armv7a-hardfloat-linux-gnueabi-g++ -fPIC -DPIC -shared -nostdlib /usr/armv7a-hardfloat-linux-gnueabi/usr/lib/crti.o /usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.9.3/crtbeginS.o .libs/dummy.o cxx/.libs/isfuns.o cxx/.libs/ismpf.o cxx/.libs/ismpq.o cxx/.libs/ismpz.o cxx/.libs/ismpznw.o cxx/.libs/limits.o cxx/.libs/osdoprnti.o cxx/.libs/osfuns.o cxx/.libs/osmpf.o cxx/.libs/osmpq.o cxx/.libs/osmpz.o -Wl,--as-needed -L/var/tmp/portage/dev-libs/gmp-6.1.0/image//usr/lib -L/usr/lib -lgmp -L/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.9.3 -L/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.9.3/../../../../armv7a-hardfloat-linux-gnueabi/lib -L/usr/armv7a-hardfloat-linux-gnueabi/lib -L/usr/armv7a-hardfloat-linux-gnueabi/usr/lib -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.9.3/crtendS.o /usr/armv7a-hardfloat-linux-gnueabi/usr/lib/crtn.o -O2 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -Wl,-O1 -Wl,-soname -Wl,libgmpxx.so.4 -o .libs/libgmpxx.so.4.5.0 /usr/libexec/gcc/armv7a-hardfloat-linux-gnueabi/ld: skipping incompatible /usr/lib/libm.so when searching for -lm /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
are you using crossdev?
Yes, I installed crossdev. I changed the ROOT and PORTAGE_CONFIGROOT variables to the root I want to install. I set a link of this ROOT to /usr/armv7a-hardfloat-linux-gnueabi and then called : emerge --update --newuse --deep @world