Cygwin and ELF Again

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
srg

Cygwin and ELF Again

Post 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
Tim

Re:Cygwin and ELF Again

Post 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.
srg

Re:Cygwin and ELF Again

Post 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.
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re:Cygwin and ELF Again

Post 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...
-- Stu --
srg

Re:Cygwin and ELF Again

Post 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
srg

Re:Cygwin and ELF Again

Post 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 :-[
srg

Re:Cygwin and ELF Again

Post 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
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re:Cygwin and ELF Again

Post by df »

for an elf target, you have to build binutils :)

this makes as/ld/etc that handle elf, aout, etcetcetc.
-- Stu --
Post Reply