[Clfs-support] [Native Compiler] Problem Cross-compiling GMP MPFR and MPC
Michele Bucca
michele.bucca at gmail.com
Fri Apr 14 01:15:36 PDT 2017
Hello Everyone,
I'm trying to cross-compile a native host-x-host compiler with the
musl-libc library
To do that I have to
1) compile a cross-compiler. (Done)
2) Install GMP, MPFR and MPC on the cross-compiler
3) make a host-x-host cross-compile to make a native compiler
Now I'm stuck compiling the GMP, MPFR and MPC...
I had problems with MPFR because when I tried to compile them with the
following configure switches
../mpfr-3.1.4/configure --host=i486-linux-musl
--prefix=/home/michele/tmp/musl-native-toolchain/native/i486-linux-musl/
it produced me x86_64 libraries! (My host is x86_64-linux-gnu)
So I changed the configure switch like that:
../mpfr-3.1.4/configure --host=i486-linux-musl
--build=x86_64-linux-gnu
--prefix=/home/michele/tmp/musl-native-toolchain/native/i486-linux-musl/
and it compiled well..
Now I'm having problems building MPC for the same reason: the
configure is like this:
../mpc-1.0.3/configure --host=i486-linux-musl
--build=x86_64-linux-gnu
--prefix=/home/michele/tmp/musl-native-toolchain/native/i486-linux-musl/
what am I doing wrong?
More information about the Clfs-support
mailing list