From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8982 invoked by alias); 25 Sep 2014 12:57:25 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 8971 invoked by uid 89); 25 Sep 2014 12:57:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-la0-f46.google.com Received: from mail-la0-f46.google.com (HELO mail-la0-f46.google.com) (209.85.215.46) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 25 Sep 2014 12:57:23 +0000 Received: by mail-la0-f46.google.com with SMTP id gi9so2213670lab.5 for ; Thu, 25 Sep 2014 05:57:18 -0700 (PDT) X-Received: by 10.152.19.66 with SMTP id c2mr13543067lae.64.1411649838412; Thu, 25 Sep 2014 05:57:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.81.3 with HTTP; Thu, 25 Sep 2014 05:56:38 -0700 (PDT) From: Steven Bosscher Date: Thu, 25 Sep 2014 12:57:00 -0000 Message-ID: Subject: Problems bootstrapping GCC on x86_64-unknown-cygwin To: gcc-help@gcc.gnu.org Cc: n8tm@aol.com Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2014-09/txt/msg00129.txt.bz2 Hello, I'd like to bootstrap GCC5 on cygwin64, but my builds fail. The tail of my buildlog looks like this: ----- 8< ----- make[3]: Leaving directory '/home/steven/devel/build-orig/gcc' mkdir -p -- x86_64-unknown-cygwin/libgcc Checking multilib configuration for libgcc... Configuring stage 1 in x86_64-unknown-cygwin/libgcc configure: creating cache ./config.cache checking build system type... x86_64-unknown-cygwin checking host system type... x86_64-unknown-cygwin checking for --enable-version-specific-runtime-libs... no checking for a BSD-compatible install... /usr/bin/install -c checking for gawk... gawk checking for x86_64-unknown-cygwin-ar... ar checking for x86_64-unknown-cygwin-lipo... lipo checking for x86_64-unknown-cygwin-nm... /home/steven/devel/build-orig/./gcc/nm checking for x86_64-unknown-cygwin-ranlib... ranlib checking for x86_64-unknown-cygwin-strip... strip checking whether ln -s works... yes checking for x86_64-unknown-cygwin-gcc... /home/steven/devel/build-orig/./gcc/xgcc -B/home/steven/devel/build-orig/./gcc/ -B/usr/local/x86_64-unknown-cygwin/bin/ -B/usr/local/x86_64-unknown-cygwin/lib/ -isystem /usr/local/x86_64-unknown-cygwin/include -isystem /usr/local/x86_64-unknown-cygwin/sys-include checking for C compiler default output file name... configure: error: in `/home/steven/devel/build-orig/x86_64-unknown-cygwin/libgcc': configure: error: C compiler cannot create executables See `config.log' for more details. Makefile:13857: recipe for target 'configure-stage1-target-libgcc' failed make[2]: *** [configure-stage1-target-libgcc] Error 77 make[2]: Leaving directory '/home/steven/devel/build-orig' Makefile:18001: recipe for target 'stage1-bubble' failed make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory '/home/steven/devel/build-orig' Makefile:894: recipe for target 'all' failed make: *** [all] Error 2 ----- 8< ----- The problem is in configure for libgcc. config.log shows this: ----- 8< ----- configure:3379: $? = 1 configure:3395: /home/steven/devel/build-orig/./gcc/xgcc -B/home/steven/devel/build-orig/./gcc/ -B/usr/local/x86_64-unknown-cygwin/bin/ -B/usr/local/x86_64-unknown-cygwin/lib/ -isystem /usr/local/x86_64-unknown-cygwin/include -isystem /usr/local/x86_64-unknown-cygwin/sys-include -o conftest -g -O2 conftest.c >&5 /usr/lib/gcc/x86_64-pc-cygwin/4.8.3/../../../../x86_64-pc-cygwin/bin/ld: cannot find crtbegin.o: No such file or directory /usr/lib/gcc/x86_64-pc-cygwin/4.8.3/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lgcc_s /usr/lib/gcc/x86_64-pc-cygwin/4.8.3/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lgcc /usr/lib/gcc/x86_64-pc-cygwin/4.8.3/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lgcc_s /usr/lib/gcc/x86_64-pc-cygwin/4.8.3/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lgcc /usr/lib/gcc/x86_64-pc-cygwin/4.8.3/../../../../x86_64-pc-cygwin/bin/ld: cannot find crtend.o: No such file or directory configure:3398: $? = 0 configure:3427: checking for C compiler default output file name configure:3449: /home/steven/devel/build-orig/./gcc/xgcc -B/home/steven/devel/build-orig/./gcc/ -B/usr/local/x86_64-unknown-cygwin/bin/ -B/usr/local/x86_64-unknown-cygwin/lib/ -isystem /usr/local/x86_64-unknown-cygwin/include -isystem /usr/local/x86_64-unknown-cygwin/sys-include -g -O2 conftest.c >&5 /usr/lib/gcc/x86_64-pc-cygwin/4.8.3/../../../../x86_64-pc-cygwin/bin/ld: cannot find crtbegin.o: No such file or directory /usr/lib/gcc/x86_64-pc-cygwin/4.8.3/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lgcc_s /usr/lib/gcc/x86_64-pc-cygwin/4.8.3/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lgcc /usr/lib/gcc/x86_64-pc-cygwin/4.8.3/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lgcc_s /usr/lib/gcc/x86_64-pc-cygwin/4.8.3/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lgcc /usr/lib/gcc/x86_64-pc-cygwin/4.8.3/../../../../x86_64-pc-cygwin/bin/ld: cannot find crtend.o: No such file or directory configure:3453: $? = 0 configure:3490: result: configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "GNU C Runtime Library" | #define PACKAGE_TARNAME "libgcc" | #define PACKAGE_VERSION "1.0" | #define PACKAGE_STRING "GNU C Runtime Library 1.0" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "http://www.gnu.org/software/libgcc/" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3496: error: in `/home/steven/devel/build-orig/x86_64-unknown-cygwin/libgcc': configure:3500: error: C compiler cannot create executables See `config.log' for more details. ----- 8< ----- I've seen builds fail this way before and just gave up, but this time I'd like to know: What am I doing wrong?! Configuration same as Tim Prince (in CC) who reports test results for this on gcc-testresults: ----- 8< ----- $ cat gcc/configargs.h /* Generated automatically. */ static const char configuration_arguments[] = "../trunk/configure --target=x86_64-unknown-cygwin --enable-languages=c,c++,fortran --disable-libsanitizer --enable-libgomp --enable-threads=posix --disable-__cxa_atexit --with-dwarf2 --without-libiconv-prefix --without-libintl-prefix --with-system-zlib --disable-werror --without-cloog --without-isl --disable-nls"; static const char thread_model[] = "posix"; static const struct { const char *name, *value; } configure_default_options[] = { { "cpu", "generic" }, { "arch", "x86-64" } }; ----- 8< ----- Help? Thanks, Ciao! Steven