From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5814 invoked by alias); 28 Jun 2002 14:16:07 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 5772 invoked by uid 71); 28 Jun 2002 14:16:03 -0000 Resent-Date: 28 Jun 2002 14:16:03 -0000 Resent-Message-ID: <20020628141603.5771.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, mark@moxienet.com Received: (qmail 3476 invoked by uid 61); 28 Jun 2002 14:08:28 -0000 Message-Id: <20020628140828.3475.qmail@sources.redhat.com> Date: Fri, 28 Jun 2002 07:16:00 -0000 From: mark@moxienet.com Reply-To: mark@moxienet.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: target/7156: Should not attempt to build 32/64 bi-arch compiler on sparc-*-solaris2.[789] if unsupported, bootstrap will fail X-SW-Source: 2002-06/txt/msg00695.txt.bz2 List-Id: >Number: 7156 >Category: target >Synopsis: Should not attempt to build 32/64 bi-arch compiler on sparc-*-solaris2.[789] if unsupported, bootstrap will fail >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Fri Jun 28 07:16:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Mark Mentovai >Release: 3.1, gcc-3_1-branch 3.1.1 20020625 (prerelease), and gcc 3.2 20020618 (experimental) >Organization: >Environment: System: SunOS oak 5.7 Generic_106541-16 sun4m sparc SUNW,SPARCstation-20 Architecture: sun4 Sun SPARCstation 20, 150MHz hyperSPARC, 128MB, 3x4.4GB Sun Solaris 7 3/99 MU 4 host: sparc-sun-solaris2.7 build: sparc-sun-solaris2.7 target: sparc-sun-solaris2.7 configured with: ../gcc-3.1/configure --enable-shared --with-gnu-as --with-gnu-ld --enable-threads --with-cpu=hypersparc --enable-libgcj --with-system-zlib >Description: The build system currently attempts to build a 32/64-bit bi-arch compiler on sparc-*-solaris2.[789] regardless of the system's ability to support such a build. In order to bootstrap the compiler, the libraries for all environments must be present. When building a 32/64-bit bi-arch compiler, the libraries for both the 32- and 64-bit environments must be available. They are usually not present on 32-bit systems (for systems manufactured by Sun, this is anything prior to the Ultra). Even if both 32- and 64-bit libraries are installed on a 32-bit system, the bootstrap can fail when attempting to build support libraries for some languages. For example, the configuration of libjava for sparcv9 will fail with: checking for /proc/self/exe... configure: error: Cannot check for file existence when cross compiling >How-To-Repeat: On a 32-bit pre-sun4u system (sun4m, sun4c) running Solaris 7, 8, or 9: sh ../gcc-3.1/configure --enable-shared --with-gnu-as --with-gnu-ld --enable-threads --with-cpu=hypersparc --enable-libgcj --with-system-zlib make bootstrap >Fix: This patch causes config.gcc to determine whether or not the 64-bit sparcv9 environment is supported, and exclude 64-bit support if it is not. If the configure scripts for libjava and others can be fixed to not give errors such as the one above, a more appropriate check would be for whether or not the appropriate 64-bit libraries are installed. If both "pkginfo -q SUNWarcx" and "pkginfo -q SUNWcslx" exit with status 0, even on a system that is incapable of executing 64-bit sparcv9 executables, it is reasonably safe to assume that it is capable of building 64-bit sparcv9 executables. >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/octet-stream; name="gcc-3.1-optisa.patch.bz2" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="gcc-3.1-optisa.patch.bz2" QlpoOTFBWSZTWcx+ycIAAwPfgEAwXP//+k8zDor////qUAVejUjK0JAUFSBppBCepsmqbTVP0Jmp NHqfqeqaaB6RiDanqDQEoCBJoap6IeSaAGgADQAGgDmjJiYAJiMCNMCDEYJkwCMOaMmJgAmIwI0w IMRgmTAIwSJBAJkhhTxDVPRqHqNA0xAB5I9T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