From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5024 invoked by alias); 24 Nov 2004 23:09:01 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 4908 invoked from network); 24 Nov 2004 23:08:52 -0000 Received: from unknown (HELO mail-out3.apple.com) (17.254.13.22) by sourceware.org with SMTP; 24 Nov 2004 23:08:52 -0000 Received: from mailgate1.apple.com (a17-128-100-225.apple.com [17.128.100.225]) by mail-out3.apple.com (8.12.11/8.12.11) with ESMTP id iAONFE7q022386 for ; Wed, 24 Nov 2004 15:15:14 -0800 (PST) Received: from relay3.apple.com (relay3.apple.com) by mailgate1.apple.com (Content Technologies SMTPRS 4.3.14) with ESMTP id for ; Wed, 24 Nov 2004 15:09:39 -0800 Received: from [17.219.198.236] ([17.219.198.236]) by relay3.apple.com (8.12.11/8.12.11) with ESMTP id iAON8ogf024729 for ; Wed, 24 Nov 2004 15:08:50 -0800 (PST) Message-ID: <41A51487.7070006@apple.com> Date: Wed, 24 Nov 2004 23:24:00 -0000 From: Stan Shebs User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.3) Gecko/20040910 MIME-Version: 1.0 To: gcc@gcc.gnu.org Subject: 64-bit configure hell Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-11/txt/msg00926.txt.bz2 I have a messy configure problem with 64-bit Darwin, and would like to get some ideas about how to solve. The situation is that Darwin 8.x aka Tiger is capable of running 64-bit-address-space programs on G5s, and to support that in GCC I've set up a multilib for the -m64 option that enables it. This all works on G5 Tiger now, at least on prime-number days of the month when the moon is full :-) , and I hope to check in the last bits soon. The problem is that Tiger also runs on G4s, which are not capable of running 64-bit programs - all the machinery is there to build complete and correct binaries, the kernel just refuses to execute them. This causes problems for some configure scripts, in particular those in libstdc++ and libobjc, which want to be able to run executables. It's not entirely clear to me why that's important, since the libraries already build and run perfectly fine for cross-compilers. Although it would be good for sales to require that people building GCC on Darwin upgrade to G5s :-) that's kind of unfriendly, while producing different results from configure and make depending on one's CPU is also just asking for trouble. What other options do I have? Stan