This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

problem while building the arm-elf-gcc tool. very urgent. Thanks a lot!


Hi all:
   After I reinstall my system I want to rebuil the development tool for
ecos. But problem occured when I try to build the arm-elf-gcc tool. The step
I took:

http://sources.redhat.com/ecos/install-windows.html

1. install cygwin DLL 1.3.10 release

2.
bash-2.03$ mount -f c:/ /c
bash-2.03$ mount -f d:/ /d
bash-2.03$ mount -f e:/ /e

3.
get
"GCC 2.95.2 core compiler distribution",
"GCC 2.95.2 C++ distribution"
"Insight 5.2"
"binary utilities 2.12.1"

4. follow the steps exactly the same as in
http://sources.redhat.com/ecos/tools/win-arm-elf.html

I can build the binary utilities and insight 5.2 for ARM, I can also
configure for GCC

/src/gcc/gcc-2.95.2/configure --target=arm-elf \
      --prefix=/tools \
      --exec-prefix=/tools/H-i686-pc-cygwin \
      --with-gnu-as --with-gnu-ld --with-newlib \
      -v 2>&1 | tee configure.out

but while I tried to build the arm-elf-gcc  as:

make -w all-gcc install-gcc \
LANGUAGES="c c++" 2>&1 | tee make.out

I got error message as following and exit.

Error 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
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:809: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:810: parse error before `}'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:822: parse error before `>='
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:915: parse error before `{'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:938: parse error before `<'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1028: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1030: parse error before `if'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1047: `val' undeclared here (not in
a function)
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1047: initializer element is not
constant
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1047: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1049: parse error before `if'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1057: initializer element is not
constant
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1057: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1058: parse error before `('
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1058: parse error before `&'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1226: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1227: parse error before `if'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1233: parse error before `('
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1233: parse error before `)'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1261: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1263: parse error before `('
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1266: parse error before `('
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1267: parse error before character
constant
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1268: parse error before string
constant
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1269: `SYMBOL_REF' undeclared here
(not in a function)
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1269: `Pmode' undeclared here (not
in a function)
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1269: `temp' undeclared here (not
in a function)
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1269: initializer element is not
constant
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1269: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1270: parse error before `{'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1270: parse error before `('
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1270: parse error before `)'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1270: parse error before character
constant
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1284: parse error before `('
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1284: parse error before `)'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1317: parse error before `=='
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1336: parse error before `if'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1358: initializer element is not
constant
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1358: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1359: parse error before `}'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1378: parse error before `('
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1381: parse error before `('
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1381: parse error before `)'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1381: parse error before character
constant
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1382: parse error before `('
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1382: parse error before `)'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1382: parse error before character
constant
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1398: parse error before `('
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1420: parse error before `<'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1426: stray '\' in program
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1474: parse error before `('
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1490: parse error before `<'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1496: stray '\' in program
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1450: stray '\' in program
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1453: stray '\' in program
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1462: variable `code' has
initializer but incomplete type
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1462: `INDEX' undeclared here (not
in a function)
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1464: parse error before `if'
.....


And I also tried the gcc-2.95.3 but still no luck. Could you please give me
some help!


( I have the tool chain working properly before I reinstall my system and
also ecos worked fine at that time. I can't remember which cygwin and GNU
tool I was using to build the tool chain at that time.)

Thanks a lot!

james



-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


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