Summary: | [PATCH] app-emulation/vmware-modules-1.0.0.25-r1: compile error with gentoo-sources-2.6.30+ | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Kimmo Huoso <sleijeri> |
Component: | New packages | Assignee: | Gentoo VMWare Bug Squashers [disabled] <vmware+disabled> |
Status: | RESOLVED TEST-REQUEST | ||
Severity: | normal | CC: | ab4bd, m.debruijne, mattst88, openhs, vadimk, yrusinov |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Kernel Config from George's machine
VMWare modules patch, compiles and works on non-SMP kernel 2.6.30-gentoo-r5 |
Description
Kimmo Huoso
2009-06-17 17:05:18 UTC
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 |