From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28699 invoked by alias); 26 Sep 2010 17:21:14 -0000 Received: (qmail 28687 invoked by uid 22791); 26 Sep 2010 17:21:13 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,MISSING_MID,TW_GD,TW_GM X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 26 Sep 2010 17:21:09 +0000 From: "pluto at agmk dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/25672] [4.3/4.4?/4.5 regression] cross build's libgcc picks up CFLAGS X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Keywords: build, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: pluto at agmk dot net X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.3.6 X-Bugzilla-Changed-Fields: Target Known to work Summary Known to fail In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Sun, 26 Sep 2010 19:36:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-09/txt/msg02851.txt.bz2 Message-ID: <20100926193600.AF31IGWLtur0szE428nfkqxWeyXDSpeiCSKjuFA_Uq8@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25672 Pawel Sikora changed: What |Removed |Added ---------------------------------------------------------------------------- Target|ppc64-pld-linux |x86_64-pc-mingw32 Known to work| | Summary|[4.3 regression] cross |[4.3/4.4?/4.5 regression] |build's libgcc picks up |cross build's libgcc picks |CFLAGS |up CFLAGS Known to fail| |4.5.2 --- Comment #27 from Pawel Sikora 2010-09-26 17:21:01 UTC --- this bug still exists on current 4.5 branch and probably on trunk. e.g. for mingw64 cross compilation libgcc's configure fails with: (...) checking for suffix of object files... configure: error: in `/home/users/pluto/rpm/BUILD/gcc-4.5.1/BUILDDIR/x86_64-pc-mingw32/libgcc': configure: error: cannot compute suffix of object files: cannot compile config.log contains: (...) configure:3020: /home/users/pluto/rpm/BUILD/gcc-4.5.1/BUILDDIR/./gcc/xgcc -B/home/users/pluto/rpm/BUILD/gcc-4.5.1/BUILDDIR/./gcc/ -L/usr/x86_64-pc-mingw32/lib -L/usr/mingw/lib -isystem /usr/x86_64-pc-mingw32/include -isystem /usr/mingw/include -B/usr/x86_64-pc-mingw32/bin/ -B/usr/x86_64-pc-mingw32/lib/ -isystem /usr/x86_64-pc-mingw32/include -isystem /usr/x86_64-pc-mingw32/sys-include -o conftest -g -O2 -fno-strict-aliasing -fwrapv -march=i686 -mtune=pentium4 -gdwarf-3 -g2 conftest.c >&5 conftest.c:1:0: error: CPU you selected does not support x86-64 instruction set conftest.c:1:0: error: CPU you selected does not support x86-64 instruction set configure:3023: $? = 1 as you can see libgcc's configure uses CFLAGS (-O2 -fno-strict-aliasing -fwrapv -march=i686 -mtune=pentium4 -gdwarf-3 -g2) passed to top-level configure script :/