From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7772 invoked by alias); 30 Mar 2008 20:20:30 -0000 Received: (qmail 7556 invoked by uid 48); 30 Mar 2008 20:19:43 -0000 Date: Sun, 30 Mar 2008 20:20:00 -0000 Message-ID: <20080330201943.7555.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libstdc++/35679] Cannot build cross compiler for i686-pc-linux-gnu: configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-03/txt/msg02468.txt.bz2 ------- Comment #3 from pinskia at gcc dot gnu dot org 2008-03-30 20:19 ------- Using a sysroot or setting --prefix for both the newlib build and the GCC build is the easiest way of getting a cross build to work. Anyways here are the options I use to build a cross build for spu: stage1 binutils: ../src/configure --target=spu-elf --prefix=${HOME}/gcc-spu gcc: --prefix=${HOME}/gcc-spu --enable-languages=c --with-mpfr=/usr/local --with-newlib --without-headers --target=spu-elf newlib: ../src/configure --target=spu-elf --prefix=${HOME}/gcc-spu stage2 gcc: --prefix=${HOME}/gcc-spu --enable-languages=c,obj-c++ --with-mpfr=/usr/local --with-newlib --target=spu-elf --with-headers This works without changing any source or headers too. Thanks, Andrew Pinski -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|blocker |normal Status|UNCONFIRMED |RESOLVED GCC target triplet|i686-pc-linux-gnu |i686-emc-elf Resolution| |WORKSFORME http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35679