On Tue, 22 Mar 2005, F.Laget wrote:
> I have some errors at the end of compilation of the m68k linux kernel:
>
> m68k-linux-gcc -D__ASSEMBLY__ -D__KERNEL__ -I/home/donan/mvme/linux/include
> -traditional -c head.S -o head.o
> In file included from head.S:265:
> /home/donan/mvme/linux/include/linux/init.h:134: detected recursion whilst
> expanding macro "__inline__"
> /home/donan/mvme/linux/include/linux/init.h:138: detected recursion whilst
> expanding macro "__inline__"
> head.S:3266: warning: extra tokens at end of #endif directive
> make[1]: *** [head.o] Erreur 1
> make[1]: Leaving directory `/home/donan/mvme/linux/arch/m68k/kernel'
> make: *** [_dir_arch/m68k/kernel] Erreur 2
>
> I build the m68k cross compiler with crosstool http://kegel.com/crosstool/ .
> I use the debian default kernel configuration
> http://debian.savoirfairelinux.net/debian/pool/main/k/kernel-image-2.4.27-m68k/kernel-image-2.4.27-mvme16x_2.4.27-3_m68k.deb
> without SCSI and RAID support.
Does this patch help?
--- linux-m68k-2.4.x/arch/m68k/kernel/head.S.orig 2004-04-30
16:35:25.000000000 +0200
+++ linux-m68k-2.4.x/arch/m68k/kernel/head.S 2005-03-24 23:20:20.462308498
+0100
@@ -3263,7 +3263,7 @@ func_start serial_putc,%d0/%d1/%a0/%a1
moveml [EMAIL PROTECTED],%d0-%d7/%a2-%a6
jbra L(serial_putc_done)
2:
-#endif CONFIG_MVME16x
+#endif /* CONFIG_MVME16x */
#ifdef CONFIG_BVME6000
is_not_bvme6000(2f)
Anyway, I guess you're using a fairly recent gcc, which may have
problems with other kernel source files, too.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [EMAIL PROTECTED]
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
-
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html