I know you already added this to the overlay, but it is very important to move it into portage, since if you have several instances of the kernel, you get the build wrong. This is opened in order you remember this issue... :)
Hi Alon, I think you might have an old eclass lying around in an overlay that's causing you problems. If you look in /usr/portage/eclass/vmware-mod.eclass, you should see on the line that reads BUILD_TARGETS="..." that there is already a KERNEL_DIR in there, and that it gets it's location from the linux-mod eclass. So there isn't much more I can do about this I'm afraid. I'm going to mark it as invalid simply because it isn't really a bug in Gentoo, but feel free to continue to post to the bug if you want help tracking down the issue, or to reopen it if there is some deeper problem involved... 5:)
Hi! Thanks for quick response. It does not work without my patch... >>> Compiling source in /var/tmp/portage/vmware-modules-1.0.0.15/work ... * Preparing vmmon module Using standalone build system. In file included from /usr/include/asm/fixmap.h:27, from /usr/include/asm/pgtable.h:17, from /usr/include/linux/mm.h:38, from .././include/compat_page.h:5, from .././linux/hostif.c:18: /usr/include/asm/acpi.h:31:28: error: acpi/pdc_intel.h: No such file or directory In file included from /usr/include/linux/irq.h:23, from /usr/include/asm/hardirq.h:6, from /usr/include/linux/hardirq.h:7, from /usr/include/linux/interrupt.h:11, from .././linux/driver.c:20: /usr/include/asm/irq.h:16:25: error: irq_vectors.h: No such file or directory In file included from /usr/include/asm/hardirq.h:6, from /usr/include/linux/hardirq.h:7, from /usr/include/linux/interrupt.h:11, from .././linux/driver.c:20: /usr/include/linux/irq.h:86: error: ‘NR_IRQS’ undeclared here (not in a function) In file included from /usr/include/linux/irq.h:95, from /usr/include/asm/hardirq.h:6, from /usr/include/linux/hardirq.h:7, from /usr/include/linux/interrupt.h:11, from .././linux/driver.c:20: /usr/include/asm/hw_irq.h:30: error: ‘NR_IRQ_VECTORS’ undeclared here (not in a function) In file included from /usr/include/linux/irq.h:23, from /usr/include/asm/hardirq.h:6, from /usr/include/linux/hardirq.h:7, from /usr/include/linux/interrupt.h:11, from /usr/include/linux/rtc.h:102, from /usr/include/linux/mc146818rtc.h:15, from .././linux/hostif.c:44: /usr/include/asm/irq.h:16:25: error: irq_vectors.h: No such file or directory In file included from /usr/include/asm/hardirq.h:6, from /usr/include/linux/hardirq.h:7, from /usr/include/linux/interrupt.h:11, from /usr/include/linux/rtc.h:102, from /usr/include/linux/mc146818rtc.h:15, from .././linux/hostif.c:44: /usr/include/linux/irq.h:86: error: ‘NR_IRQS’ undeclared here (not in a function) In file included from /usr/include/linux/irq.h:95, from /usr/include/asm/hardirq.h:6, from /usr/include/linux/hardirq.h:7, from /usr/include/linux/interrupt.h:11, from /usr/include/linux/rtc.h:102, from /usr/include/linux/mc146818rtc.h:15, from .././linux/hostif.c:44: /usr/include/asm/hw_irq.h:30: error: ‘NR_IRQ_VECTORS’ undeclared here (not in a function) In file included from .././linux/driver.h:20, from .././linux/hostif.c:57: .././include/compat_wait.h:60: error: conflicting types for ‘poll_initwait’ /usr/include/linux/poll.h:62: error: previous declaration of ‘poll_initwait’ was here In file included from /usr/include/asm/fixmap.h:27, from /usr/include/asm/pgtable.h:17, from /usr/include/linux/mm.h:38, from /usr/include/linux/poll.h:11, from .././linux/driver.c:25: /usr/include/asm/acpi.h:31:28: error: acpi/pdc_intel.h: No such file or directory In file included from .././linux/driver.h:20, from .././linux/driver.c:49: .././include/compat_wait.h:60: error: conflicting types for ‘poll_initwait’ /usr/include/linux/poll.h:62: error: previous declaration of ‘poll_initwait’ was here .././linux/hostif.c: In function ‘HostIF_SemaphoreWait’: .././linux/hostif.c:2793: warning: passing argument 1 of ‘poll_freewait’ from incompatible pointer type .././linux/driver.c:145: warning: initialization from incompatible pointer type .././linux/driver.c:149: warning: initialization from incompatible pointer type make[2]: *** [hostif.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [driver.o] Error 1 make[1]: *** [driver] Error 2 make: *** [auto-build] Error 2 !!! ERROR: app-emulation/vmware-modules-1.0.0.15 failed. Call stack: ebuild.sh, line 1546: Called dyn_compile ebuild.sh, line 937: Called src_compile ebuild.sh, line 1255: Called linux-mod_src_compile linux-mod.eclass, line 469: Called die !!! Unable to make auto-build VMWARE_VER=VME_V55 KERNEL_DIR=/usr/src/linux-2.6.18-alon/ KBUILD_OUTPUT=/usr/src/linux-2.6.18-alon/. !!! If you need support, post the topmost build error, and the call stack if relevant.
Created attachment 97799 [details, diff] 000_all_makefile-include-directory.patch
Ah, yeah, fair enough. Sorry about that, I had thought I'd pushed the altered patch over to the main tree. Just pushed the fix into the tree, please check the CVS in a couple of hours and let me know if that fixes it. Thanks again for the report! 5:)