After emerging vmware-workstation on my ~amd64 system, /opt/vmware/workstation/bin/vmware-config.pl fails with the error message: [...] Building the vmmon module. Building for VMware Workstation 5.5.x. Using 2.6.x kernel build system. make: Entering directory `/tmp/vmware-config1/vmmon-only' Makefile:127: *** Inappropriate build environment: you wanted to use gcc version while kernel attempts to use gcc version 4.1.1. Makefile:129: *** For proper build you'll have to replace /usr/bin/gcc with symbolic link to . Stop. make: Leaving directory `/tmp/vmware-config1/vmmon-only' Unable to build the vmmon module. Here is the output of "emerge --info": Gentoo Base System version 1.12.1 Portage 2.1.1_pre3-r1 (default-linux/amd64/2006.0, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.17-gentoo-r3 x86_64) ================================================================= System uname: 2.6.17-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3000+ app-admin/eselect-compiler: 2.0.0_rc2-r1 dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.17 sys-devel/gcc-config: 2.0.0_rc1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.16 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe -frename-registers -fweb" 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/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-march=k8 -O2 -pipe -frename-registers -fweb" DISTDIR="/usr/local/portage/distfiles" FEATURES="autoconfig buildpkg collision-protect distlocks metadata-transfer multilib-strict parallel-fetch sandbox sfperms strict usersandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_US.ISO-8859-1" LDFLAGS="-Wl,--as-needed" LINGUAS="en pt_BR fr de" MAKEOPTS="-j2" PKGDIR="/usr/local/portage/packages.amd64" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/small/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 3dnowex X Xaw3d a52 aac aalib alsa avi berkdb bitmap-fonts bzip2 cdr cli crypt cups divx4linux djvu dlloader dri dts dvd dvdr dvdread emacs emboss encode fam fbcon ffmpeg firefox foomaticdb gd gif gnome gpm gtk gtk2 imagemagick imap imlib isdnlog javascript jpeg kde kdeenablefinal libcaca lirc lzw lzw-tiff mad matroska mbox mmx2 mp3 mpeg ncurses nls nptl nptlonly nsplugin nvidia ogg opengl pam pcre pdf pdflib plotutils png ppds pppd python qt qt3 readline reflection samba sdl session spell spl ssl svg tcpd tetex truetype truetype-fonts type1-fonts usb v4l v4l2 vorbis wmf xface xml xml2 xorg xpm xv xvmc zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_en linguas_pt_BR linguas_fr linguas_de lirc_devices_pixelview_pro userland_GNU video_cards_nv video_cards_v4l video_cards_vesa" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
It looks like your GCC configuration is invalid. Try running eselect again to set it. It isn't a bug in VMware. If anything, it would be a bug in eselect-compiler.
I have checked what gcc I had installed. There were 2 versions: 3.4.6 and 4.1.1, but the currrent one was 4.1.1. Nonetheless I have unmerged gcc-3.4.6, and selected 4.1.1 as the compiler. Now I have: # equery list gcc [ Searching for package 'gcc' in all categories among: ] * installed packages [I--] [ ~] sys-devel/gcc-4.1.1 (4.1) [I--] [ ~] sys-devel/gcc-config-2.0.0_rc1 (0) [I--] [ ~] x11-misc/gccmakedep-1.0.2 (0) # eselect compiler list Available compilers for CTARGET i686-pc-linux-gnu [1] x86_64-pc-linux-gnu-4.1.1/x86-vanilla Available compilers for CTARGET x86_64-pc-linux-gnu [2] x86_64-pc-linux-gnu-4.1.1/amd64-vanilla Activated profiles: i686-pc-linux-gnu x86_64-pc-linux-gnu-4.1.1/x86-vanilla x86_64-pc-linux-gnu * x86_64-pc-linux-gnu-4.1.1/amd64-vanilla After that I have rebuilt the kernel to make sure it is compiled with gcc-4.1.1, and I have rebooted the system too. Then I have unmerged vmware-workstation and removed its traces from /etc. Then I have emerged it again. But the error persists, and I do not know how to solve the problem.
I don't have a clue if you've got cross-compiling stuff setup, unfortunately.
I do not know what you mean by cross-compiling stuff, but until recently vmware-workstation was working well. Now that I have upgraded the kernel and need to reconfigure vmware for the new kernel, things do not work. I have not done any intentional change to the building system.
I just got this problem, too. After some search, I found this: http://www.linuxforen.de/forums/archive/index.php/t-147797.html It says to `unset VERSION` before `vmware-config.pl`. After this vmware-config.pl runs fine. VERSION was set to "JavaCC @PV@" on my system (I suspect the file /etc/env.d/22javacc has done this). I have these packages installed: >>> einstein ~ # emerge -p gcc vmware-workstation gentoo-sources javacc [ebuild R ] sys-devel/gcc-4.1.1 [ebuild R ] app-emulation/vmware-workstation-5.5.1.19175-r3 [ebuild R ] sys-kernel/gentoo-sources-2.6.17-r3 [ebuild R ] dev-java/javacc-4.0-r1 <<<
I can confirm that # unset VERSION # /opt/vmware/workstation/bin/vmware-config.pl solves the problem. Some java package could be the cause of the problem: $ find /etc/env.d/ -type f | xargs grep -w VERSION /etc/env.d/java/20blackdown-jdk-1.4.2.03:VERSION="Blackdown JDK 1.4.2.03" /etc/env.d/20java:# VERSION="Blackdown JDK 1.4.2.03" /etc/env.d/22javacc:VERSION="JavaCC @PV@"
I can confirm that # unset VERSION # /opt/vmware/workstation/bin/vmware-config.pl solves the problem. pentiumm ~ # find /etc/env.d/ -type f | xargs grep -w VERSION /etc/env.d/22javacc:VERSION="JavaCC @PV@" /etc/env.d/java/20sun-jdk-1.4.2.12:VERSION="Sun JDK 1.4.2.12" /etc/env.d/java/20blackdown-jre-1.4.2.03:VERSION="Blackdown JRE 1.4.2.03" /etc/env.d/20java:# VERSION="Sun JDK 1.4.2.12"
The files in env.d/java are NOT sources by shell. Could you test javacc-4.0-r1 from this overlay: http://overlays.gentoo.org/svn/proj/java/migrated-java-experimental-overlay/ and confirm it solves the issue?
Ok, fixed with javacc-4.0-r2. This version has only one variable in env.d: nelchael@nelchael ~$ cat /etc/env.d/22javacc JAVACC_HOME=/usr/share/javacc/ nelchael@nelchael ~$
*** Bug 142290 has been marked as a duplicate of this bug. ***
*** Bug 139916 has been marked as a duplicate of this bug. ***