Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 140829 - vmware-workstation-5.5 - vmware-config.pl fails w/ gcc version mismatch
Summary: vmware-workstation-5.5 - vmware-config.pl fails w/ gcc version mismatch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo VMWare Bug Squashers [disabled]
URL:
Whiteboard:
Keywords:
: 139916 142290 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-07-17 13:47 UTC by José Romildo Malaquias
Modified: 2006-08-17 17:51 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description José Romildo Malaquias 2006-07-17 13:47:49 UTC
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
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2006-07-17 16:33:38 UTC
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.
Comment 2 José Romildo Malaquias 2006-07-19 10:38:37 UTC
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.
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2006-07-20 13:36:25 UTC
I don't have a clue if you've got cross-compiling stuff setup, unfortunately.
Comment 4 José Romildo Malaquias 2006-07-24 08:04:16 UTC
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.
Comment 5 Andreas Mann 2006-07-28 13:59:07 UTC
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
<<<
Comment 6 José Romildo Malaquias 2006-07-28 15:17:59 UTC
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@"
Comment 7 Michael Imhof (RETIRED) gentoo-dev 2006-08-02 13:18:30 UTC
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"
Comment 8 Krzysztof Pawlik (RETIRED) gentoo-dev 2006-08-02 13:26:54 UTC
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?
Comment 9 Krzysztof Pawlik (RETIRED) gentoo-dev 2006-08-02 13:42:12 UTC
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 ~$
Comment 10 Krzysztof Pawlik (RETIRED) gentoo-dev 2006-08-02 13:55:13 UTC
*** Bug 142290 has been marked as a duplicate of this bug. ***
Comment 11 Donnie Berkholz (RETIRED) gentoo-dev 2006-08-17 17:51:42 UTC
*** Bug 139916 has been marked as a duplicate of this bug. ***