From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3581 invoked by alias); 21 Nov 2006 11:42:25 -0000 Received: (qmail 3570 invoked by uid 22791); 21 Nov 2006 11:42:24 -0000 X-Spam-Check-By: sourceware.org Received: from dessent.net (HELO dessent.net) (69.60.119.225) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 21 Nov 2006 11:42:19 +0000 Received: from localhost ([127.0.0.1] helo=dessent.net) by dessent.net with esmtp (Exim 4.61) (envelope-from ) id 1GmU0t-0002ny-Ky; Tue, 21 Nov 2006 11:42:07 +0000 Message-ID: <4562E611.2A9BC21C@dessent.net> Date: Tue, 21 Nov 2006 11:42:00 -0000 From: Brian Dessent Reply-To: gcc-help@gcc.gnu.org X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) MIME-Version: 1.0 To: Sebastian Ebenbeck CC: gcc-help@gcc.gnu.org Subject: Re: Cross Compiler Host MinGW Target PowerPC References: <45618A5D.9060302@work-gmbh.de> <456193F9.99DF4C1F@dessent.net> <45619828.55BF5D8E@dessent.net> <4561BDA4.8080002@work-gmbh.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-11/txt/msg00253.txt.bz2 Sebastian Ebenbeck wrote: > now I am using relative paths. The Compile process runs much longer but > fail again. > > Configuration in dir: "/home/seb/build/combined" > Source dir: "/home/seb/combined" > > export srcdir=../../combined > export builddir=. > export prefix=../../bin/ppc > ../../combined/configure --target=powerpc-405-eabi --with-newlib > --disable-shared --disable-libssp --enable-languages=c,c++ > make That looks wrong. You shouldn't set those in the environment, instead use --prefix=c:/foo/bar as argument to configure. Same with srcdir, it should be detected automatically from the configure invocation without needing to be specified, or it can be supplied explicitly with --srcdir, but not in the environment. > In file included from ../../../combined/gcc/libgcc2.c:35: > ./tm.h:5:35: error: config/rs6000/rs6000.h: No such file or directory > ./tm.h:6:28: error: config/dbxelf.h: No such file or directory > ./tm.h:7:27: error: config/elfos.h: No such file or directory > ./tm.h:8:26: error: config/svr4.h: No such file or directory > ./tm.h:9:34: error: config/freebsd-spec.h: No such file or directory > ./tm.h:10:34: error: config/rs6000/sysv4.h: No such file or directory > ./tm.h:11:33: error: config/rs6000/eabi.h: No such file or directory > ./tm.h:12:23: error: defaults.h: No such file or directory This looks like yet another path problem, perhaps relating to srcdir being set in the environment. > This fails because of wrong includes: > -I. -I -I../../../combined/gcc -I../../../combined/gcc/ ... > ^ > There is a "-I" argument without a Path? More path woes. > If I try to compile it without the -I argument: > /home/seb/build/combined/./gcc/xgcc -B/home/seb/build/combined/./gcc/ > -nostdinc -B/home/seb/build/combined/powerpc-405-e > abi/newlib/ -isystem > /home/seb/build/combined/powerpc-405-eabi/newlib/targ-include -isystem > /home/seb/combined/newlib/libc > /include -BC:/msys/home/seb/bin/ppc/powerpc-405-eabi/bin/ > -BC:/msys/home/seb/bin/ppc/powerpc-405-eabi/lib/ -isystem C:/msy > s/home/seb/bin/ppc/powerpc-405-eabi/include -isystem > C:/msys/home/seb/bin/ppc/powerpc-405-eabi/sys-include -O2 -O2 -g -O2 > -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings > -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -i > system ./include -specs=ldblspecs -g -DIN_LIBGCC2 > -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I../../../combined/gcc - > I../../../combined/gcc/ -I../../../combined/gcc/../include -I./../intl > -I../../../combined/gcc/../libcpp/include -mreloca > table-lib -mno-eabi -mstrict-align -DL_muldi3 -c > ../../../combined/gcc/libgcc2.c -o libgcc/./_muldi3.o > > I get the error: > xgcc.exe: _spawnvp: No such file or directory This is even more of a mess, you've got both style paths mixed together: -B/foo/bar and -BC:/foo/bar. > I have taken a look into the Makefile and it seams that "libgcc2.c" is > compiled with a wrong set of arguments. > > I'm usually writing microcontroller software and I am not very familiar > with such big makefiles. > Can anybody help me, Please? It looks like right now you're trying --host=i686-pc-mingw32 --build=i686-pc-mingw32 --target=powerpc-405-eabi I suggest that instead you install Cygwin and use that as host for the toolchain: --host=i686-pc-cygwin --build=i686-pc-cygwin --target=powerpc-405-eabi or if you must have a MinGW hosted tool, do a canadian cross from Cygwin or Linux: --host=i686-pc-mingw32 --build=i686-pc-linux-gnu --target=powerpc-405-eabi If you absolutely have to have to use MinGW for both build and host, then try invoking configure like so: `cd /home/seb/combined && pwd -W`/configure --host=i686-pc-mingw32 \ --build=i686-pc-mingw32 \ --target=powerpc-405-eabi \ --prefix=`cd /home/seb/bin/ppc && pwd -W` \ --with-gcc \ --with-gnu-as \ --with-gnu-ld \ --with-newlib \ --disable-shared \ --disable-libssp \ --enable-languages=c,c++ The `cd /posix/path && pwd -W` is the MSYS idiom for getting a win32 path from a posix path. If you use Cygwin or linux for the build system then you don't have to muck with this because you can just use posix paths everywhere. Brian