Re: Problem cross compiling gcc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Marian Buschsieweke schrieb:
Hi, everybody!

I've problems to cross compile gcc. I use gcc 4.6.3 as cross compiler
on an x86_64 machine (with glibc) and try to cross compile gcc 4.6.3 to
a armv6l (with uclibc). The cross compiler seems to work, as I already
compiled everything except gcc (and the compiled programs seem to work
on the target).

This was the configure line:

LDFLAGS="-Wl,-rpath,/home/clfs/usr/lib" ../gcc-4.6.3/configure
--prefix=/home/clfs/usr --build=x86_64-cross-linux-gnu
--host=armv6l-unknown-linux-uclibceabi --with-sysroot=/home/clfs
--disable-nls --enable-shared --enable-languages=c --enable-c99
--enable-long-long --with-mpfr=/home/clfs/usr --with-gmp=/home/clfs/usr
--with-mpc=/home/clfs/usr --disable-multilib --with-abi=aapcs-linux
--with-arch=armv6zk --with-mode=arm --with-float=hard --with-fpu=vfp

Doesn't this produce a crossback, i.e. you build a compiler on x86_64-cross-linux-gnu that is supposed to run on armv6l-unknown-linux-uclibceabi and is supposed to compile code that runs on x86_64-cross-linux-gnu?

Better set --target explicitly.

Johann


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux