LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   crosscompiling gcc error (http://www.linuxquestions.org/questions/linux-software-2/crosscompiling-gcc-error-336157/)

Alotau 06-22-2005 01:53 PM

crosscompiling gcc error
 
I successfully built a crosscompiler using Crosstool. I am working on a regular old pentium system with some version of Red Hat (I can tell you which version if you tell me how to do it!) and am compiling gcc-3.4.1 to work on a ppc405 (targeting itself). I was able to configure gcc correctly and begin building it via the Makefile created. It chugged along for a while and I let it run as I went home last night, this morning I see it ended with this error:

Code:

as: unrecognized option -mppc
make[1]: *** [crtbegin.o] Error 1
make: *** [all-gcc] Error 2

The last lines output by the make before the error were:

Code:

Applying io_quotes_def          to asm-xtensa/addrspace.h
Applying io_quotes_def          to asm-xtensa/xtensa/xt2000-uart.h

It completed a bunch of lines like this prior to exiting. I can try and provide more information if it is helpful. Any advice on how to fix this problem would be much appreciated! I am not even sure how far in the process this error is, I have a lot of folders and files created by this make, so for all I know I could be close to done. Anyway, thx in advance...

Joey

comprookie2000 06-22-2005 03:11 PM

See if this helps,I see people in my searches using cross-dev.
http://www.cse.unsw.edu.au/~cgray/cr...alpha-xcc.html

Alotau 06-22-2005 04:03 PM

Thanks for the reply, but that site is targeted toward alphas and seems pretty specific about it, unless I am missing something. Any other sites/tips?

comprookie2000 06-22-2005 04:14 PM

Did you see this one;
http://kegel.com/crosstool/

Alotau 06-22-2005 04:39 PM

Thanks again. Crosstool is what I used to get my crosscompiler up. Couldn't have done it without it. Since Crosstool told me everything was OK and I could see the gcc tools it created, I assume that part is fine.

Now just when actually building gcc with those tools, I get the errors listed above. I think the problem must be the way I have configured gcc or something... maybe a flag I need to include?

Joey


All times are GMT -5. The time now is 09:35 PM.