How to generate a cross tool for my reqirement?

Michael oldmoonster@gmail.com
Wed Aug 10 13:21:00 GMT 2005


Yann E. MORIN wrote:

>Michael,
>
>Quoting Michael <mikore.li@gmail.com>:
>  
>
>>At the end, I get a new compiler which can successfully compile app
>>such as telnetd, ftpd... when I try to use it to make kernel, it
>>reports
>>........ -c -o init/version.o init/version.c
>>cc1: error: invalid option `short-load-bytes'
>>make: *** [init/version.o] Error 1
>>It seems arm-xscale-linux-gnu-gcc can't support "short-load-bytes"
>>option. Is there any workaround?
>>    
>>
>
>I guess you are using gcc-3.4.x (or above).
>
>So no, there's no workaround: Remove every occurences of -mshort-load-bytes.
>It's been obsoleted in gcc-3.4.x, and replaced by -malignment-traps, or even
>better, remove it entirely, as it is the default now.
>
>Sorry, I have no time to look back for references, but google a bit and you'll
>find them. gcc mailing list might help also.
>
>Regards,
>Yann.
>
>--
>Yann E. MORIN
>Roaming in the world...
>
>  
>
Hi, Yann,

You are right, I am using gcc-3.4.x. After the replacement with 
-malignment-traps, I can compile some modules in kernel-2.4.19.
in addition, I'd like to know, can gcc-3.4.x be used to compile 2.4.x 
kernel? 

Thanks,

Michael

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list