From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16215 invoked by alias); 17 Oct 2002 17:16:05 -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 16185 invoked by uid 71); 17 Oct 2002 17:16:03 -0000 Resent-Date: 17 Oct 2002 17:16:03 -0000 Resent-Message-ID: <20021017171603.16184.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, ahs3@fc.hp.com Received: (qmail 11628 invoked from network); 17 Oct 2002 17:08:28 -0000 Received: from unknown (HELO atlrel9.hp.com) (156.153.255.214) by sources.redhat.com with SMTP; 17 Oct 2002 17:08:28 -0000 Received: from smtp2.fc.hp.com (smtp2b.fc.hp.com [15.15.136.253]) by atlrel9.hp.com (Postfix) with ESMTP id 98B45E00418 for ; Thu, 17 Oct 2002 13:08:27 -0400 (EDT) Received: from ldl.fc.hp.com (ldl.fc.hp.com [15.1.50.190]) by smtp2.fc.hp.com (Postfix) with ESMTP id 134D237E5A; Thu, 17 Oct 2002 11:08:27 -0600 (MDT) Received: from fcahs3.fc.hp.com (fcahs3.fc.hp.com [15.1.51.144]) by ldl.fc.hp.com (Postfix) with ESMTP id DFE9543F5; Thu, 17 Oct 2002 11:08:26 -0600 (MDT) Received: by fcahs3.fc.hp.com (Postfix, from userid 20345) id 9D48ADB995; Thu, 17 Oct 2002 11:08:26 -0600 (MDT) Message-Id: <20021017170826.9D48ADB995@fcahs3.fc.hp.com> Date: Thu, 17 Oct 2002 10:16:00 -0000 From: ahs3@fc.hp.com Reply-To: ahs3@fc.hp.com To: gcc-gnats@gcc.gnu.org Cc: ahs3@fc.hp.com X-Send-Pr-Version: 3.113 Subject: other/8261: internal error when trying to build hpux cross compiler X-SW-Source: 2002-10/txt/msg00683.txt.bz2 List-Id: >Number: 8261 >Category: other >Synopsis: internal error when trying to build hpux cross compiler >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-legal-code >Submitter-Id: net >Arrival-Date: Thu Oct 17 10:16:02 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Al Stone >Release: 3.2 >Organization: Hewlett-Packard >Environment: System: Linux fcahs3 2.4.18-ac3 #6 Thu Oct 10 11:54:16 MDT 2002 i686 unknown unknown GNU/Linux Architecture: i686 host: i686-pc-linux-gnu build: ia64-hp-hpux11.22 target: ia64-hp-hpux11.22 configured with: used the following script to build.... #!/bin/sh # # Build cross-compiler for ia64 running hpux # GCC_SRC=gcc-3.2 GCC_BLD=ia64-gcc-hpux PREFIX=/opt/ia64-hpux EXEC_PREFIX=${PREFIX}/bin TARGET=ia64-hp-hpux11.22 HEADERS=../hpux-include cd /home/ahs3/projects/martin/gcc rm -rf $GCC_BLD #-- build gcc next echo "============ GCC =====================" [ -d $GCC_BLD ] || mkdir $GCC_BLD cd $GCC_BLD [ -f Makefile ] && make clean export PATH=$PATH:$EXEC_PREFIX CCOPTS=-Wall \ AS_FOR_TARGET=${EXEC_PREFIX}/${TARGET}-as \ LD_FOR_TARGET=${EXEC_PREFIX}/${TARGET}-ld \ AR_FOR_TARGET=${EXEC_PREFIX}/${TARGET}-ar \ RANLIB_FOR_TARGET=${EXEC_PREFIX}/${TARGET}-ranlib \ NM_FOR_TARGET=${EXEC_PREFIX}/${TARGET}-nm \ OBJDUMP_FOR_TARGET=${EXEC_PREFIX}/${TARGET}-objdump \ ../$GCC_SRC/configure --enable-languages=c \ --target $TARGET --prefix=$PREFIX -v --enable-threads=posix \ --with-headers=${HEADERS} [ $? = 0 ] || exit 1 CCOPTS=-Wall \ AS_FOR_TARGET=${EXEC_PREFIX}/${TARGET}-as \ LD_FOR_TARGET=${EXEC_PREFIX}/${TARGET}-ld \ AR_FOR_TARGET=${EXEC_PREFIX}/${TARGET}-ar \ NM_FOR_TARGET=${EXEC_PREFIX}/${TARGET}-nm \ OBJDUMP_FOR_TARGET=${EXEC_PREFIX}/${TARGET}-objdump \ RANLIB_FOR_TARGET=${EXEC_PREFIX}/${TARGET}-ranlib \ make all install [ $? = 0 ] || exit 1 exit 0 >Description: When trying to build a cross-compiler (from Debian GNU/Linux 3.0, to HP-UX 11.22, I get the following internal error when the compiler tries to build itself: ../../gcc-3.2/gcc/config/ia64/unwind-ia64.c: In function `alloc_reg_state': ../../gcc-3.2/gcc/config/ia64/unwind-ia64.c:263: Internal compiler error in emit_move_insn, at expr.c:2776 >How-To-Repeat: Build binutils using the target and prefix values from the script listed in "configure with". Then, build gcc using the script in the "configure with" field. The ICE occurs when trying to compile the file gcc/ config/ia64/unwind-ia64.c. At least, that's what I did. It appears that binutils is not involved in this particular problem, though it is needed to get this far in the build. >Fix: No known workaround. I tried several attempts to rewrite the code that causes the internal compiler error (in ia64intrin.c and in unwind-ia64.c) but made no progress. >Release-Note: >Audit-Trail: >Unformatted: