[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Help cross-compiling kernel from x86

I am trying to cross-compile Sharp's kernel for the Zaurus, and the build
fails here:

arm-linux-ld  -r -o sa1100.o generic.o irq.o dma-sa1100.o collie.o m62332.o collie_battery.o collie_led.o collie_buzzer.o collie_apm.o power.o suspend.o
arm-linux-ld: ERROR: suspend.o uses hardware FP, whereas sa1100.o uses software FP
File format not recognized: failed to merge target specific data of file suspend.o

This makes no sense to me, since ld seems to be complaining about software FP
in sa1100.o, which doesn't even exist yet (it is the output).  Most of the
objects being linked were compiled like this:

arm-linux-gcc -D__KERNEL__ -I/space/tmp/mdz/zaurus/debian/kernel/linux-sharp/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2  -fno-strict-aliasing -fno-common -pipe -mapcs-32 -march=armv4 -mtune=strongarm1100 -mshort-load-bytes -msoft-float    -c -o power.o power.c

while suspend.o came from assembler:

arm-linux-gcc -D__ASSEMBLY__ -D__KERNEL__ -I/space/tmp/mdz/zaurus/debian/kernel/linux-sharp/include -mapcs-32 -march=armv4 -mno-fpu   -c -o suspend.o suspend.S

I am using the source code and kernel config that were supplied by Sharp, so I
assume that this was successfully built with some combination of tools,
probably cross-compiled.

I am using these:

ii  gcc-arm-linux  3.1-1          The GNU C compiler as cross compiler for arm
ii  binutils-arm-l  Binary utilities for cross-developing for ar

created via toolchain-source, with libraries and headers from woody.

 - mdz

To UNSUBSCRIBE, email to debian-arm-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: