linux-2.6.6 kernel make error: fp cannot be used in asm here

Dan Kegel dank@kegel.com
Fri Sep 3 04:43:00 GMT 2004


Gao Zhan wrote:
> I've built cross compiler for ARM target on
> Cygwin/Windows XP with crosstool-0.28-rc34:
>   binutils-2.15, linux-2.6.6 headers, glibc-2.3.2, and
> gcc-3.4.1. I try to compile linux-2.6.6 kernel as
> "make ARCH=arm
> CROSS_COMPILE=arm-unknown-linux-gnu- lpd7a400_defconfig
> zImage"   
>  
> After smoothing away error
>     1) error: invalid option 'load-short-bytes' 

I think linux-2.6.8 fixes this

>     2) Error: use of old and new-style options to set
> FPU type

I recall seeing a workaround, but not a real fix yet

>     3) Can't find elf.h (got rid of this error by
> installing libelf)

Bravo :-)

> I encountered another error that I couldn't find an
> answer on the web.
>  
> 
>>  CC      arch/arm/kernel/fiq.o
>>arch/arm/kernel/fiq.c: In function `set_fiq_regs':
>>arch/arm/kernel/fiq.c:126: error: fp cannot be used
>> in asm here

That error comes from gcc/gcc/global.c.  I get the
impression the code in fiq.c is touching the frame pointer
when it shouldn't?  You probably need to ask the arm-linux people.
And you might want to try using an older gcc; 3.3.4 might be
worth a shot.
- Dan


-- 
My technical stuff: http://kegel.com
My politics: see http://www.misleader.org for examples of why I'm for regime change

------
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