[ECOS] Problem downloading eCos

Lewin A.R.W. Edwards larwe@larwe.com
Thu Mar 22 08:27:00 GMT 2001


> > libbackend.a(recog.o)(.text+0x2335): undefined reference to `PUSH_ROUNDING'
> > collect2: ld returned 1 exit status
>
>Build failure of the moment probably. Time to read

It turns out that this was a bug both introduced and fixed the day I 
downloaded my sources (typical luck, eh?). There are several problems 
lurking behind this one, though. However after some hours tweaking I have 
got a lot closer to getting it to compile. Maybe you can help? I can't get 
past these errors at the end. I think I'm getting near though.

Below is what to do. I am not sure that all of those steps are necessary. 
However they do point to some broken parts of the build process. In 
particular, I don't understand why those header files get included 
recursively in cygwin, but not in Linux...



Download gcc sources from 20010322 or later (NOTE: 20010321 has a known 
problem, don't download it). Configure gcc according to instructions for 
arm-elf. The text below assumes you have your gcc sources in 
/src/gcc/gcc-xxxxxxxx and your temp build directory is /tmp/build/gcc.

Strip CRs from /src/gcc/gcc-xxxxxxxx/gcc/config/arm/arm.md

Build according to instructions. You'll eventually get to about 10,000 
lines of errors. Strip CRs from /tmp/build/gcc/gcc/tconfig.h and edit that 
file:

add to the top:
#ifndef LARWE_TCONFIG_H
#define LARWE_TCONFIG_H

add to the bottom:
#endif

Strip CRs from the file /src/gcc/gcc-xxxxxxxx/gcc/config/arm/elf.h, edit 
the file and add to the top:
#ifndef LARWE_ARM_ELF_H
#define LARWE_ARM_ELF_H

add to the bottom:
#endif

Strip CRs from the file /src/gcc/gcc-xxxxxxxx/gcc/config/arm/unknown-elf.h, 
edit the file and add to the top:
#ifndef LARWE_UNKNOWN_ELF_H
#define LARWE_UNKNOWN_ELF_H

add to the bottom:
#endif

Strip CRs from the file /src/gcc/gcc-xxxxxxxx/gcc/longlong.h, edit the file 
and add a blank line to the end.


Now you wind up with these errors (see make.out attached)


More information about the Ecos-discuss mailing list