This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Cannot build GCC for Cortex-M0
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Andriy Sukhynyuk <asukhynyuk at yahoo dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 01 Sep 2010 16:58:02 +0100
- Subject: Re: Cannot build GCC for Cortex-M0
- References: <114299.99629.qm@web114402.mail.gq1.yahoo.com>
On Tue, 2010-08-31 at 03:16 -0700, Andriy Sukhynyuk wrote:
> Hi guys,
>
> I have been trying to build cross toolchain for Cortex-M0 (using MinGW/msys)
> for quite a while with no success.
> I tried to run configure with many different arguments.
> Particularly I am interested to know why the following line is successful for
> strongarm1110 build but if I change --with-cpu to --with-cpu=cortex-m0 the
> build would fail with complaint"cannot compute suffix of object files".
>
> ../gcc-4.5.0/configure --target=arm-none-eabi --with-cpu=strongarm1110
> --build=i686-pc-mingw32 --host=i686-pc-mingw32 --prefix=/f/cross-gcc/4.5.0
> --disable-nls --disable-shared --disable-threads --with-gnu-gcc --with-gnu-ld
> --with-gnu-as --with-dwarf2 --enable-languages=c,c++ --disable-interwork
> --disable-multilib --with-gmp=/f/cross-gcc/4.5.0 --with-mpfr=/f/cross-gcc/4.5.0
>
> --with-mpc=/f/cross-gcc/4.5.0 --with-newlib
> --with-headers=../../newlib-1.18.0/newlib-1.18.0/newlib/libc/include
> --disable-libssp --disable-libstdcxx-pch --disable-libmudflap --disable-libgomp
>
Cortex-m0 is a thumb-only core. You may also need to add
--with-mode=thumb as well.