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]

Installing gcc 2.8.1/building a cross compiler


I recently downloaded gcc-2.8.2.tar.gz, gunziped and tared it on my
PC-Pentium II/Linux.  I built a native compiler successfully. But when I
tried to build a cross compiler for target powerpc-sun-linux-gnu, make gives
an error and exits.  I tried other target, m68k-coff, and got the same
error.
 
Here are the commands I used to build the cross compiler:
 
My gcc sources is in /root/gcc-2.8.1 directory
I put the gcc objects in /root/cross-obj directory, the binaries in
/root/cross-cc directory
I mkdir these two directories.
 
Step I: Configuration for the cross compiler
    # cd /root/cross-obj
    # /root/gcc-2.8.1/configure --targer=powerpc-sun-linux-gnu
--prefix=/root/cross-cc
 
   no errors 
 
Step II: Building the cross compiler
     # make
        
         .
         .
       as: unrecognized option '-ppc'
       make: *** [crtbegin.o] Error1
 
 I looked in the file /root/cross-obj/Makefile for '-ppc' and found nothing
wrong.
 
What did I do wrong?
 
Thank you so much.

Tom Tran 
LYSFE/926-9964 
tom.tran@robins.af.mil 

 

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