vmware-modules-1.0.0.24 and vmware-modules-1.0.0.23(-1) ebuild fails to compile on gentoo-sources-2.6.30-r1 while attempting to build the vmmon module. Output at the terminal: * Preparing vmmon module make -j2 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= auto-build VMWARE_VER=VME_V65 KERNEL_DIR=/usr/src/linux KBUILD_OUTPUT=/lib/modules/2.6.30-gentoo-r1/build Using 2.6.x kernel build system. make -C /lib/modules/2.6.30-gentoo-r1/build SUBDIRS=$PWD SRCROOT=$PWD/. modules make[1]: Siirrytään hakemistoon "/usr/src/linux-2.6.30-gentoo-r1" make[1]: varoitus: työpalvelin ei käytettävissä: käytetään -j1. Lisää "+" ylemmän tason make-sääntöön. CC [M] /var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmmon-only/linux/driver.o CC [M] /var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmmon-only/linux/driverLog.o CC [M] /var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmmon-only/linux/hostif.o /var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmmon-only/linux/hostif.c: Funktio ”HostIF_APICInit”: /var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmmon-only/linux/hostif.c:2594: virhe: funktio ”__fix_to_virt” esitelty implisiittisesti /var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmmon-only/linux/hostif.c:2594: virhe: ”FIX_APIC_BASE” esittelemättä (ensimmäinen käyttökerta tässä funktiossa) /var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmmon-only/linux/hostif.c:2594: virhe: (Jokaisesta esittelemättömästä tunnisteesta ilmoitetaan vain /var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmmon-only/linux/hostif.c:2594: virhe: ensimmäinen käyttökerta kussakin funktiossa.) /var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmmon-only/linux/hostif.c: Funktio ”HostIF_APIC_ID”: /var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmmon-only/linux/hostif.c:2639: virhe: ”FIX_APIC_BASE” esittelemättä (ensimmäinen käyttökerta tässä funktiossa) make[3]: *** [/var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmmon-only/linux/hostif.o] Virhe 1 make[2]: *** [_module_/var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmmon-only] Virhe 2 make[1]: *** [sub-make] Virhe 2 make[1]: Poistutaan hakemistosta "/usr/src/linux-2.6.30-gentoo-r1" make: *** [vmmon.ko] Virhe 2 * * ERROR: app-emulation/vmware-modules-1.0.0.24 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3662: Called linux-mod_src_compile * environment, line 2820: Called die * The specific snippet of code: * eval "emake HOSTCC=\"$(tc-getBUILD_CC)\" CROSS_COMPILE=${CHOST}- LDFLAGS=\"$(get_abi_LDFLAGS)\" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}"; * The die message: * Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= auto-build VMWARE_VER=VME_V65 KERNEL_DIR=/usr/src/linux KBUILD_OUTPUT=/lib/modules/2.6.30-gentoo-r1/build * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/temp/environment'. * >>> Failed to emerge app-emulation/vmware-modules-1.0.0.24, Log file: >>> '/var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/temp/build.log' * Messages for package app-emulation/vmware-modules-1.0.0.24: * * ERROR: app-emulation/vmware-modules-1.0.0.24 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3662: Called linux-mod_src_compile * environment, line 2820: Called die * The specific snippet of code: * eval "emake HOSTCC=\"$(tc-getBUILD_CC)\" CROSS_COMPILE=${CHOST}- LDFLAGS=\"$(get_abi_LDFLAGS)\" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}"; * The die message: * Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= auto-build VMWARE_VER=VME_V65 KERNEL_DIR=/usr/src/linux KBUILD_OUTPUT=/lib/modules/2.6.30-gentoo-r1/build * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/temp/environment'. * Reproducible: Always Steps to Reproduce: 1. emerge =gentoo-sources-2.6.30 or -r1 2. emerge =vmware-modules-1.0.0.23 or -r1 or -1.0.0.24 Actual Results: compile crash with error report Reproducible: Always The failure also shows same at the 2.6.30-gentoo. Gentoo-sources. Have tried any patch avaible and they dont seem to help any. In gentoo-sources version 2.6.29-r4 vmware-modules-1.0.0.24 compiles ok Have checked my kernel-config and didnt find any option what could cause it according apic settings. emerge --info Portage 2.1.6.13 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.10.1-r0, 2.6.30-gentoo-r1 x86_64) ================================================================= System uname: Linux-2.6.30-gentoo-r1-x86_64-AMD_Athlon-tm-_64_Processor_3000+-with-gentoo-2.0.1 Timestamp of tree: Wed, 17 Jun 2009 16:30:03 +0000 app-shells/bash: 4.0_p24 dev-java/java-config: 1.3.7-r1, 2.1.8-r1 dev-lang/python: 2.4.4-r13, 2.5.4-r2, 2.6.2-r1 dev-python/pycrypto: 2.0.1-r6 dev-util/cmake: 2.6.4 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.4.3-r3 sys-apps/sandbox: 2.0 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.29 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=athlon64 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ " LC_ALL="fi_FI.utf8" LDFLAGS="-Wl,-O1" LINGUAS="fi en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/usr/portage/media-sound/gnomad/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/finnish /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X XvMCNVIDIA a52 aac aalib acc acl acpi aim alsa amd amd64 amr arts audiofile berkdb bluetooth branding bzip2 cairo canna cdb cdinstall cdparanoia cdr cli cpudetection cracklib crypt cups dbus dri dvb dvd dvdnav dvdr dvdread eds emboss emul-linux-x86 encode esd evo fam ffmpeg firefox flac fortran ftp gdbm geoip gif gimpprint gphoto2 gpm gtk gtk2 hal iconv imagemagick imlib ipv6 isdnlog java javascript jpeg jpeg2k kde ldap libg++ libnotify lm_sensors mad midi mikmod mime mmap mmx mmxext mp3 mpeg msn mtp mudflap multilib ncurses njb nls npt nptl nptlonly nsplugin obex ogg openal opengl openmp openssh oss pam pcre pdf perl png posix ppds pppd python qt qt3 qt3support qt4 quicktime readline reflection ruby samba sdl session slp sox spell spl sse sse2 ssl startup-notification svg sysfs tcl tcltk tcpd tiff tk tmispell truetype type1 unicode usb utempter v4l2 vorbis wxwindows xine xml xorg xpm xulrunner xv xvid zip zlib" ALSA_CARDS="intel8x0 usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" DVB_CARDS="usb-vp7045" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fi en" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Could you check if you have enabled: CONFIG_X86_LOCAL_APIC=y CONFIG_X86_IO_APIC=y Thanks, Vadim.
(In reply to comment #1) > Could you check if you have enabled: > CONFIG_X86_LOCAL_APIC=y > CONFIG_X86_IO_APIC=y > > Thanks, > Vadim. > Yep they are on. Have checked several times from old configs and latest config
Same error here. make -j1 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= auto-build VMWARE_VER=VME_V65 KERNEL_DIR=/usr/src/linux KBUILD_OUTPUT=/lib/modules/2.6.30-gentoo-r2/build Using 2.6.x kernel build system. make -C /lib/modules/2.6.30-gentoo-r2/build SUBDIRS=$PWD SRCROOT=$PWD/. modules make[1]: Entering directory `/usr/src/linux-2.6.30-gentoo-r2' CC [M] /var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmmon-only/linux/driver.o CC [M] /var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmmon-only/linux/driverLog.o CC [M] /var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmmon-only/linux/hostif.o /var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmmon-only/linux/hostif.c: In function 'HostIF_APICInit': /var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmmon-only/linux/hostif.c:2594: error: implicit declaration of function '__fix_to_virt' /var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmmon-only/linux/hostif.c:2594: error: 'FIX_APIC_BASE' undeclared (first use in this function) /var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmmon-only/linux/hostif.c:2594: error: (Each undeclared identifier is reported only once /var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmmon-only/linux/hostif.c:2594: error: for each function it appears in.) /var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmmon-only/linux/hostif.c: In function 'HostIF_APIC_ID': /var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmmon-only/linux/hostif.c:2639: error: 'FIX_APIC_BASE' undeclared (first use in this function) make[3]: *** [/var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmmon-only/linux/hostif.o] Error 1 make[2]: *** [_module_/var/tmp/portage/app-emulation/vmware-modules-1.0.0.24/work/vmmon-only] Error 2 make[1]: *** [sub-make] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.30-gentoo-r2' make: *** [vmmon.ko] Error 2 * * ERROR: app-emulation/vmware-modules-1.0.0.24 failed. # emerge --info Portage 2.2_rc33 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r2 x86_64) ================================================================= System uname: Linux-2.6.30-gentoo-r2-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-gentoo-1.12.11.1 Timestamp of tree: Mon, 06 Jul 2009 17:15:02 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p39 dev-java/java-config: 2.1.8-r1 dev-lang/python: 2.6.2-r1 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.4 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer -mfpmath=sse" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer -mfpmath=sse " DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://mirror.mcs.anl.gov/pub/gentoo/ " LDFLAGS="-Wl,-O1" LINGUAS="en_US en" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="3dnow 3dnowext 7zip X a52 aac aalib accessibility acl acpi alsa amd64 amr amrnb amrwb arts avi berkdb bluetooth branding bzip2 cairo cddb cdparanoia cdr cli cracklib crypt cups dbus dga dri dts dv dvd dvdread emboss enca encode esd evo fam ffmpeg flac fortran gdbm gif gpm gtk hal iconv iproute2 ipv6 isdnlog java java6 jpeg jpeg2k kde kdehiddenvisibility lame libnotify live lm_sensors loop-aes lzo mad md5sum midi mikmod mjpeg mmx mmxext mng mp2 mp3 mp4live mpeg mplayer mudflap multilib musepack mysql ncurses nemesi network nls nptl nptlonly nsplugin ogg openexr opengl openmp pam pcre pdf perl png postgres ppds python qt3 qt3support qt4 quicktime rar readline reflection samba sdl session slang slp spell spl srt sse sse2 ssl startup-notification subversion svg sysfs tcpd theora tiff truetype unicode urandom usb v4l v4l2 vcd vorbis webkit wmf x264 xanim xine xinerama xinetd xml xorg xpm xulrunner xv xvid xvmc zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en" NETBEANS_MODULES="apisupport groovy gsf harness ide j2ee java nb php visualweb websvccommon xml" USERLAND="GNU" VIDEO_CARDS="radeon vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY Thanks, George
Could you attach your kernel config?
Created attachment 196958 [details] Kernel Config from George's machine Attached Kernel Config as per your request. Thanks, George
Could you enable SMP? See: https://bugs.gentoo.org/show_bug.cgi?id=274173#c10
(In reply to comment #6) > Could you enable SMP? > See: https://bugs.gentoo.org/show_bug.cgi?id=274173#c10 > Well that worked. I currently only have a single core athlon64, so I was never compelled to enable that. Thanks, George
Kimmo, Does enabling "SMP" work for you?
(In reply to comment #8) > Kimmo, > > Does enabling "SMP" work for you? > It does.
Today I was hit by the same error after upgrading to the new stable 2.6.30-r4 gentoo-sources kernel. And indeed enabling SMP on my single-core AMD64 box fixed it: === $ cat /usr/src/linux/.config | grep SMP CONFIG_USE_GENERIC_SMP_HELPERS=y CONFIG_X86_64_SMP=y CONFIG_SMP=y CONFIG_PM_SLEEP_SMP=y ===
I have the same problem with 2.6.30-r6 and vmware-modules-1.0.0.25
(In reply to comment #10) > Today I was hit by the same error after upgrading to the new stable 2.6.30-r4 > gentoo-sources kernel. > > And indeed enabling SMP on my single-core AMD64 box fixed it: The problem is VMWare, not the kernel. So, instead of compiling a SMP kernel, patch like the following can be suggested.
Created attachment 210434 [details, diff] VMWare modules patch, compiles and works on non-SMP kernel 2.6.30-gentoo-r5
*** Bug 299930 has been marked as a duplicate of this bug. ***
Well that was dumb. You marked the bug as fixed without the patch making it into portage, so lucky people like me get to waste an hour or two two months later figuring out wtf went wrong with vmware-modules. Don't _ever_ mark a bug like this fixed without the patch making it into portage. That's not your job. Let the Gentoo Developers do it.
The problem is still present in 1.0.0.25 and 1.0.0.25-r1.
Adding vadimk@gentoo.org to the CC list, since he's apparently the maintainer.
03 May 2010; Vadim Kuznetsov <vadimk@gentoo.org> vmware-modules-1.0.0.25-r1.ebuild, vmware-modules-1.0.0.26.ebuild, +files/apic.patch: Bugs 274529, 317583 Thanks to Mikhail Zolotaryov for the patch.
This problem was arisen in 3.1.6 kernel and >=vmware-modules-238