Re: How can I build gcc for arm on a x86_64 machine?

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

 



YueGuang wrote:
> hi,everyone:
>    I'm trying to build a cross compiler for arm. The problem appeared
> when I built the gcc with c,c++ languages.
> 
> I use debian testing(lenny),x86_64
>    Here are my steps:
> 1.I build the binutils-2.18
> 2.I build the gcc-4.3.2 with only C
> 3.I build the glibc-2.7 with:
> ../glibc-2.7/configure --build=x86_64-linux --host=x86_64-linux
> --target=arm-linux --prefix=/home/yg/arm/usr/ --enable-add-ons
> 4.finally I will build gcc-4.3.2 with everything.
> ../gcc-4.3.2/configure --target=arm-linux --prefix=/home/yg/arm/usr
> --enable-languages=c,c++ --with-headers=/home/yg/arm/usr/include/

Hmm, you're not building with an ARM sysroot.  It's not just the headers
you need but the entire tree of the installed target OS.  I use this:

/home/aph/gcc/trunk/configure --prefix=/home/aph/x-arm/install --target=arm-linux \
--with-sysroot=/home/aph/x-arm/chroot-arm/ \
--with-headers=/home/aph/x-arm/chroot-arm/usr/include/ \
--prefix=/home/aph/x-arm/install2 --disable-libssp --disable-libgomp \
--disable-libmudflap --enable-libgcj --disable-multilib --disable-static \
--disable-sjlj-exceptions target_alias=arm-linux --enable-languages=c,c++,java

Andrew.

[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