[Clfs-support] CLFS 2.1: ISL-0.12.1 configure failed for x86
Alexey Orishko
alexey.orishko at gmail.com
Wed Feb 5 15:17:13 PST 2014
Hi guys,
I'm building clfs 2.1 on 64-bit host (Ubuntu) for 32-bit Atom target.
While building gmp in ch.5.9 I have to add ABI=32 as stated in the book:
configure: summary of build options:
Version: GNU MP 5.1.3
Host type: core2-unknown-linux-gnu
ABI: 32
Install prefix: /cross-tools
Compiler: gcc -std=gnu99
Static libraries: no
Shared libraries: yes
Later on in ch.5.12 configure failed for ISL-0.12.1.
In the log I see:
...
configure:17164: checking for main in -lgmp
configure:17183: gcc -o conftest -O3 -fomit-frame-pointer
-malign-double -fstrict-aliasing -ffast-math -I/cross-tools/include
-L/cross-tools/lib -Wl,-rpath,/cross-tools/lib conftest.c -lgmp -lgmp
>&5
/usr/bin/ld: skipping incompatible /cross-tools/lib/libgmp.so when
searching for -lgmp
/usr/bin/ld: cannot find -lgmp
/usr/bin/ld: skipping incompatible /cross-tools/lib/libgmp.so when
searching for -lgmp
/usr/bin/ld: cannot find -lgmp
collect2: ld returned 1 exit status
...
configure:17192: result: no
configure:17202: error: gmp library not found
After googling found:
> I suspect that the problem may be that the libraries are for 32-bit
> when you are attempting to build a 64-bit compiler, or vice versa.
> I was able to build GCC 4.5.1 on MacOS X 10.6.4 recently, but I
> built and installed the GMP, MPFR and MPC libraries myself -
> in /usr/gnu64 (a non-standard location that I use for stuff that I install
> for my own benefit). I also used the configuration option:
> CC='gcc -m64'
Since there was a recommendation to set ABI=32 for configuring gmp,
is something needed for ISL as well in order to succeed?
Regards,
Alexey
More information about the Clfs-support
mailing list