cross-compiler problems
Hi.
I'm having problems compiling custom kernels for the m68k machines using
an i386 box.Or any m68k kernel for that matter.
Followed the direction for making a cross compiler from this link:
http://penguinppc.org/embedded/cross-compiling/
I downloaded the latest gcc and binutils as instructed. And everything
seemed to work. Except that the cross compiler fails to build a kernel.
Here's the last few lines of output after doing a make vmlinux from the
top of the kernel source tree.
make -C scsi
make[2]: Entering directory `/usr/src/kernel-source-2.4.14/drivers/scsi'
make all_targets
make[3]: Entering directory `/usr/src/kernel-source-2.4.14/drivers/scsi'
m68k-linux-gcc -D__KERNEL__ -I/usr/src/kernel-source-2.4.14/include
-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -pipe -fno-strength-reduce -ffixed-a2
-c -o scsi_merge.o scsi_merge.c
scsi_merge.c: In function `__init_io':
scsi_merge.c:946: structure has no member named `page'
make[3]: *** [scsi_merge.o] Error 1
make[3]: Leaving directory `/usr/src/kernel-source-2.4.14/drivers/scsi'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/kernel-source-2.4.14/drivers/scsi'
make[1]: *** [_subdir_scsi] Error 2
make[1]: Leaving directory `/usr/src/kernel-source-2.4.14/drivers'
make: *** [_dir_drivers] Error 2
I substituted m68k-linux for powerpc-linux as instructed. And I used the
source-2.4.14 from the debian package kernel-source-2.4.14. And also
applied the m68k/patches/2.4.14/ which I also downloaded from Debian.
What's going on? Any suggestions?
Thanks,
Hank
Reply to: