This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/32134] New: Configuring stage 2 in ./intl fails checking for C compiler default output file name - C compiler cannot create executables
- From: "rob1weld at aol dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 May 2007 23:55:12 -0000
- Subject: [Bug c/32134] New: Configuring stage 2 in ./intl fails checking for C compiler default output file name - C compiler cannot create executables
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
$ cat /cygdrive/C/makecygwin/gcc-4_3-trunk/LAST_UPDATED
Mon May 28 16:39:01 UTC 2007 (revision 125132)
$ prev-gcc/xgcc -v
Using built-in specs.
Target: i686-pc-cygwin
Configured with: /cygdrive/C/makecygwin/gcc-4_3-trunk/configure --prefix=/usr
--exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib
--mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/4.3 --verbose
--enable-languages=c,ada,c++,fortran,java,objc,obj-c++ --with-tune=athlon-xp
--with-cpu=athlon-xp --with-arch=athlon-xp
--enable-stage1-checking=assert,gc,misc,rtl,rtlflag,runtime,tree
Thread model: single
gcc version 4.3.0 20070528 (experimental)
Using minimal configure parameters _or_ trying "--disable-initfini-array
--disable-__cxa_atexit" was to no avail. I did search gcc-patches and bugzilla.
The intl/configure script for 4.3.0 is the same as for 4.2.0/1 and it does not
fail there. The test is trivial, the problem might be in libgcc2.
This is my first try at 4.3.0 for Cygwin. I'm going to look into this more to
see if I can find the trouble.
Here is the screen output:
make[3]: Leaving directory
`/cygdrive/c/gcc-4_3-trunk-build/i686-pc-cygwin/libgcc'
make[2]: Leaving directory `/cygdrive/c/gcc-4_3-trunk-build'
make[2]: Entering directory `/cygdrive/c/gcc-4_3-trunk-build'
make[3]: Entering directory `/cygdrive/c/gcc-4_3-trunk-build'
rm -f stage_current
make[3]: Leaving directory `/cygdrive/c/gcc-4_3-trunk-build'
make[2]: Leaving directory `/cygdrive/c/gcc-4_3-trunk-build'
make[2]: Entering directory `/cygdrive/c/gcc-4_3-trunk-build'
Configuring stage 2 in ./intl
configure: creating cache ./config.cache
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for i686-pc-cygwin-gcc...
/cygdrive/c/gcc-4_3-trunk-build/./prev-gcc/xgcc
-B/cygdrive/c/gcc-4_3-trunk-build/./prev-gcc/ -B/usr/i686-pc-cygwin/bin/
checking for C compiler default output file name... configure: error: C
compiler cannot create executables
See `config.log' for more details.
make[2]: *** [configure-stage2-intl] Error 77
make[2]: Leaving directory `/cygdrive/c/gcc-4_3-trunk-build'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/cygdrive/c/gcc-4_3-trunk-build'
make: *** [all] Error 2
Here is the file: /gcc-4_3-trunk-build/intl/config.log
configure:1658: result: /usr/bin/xgettext
configure:1698: checking for msgmerge
configure:1728: result: /usr/bin/msgmerge
configure:1771: checking for i686-pc-cygwin-gcc
configure:1797: result: /cygdrive/c/gcc-4_3-trunk-build/./prev-gcc/xgcc
-B/cygdrive/c/gcc-4_3-trunk-build/./prev-gcc/ -B/usr/i686-pc-cygwin/bin/
configure:2079: checking for C compiler version
configure:2082: /cygdrive/c/gcc-4_3-trunk-build/./prev-gcc/xgcc
-B/cygdrive/c/gcc-4_3-trunk-build/./prev-gcc/ -B/usr/i686-pc-cygwin/bin/
--version </dev/null >&5
xgcc (GCC) 4.3.0 20070528 (experimental)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2085: $? = 0
configure:2087: /cygdrive/c/gcc-4_3-trunk-build/./prev-gcc/xgcc
-B/cygdrive/c/gcc-4_3-trunk-build/./prev-gcc/ -B/usr/i686-pc-cygwin/bin/ -v
</dev/null >&5
Reading specs from /cygdrive/c/gcc-4_3-trunk-build/./prev-gcc/specs
Target: i686-pc-cygwin
Configured with: /cygdrive/C/makecygwin/gcc-4_3-trunk/configure --verbose
--enable-languages=c,ada,c++,fortran,java,objc,obj-c++ --with-tune=athlon-xp
--prefix=/usr --enable-objc-gc --enable-concept-checks --disable-multilib
--with-gxx-include-dir=/usr/include/c++/4.3 --enable-libstdcxx-debug
--enable-static --enable-shared --enable-initfini-array --enable-__cxa_atexit
--enable-threads=posix --enable-version-specific-runtime-libs --enable-libssp
--enable-libmudflap --enable-libgomp --disable-werror --enable-nls
--with-included-gettext --enable-decimal-float --with-long-double-128
--enable-debug --enable-java-gc=boehm --with-x --x-includes=/usr/X11R6/include
--x-libraries=/usr/X11R6/lib --enable-java-awt=gtk,xlib --enable-gtk-cairo
--enable-qt-peer --enable-xmlj --enable-gconf-peer --enable-tool-wrappers
--enable-portable-native-sync --enable-examples --enable-libgcj-multifile
--with-stabs --enable-hash-synchronization --enable-gc-debug
--enable-interpreter --with-system-zlib --enable-libada --with-tls
--with-cpu=athlon-xp --with-arch=athlon-xp
--enable-stage1-checking=assert,gc,misc,rtl,rtlflag,runtime,tree
Thread model: posix
gcc version 4.3.0 20070528 (experimental)
configure:2090: $? = 0
configure:2092: /cygdrive/c/gcc-4_3-trunk-build/./prev-gcc/xgcc
-B/cygdrive/c/gcc-4_3-trunk-build/./prev-gcc/ -B/usr/i686-pc-cygwin/bin/ -V
</dev/null >&5
xgcc: '-V' must come at the start of the command line
configure:2095: $? = 1
configure:2118: checking for C compiler default output file name
configure:2121: /cygdrive/c/gcc-4_3-trunk-build/./prev-gcc/xgcc
-B/cygdrive/c/gcc-4_3-trunk-build/./prev-gcc/ -B/usr/i686-pc-cygwin/bin/ -g -O2
-I/usr/local/include conftest.c >&5
/cygdrive/c/gcc-4_3-trunk-build/./prev-gcc/libgcc.a(_ctors.o): In function
`__sgetc_r':
/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
configure:2124: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2163: error: C compiler cannot create executables
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
-----
The target i686-pc-linux-gnu has a different result in the log file:
# grep -A 11 Target:\ i686-pc-linux-gnu /opt/gcc-4_3-build/intl/config.log
Target: i686-pc-linux-gnu
Configured with: /root/downloads/gcc-4_3-trunk/configure --verbose
--enable-languages=c,ada,c++,fortran,java,objc,obj-c++ --with-tune=athlon-xp
--prefix=/usr --enable-objc-gc --enable-concept-checks --disable-multilib
--with-gxx-include-dir=/usr/include/c++/4.3 --enable-libstdcxx-debug
--enable-static --enable-shared --enable-initfini-array --enable-__cxa_atexit
--enable-threads=posix --enable-version-specific-runtime-libs --enable-libssp
--enable-libmudflap --enable-libgomp --disable-werror --enable-nls
--with-included-gettext --enable-decimal-float --with-long-double-128
--enable-debug --enable-java-gc=boehm --with-x --x-includes=/usr/X11R6/include
--x-libraries=/usr/X11R6/lib --enable-java-awt=gtk,xlib --enable-gtk-cairo
--enable-qt-peer --enable-xmlj --enable-gconf-peer --enable-tool-wrappers
--enable-portable-native-sync --enable-examples --enable-libgcj-multifile
--with-stabs --enable-hash-synchronization --enable-gc-debug
--enable-interpreter --with-system-zlib --enable-libada --with-tls
--with-cpu=athlon-xp --with-arch=athlon-xp
--enable-stage1-checking=assert,gc,misc,rtl,rtlflag,runtime,tree
Thread model: posix
gcc version 4.3.0 20070527 (experimental)
configure:2090: $? = 0
configure:2092: /opt/gcc-4_3-build/./prev-gcc/xgcc
-B/opt/gcc-4_3-build/./prev-gcc/ -B/usr/i686-pc-linux-gnu/bin/ -V </dev/null
>&5
xgcc: '-V' must come at the start of the command line
configure:2095: $? = 1
configure:2118: checking for C compiler default output file name
configure:2121: /opt/gcc-4_3-build/./prev-gcc/xgcc
-B/opt/gcc-4_3-build/./prev-gcc/ -B/usr/i686-pc-linux-gnu/bin/ -O2 -g
-fomit-frame-pointer conftest.c >&5
configure:2124: $? = 0
configure:2170: result: a.out
The target i686-pc-cygwin defines ungetc like this:
$ grep ungetc /usr/include/stdio.h
int _EXFUN(ungetc, (int, FILE *));
int _EXFUN(_ungetc_r, (struct _reent *, int, FILE *));
ungetc(__c2, __p);
The target i686-pc-linux-gnu defines ungetc like this:
# grep ungetc /usr/include/stdio.h
extern int ungetc (int __c, FILE *__stream);
--
Summary: Configuring stage 2 in ./intl fails checking for C
compiler default output file name - C compiler cannot
create executables
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rob1weld at aol dot com
GCC build triplet: i686-pc-cygwin
GCC host triplet: i686-pc-cygwin
GCC target triplet: i686-pc-cygwin
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32134