Portage 2.1.6_rc1 (default/linux/x86/2008.0, gcc-4.1.2-asneeded, glibc-2.8_p20080602-r0, 2.6.27-gentoo-r4 i686) ================================================================= System uname: Linux-2.6.27-gentoo-r4-i686-Quad-Core_AMD_Opteron-tm-_Processor_2350-with-glibc2.0 Timestamp of tree: Tue, 25 Nov 2008 14:05:01 +0000 distcc 3.0 i686-pc-linux-gnu [disabled] ccache version 2.4 [disabled] app-shells/bash: 3.2_p48 dev-java/java-config: 1.3.7, 2.1.6-r1 dev-lang/python: 2.5.2-r8 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r8 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.3.0-r1 sys-apps/sandbox: 1.2.18.1-r3 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.19 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/glftpd/etc /opt/glftpd/ftp-data /opt/openfire/resources/security/ /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind /var/lib/hsqldb /var/phxd /var/qmail/alias /var/qmail/control /var/spool/torque /var/vpopmail/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage-distfiles" FEATURES="distlocks parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo" INSTALL_MASK=" /usr/share/doc /usr/share/man /usr/share/info" LDFLAGS="-Wl,-O1" MAKEOPTS="-j14" PKGDIR="/usr/portage-packages" PORTAGE_COMPRESS="" 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.gentoo.org/gentoo-portage" USE="acl berkdb bzip2 cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 isdnlog midi mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl ssl sysfs tcpd unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Created attachment 173797 [details] Build log
I'm experiencing the same issue after upgrading to gentoo-sources-2.6.27-r7 (which was marked x86 stable on December 25, 2008). It appears that the 2.6.27 tree is missing something that open-vm-tools is looking for (asm/semaphore.h) The actual path (for x86) is /usr/src/linux-2.6.27-gentoo-r7/include/asm-x86/semaphore.h or /usr/src/linux-2.6.27-gentoo-r7/include/asm/semaphore.h (linux and asm are symbolic links). From the 2.6.26 kernel, semaphore.h under asm is simply a single line: ---- BEGIN CODE ---- #include <linux/semaphore.h> ---- END CODE ---- Adding this file back to the 2.6.27-r7 allows the compilation to complete properly. It appears that the 2.6.27-r7 tree be patched by re-adding this file to allow this compilation until the Open Virtual Machine Tools upstream folks can adjust their build to compensate. Alternatively, the open-vm-tools ebuild can be patched to point to the linux/semaphore.h vs the asm/semaphore.h. I don't know which would be more difficult (sorry, not yet very good at ebuilds).
Whoops, missed something. The modules compiled properly under 2.6.27-r7 but they definitely do not work properly. When the vmblock module is loaded we get this under dmesg (forgot to check before my last post): ---- DMESG clip ---- BUG: unable to handle kernel NULL pointer dereference at 00000004 IP: [<c01653c6>] d_instantiate+0x18/0x3f *pde = 00000000 Oops: 0002 [#1] Modules linked in: vmblock Pid: 2522, comm: mount Not tainted (2.6.27-gentoo-r7 #1) EIP: 0060:[<c01653c6>] EFLAGS: 00010282 CPU: 0 EIP is at d_instantiate+0x18/0x3f EAX: 00000000 EBX: de4d9008 ECX: df51c9bc EDX: de4d9020 ESI: df51c980 EDI: de483000 EBP: 00000000 ESP: de4c1e70 DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068 Process mount (pid: 2522, ti=de4c1000 task=df9d57a0 task.ti=de4c1000) Stack: df51c980 de4d9008 c0165635 de4d9008 de483000 e09119c9 00000001 de483000 00000000 c0158375 00000000 dfbe5700 e0911947 dfbe5700 e09134e0 ffffffed de495000 c0157ed9 e0911947 dfbe5700 00000000 00000000 de495000 e09134e0 Call Trace: [<c0165635>] d_alloc_root+0x36/0x3b [<e09119c9>] VMBlockCleanupFileSystem+0xcd/0x117 [vmblock] [<c0158375>] get_sb_nodev+0x4a/0x82 [<e0911947>] VMBlockCleanupFileSystem+0x4b/0x117 [vmblock] [<c0157ed9>] vfs_kern_mount+0x59/0x11b [<e0911947>] VMBlockCleanupFileSystem+0x4b/0x117 [vmblock] [<c0157fe2>] do_kern_mount+0x31/0xbc [<c016a651>] do_new_mount+0x69/0x8e [<c016a82d>] do_mount+0x1b7/0x1d2 [<c013d667>] __get_free_pages+0x19/0x38 [<c0168985>] copy_mount_options+0x28/0x12a [<c015d920>] getname+0x90/0xb2 [<c016a8ba>] sys_mount+0x72/0xb8 [<c0102c01>] sysenter_do_call+0x12/0x25 ======================= Code: 5b 5e 5f 5d c3 8b 1c 24 c7 43 08 00 00 00 00 31 ed eb e8 56 53 89 c6 89 d3 8d 48 3c 3b 48 3c 75 2d 85 d2 74 12 8d 52 18 8b 43 18 <89> 48 04 89 46 3c 89 51 04 89 4b 18 89 5e 08 89 da 89 f0 e8 bf EIP: [<c01653c6>] d_instantiate+0x18/0x3f SS:ESP 0068:de4c1e70 ---[ end trace 8d28c404594efb5f ]--- ---- END DMESG clip ---- I guess that open-vm-tools-0.0.20080808.109361-r1 isn't compatible with the 2.6.27 tree even though it will compile (of course perhaps there is a .config setting to enable that will help, not sure). For the moment therefore, I'm reverting to kernel 2.6.26-r4 It appears that there is a relatively new release (Dec 23rd of 2008) of the open VM tools at Sourceforge...
open-vm-tools at sourceforge - 2008.12.23 Please bump version of open-vm-tools. Thanks! Notes: Changes: open-vm-tools 2009.12.23 changes: * Lots of makefile cleanup with the switch to using libtool archives. * Automatically disable Unity if multimon support is disabled. * Actually build the pvscsi modules. * First bits of the "Core Service" project are starting to show up; the base "vmtools" library was added to the package. It currently is mostly a collection of the existing libraries already shipped with open-vm-tools, plus some extra functionality build on top of glib. Currently no other code in open-vm-tools uses it, so it's optional. * The HGFS driver was fixed for the Linux 2.6.28 kernel.
Ok, just pushed the latest ebuild into the main tree (there's been a working version in the vmware overlay for a while, it just never got pushed over). Hopefully this is now FIXED. 5:)
* app-emulation/open-vm-tools Latest version available: 0.0.20081223.137496 Latest version installed: 0.0.20081223.137496 Size of downloaded files: 3,240 kB Homepage: http://open-vm-tools.sourceforge.net/ Description: Opensourced tools for VMware guests License: LGPL-2 ... works perfect (with sys-kernel/gentoo-sources-2.6.28). Thanks a lot!
Works well with 2.6.27-gentoo-r7 as well. Thanks!