From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23663 invoked by alias); 2 Jan 2007 20:17:51 -0000 Received: (qmail 23655 invoked by uid 22791); 2 Jan 2007 20:17:50 -0000 X-Spam-Check-By: sourceware.org Received: from pfepc.post.tele.dk (HELO pfepc.post.tele.dk) (195.41.46.237) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 02 Jan 2007 20:17:45 +0000 Received: from x1-6-00-0f-9f-c6-3e-90.k75.webspeed.dk (x1-6-00-0f-9f-c6-3e-90.k75.webspeed.dk [80.197.1.215]) by pfepc.post.tele.dk (Postfix) with ESMTP id 000BB8A002B for ; Tue, 2 Jan 2007 21:17:41 +0100 (CET) Received: by x1-6-00-0f-9f-c6-3e-90.k75.webspeed.dk (Postfix, from userid 500) id 0CDDD936B7; Tue, 2 Jan 2007 21:17:40 +0100 (CET) Date: Tue, 02 Jan 2007 20:17:00 -0000 From: Rask Ingemann Lambertsen To: gcc-help@gcc.gnu.org Subject: I need help building a powerpc-unknown-eabispe cross compiler Message-ID: <20070102201740.GB3563@sygehus.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2007-01/txt/msg00024.txt.bz2 I want to build a cross compiler with powerpc-unknown-eabispe as target and i686-pc-linux-gnu as host. If I configure it like this (all on one line) ../../src/gcc/configure --enable-sim --with-newlib --disable-nls --enable-e500_double --prefix=${HOME} --enable-checking=yes,rtl --disable-threads --disable-shared --without-long-double-128 --target=powerpc-unknown-eabispe in a combined tree with gcc, binutils, gdb and newlib, the build fails compiling libgcc2: /home/rask/build/gcc-ppc/./gcc/xgcc -B/home/rask/build/gcc-ppc/./gcc/ -nostdinc -B/home/rask/build/gcc-ppc/powerpc-unknown-eabispe/newlib/ -isystem /home/rask/build/gcc-ppc/powerpc-unknown-eabispe/newlib/targ-include -isystem /home/rask/src/gcc/newlib/libc/include -B/home/rask/powerpc-unknown-eabispe/bin/ -B/home/rask/powerpc-unknown-eabispe/lib/ -isystem /home/rask/powerpc-unknown-eabispe/include -isystem /home/rask/powerpc-unknown-eabispe/sys-include -L/home/rask/build/gcc-ppc/./ld -O2 -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -specs=ldblspecs -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../../src/gcc/gcc -I../../../src/gcc/gcc/. -I../../../src/gcc/gcc/../include -I../../../src/gcc/gcc/../libcpp/include -I../../../src/gcc/gcc/../libdecnumber -I../libdecnumber -DL_powitf2 -c ../../../src/gcc/gcc/libgcc2.c -o libgcc/./_powitf2.o ../../../src/gcc/gcc/libgcc2.c: In function '__powitf2': ../../../src/gcc/gcc/libgcc2.c:1735: internal compiler error: in gen_reg_rtx, at emit-rtl.c:770 What is a know good way of doing it? FWIW, I also tried with --target=powerpc-none-linux-gnuspe, which builds libgcc2 fine, but then target libiberty fails because I don't have the header files it needs. -- Rask Ingemann Lambertsen