From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11973 invoked by alias); 16 Sep 2005 14:21:30 -0000 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 Received: (qmail 11937 invoked by uid 22791); 16 Sep 2005 14:21:23 -0000 Received: from gateway.reims.net (HELO smtpgate.saa-cons.co.uk) (194.75.234.2) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 16 Sep 2005 14:21:22 +0000 Received: (from uucp@localhost) by smtpgate.saa-cons.co.uk (8.8.8/8.8.8) id PAA04135 for ; Fri, 16 Sep 2005 15:24:56 +0100 (BST) (envelope-from James.Parker@saaconsultants.com) Received: from domino-mail.saa-cons.co.uk(10.10.10.4) by smtpgate.saa-cons.co.uk via smap (V2.1) id xma004131; Fri, 16 Sep 05 15:24:32 +0100 To: gcc-help@gcc.gnu.org Subject: installing GCC 3.4.4 on cygwin targeting AIX-4.3.3 MIME-Version: 1.0 Message-ID: From: James.Parker@saaconsultants.com Date: Fri, 16 Sep 2005 14:21:00 -0000 Content-Type: text/plain; charset="US-ASCII" X-SW-Source: 2005-09/txt/msg00099.txt.bz2 Hi all, I've been attempting to build the GCC 3.4.4 in my cygwin environment to target the UNIX platform rs6000-ibm-aix4.3.3.0 I have built binutils (20050610-1) sucessfully but building GCC is failing. Here's some of my environment: export host=i686-pc-cygwin export build=i686-pc-cygwin export target=rs6000-ibm-aix4.3.3.0 export prefix=/usr/local/cross-tools export PATH=$PATH:$prefix/bin I made binutils like this: > configure --host=$host --build=$build --target=$target --prefix=$prefix --enable-threads=aix > make > make install >>> everything up to here seems to work fine. I have $prefix/bin/$target- files installed, e.g. rs6000-ibm-aix4.3.3.0-as. My path includes $prefix/bin so these new commands are now all on the path. Now I attempt to make GCC > configure --host=$host --build=$build --target=$target --prefix=$prefix --enable-threads=aix --with-sysroot=/cygdrive/r > make NOTE: I have the root of my AIX system mapped to R: on my windoze box i.e. afa Cygwin is concerned, /cygdrive/r point to the root of my UNIX box. I get the following failure: /usr/src/BUILD/gcc/gcc/xgcc -B/usr/src/BUILD/gcc/gcc/ -B/usr/local/cross-tools/rs6000-ibm-aix4.3.3.0/bin/ -B/usr/local/cross-tools/rs6000-ibm-aix4.3.3.0/lib/ -isystem /usr/local/cross-tools/rs6000-ibm-aix4.3.3.0/include -isystem /usr/local/cross-tools/rs6000-ibm-aix4.3.3.0/sys-include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I/usr/src/gcc-3.4.4/gcc -I/usr/src/gcc-3.4.4/gcc/. -I/usr/src/gcc-3.4.4/gcc/../include -mcpu=power -DL_divdi3 -c /usr/src/gcc-3.4.4/gcc/libgcc2.c -fexceptions -fnon-call-exceptions -o libgcc/power/_divdi3.o /cygdrive/c/DOCUME~1/jamesp/LOCALS~1/Temp/ccTJkgP2.s: Assembler messages: /cygdrive/c/DOCUME~1/jamesp/LOCALS~1/Temp/ccTJkgP2.s:822: Error: Unrecognized opcode: `mfcr' make[2]: *** [libgcc/power/_divdi3.o] Error 1 make[2]: Leaving directory `/usr/src/BUILD/gcc/gcc' make[1]: *** [stmp-multilib] Error 2 make[1]: Leaving directory `/usr/src/BUILD/gcc/gcc' make: *** [all-gcc] Error 2 It looks like an assembler error, how do I know if my make script is using correct assembler? what is xgcc? (is that cross-gcc? i.e. cross compiler gcc?) Maybe this helps: $ /usr/src/BUILD/gcc/gcc/xgcc -v Using built-in specs. Configured with: /usr/src/gcc-3.4.4/configure --host=i686-pc-cygwin --build=i686 -pc-cygwin --target=rs6000-ibm-aix4.3.3.0 --prefix=/usr/local/cross-tools --enab le-threads=aix --with-sysroot=/cygdrive/r Thread model: aix gcc version 3.4.4 Any help would be greatly appreciated! Thanks.