This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: "#error Unable to determine architecture." while compiling gcc-4.4.x for arm-none-linux-gnueabi
- From: Phil Couling <couling at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 10 Jun 2010 23:22:03 +0100
- Subject: Re: "#error Unable to determine architecture." while compiling gcc-4.4.x for arm-none-linux-gnueabi
- References: <AANLkTim9ZOGFZtsvJAugcajUuB6e4N7ENynwnXhNj2WZ@mail.gmail.com>
Please ignore this. Just spotted the missing
--target=arm-none-linux-gnueabi in the confiure.
While it didn't compile it has got it further through the build.
On 10 June 2010 22:44, Phil Couling <couling@gmail.com> wrote:
> Hi All
>
> I'm having trouble getting gcc to compile for my ARM box
> (arm-none-linux-gnueabi) and at a bit of a loss to know how to
> continue.
>
> I've tried all of the 4.4.x versions, but for each one I get the
> following error:
> ../../../../gcc-4.4.1/libgcc/../gcc/config/arm/lib1funcs.asm:103:2:
> error: #error Unable to determine architecture.
>
> I can't find anything useful on google with regards to this error.
>
> I'm building using the following to configure:
> ../gcc-$GCC_VERSION/configure --host=arm-none-linux-gnueabi
> --prefix=$HOME/built --with-gmp=$HOME/tools --with-mpfr=$HOME/tools
>
> Other package versions are:
> BINUTILS_VERSION=2.19
> GMP_VERSION=5.0.1
> MPFR_VERSION=2.4.2
>
>
> Any suggestions?
>
> Thanks
>