[En-Nut-Discussion] enswm28e.pdf: Installing ARM-ELF GCC on Linux/Strange character
Harald Kipp
harald.kipp at egnite.de
Tue Apr 26 19:49:52 CEST 2011
Hi Uwe,
On 4/26/2011 6:14 PM, Uwe Bonnes wrote:
> the explanations for building binutils on linux on page 13 tells to run
> ../configure --target=$TARGET --prefix=$PREFIX --enable-interwork \
> --enable-multilib --disable-nls --disable-shared ,Ab���disable-threads \
> --with-gcc --with-gnu-as --with-gnu-ld
Thanks.
Today someone in our company tried to build a toolchain on Ubuntu, which failed as long as multilib was enabled. He succeeded with the following sequence:
tar xfvj binutils-2.21.tar.bz2
mkdir build-binutils
cd build-binutils
../binutils-2.21/configure --target=arm-elf --prefix=/opt/gnuarm --enable-interwork --enable-multilib \
--disable-nls --disable-shared --disable-threads --with-gcc --with-gnu-as --with-gnu-ld
make all
sudo make install
cd ..
export PATH=$PATH:/opt/gnuarm/bin
tar xfvj gcc-4.5.2.tar.bz2
mkdir build-gcc
cd build-gcc
../gcc-4.5.2/configure --target=arm-elf --prefix=/opt/gnuarm --disable-nls --disable-shared \
--disable-threads --with-gcc --with-gnu-ld --with-gnu-as --with-dwarf2 --enable-languages=c,c++ \
--enable-interwork --disable-multilib --with-newlib \
--with-headers=../newlib-1.19.0/newlib/libc/include --disable-libssp --disable-libstdcxx-pch \
--disable-libmudflap --disable-libgomp -v
make all-gcc
sudo make install-gcc
cd ..
tar xfvz newlib-1.19.0.tar.gz
mkdir build-newlib
cd build-newlib
../newlib-1.19.0/configure --target=arm-elf --prefix=/opt/gnuarm --enable-interwork \
--disable-multilib --disable-newlib-supplied-syscalls
make all
sudo make install
cd ..
cd build-gcc
make all
sudo make install
I didn't check this in detail, but at least it was possible to create a running Nut/OS binary for an ARM7 board.
Regards,
Harald
More information about the En-Nut-Discussion
mailing list