Author Topic: Cross compile error  (Read 4034 times)

Joshp

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
    • http://
Cross compile error
« 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

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Cross compile error
« Reply #1 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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Joshp

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
    • http://
Cross compile error
« Reply #2 on: March 18, 2004, 05:58:14 pm »
Thanks lardman works great.