This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Building GCC 4.3.0 on Cygwin...

Angelo Graziosi wrote:

> As I wrote:
> >>

Ah, okay.  I failed to see that you'd posted the config.log there.  (And
I mentioned gmp/mpfr as I have seen that cause the build to fail in
exactly the way you described, but it's clearly not the case here.)

The real problem seems to be that the libgcc is broken:

configure:2121:  /home/User/cvsroot/gcc-obj/./prev-gcc/xgcc
conftest.c  >&5
/home/User/cvsroot/gcc-obj/./prev-gcc/libgcc.a(_ctors.o): In function
/usr/include/stdio.h:414: undefined reference to `_ungetc'
/usr/include/stdio.h:410: undefined reference to `___srget_r'
/usr/include/stdio.h:407: undefined reference to `___srget_r'
collect2: ld returned 1 exit status

It looks like a problem with some function being defined as a macro when
it shouldn't, or vice versa.  You'll need to look into how _ctors.o is
built to see exactly, since I can't find any reference to _sgetc_r or
ungetc in any of the libgcc2.{c,h} files.  You can try the trick of
going into the libgcc build directory (you may have to "make restage1"
to back up one stage), "rm _ctors.o" and then "make CFLAGS="-g -O2
-save-temps"" (or some variant) and then look at the preprocessed source
to see what's happening.


Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]