This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Error Compiling crossGCC For Arm


Hi,

I am compiling the crossGCC for ARM processor, and I have
the following problem. The error message is shown below.

The environment that I am using is:
- Windows NT 4.0
- Cygwin 1.1.7
- binutils-2.10.1 successfully compiled and installed for arm-elf
- gcc 2.95.2 successfully configured for arm-elf (with eCos patch)

make fails with the following message:

In file included from /src/gcc/gcc-2.95.2/gcc/config/arm/aout.h:301,
                 from /src/gcc/gcc-2.95.2/gcc/config/arm/elf.h:354,
                 from /src/gcc/gcc-2.95.2/gcc/config/arm/unknown-elf.h:171,
                 from tm.h:6,
                 from /src/gcc/gcc-2.95.2/gcc/config/arm/xm-arm.h:55,
                 from tconfig.h:5,
                 from /src/gcc/gcc-2.95.2/gcc/libgcc2.c:33:
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:226: parse error before `{'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:417: parse error before `{'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:590: parse error before `if'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:597: `SImode' undeclared here (not
in a function)
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:597: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:598: parse error before `}'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:675: parse error before `=='
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:804: `PIC_OFFSET_TABLE_REGNUM'
undeclared here (not in a function)
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:804: variable `call_used_regs' has
initializer but incomplete type
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:804: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:805: parse error before `}'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:809: conflicting types for
`call_used_regs'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:804: previous declaration of
`call_used_regs'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:809: invalid initializer

...


In file included from /src/gcc/gcc-2.95.2/gcc/libgcc2.c:45:
/src/gcc/gcc-2.95.2/gcc/machmode.h:47: stray '\' in program
/src/gcc/gcc-2.95.2/gcc/machmode.h:138: warning: parameter has incomplete
type
/src/gcc/gcc-2.95.2/gcc/machmode.h:142: warning: parameter has incomplete
type
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1462: storage size of `code' isn't
known
make[3]: *** [libgcc2.a] Error 1
make[3]: Leaving directory `/tmp/build/gcc/gcc'
make[2]: *** [stmp-multilib-sub] Error 2
make[2]: Leaving directory `/tmp/build/gcc/gcc'
make[1]: *** [stmp-multilib] Error 1
make[1]: Leaving directory `/tmp/build/gcc/gcc'
make: *** [all-gcc] Error 2
make: Leaving directory `/tmp/build/gcc'

Can anybody help me?


Best regards,

Karsten




------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]