Page 1 of 1

Cygwin and ELF Again

Posted: Sun Mar 16, 2003 3:23 pm
by srg
Hi

Sorry to bring this up again but I'm still having problems getting the whole GCC compiler collection building on cygwin, when I 'make' I allways get:

[font=Courier]
gcc-3.2.2/gcc/config/i386/i386.c:927: for each function it appears in.)
gcc-3.2.2/gcc/config/i386/i386.c: In function `ix86_save_reg':
gcc-3.2.2/gcc/config/i386/i386.c:3982: warning: comparison between signed
and unsigned
make[1]: *** [i386.o] Error 1
make[1]: Leaving directory `/tmp/gccbuild/gcc'
make: *** [all-gcc] Error 2
[/font]

Please could someone show me a step-by-step account on how to build a complete working ELF compiler (including binutils) collection in Cygwin.

Thank you for your help
Steven Graham

Re:Cygwin and ELF Again

Posted: Sun Mar 16, 2003 4:46 pm
by Tim
It looks like you're missing an error message at the start. "for each function it appears in.)" is part of an "undeclared identifier" message. That looks like your problem.

Re:Cygwin and ELF Again

Posted: Mon Mar 17, 2003 1:37 am
by srg
Tim Robinson wrote: It looks like you're missing an error message at the start. "for each function it appears in.)" is part of an "undeclared identifier" message. That looks like your problem.
Why should this happen? Shouldn't it just compile ok, this is the full distribution tarball and not a beta.

Re:Cygwin and ELF Again

Posted: Mon Mar 17, 2003 2:18 am
by df
I have compiled binutils several times under cygwin without problems..

i usually do

./configure --with-stabs --with-gnu-as --with-gnu-ld {target info}

make
make install

and it all works fine...

Re:Cygwin and ELF Again

Posted: Mon Mar 17, 2003 2:25 am
by srg
df wrote: I have compiled binutils several times under cygwin without problems..

i usually do

./configure --with-stabs --with-gnu-as --with-gnu-ld {target info}

make
make install

and it all works fine...

Binutils compiles fine, it's GCC that doesn't compile

Re:Cygwin and ELF Again

Posted: Mon Mar 17, 2003 2:37 am
by srg
Hmm interesting. I have just had delevered the book "GCC Complete Reference" and it states that I need to congifure a library for the target machine before compiling the cross compiler.

Seems Sensible :-[

Re:Cygwin and ELF Again

Posted: Mon Mar 17, 2003 10:49 am
by srg
I don't have an ELF Target

Where can I get the lib and include files for building an ELF cross compiler

Thanks
Steven Graham

Re:Cygwin and ELF Again

Posted: Mon Mar 17, 2003 4:38 pm
by df
for an elf target, you have to build binutils :)

this makes as/ld/etc that handle elf, aout, etcetcetc.