This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/19438] New: Unable to build cross-gcc to target powerpc-eabi


I downloaded and installed cygwin, version of cygwin1.dll is 1.5.12-1.
I downloaded gcc-3.4.3 sources, gcc-3.4.3.tar.gz, and unpacked it to 
/home/gcc-3.4.3
Then I wanted to build a gcc cross-compiler for target powerpc-eabi (mpc5xx)
I used this to configure:
@ /home/gcc-3.4.3: mkdir obj
@ /home/gcc-3.4.3: cd obj
@ /home/gcc-3.4.3/obj: ../configure --prefix=/usr/local --with-gnu-as --with-gn
u-ld --disable-threads --with-cpu=powerpc --enable-languages=c,c++ --target=pow
erpc-ppc-eabi
I even tried this:
@ /home/gcc-3.4.3/obj: ../configure --prefix=/usr/local --with-gnu-as --with-gn
u-ld --disable-threads --with-cpu=powerpc --enable-languages=c,c++ --target=pow
erpc-eabi

and I issued make:

@ /home/gcc-3.4.3/obj: make

Then I got this error message (in both configure cases)

...
/home/gcc-3.4.3/obj/gcc/xgcc -B/home/gcc-3.4.3/obj/gcc/ -B/usr/local/powerpc-ppc
-eabi/bin/ -B/usr/local/powerpc-ppc-eabi/lib/ -isystem /usr/local/powerpc-ppc-ea
bi/include -isystem /usr/local/powerpc-ppc-eabi/sys-include -O2  -DIN_GCC -DCROS
S_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -W
old-style-definition  -isystem ./include   -g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NE
EDED -Dinhibit_libc -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I.
./intl  -mrelocatable-lib -mno-eabi -mstrict-align -DL_muldi3 -c ../../gcc/libgc
c2.c -o libgcc/./_muldi3.o
as: unrecognized option `-mppc'
make[2]: *** [libgcc/./_muldi3.o] Error 1
make[2]: Leaving directory `/home/gcc-3.4.3/obj/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/home/gcc-3.4.3/obj/gcc'
make: *** [all-gcc] Error 2

which as gives the following: /usr/bin/as
as --version gives the following: 
@ /home/gcc-3.4.3/obj: as --version
GNU assembler 2.15.94 20041229
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
This assembler was configured for a target of `i686-pc-cygwin'.

Remark:
bill's homepage is down so I couldn't read the crossgcc.faq

-- 
           Summary: Unable to build cross-gcc to target powerpc-eabi
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: qty154 at yahoo dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-cygwin
  GCC host triplet: i686-pc-cygwin
GCC target triplet: powerpc-ppc-eabi


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19438


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]