From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1194 invoked by alias); 31 Jul 2002 14:36:04 -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 1170 invoked by uid 71); 31 Jul 2002 14:36:01 -0000 Resent-Date: 31 Jul 2002 14:36:01 -0000 Resent-Message-ID: <20020731143601.1169.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, marcus@mc.pp.se Received: (qmail 872 invoked from network); 31 Jul 2002 14:34:27 -0000 Received: from unknown (HELO continuity.mc.pp.se) (217.215.176.77) by sources.redhat.com with SMTP; 31 Jul 2002 14:34:27 -0000 Received: by continuity.mc.pp.se (Postfix, from userid 2042) id 02FF5C1EE; Wed, 31 Jul 2002 16:28:10 +0200 (MEST) Message-Id: <20020731142810.02FF5C1EE@continuity.mc.pp.se> Date: Wed, 31 Jul 2002 07:36:00 -0000 From: marcus@mc.pp.se To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: 3.113 Subject: bootstrap/7454: make boostraps fails on SPARC v8 X-SW-Source: 2002-07/txt/msg00811.txt.bz2 List-Id: >Number: 7454 >Category: bootstrap >Synopsis: make boostraps fails on SPARC v8 >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Jul 31 07:36:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Marcus Comstedt >Release: 3.1.1 >Organization: >Environment: System: SunOS continuity 5.8 Generic_108528-10 sun4m sparc SUNW,SPARCstation-10 Architecture: sun4 host: sparc-sun-solaris2.8 build: sparc-sun-solaris2.8 target: sparc-sun-solaris2.8 configured with: /home/marcus/gcc-3.1.1/configure --with-cpu=hypersparc >Description: When making bootstrap on a SPARC v8 machine (supersparc/hypersparc), the build bombs out while building target libs. The reason is that A) the default is to build libs for SPARC v9 as well (in which case GCC will act as a cross compiler, since v9 executables can't be run on a v8 CPU) B) the libffi and libjava configure scripts have one test each (for processor endianness and /proc/self/exe existence respectively) which will abort the build if configured with a cross compiler (Also note that if a configure script for a multilib subtarget fails, and it is not the first multilib subtarget in the list, then `make bootstrap' will fail to resume the build after the error is corrected, since it assumes that if the configuration of the first subtarget succeeded, then _all_ subtargets have been configured successfully.) >How-To-Repeat: `make bootstrap' on a sun4m machine running solaris 8. >Fix: By manually providing the correct answers to the two configure tests, a complete bootstrap including SPARC v9 libs can be built: ac_cv_c_bigendian=yes ac_cv_file__proc_self_exe=no export ac_cv_c_bigendian export ac_cv_file__proc_self_exe (These values are correct for Solaris 8. For other operating systems (Linux?) another value for ac_cv_file__proc_self_exe may be appropriate.) >Release-Note: >Audit-Trail: >Unformatted: