Building gcc-3.3.1-3 in Cygwin 1.5.9-1 - help!

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

Threaded View
I have built binutils-20040312-1 on Cygwin and am trying to build
gcc-3.3.1-3, but I am getting the error below. Can someone give a
pointer why it is breaking?

What I did was:
  181  ../gcc-3.3.1-3/configure --target=arm-unknown-coff
--prefix=/usr/local/ -
-exec_prefix=/usr/local --without-fp --with-gnu-as --with-gnu-ld
  182  make all

Thanks for your help

/usr/local/gcc/gcc/xgcc -B/usr/local/gcc/gcc/
 -B/usr/local/arm-unknown-coff/lib/ -isystem
 -O2 -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wm
issing-prototypes -isystem ./include  -I. -I. -I../../gcc-3.3.1-3/gcc
c-3.3.1-3/gcc/. -I../../gcc-3.3.1-3/gcc/config
e  -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions
initialized-in-bss  \
  -Dinhibit_libc -c ../../gcc-3.3.1-3/gcc/crtstuff.c -DCRT_BEGIN \
  -o crtbegin.o
../../gcc-3.3.1-3/gcc/crtstuff.c:420:2: #error "What are you doing
with crtstuff
.c, then?"
make[3]: *** [crtbegin.o] Error 1
make[3]: Leaving directory `/usr/local/gcc/gcc'
make[2]: *** [crtbegin.o] Error 2
make[2]: Leaving directory `/usr/local/gcc/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/usr/local/gcc/gcc'
make: *** [all-gcc] Error 2

Re: Building gcc-3.3.1-3 in Cygwin 1.5.9-1 - help!
[Will you *please* start following Netiquette by restricting
Followup-To: of crossposts to a single group?  I've done it for you
for the third time in a row now...]

Quoted text here. Click to load it

It is breaking itself deliberately, to tell you that some aspect of
how you're trying to build GCC doesn't make sense.

Quoted text here. Click to load it

You'll almost certainly find more explanations in crtstuff.c close to
line 420 which contains this #error statement.

E.g. it could be trying to tell you that the 'unknown' in the middle
of your target name is ultimately unacceptable, because GCC can't
understand how to set up a C RunTime (CRT) environment on an ARM
platform of completely unspecified nature.

"Use the source, Luke".  And don't be afraid to Google for the text of
that #error.

Hans-Bernhard Broeker (
Even if all the snow were burnt, ashes would remain.

Re: Building gcc-3.3.1-3 in Cygwin 1.5.9-1 - help!

I looked at line 420, and it looks like this:

#error "What are you doing with crtstuff.c, then?"

I will try to use arm-9-coff next to see if it helps.

Thanks again for your help!

Quoted text here. Click to load it

Re: Building gcc-3.3.1-3 in Cygwin 1.5.9-1 - help!
Quoted text here. Click to load it


First of all, you probably don't want to use the arm-unknown-coff target.
The only reason for using the coff target would be to develop code for WinCE
in which case the OS is not unknown. I would recommend using the arm-elf
target. The reason is that in COFF format GCC can't remove unreferenced
functions and/or data from your code, so your binary image will be
unnecessarily large.

Next, you will probably need a runtime library otherwise you won't be able
to link your C code together. I suggest using the Newlib CRT unless you have
some known problems with it.

There's also a configuration issue with GCC in that it will try to compile
collect2 (and will fail it) even though it's not required.

You might also want to take a look at my page, where you can find a
pre-compiled arm cross-compiler for Windows (for MinGW, actually). It's
newer than the one you're trying to compile and so it contains some
important bug-fixes for the ARM target.

Andras Tantos
We've slightly trimmed the long signature. Click to see the full one.
Re: Building gcc-3.3.1-3 in Cygwin 1.5.9-1 - help!
Hi Dennis,

I had the same problem with the sh-coff/sh-elf targets!

Don't use the sources delivered by Cygwin !!
Download the sources form any GCC mirror sites
and the build runs well just as the bins work fin.

regards EW

Quoted text here. Click to load it

Site Timeline