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

Cross Compile Gcc


Hi everyone,



I have this very peculiar error when I try to make gcc for cross compilation with target a powerpc on my Ubuntu 7.0.4 box. I keep getting the error:



make[2]: powerpc-linux-ar: Command not found

make[2]: *** [libgcc.a] Error 127

make[2]: Leaving directory `/opt/powerpc/build-gcc/gcc'

make[1]: *** [stmp-multilib] Error 2

make[1]: Leaving directory `/opt/powerpc/build-gcc/gcc'

make: *** [all-gcc] Error 2



The thing is that I have already build binutils 2.16 and 2.17 and I have tried with gcc 4.1.0 and 4.1.2 (and  some older versions as well, 3.3.2 etc).



I configure binutils with the command:



/home/idipous/Desktop/binutils-2.16/configure --target=powerpc-linux --prefix=/opt/powerpc 



and 



sudo make all install



and then I export  the path with the command:



export PATH=$PATH:/opt/powerpc/bin



I configure gcc with the command:



sudo /home/idipous/Desktop/gcc-4.1.0/configure --target=powerpc-linux --prefix=/opt/powerpc/ --disable-shared --disable-threads --enable-languages=c --with-newlib 



and then 



sudo make all-gcc install-gcc



This error I expected to have it in case I forgot to export the path in which the powerpc-linux-ar was in. But this is in the /opt/powerpc/bin.



It is driving me nuts. With older versions of gcc I have the same error with powerpc-linux-ranlib.



Any ideas?

Thanks in advance

Andreas















		
___________________________________________________________ 
Now you can scan emails quickly with a reading pane. Get the new Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html


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