On Sun, Aug 12, 2012 at 9:19 AM, Agostino Sarubbo <a...@gentoo.org> wrote: > If you try to launch make V=1 from the kernel source directory you will see: > > gcc -Wp,-MD,scripts/mod/.empty.o.d -nostdinc -isystem /usr/lib/gcc/x86_64- > pc-linux-gnu/4.5.3/include -I/usr/src/linux-3.3.8-gentoo/arch/x86/include - > Iarch/x86/include/generated -Iinclude -include /usr/src/linux-3.3.8- > gentoo/include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes > -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function- > declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 - > march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate- > outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 - > DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -pipe -Wno-sign-compare -fno- > asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe- > larger-than=2048 -fno-stack-protector -fomit-frame-pointer -Wdeclaration- > after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack - > DCC_HAVE_ASM_GOTO -D"KBUILD_STR(s)=#s" - > D"KBUILD_BASENAME=KBUILD_STR(empty)" -D"KBUILD_MODNAME=KBUILD_STR(empty)" -c > -o scripts/mod/empty.o scripts/mod/empty.c > > > So it calls gcc directly. > > I see we don't like gcc called directly from the tracker[1], but this is for > packages/ebuild. Should this bug block that tracker or it is invalid? > > > [1]: https://bugs.gentoo.org/show_bug.cgi?id=cc-directly >
Its invalid. Kbuild has its own documented way to do cross compiles and replace out the compiler (granted only gcc works for building the official Linux tree, there has been efforts to use clang and icc but those are not mainlined). -- Doug Goldstein