Re: Failure building current 4.5 snapshot on Cygwin
(Resurrecting this old thread...) Seiji Kachi wrote: Kai Tietz wrote: No, this bug appeared on all windows pe-coff targets. A fix for this is already checked in yesterday on binutils. Could you try it with the current binutils head version? Cheers, Kai I solved this failure with binutils-2.19.51. I am running into the same problem (cannnot build latest snapshot on cygwin). I have built and installed the latest binutils from head (see attached config.log for details). But still the build fails. Any help? checking whether the C compiler works... configure: error: in `/home/ericne/objdir/i686-pc-cygwin/li biberty': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details. checking for egrep... grep -E checking for i686-pc-cygwin-gcc... /home/ericne/objdir/./gcc/xgcc -B/home/ericne/objdir/./gcc/ -B/us r/local/gcc-4.5-20090813//i686-pc-cygwin/bin/ -B/usr/local/gcc-4.5-20090813//i686-pc-cygwin/lib/ -is ystem /usr/local/gcc-4.5-20090813//i686-pc-cygwin/include -isystem /usr/local/gcc-4.5-20090813//i686 -pc-cygwin/sys-include make[1]: *** [configure-target-libiberty] Error 1 make[1]: *** Waiting for unfinished jobs checking for C compiler default output file name... a.exe checking whether the C compiler works... configure: error: in `/home/ericne/objdir/i686-pc-cygwin/li bstdc++-v3': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details. make[1]: *** [configure-target-libstdc++-v3] Error 1 make[1]: Leaving directory `/home/ericne/objdir' make: *** [all] Error 2 -- Eric Niebler BoostPro Computing http://www.boostpro.com This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.59. Invocation command line was $ ../gcc-4.5-20090813/configure --prefix=/usr/local/gcc-4.5-20090813/ --disable-bootstrap --enable-languages=c++ ## - ## ## Platform. ## ## - ## hostname = ericne-xps uname -m = i686 uname -r = 1.5.25(0.156/4/2) uname -s = CYGWIN_NT-6.0 uname -v = 2008-06-12 19:34 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = i686 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/local/binutils-2.19.51/bin/ PATH: /usr/local/binutils-2.19.1/bin/ PATH: /usr/local/bin PATH: /usr/bin PATH: /bin PATH: /usr/X11R6/bin PATH: /cygdrive/c/Python26/ PATH: /cygdrive/c/Perl/site/bin PATH: /cygdrive/c/Perl/bin PATH: /cygdrive/c/Program Files/CodeSynthesis XSD 3.2/bin/ PATH: /cygdrive/c/Program Files/CollabNet Subversion Client PATH: /cygdrive/c/Windows/system32 PATH: /cygdrive/c/Windows PATH: /cygdrive/c/Windows/System32/Wbem PATH: /cygdrive/c/Program Files/Perforce/ PATH: /cygdrive/c/boost/org/trunk/tools/jam/src/bin.cygwinx86 PATH: /cygdrive/c/Program Files/Common Files/Roxio Shared/9.0/DLLShared/ PATH: /cygdrive/c/Program Files/Microsoft SQL Server/80/Tools/Binn/ PATH: /cygdrive/c/Program Files/Microsoft SQL Server/90/Tools/binn/ PATH: /cygdrive/c/Program Files/Microsoft SQL Server/90/DTS/Binn/ PATH: /cygdrive/c/Program Files/Xoreax/IncrediBuild PATH: /cygdrive/c/Program Files/Common Files/Roxio Shared/DLLShared/ ## --- ## ## Core tests. ## ## --- ## configure:1574: checking build system type configure:1592: result: i686-pc-cygwin configure:1627: checking host system type configure:1641: result: i686-pc-cygwin configure:1649: checking target system type configure:1663: result: i686-pc-cygwin configure:1707: checking for a BSD-compatible install configure:1773: result: /usr/bin/install -c configure:1784: checking whether ln works configure:1806: result: yes configure:1810: checking whether ln -s works configure:1814: result: yes configure:2843: checking to see if cat works as expected configure:2848: result: yes configure:3025: checking for gcc configure:3041: found /usr/bin/gcc configure:3051: result: gcc configure:3297: checking for C compiler version configure:3300: gcc --version &5 gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) Copyright (C) 2004 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:3303: $? = 0 configure:3305: gcc -v &5 Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs Configured with: /managed/gcc-build/final-v3-bootstrap/gcc-3.4.4-999/configure --verbose --program-suffix=-3 --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-languages=c,ada,c++,d,f77,pascal,java,objc --enab
Re: Failure building current 4.5 snapshot on Cygwin
Angelo Graziosi wrote: Eric Niebler wrote: I am running into the same problem (cannnot build latest snapshot on cygwin). I have built and installed the latest binutils from head (see attached config.log for details). But still the build fails. Any help? This is strange! Recent snapshots (4.3, 4.4, 4.5) build OB both on Cygwin-1.5 and 1.7. In 1.5 I have build the same binutils of 1.7. I configure with: I tried again without --disable-bootstrap. The build still fails, but in a different place: checking for i686-pc-cygwin-gcc... /home/ericne/objdir/./prev-gcc/xgcc -B/home/ericne/objdir/./prev -gcc/ -B/usr/local/gcc-4.5-20090813/i686-pc-cygwin/bin/ -B/usr/local/gcc-4.5-20090813/i686-pc-cygwin /bin/ -B/usr/local/gcc-4.5-20090813/i686-pc-cygwin/lib/ -isystem /usr/local/gcc-4.5-20090813/i686-pc -cygwin/include -isystem /usr/local/gcc-4.5-20090813/i686-pc-cygwin/sys-include checking for C compiler default output file name... a.exe checking whether the C compiler works... configure: error: in `/home/ericne/objdir/intl': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details. make[2]: *** [configure-stage2-intl] Error 1 make[2]: Leaving directory `/home/ericne/objdir' make[1]: *** [stage2-bubble] Error 2 make[1]: Leaving directory `/home/ericne/objdir' make: *** [all] Error 2 I've attached objdir/intl/config.log. -- Eric Niebler BoostPro Computing http://www.boostpro.com This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.59. Invocation command line was $ /home/ericne/gcc-4.5-20090813/intl/configure --cache-file=./config.cache --prefix=/usr/local/gcc-4.5-20090813 --enable-languages=c,c++ --program-transform-name=s,y,y, --build=i686-pc-cygwin --host=i686-pc-cygwin --target=i686-pc-cygwin --srcdir=../../gcc-4.5-20090813/intl --with-build-libsubdir=. --enable-werror-always ## - ## ## Platform. ## ## - ## hostname = ericne-xps uname -m = i686 uname -r = 1.5.25(0.156/4/2) uname -s = CYGWIN_NT-6.0 uname -v = 2008-06-12 19:34 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = i686 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /home/ericne/objdir/i686-pc-cygwin/libstdc++-v3/.libs PATH: /home/ericne/objdir/i686-pc-cygwin/libssp/.libs PATH: /home/ericne/objdir/./gcc/shlib PATH: /home/ericne/objdir/./prev-gcc/shlib PATH: /home/ericne/objdir/i686-pc-cygwin/libstdc++-v3/.libs PATH: /home/ericne/objdir/i686-pc-cygwin/libssp/.libs PATH: /home/ericne/objdir/./gcc/shlib PATH: /home/ericne/objdir/./prev-gcc/shlib PATH: /usr/local/binutils-2.19.51/bin/ PATH: /usr/local/binutils-2.19.1/bin/ PATH: /usr/local/bin PATH: /usr/bin PATH: /bin PATH: /usr/X11R6/bin PATH: /cygdrive/c/Python26/ PATH: /cygdrive/c/Perl/site/bin PATH: /cygdrive/c/Perl/bin PATH: /cygdrive/c/Program Files/CodeSynthesis XSD 3.2/bin/ PATH: /cygdrive/c/Program Files/CollabNet Subversion Client PATH: /cygdrive/c/Windows/system32 PATH: /cygdrive/c/Windows PATH: /cygdrive/c/Windows/System32/Wbem PATH: /cygdrive/c/Program Files/Perforce/ PATH: /cygdrive/c/boost/org/trunk/tools/jam/src/bin.cygwinx86 PATH: /cygdrive/c/Program Files/Common Files/Roxio Shared/9.0/DLLShared/ PATH: /cygdrive/c/Program Files/Microsoft SQL Server/80/Tools/Binn/ PATH: /cygdrive/c/Program Files/Microsoft SQL Server/90/Tools/binn/ PATH: /cygdrive/c/Program Files/Microsoft SQL Server/90/DTS/Binn/ PATH: /cygdrive/c/Program Files/Xoreax/IncrediBuild PATH: /cygdrive/c/Program Files/Common Files/Roxio Shared/DLLShared/ ## --- ## ## Core tests. ## ## --- ## configure:1229: creating cache ./config.cache configure:1338: checking whether make sets $(MAKE) configure:1358: result: yes configure:1406: checking for a BSD-compatible install configure:1472: result: /usr/bin/install -c configure:1497: checking whether NLS is requested configure:1506: result: yes configure:1544: checking for msgfmt configure:1578: result: no configure:1584: checking for gmsgfmt configure:1615: result: : configure:1654: checking for xgettext configure:1688: result: no configure:1725: checking for msgmerge configure:1758: result: no configure:1798: checking for i686-pc-cygwin-gcc configure:1824: result: /home/ericne/objdir/./prev-gcc/xgcc -B/home/ericne/objdir/./prev-gcc/ -B/usr/local/gcc-4.5-20090813/i686-pc-cygwin/bin/ -B/usr/local/gcc-4.5-20090813/i686-pc-cygwin/bin/ -B/usr/local/gcc-4.5-20090813/i686-pc-cygwin/lib/ -isystem /usr/local/gcc-4.5-20090813/i686-pc-cygwin/include -isystem /usr/local/gcc-4.5-20090813/i686-pc-cygwin/sys-include configure:2108: checking for C compiler version configure:2111: /home/ericne/objdir/.
Re: Failure building current 4.5 snapshot on Cygwin
Tim Prince wrote: Eric Niebler wrote: Angelo Graziosi wrote: Eric Niebler wrote: I am running into the same problem (cannnot build latest snapshot on cygwin). I have built and installed the latest binutils from head (see attached config.log for details). But still the build fails. Any help? This is strange! Recent snapshots (4.3, 4.4, 4.5) build OB both on Cygwin-1.5 and 1.7. In 1.5 I have build the same binutils of 1.7. I've attached objdir/intl/config.log. It says you have triggered cross compilation mode, without complete setup. I haven't. I'm building a native gcc on cygwin as I always have. Been doing this for years. Also, it says you are building in a directory below your source code directory, which I always used to do myself, but stopped on account of the number of times I've seen this criticized. I'm not. Where does it say that? The source code is at ~/gcc-4.5-20090813 and the object dir (where I'm building) is ~/objdir. -- Eric Niebler BoostPro Computing http://www.boostpro.com
Re: Failure building current 4.5 snapshot on Cygwin
Eric Niebler wrote: Seiji Kachi wrote: Kai Tietz wrote: No, this bug appeared on all windows pe-coff targets. A fix for this is already checked in yesterday on binutils. Could you try it with the current binutils head version? Cheers, Kai I solved this failure with binutils-2.19.51. I am running into the same problem (cannnot build latest snapshot on cygwin). I have built and installed the latest binutils from head (see attached config.log for details). But still the build fails. Any help? I eventually fixed my problem. This bit from config.log raised my suspicions: configure:7233: checking for ar configure:7249: found /usr/local/binutils-2.19.51/bin//ar configure:7259: result: ar configure:7368: checking for as configure:7384: found /usr/local/binutils-2.19.51/bin//as configure:7394: result: as configure:7503: checking for dlltool configure:7519: found /usr/local/binutils-2.19.51/bin//dlltool configure:7529: result: dlltool configure:7561: checking for ld configure:7587: result: /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld.exe I can't say why ld.exe is found at /usr/i686-pc-cygwin/bin/ld.exe (it's not even in my PATH) or even how it got there. There are also copies of ar.exe and friends in the same directory, but for some reason, they're not getting picked up. Seems mysterious. After nuking /usr/i686-pc-cygwin/bin (so that the binutils-2.19.51 version of ld.exe would get picked instead), the build completed successfully. I can now build and run executables under cygwin with gcc-4.5. I still don't know who is at fault for my original problem. -- Eric Niebler BoostPro Computing http://www.boostpro.com