OESF Portables Forum

Everything Else => Zaurus - Everything Development => Distros, Development, and Model Specific Forums => Archived Forums => Linux Applications => Topic started by: Joshp on March 17, 2004, 12:12:33 pm

Title: Cross compile error
Post by: Joshp on March 17, 2004, 12:12:33 pm
Am trying to complie the jffs2 mondule for the 2.4.18 sharp kernel.  And I keep getting:
make -C /root/zaurus_kernel/linux SUBDIRS=/root/zaurus_kernel/mtd/kernel modules
make[1]: Entering directory `/root/zaurus_kernel/linux\'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include scripts/split-include.c
scripts/split-include include/linux/autoconf.h include/config
scripts/split-include: scripts/split-include: cannot execute binary file
make[1]: *** [include/config/MARKER] Error 126
make[1]: Leaving directory `/root/zaurus_kernel/linux\'
make: *** [all] Error 2

Any Ideas.

JP
Title: Cross compile error
Post by: lardman on March 18, 2004, 07:35:40 am
scripts/split-include looks like it needs to be executable on x86 and has probably been cross-compiled.

Either: work out how to specify native- and cross-gcc (it\'s possible I think though the names are probably different), or just compile split-include with the native x86 compiler and try again.


Si
Title: Cross compile error
Post by: Joshp on March 18, 2004, 05:58:14 pm
Thanks lardman works great.