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... wrote:
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
-B/usr/local/i686-pc-cygwin/bin/ 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.


Just before that, there is a reported failure of the bootstrap compiler, due to the trailing -V argument supplied in configure. Most of the configure files in the recent 4.3 snapshots do this. I don't have a clue what this -V is meant for.

Unsubscribe info:
Problem reports:

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