Re: Cross-compilation broken (was: Re: Linux 2.6.11-rc1)
On Sun, 16 Jan 2005, Sam Ravnborg wrote: > On Sun, Jan 16, 2005 at 10:22:43AM +0100, Geert Uytterhoeven wrote: > > Changing > > > > | NOSTDINC_FLAGS := -nostdinc -isystem $(shell $(CC) > > -print-file-name=include) > > > > to > > > > | NOSTDINC_FLAGS = -nostdinc -isystem $(shell $(CC) > > -print-file-name=include) > > > > fixed it. I guess it picked up the definition for $(CC) before it became > > $(CROSS_COMPILE)gcc. > > Main culprint here is m68k fiddelign with definition of CROSS_COMPILE in > arch/m68k/Makefile. > If I find no better fix I will take your version. M68k isn't the only one. Other archs with builtin automatic support for cross-compilation do it as well: mips, hppa, hppa64, h8300. 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-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: Cross-compilation broken (was: Re: Linux 2.6.11-rc1)
On Sun, Jan 16, 2005 at 10:22:43AM +0100, Geert Uytterhoeven wrote: > Changing > > | NOSTDINC_FLAGS := -nostdinc -isystem $(shell $(CC) -print-file-name=include) > > to > > | NOSTDINC_FLAGS = -nostdinc -isystem $(shell $(CC) -print-file-name=include) > > fixed it. I guess it picked up the definition for $(CC) before it became > $(CROSS_COMPILE)gcc. Main culprint here is m68k fiddelign with definition of CROSS_COMPILE in arch/m68k/Makefile. If I find no better fix I will take your version. Sam - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Cross-compilation broken (was: Re: Linux 2.6.11-rc1)
On Tue, 11 Jan 2005, Linus Torvalds wrote: > Sam Ravnborg: > o kbuild: Use -isystem `gcc --print-file-name=include` This change broke cross-compilation for me. It causes /usr/lib/gcc-lib/i486-linux/3.3.5/include/stdarg.h to be picked up instead of /usr/local/lib/gcc-lib/m68k-linux/2.95.2/include/stdarg.h. Changing | NOSTDINC_FLAGS := -nostdinc -isystem $(shell $(CC) -print-file-name=include) to | NOSTDINC_FLAGS = -nostdinc -isystem $(shell $(CC) -print-file-name=include) fixed it. I guess it picked up the definition for $(CC) before it became $(CROSS_COMPILE)gcc. 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-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/