This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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]

RE: error when I building binutils under cygwin on win98 - take2


Hi,
 
Looks like you have some format problem of your files - try dos2unix on your
include files - especially arm.h
 
/Daniel

-----Original Message-----
From: Stephane Aubert [mailto:stephane.aubert@coronis-systems.com]
Sent: den 22 november 2001 14:02
To: binutils@sources.redhat.com; crossgcc@sources.redhat.com;
gcc@gcc.gnu.org
Subject: error when I building binutils under cygwin on win98 - take2


Hi,
Thanks for your mail, but I still working with Windows 98 (I don't have the
choise...)
I finished to configure , buid and install my GNU Binary Utilities, but now
I have a little problem with the install of my GCC (in the file arm.h).

I appriciate your cooperation.

 Im working on W98 and Im trying to install the ARM development tools for
Ecos (with Cygwin).
 Im following the instruction on the internet page "Building the ARM
development tools for Wondows"
(sources.redhat.com/ecos/tools/win-arm-elf.html).
 So, I configure the GNU Binary Utilities (binutils-2.10.1.tar.bz2) with the
following cmds:

    mkdir -p /tmp/build/binutils
    cd /tmp/build/binutils
    /src/binutils/binutils-2.10.1/configure --target=arm-elf \
      --prefix=/tools \
      --exec-prefix=/tools/H-i686-pc-cygwin \
      -v 2>&1 | tee configure.out


 -> OK

And I Build and install the GNU Binary Utilities:

make -w all install 2>&1 | tee make.out

-> OK


Then I configure GCC (gcc-core-2.95.2.tar.bz2 & gcc-g++-2.95.2.tar.bz2):

  PATH=/tools/H-i686-pc-cygwin/bin:$PATH ; export PATH
    mkdir -p /tmp/build/gcc
    cd /tmp/build/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

-> OK

And I Build and install GCC:

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

-> NOK !!!

but I have this error:

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'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1473: stray '\' in program
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1479: `INDEX' undeclared here (not
in a function)
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1479: initializer element is not
constant
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1479: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1480: parse error before `if'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1480: stray '\' in program
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1483: stray '\' in program
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1493: stray '\' in program
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1499: `HImode' undeclared here (not
in a function)
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1499: `QImode' undeclared here (not
in a function)
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1500: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1501: parse error before `if'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1515: stray '\' in program
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1519: stray '\' in program
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1532: stray '\' in program
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1543: initializer element is not
constant
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1543: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1545: parse error before `if'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1545: stray '\' in program
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1546: stray '\' in program
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1547: stray '\' in program
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1548: stray '\' in program
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1568: stray '\' in program
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1590: parse error before `{'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1594: redefinition of `xop1'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1543: `xop1' previously defined
here
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1594: initializer element is not
constant
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1594: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1596: parse error before `if'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1600: stray '\' in program
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1603: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1604: initializer element is not
constant
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1604: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1606: parse error before `if'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1622: `SImode' undeclared here (not
in a function)
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1622: initializer element is not
constant
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1622: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1623: `SImode' undeclared here (not
in a function)
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1623: `xop0' undeclared here (not
in a function)
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1624: initializer element is not
constant
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1624: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1625: warning: parameter names
(without types) in function declaration
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1625: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1626: redefinition of `X'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1054: `X' previously defined here
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1626: `low_n' undeclared here (not
in a function)
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1627: `SImode' undeclared here (not
in a function)
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1627: `low_n' undeclared here (not
in a function)
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1627: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1628: parse error before `}'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1635: redefinition of `xop1'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1594: `xop1' previously defined
here
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1635: initializer element is not
constant
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1635: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1637: parse error before `if'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1697: parse error before `||'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1764: parse error before `=='
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1844: parse error before string
constant
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1859: `const_op' undeclared here
(not in a function)
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1859: initializer element is not
constant
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1859: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1860: `const_op' undeclared here
(not in a function)
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1860: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1861: parse error before `}'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1981: initializer element is not
constant
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1981: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1983: parse error before `offset'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1983: redefinition of `offset'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1333: `offset' previously defined
here
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1983: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1984: parse error before `if'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1988: initializer element is not
constant
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1988: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1989: redefinition of `index'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1981: `index' previously defined
here
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1989: `temp' undeclared here (not
in a function)
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1989: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1990: parse error before `}'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1991: conflicting types for
`base_reg_name'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1982: previous declaration of
`base_reg_name'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1991: `reg_names' undeclared here
(not in a function)
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1991: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1992: parse error before `switch'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1998: parse error before string
constant
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:1999: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:2017: parse error before character
constant
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:2017: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:2018: parse error before string
constant
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:2018: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:2054: parse error before string
constant
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:2054: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:2055: parse error before `('
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:2056: parse error before string
constant
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:2056: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:2079: `mi_delta' undeclared here
(not in a function)
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:2081: `FUNCTION' undeclared here
(not in a function)
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:2082: initializer element is not
constant
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:2083: parse error before `if'
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:2098: parse error before string
constant
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:2098: warning: data definition has
no type or storage class
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:2099: parse error before `('
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:2102: parse error before character
constant
/src/gcc/gcc-2.95.2/gcc/config/arm/arm.h:2102: warning: data definition has
no type or storage class
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'


make.out, configure.out and arm.h should tell you more about why it failed.

Stéphane.



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