From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18579 invoked by alias); 18 Jun 2002 15:36:32 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 18561 invoked from network); 18 Jun 2002 15:36:28 -0000 Received: from unknown (HELO umbriel.eastgw.xerox.com) (208.140.33.26) by sources.redhat.com with SMTP; 18 Jun 2002 15:36:28 -0000 Received: from snap.scan.mc.xerox.com (snap.scan.mc.xerox.com [13.252.84.17]) by umbriel.eastgw.xerox.com (8.9.3/8.9.3) with ESMTP id LAA18179 for ; Tue, 18 Jun 2002 11:36:01 -0400 (EDT) Received: from chroma (chroma [13.252.84.100]) by snap.scan.mc.xerox.com (8.9.3+Sun/8.9.3) with ESMTP id LAA14163 for ; Tue, 18 Jun 2002 11:36:26 -0400 (EDT) Received: from chroma by chroma (8.11.6+Sun/XeroxClient-SVR4-1.3) id g5IFZZT26002; Tue, 18 Jun 2002 11:35:35 -0400 (EDT) Message-Id: <200206181535.g5IFZZT26002@chroma> Date: Tue, 18 Jun 2002 08:36:00 -0000 From: Adam Stein Reply-To: Adam Stein Subject: Building gcc 3.1 with 64 bit support on Solaris 2.6? To: gcc-help@gcc.gnu.org MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Content-MD5: w0iQ1OUPwj6mhfa9qBMEHQ== X-SW-Source: 2002-06/txt/msg00157.txt.bz2 I can build a version of gcc 3.1 with 64 bit support if I'm compiling on Solaris 8 (and running a 64 bit kernel). What I would like to do is compile gcc 3.1 on a Solaris 2.6 running a 32 bit kernel (it is an ultrasparc machine if that matters). In this way, gcc would be able to compile normally using 32 bit code which would run on Solaris 2.6 and up, but have the "-m64" option work when compiling on Solaris 8 systems without having two versions of gcc 3.1. Is there any way to do this? I've tried various combinations of configurations options, but it seems that gcc compiled on Solaris 2.6 won't have the "-m64" support when being run on Solaris 8 systems. Any help is appreciated, even if you can tell me that you definitely can NOT do this. Otherwise, I will have to have two versions of gcc, one for Solaris 2.6 and one for Solaris 8. Adam -- Adam Stein @ Xerox Corporation Email: adam@scan.mc.xerox.com Disclaimer: All views expressed here have been proved to be my own. [http://www.csh.rit.edu/~adam/]