Actions

icon Post
text/html Subscribe
text/html Unsubscribe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem compiling gcc for the ARM tool chain with Cygwin


  • To: <arm-gnu@xxxxxxxxxxxxxxxx>
  • Subject: Problem compiling gcc for the ARM tool chain with Cygwin
  • From: "Ulpiano-XID, Jean" <jp-ulpiano@xxxxxx>
  • Date: Mon, 11 Oct 2004 18:42:59 +0200

Hi all,

 

I have been trying to compile the GNU Tools chain for the ARM target
with the following environment:

Cygwin full installation: (CYGWIN_NT-5.1 xxxxxxxx 1.5.11(0.116/4/2)
2004-09-04 23:17 i686 unknown unknown Cygwin)

 

binutils-2.11.2 which compiled fine.

 

Then I wanted to compile a gcc bootstrap

I untarred gcc-2.95.3 then I:

 

TARGET=arm-elf

PREFIX=/cygdrive/u/CygwinCompile/build-gcc/install

cd /cygdrive/u/CygwinCompile/build-gcc

../gcc-2.95.3/configure -target=$TARGET -prefix=$PREFIX -with-newlib
-without-headers -with-gnu-as -with-gnu-ld -disable-shared
-enable-language=c

make all-gcc install-gcc

 

Which led to the following error:

 

rm -f tmplibgcc1.a libgcc1.S

cp ../../gcc-2.95.3/gcc/config/arm/lib1funcs.asm libgcc1.S

for name in _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_tls; \

do \

  echo ${name}; \

  /cygdrive/u/CygwinCompile/build-gcc/gcc/xgcc
-B/cygdrive/u/CygwinCompile/build-gcc/gcc/
-B/cygdrive/u/CygwinCompile/build-gcc/install/arm-elf/bin/
-I/cygdrive/u/CygwinCompile/build-gcc/install/arm-elf/include -O2
-DCROSS_COMPILE -DIN_GCC     -g -O2 -I./include  -Dinhibit_libc -g1
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc  -I.
-I../../gcc-2.95.3/gcc -I../../gcc-2.95.3/gcc/config
-I../../gcc-2.95.3/gcc/../include -c -DL${name} libgcc1.S; \

  if [ $? -eq 0 ] ; then true; else exit 1; fi; \

  mv libgcc1.o ${name}.o; \

  arm-elf-ar rc tmplibgcc1.a ${name}.o; \

  rm -f ${name}.o; \

done

_udivsi3

libgcc1.S: Assembler messages:

libgcc1.S:1: Error: invalid character '@' in mnemonic

libgcc1.S:2: Error: invalid character '@' in mnemonic

libgcc1.S:71: Error: no such instruction: `dividend .req r0'

libgcc1.S:72: Error: no such instruction: `divisor .req r1'

libgcc1.S:73: Error: no such instruction: `result .req r2'

libgcc1.S:74: Error: no such instruction: `curbit .req r3'

libgcc1.S:75: Error: no such instruction: `ip .req r12'

libgcc1.S:76: Error: no such instruction: `sp .req r13'

libgcc1.S:77: Error: no such instruction: `lr .req r14'

libgcc1.S:78: Error: no such instruction: `pc .req r15'

libgcc1.S:82: Warning: .type pseudo-op used outside of .def/.endef
ignored.

libgcc1.S:82: Error: junk at end of line, first unrecognized character
is `_'

libgcc1.S:86: Error: expecting operand after ','; got nothing

libgcc1.S:87: Error: no such instruction: `beq Ldiv0'

libgcc1.S:88: Error: expecting operand after ','; got nothing

libgcc1.S:89: Error: expecting operand after ','; got nothing

libgcc1.S:90: Error: too many memory references for `cmp'

libgcc1.S:91: Error: no such instruction: `bcc Lgot_result'

libgcc1.S:93: Error: invalid character '@' in mnemonic

libgcc1.S:94: Error: invalid character '@' in mnemonic

...

 

FYI, I also downloaded:

newlib-1.9.0

gdb-6.1.1

 

Furthermore, default Cygwin gcc installation is:

 

Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/specs

Configured with: /gcc/gcc-3.3.3-3/configure --verbose --prefix=/usr
--exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib
--libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info
--enable-languages=c,ada,c++,d,f77,java,objc,pascal --enable-nls
--without-included-gettext --enable-libgcj --with-system-zlib
--enable-interpreter --enable-threads=posix --enable-java-gc=boehm
--enable-sjlj-exceptions --disable-version-specific-runtime-libs
--disable-win32-registry

Thread model: posix

gcc version 3.3.3 (cygwin special)

 

Could someone help me ?

 

 

Thanks a lot,

 

Best regards,

 

Jean-Philippe

 

--

Jean-Philippe Ulpiano   - Work phone 04 93 22 26 54.

 

Surf on any web site provided it is:

  http://www.salsacaliente.free.fr