Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 591338 - dev-libs/gmp-6.1.0 cross-compiling is failing
Summary: dev-libs/gmp-6.1.0 cross-compiling is failing
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-15 18:09 UTC by Stéphane Veyret
Modified: 2016-08-16 04:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stéphane Veyret 2016-08-15 18:09:50 UTC
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
Comment 1 Alex Xu (Hello71) 2016-08-15 20:41:33 UTC
are you using crossdev?
Comment 2 Stéphane Veyret 2016-08-16 04:58:24 UTC
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