From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 672 invoked by alias); 10 Jul 2012 01:32:28 -0000 Received: (qmail 660 invoked by uid 22791); 10 Jul 2012 01:32:27 -0000 X-SWARE-Spam-Status: No, hits=-4.2 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED,TW_IB,TW_SV 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; Tue, 10 Jul 2012 01:32:14 +0000 From: "dwalker07 at yahoo dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug driver/53883] GCC 4.7.1 doesn't build on Mac OS X 10.4.11 Tiger/PowerPC (32-bit), at least with MacPorts Date: Tue, 10 Jul 2012 01:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: driver X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dwalker07 at yahoo dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: 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 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: 2012-07/txt/msg00794.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53883 --- Comment #4 from Daryle Walker 2012-07-10 01:32:12 UTC --- (In reply to comment #3) > (In reply to comment #2) > > (In reply to comment #0) > > > (Should I try building GCC 4.7.1 straight from you guys, without going through > > > MacPorts?) > > > > Yes, probably. > > I'm working on that now.... ...And here's what I tried: //--- svn co svn://gcc.gnu.org/svn/gcc/tags/gcc_4_7_1_release gcc cd gcc nano README nano contrib/gcc_update ./contrib/gcc_update --touch cd .. mkdir gcc-obj cd gcc-obj ../gcc/configure --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local make //--- (I'm using GMP, MPFR, and MPC from MacPorts. Note that it used the system compiler, Apple's GCC 4.0.1, and not anything from MacPorts for the first compiler phase.) It didn't build all the way through; here's the last few lines: //--- checking for gawk... awk checking whether make sets $(MAKE)... yes checking for --enable-version-specific-runtime-libs... no checking for style of include used by make... GNU checking for powerpc-apple-darwin8.11.0-gcc... /Users/daryle/Documents/Projects/GCC/gcc-obj/./gcc/xgcc -B/Users/daryle/Documents/Projects/GCC/gcc-obj/./gcc/ -B/usr/local/powerpc-apple-darwin8.11.0/bin/ -B/usr/local/powerpc-apple-darwin8.11.0/lib/ -isystem /usr/local/powerpc-apple-darwin8.11.0/include -isystem /usr/local/powerpc-apple-darwin8.11.0/sys-include -m64 checking for C compiler default output file name... a.out checking whether the C compiler works... configure: error: in `/Users/daryle/Documents/Projects/GCC/gcc-obj/powerpc-apple-darwin8.11.0/ppc64/libquadmath': 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-libquadmath] Error 1 make: *** [all] Error 2 [daryle:gcc-obj]$ l //--- It seems that it tried to build "libquadmath" thinking all PowerPC systems are 64-bit, while mine is 32-bit. I didn't reach the error I reported with MacPorts' build yet. Is there any way to force libquadmath to compile in 32-bit mode? (If that's impossible, is it skippable?) I'll try to attach the "config.log" file. I'll retry make when you guys let me know how to fix up libquadmath.