This is the mail archive of the gcc@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]

GCC Build for Power PC


Hi;

I am trying to build a gcc cross-compiler for PowerPC.

CPU                    :      MPC860 (PowerPC series number)
Manufacturer        :      Motorola
OS                      :      RTLInux 


I have recently downloaded the gcc 3.0 distribution source code from one of the GNU's mirror site. After untar and placing that in to a folder I have given

[akashd@Earth objdir]$ ../gcc-3.0/configure --target=powerpc-motorola --prefix=/home/akashd/CrossCompile/MyLocal

command for configuration. Once Configuration was over, I had given a make. But during build it gives the following error:

if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/home/akashd/CrossCompile/objdir/gcc/xgcc -B/home/akashd/CrossCompile/objdir/gcc
/ -B/home/akashd/CrossCompile/MyLocal/powerpc-motorola/bin/ -B/home/akashd/Cross
Compile/MyLocal/powerpc-motorola/lib/ -isystem /home/akashd/CrossCompile/MyLocal
/powerpc-motorola/include -O2  -DCROSS_COMPILE -DIN_GCC    -W -Wall -Wwrite-stri
ngs -Wstrict-prototypes -Wmissing-prototypes -isystem ./include   -g1  -DIN_LIBG
CC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../gcc-3.0/gcc -I../../
gcc-3.0/gcc/. -I../../gcc-3.0/gcc/config -I../../gcc-3.0/gcc/../include  -fPIC -
mstrict-align -DL_muldi3 -c ../../gcc-3.0/gcc/libgcc2.c -o libgcc/./_muldi3.o
as: unrecognized option `-mppc'
make[2]: *** [libgcc/./_muldi3.o] Error 1
make[2]: Leaving directory `/home/akashd/CrossCompile/objdir/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/home/akashd/CrossCompile/objdir/gcc'
make: *** [all-gcc] Error 2
[akashd@Earth objdir]$


Other softwares installed on the system are:

OS          :     Linux Red Hat 7.0

gcc         :     2.96
                        gcc -v gives out put as:
                            Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
                            gcc version 2.96 20000731 (Red Hat Linux 7.0)

make        :    GNU Make version 3.79.1
                        make -v gives output as:
                            GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
                            Built for i386-redhat-linux-gnu
                            Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000 Free Software Foundation, Inc.
                            This is free software; see the source for copying conditions.
                            There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

                            Report bugs to <bug-make@gnu.org>.

as          :      GNU assembler version 2.10.90
                        as -v gives output as:
                            GNU assembler version 2.10.90 (i386-redhat-linux) using BFD version 2.10.0.18
      

Please let us know how we can resolve this problem. It would be  a great help.

I am attaching the detailed log file also for your reference in case it helps. In case, I need to contact someone else in this regard then please let me know the mail id of contact person.

 

Thanks & Regards,

Akash Deep 

gcclog.zip


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