* Preparing vmblock module make -j5 -l4 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' auto-build KERNEL_DIR=/usr/src/linux KBUILD_OUTPUT=/lib/modules/4.6.0-gentoo/build Using kernel build system. make -C /lib/modules/4.6.0-gentoo/build SUBDIRS=$PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= modules make[1]: Entering directory '/usr/src/linux-4.6.0-gentoo' make[2]: Entering directory '/usr/src/linux-4.6.0-gentoo' CC [M] /var/tmp/portage/app-emulation/vmware-modules-308.1.0/work/vmblock-only/linux/filesystem.o CC [M] /var/tmp/portage/app-emulation/vmware-modules-308.1.0/work/vmblock-only/linux/stubs.o CC [M] /var/tmp/portage/app-emulation/vmware-modules-308.1.0/work/vmblock-only/linux/file.o CC [M] /var/tmp/portage/app-emulation/vmware-modules-308.1.0/work/vmblock-only/linux/block.o CC [M] /var/tmp/portage/app-emulation/vmware-modules-308.1.0/work/vmblock-only/linux/inode.o /var/tmp/portage/app-emulation/vmware-modules-308.1.0/work/vmblock-only/linux/inode.c:69:16: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .get_link = InodeOpFollowlink, ^ /var/tmp/portage/app-emulation/vmware-modules-308.1.0/work/vmblock-only/linux/inode.c:69:16: note: (near initialization for ‘LinkInodeOps.get_link’) cc1: some warnings being treated as errors /usr/src/linux-4.6.0-gentoo/scripts/Makefile.build:291: recipe for target '/var/tmp/portage/app-emulation/vmware-modules-308.1.0/work/vmblock-only/linux/inode.o' failed make[3]: *** [/var/tmp/portage/app-emulation/vmware-modules-308.1.0/work/vmblock-only/linux/inode.o] Error 1 make[3]: *** Waiting for unfinished jobs.... /usr/src/linux-4.6.0-gentoo/Makefile:1428: recipe for target '_module_/var/tmp/portage/app-emulation/vmware-modules-308.1.0/work/vmblock-only' failed make[2]: *** [_module_/var/tmp/portage/app-emulation/vmware-modules-308.1.0/work/vmblock-only] Error 2 make[2]: Leaving directory '/usr/src/linux-4.6.0-gentoo' Makefile:146: recipe for target 'sub-make' failed make[1]: *** [sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-4.6.0-gentoo' Makefile:120: recipe for target 'vmblock.ko' failed make: *** [vmblock.ko] Error 2
Portage 2.3.0_rc1 (python 3.5.1-final-0, default/linux/amd64/13.0/desktop, gcc-5.3.0, glibc-2.23-r2, 4.6.0-gentoo x86_64) ================================================================= System uname: Linux-4.6.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-6600U_CPU_@_2.60GHz-with-gentoo-2.2 KiB Mem: 16203080 total, 12435084 free KiB Swap: 17301500 total, 17301500 free Timestamp of repository gentoo: Mon, 16 May 2016 15:30:01 +0000 sh bash 4.3_p42-r2 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 distcc 3.2rc1 x86_64-pc-linux-gnu [disabled] ccache version 3.2.5 [enabled] app-shells/bash: 4.3_p42-r2::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.22.2::gentoo dev-lang/python: 2.7.11-r2::gentoo, 3.4.3-r7::gentoo, 3.5.1-r2::gentoo dev-util/ccache: 3.2.5::gentoo dev-util/cmake: 3.5.2::gentoo dev-util/pkgconfig: 0.29.1::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.20.5::gentoo sys-apps/sandbox: 2.10-r2::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r2::gentoo sys-devel/automake: 1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 5.3.0::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r2::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.5::gentoo (virtual/os-headers) sys-libs/glibc: 2.23-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-extra-opts: --exclude-from=/etc/portage/rsync_excludes serenity location: /usr/local/portage masters: gentoo priority: 0 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -mfpmath=sse -mtune=intel -O3 -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo" CXXFLAGS="-march=native -mfpmath=sse -mtune=intel -O3 -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n --with-bdeps=y" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="ftp://ftp.halifax.rwth-aachen.de/gentoo/" INSTALL_MASK="/etc/systemd/network/* /etc/systemd/system/* /etc/xinetd.d/* /usr/lib64/systemd/system/* /usr/lib64/systemd/system-shutdown/*" LANG="de_DE.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,-z,now" MAKEOPTS="-j5 -l4" PKGDIR="/usr/portage/packages" PORTAGE_BUNZIP2_COMMAND="pbunzip2" PORTAGE_BZIP2_COMMAND="pbzip2" PORTAGE_COMPRESS="xz" PORTAGE_COMPRESS_FLAGS="-9e" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac aalib accessibility acl adns alsa amd64 ao berkdb bluetooth bzip2 cairo caps cdda cddb cdinstall cjk cracklib crypt css ctype cups curl cvs cxx dbus dga djvu dri dts dvb dvd encode exif fbcon ffmpeg flac flite fontconfig ftp gd gdbm gif gimp git glut gmp gnome-keyring gnutls gphoto2 gpm graphviz gsm gstreamer gtk http iconv icu idn imlib introspection ipv6 java javascript jit joystick jpeg jpeg2k lame lcms libcaca libnotify libsamplerate lm_sensors lzma lzo mad maildir matroska mbox mhash mikmod mmap mng modplug mono mp3 mp4 mpeg mtp ncurses networkmanager nls nntp nptl nsplugin offensive ogg openal openexr opengl openmp orc oss pam pcre pdf perl pie png policykit posix postproc postscript python qt4 qt5 quicktime raw readline recode samba sasl scanner sdl seccomp session simplexml slang smartcard smp sndfile sockets sound speex spell sqlite ssl startup-notification subversion suid svg symlink tcpd theora threads tiff timidity truetype udev udisks unicode upnp usb v4l vaapi vcd vdpau vim-syntax vnc vorbis wavpack webkit wifi wmf x264 xattr xcb xcomposite xface xft xml xmp xpm xscreensaver xv xvid zlib zsh-completion" ABI_X86="32 64" COLLECTD_PLUGINS="battery cgroups conntrack contextswitch cpu cpufreq df disk dns entropy ethstat exec filecount hddtemp interface irq load logfile lvm memory netlink nginx openvpn ping postgresql processes rrdcached sensors serial smart swap tcpconns thermal unixsock uptime users wireless" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="nmea" GRUB_PLATFORMS="pc" KERNEL="linux" LINGUAS="de de_DE" NGINX_MODULES_HTTP="access auth_basic autoindex charset fancyindex fastcgi gzip proxy realip rewrite stub_status" PHP_TARGETS="php7-0" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="intel" XFCE_PLUGINS="power trash" USE_PYTHON="2.7 3.5" Unset: CC, CPPFLAGS, CTARGET, CXX, LC_ALL
I can confirm this problem. There is also patches needed for vmnet and vmmon
Created attachment 434486 [details, diff] linux-4.6.x-patch I use the attached patch. Can be dropped directly in '/etc/portage/patches/app-emulation/vmware-modules-308.1.0/'.
(In reply to Mihai Donțu from comment #3) > Created attachment 434486 [details, diff] [details, diff] > linux-4.6.x-patch > > I use the attached patch. Can be dropped directly in > '/etc/portage/patches/app-emulation/vmware-modules-308.1.0/'. Thanks! Works fine here.
*** Bug 583484 has been marked as a duplicate of this bug. ***
Patch posted works for me too.
The patch in the overlay does not seem to work for me, I still get: /var/tmp/portage/app-emulation/vmware-modules-308.1.1/work/vmblock-only/linux/inode.c:69:16: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .get_link = InodeOpFollowlink, building on 4.6.0
Should note that the patch attached to this bug does build for me, just not the new one in the overlay: 308-4.06-00-user-pages.patch
Appears that the patch in the overlay is missing the necessary changes for vmblock-only/linux/inode.c
(In reply to Wes from comment #9) > Appears that the patch in the overlay is missing the necessary changes for > vmblock-only/linux/inode.c I see, I'm sorry but on my system I was getting only a warning and not an error with the patch in the overlay using gcc 4.9. Anyway the problem is present since kernel 4.5 because the commit to fs.h is fceef393a538134f03b778c5d2519e670269342f. Out of curiosity, which gcc version and CFLAGS are you using? I'll fix soon. Thanks for the report
Thanks, gcc (Gentoo 5.3.0 p1.1, pie-0.6.5) 5.3.0 CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" ACCEPT_KEYWORDS="~amd64"
(In reply to Fabio Rossi from comment #10) > Anyway the problem is present since kernel 4.5 because the commit to > fs.h is fceef393a538134f03b778c5d2519e670269342f. This is a new system, new Gentoo install by the way. Previously on my last workstation on a 4.5 kernel I had patches in /etc/portage/patches/ similar to this one obtained via extensive web searching to address vmblock breakage. I hadn't updated the overlay once I had a working vmware-workstation and vmware-modules but I was using gcc 4.9 there and had encountered this issue before
The original patch posted to this bug had the changes for vmblock. I am on gcc-5.3 and vmblock fails without them. Using the current overlay I had put the vmblock patch taken out of the bug post and put it in /etc/portage/patches to get the vmware-modules to build.
(In reply to Harris Landgarten from comment #13) > The original patch posted to this bug had the changes for vmblock. I am on > gcc-5.3 and vmblock fails without them. Using the current overlay I had put > the vmblock patch taken out of the bug post and put it in > /etc/portage/patches to get the vmware-modules to build. I'm not saying the patch itself is wrong but the part on vmblock should be merged into 308-4.05-00-vmblock-follow_link.patch. During 4.5-rc1 development the follow_link() was renamed to get_link() changing also the prototype 4.4) const char * (*follow_link) (struct dentry *, void **); 4.5-rc1) const char * (*get_link) (struct dentry *, struct inode *, void **); 4.5-rc1) const char * (*get_link) (struct dentry *, struct inode *, struct delayed_call *); The current 308-4.05-00-vmblock-follow_link.patch uses the second line prototype above, probably it was prepared too early in the development of 4.5-rc1 and later I didn't notice the problem because the compiler was issuing only a warning and not an error. I'll prepare the fix for the overlay later today, stay tuned :-)
solved now in the overlay: https://github.com/gentoo/vmware/commit/af19a5d912cdd537f70667722d2fb3cbb14b3d35
Thanks, I'll try it out shortly
Still fails :( /usr/src/linux-4.6.0-gentoo/include/linux/mm.h:1266:6: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’ long get_user_pages(unsigned long start, unsigned long nr_pages, ^ /var/tmp/portage/app-emulation/vmware-modules-308.1.1/work/vmmon-only/linux/hostif.c:1166:13: error: too many arguments to function ‘get_user_pages’ retval = get_user_pages(current, current->mm, (unsigned long)uvAddr, ^ In file included from /var/tmp/portage/app-emulation/vmware-modules-308.1.1/work/vmmon-only/./include/compat_page.h:23:0, from /var/tmp/portage/app-emulation/vmware-modules-308.1.1/work/vmmon-only/linux/hostif.c:32: /usr/src/linux-4.6.0-gentoo/include/linux/mm.h:1266:6: note: declared here long get_user_pages(unsigned long start, unsigned long nr_pages, ^
Just noticed this new failure is in a different place though, vmmon-only/linux/hostif.c
(In reply to Wes from comment #18) > Just noticed this new failure is in a different place though, > vmmon-only/linux/hostif.c Something is not working in your system, it seems that the 4.6 patch is not applied. Do you see a line like * Applying 308-4.06-00-user-pages.patch ... during the prepare phase of the ebuild? At line 1166 in /var/tmp/portage/app-emulation/vmware-modules-308.1.1/work/vmmon-only/linux/hostif.c you should see: #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 5, 99) retval = get_user_pages((unsigned long)uvAddr, #else retval = get_user_pages(current, current->mm, (unsigned long)uvAddr, #endif
of course using the ebuild in the vmware overlay, not in the main tree
Ahh, my bad, I had commented out the epatch line for 308-4.06-00-user-pages.patch to apply the patch attached on this bug and thought it would have been reverted by updating via layman again, but I guess it wasn't because the ebuild hadn't actually changed in the overlay repo
Working now, thanks
Hi, I tried to use emerge this with kernel 4.6.2 and it seems to get pass the errors with get_user_pages but got stuck with smp_call_function. did something change? /var/tmp/portage/app-emulation/vmware-modules-308.1.1/work/vmmon-only/linux/hostif.c: In function ‘HostIF_CallOnEachCPU’: /var/tmp/portage/app-emulation/vmware-modules-308.1.1/work/vmmon-only/linux/vmmonInt.h:34:50: error: too many arguments to function ‘smp_call_function’ #define compat_smp_call_function(fn, info, wait) smp_call_function(fn, info, 1, wait) ^ /var/tmp/portage/app-emulation/vmware-modules-308.1.1/work/vmmon-only/linux/hostif.c:2806:10: note: in expansion of macro ‘compat_smp_call_function’ (void)compat_smp_call_function(*func, data, 1); ^ In file included from /usr/src/linux-4.6.2/include/linux/topology.h:33:0, from /usr/src/linux-4.6.2/include/linux/gfp.h:8, from /usr/src/linux-4.6.2/include/linux/mm.h:9, from /var/tmp/portage/app-emulation/vmware-modules-308.1.1/work/vmmon-only/./include/compat_page.h:23, from /var/tmp/portage/app-emulation/vmware-modules-308.1.1/work/vmmon-only/linux/hostif.c:32: /usr/src/linux-4.6.2/include/linux/smp.h:95:5: note: declared here int smp_call_function(smp_call_func_t func, void *info, int wait); ^
(In reply to chenglcc from comment #23) > Hi, > > I tried to use emerge this with kernel 4.6.2 and it seems to get pass the > errors with get_user_pages but got stuck with smp_call_function. did > something change? This is something already found in the past, it's not closely related to the kernel version but to some SSE-related use flags. If you are interested in the details see here: https://github.com/efferre79/vmware/commit/b4c99ef3b7c81f8593ba82e2f40c5b510106eb45 Can you report your gcc version and CFLAGS? Which ebuild are you using for vmware-modules-308.1.1?
Ah ok, emerge info below. Portage 2.2.28 (python 2.7.10-final-0, default/linux/amd64/13.0, gcc-4.9.3, glibc-2.22-r4, 4.6.2 x86_64) ================================================================= System uname: Linux-4.6.2-x86_64-Intel-R-_Core-TM-_i7-6700_CPU_@_3.40GHz-with-gentoo-2.2 KiB Mem: 32896176 total, 31335768 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Sat, 18 Jun 2016 00:45:01 +0000 sh bash 4.3_p42-r1 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 app-shells/bash: 4.3_p42-r1::gentoo dev-lang/perl: 5.20.2::gentoo dev-lang/python: 2.7.10-r1::gentoo, 3.4.3-r1::gentoo dev-util/cmake: 3.3.1-r1::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.19.1::gentoo sys-apps/sandbox: 2.10-r1::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo sys-devel/automake: 1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 4.9.3::gentoo sys-devel/gcc-config: 1.7.3::gentoo sys-devel/libtool: 2.4.6::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers) sys-libs/glibc: 2.22-r4::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 vmware location: /var/lib/layman/vmware masters: gentoo priority: 0 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native -Werror=incompatible-pointer-types" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -march=native -Werror=incompatible-pointer-types" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j9" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X acl acpi alsa amd64 berkdb bindist bzip2 cli cracklib crypt cxx dri exif fortran gdbm gtk3 iconv ipv6 jpeg lua mmx mmxext modules multilib ncurses nls nptl openmp pam pcre png readline seccomp session sse sse2 ssl svg tcpd tiff truetype unicode x264 xattr zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nvidia intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
(In reply to chenglcc from comment #25) > Ah ok, emerge info below. > > > Portage 2.2.28 (python 2.7.10-final-0, default/linux/amd64/13.0, gcc-4.9.3, > glibc-2.22-r4, 4.6.2 x86_64) > ================================================================= > ... > CFLAGS="-O2 -pipe -march=native -Werror=incompatible-pointer-types" The problematic flag is -Werror=incompatible-pointer-types, on my system it is not recognized by gcc (both v4 and v5). I get this error during compilation of smpcall.c (and later you get the reported error): cc1: error: -Werror=incompatible-pointer-types: no option -Wincompatible-pointer-types but the result is the same even if you try compiling helloworld.c. Removing -Werror=incompatible-pointer-types from CFLAGS solves the issue
Thanks, it is working now.
I get the patch attached to this bug applied and the package compiled, but vmplayer just crash when starting a guest host. I even tried to make a fresh install of a guest to see if there were any file corruption to no avail. -- emerge --info vmware-modules Portage 2.2.28 (python 2.7.11-final-0, hardened/linux/amd64, gcc-4.9.3, glibc-2.22-r3, 4.6.4-git x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.6.4-git-x86_64-Intel-R-_Core-TM-_i7-4700HQ_CPU_@_2.40GHz-with-gentoo-2.2 KiB Mem: 16377480 total, 14013184 free KiB Swap: 524284 total, 524284 free Timestamp of repository gentoo: Wed, 10 Aug 2016 09:04:11 +0000 sh bash 4.4_rc1 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 app-shells/bash: 4.4_rc1::gentoo dev-lang/perl: 5.22.1::gentoo dev-lang/python: 2.7.11-r2::gentoo, 3.4.3-r7::gentoo, 3.5.1-r2::gentoo dev-util/cmake: 3.5.1::gentoo dev-util/pkgconfig: 0.29.1::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.17::gentoo sys-apps/sandbox: 2.10-r2::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r2::gentoo sys-devel/automake: 1.11.6-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 4.9.3::gentoo, 5.3.0::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r2::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers) sys-libs/glibc: 2.22-r3::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: git://github.com/gentoo-mirror/gentoo.git priority: -1000 bar location: /var/db/repos/bar sync-type: git sync-uri: git://github.com/tokiclover/bar-overlay.git masters: gentoo mpd location: /var/db/repos/mpd sync-type: git sync-uri: git://git.musicpd.org/master/mpd-gentoo-overlay.git masters: gentoo multimedia location: /var/db/repos/multimedia sync-type: git sync-uri: git://github.org/gentoo/multimedia.git masters: gentoo x11 location: /var/db/repos/x11 sync-type: git sync-uri: git://git.overlays.gentoo.org/proj/x11.git masters: gentoo Installed sets: @Mail-Utils, @Multimedia-Utils, @VapourSynth-Plugins, @X, @archive, @daw, @fonts, @gtk, @openbox, @portage, @sys, @themes, @vim ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=native -pipe -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -flto=8 -fuse-linker-plugin" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt" 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/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -march=native -pipe -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -flto=8 -fuse-linker-plugin" DISTDIR="/var/src" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildpkg cgroup config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://mirror.ovh.net/gentoo-distfiles/ http://gentoo.mneisen.org/ ftp://mirror.mdfnet.se/gentoo" INSTALL_MASK="/etc/systemd /lib*/systemd /usr/lib*/systemd" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -flto=8 -fuse-linker-plugin" MAKEOPTS="-j8" PKGDIR="/var/pkg" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acl acpi alsa amd64 atlas audiofile avi berkdb blas bzip2 cairo caps cdda cddb cdio cdr cjk clang cleartype cli cracklib crypt css cups curl cxx dbus device-mapper directfb djvu dri dv dvd dvdr egl exif expat fbcon ffmpeg fftw flac fltk fontconfig fontforge ftp gd gdbm gif git glamor gles2 glut gpm graphite graphviz gtk gtk2 gzip hardened hddtemp iconv icu idn ieee1394 imagemagick imlib infinality ipv6 jack jbig jpeg jpeg2k justify kerberos ladspa lame lapack lash lcms libass libnotify libsamplerate lm_sensors lto lua luajit lz4 lzma lzo lzop mad matroska mbox mmx mmxext mng modplug modules mp3 mp4 mpeg multilib musepack ncurses nls nptl nsplugin ntp ogg opengl openldap openmp openssl pam pax_kernel pcre pdf perl pie png postscript python raw readline sasl savedconfig seccomp session smp sndfile snmp sockets sqlite sse sse2 ssl ssp startup-notification svg symlink tcpd theora threads tiff truetype udev unicode urandom usb vaapi vdpau vim vim-syntax vorbis wavpack wayland wifi x264 xattr xft xinerama xinetd xml xorg xtpax xv xvid xvmc xz zip zlib" ABI_X86="64" ALSA_CARDS="cmipci hda-intel usb-audio" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="avx avx2 mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="emu efi-32 efi-64 qemu pc" INPUT_DEVICES="evdev mouse keyboard synaptics vmmouse" KERNEL="linux" LCD_DEVICES="lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="aarch64 arm i386 x86_64" QEMU_USER_TARGETS="aarch64 arm i386 x86_64" RUBY_TARGETS="ruby22" SANE_BACKENDS="canon canon630u canon_pp canon_dr genesys net pixma" USERLAND="GNU" VIDEO_CARDS="intel i915 i965 nouveau vesa vmware" XTABLES_ADDONS="ipv4options ipset iface ipmark dhcpmac" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON ================================================================= Package Settings ================================================================= app-emulation/vmware-modules-308.1.0::gentoo was built with the following: USE="pax_kernel -vmci -vsock" ABI_X86="64" CFLAGS="-O2 -march=native -pipe -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -flto=8 -fuse-linker-plugin -mno-sse" --
Created attachment 443376 [details] build.log Using the ebuild in main tree with kernel 4.6.4 and hardened profile. I could not get the package compile for 4.4.6 (I don't remember the reasons); although it does work with 3.18 (my previous LTS kernel). I am trying to move to a 4.x kernel because of over-heating of graphics card--+10°C with 3.18.36. Thanks for any help.
I forgot an essential detail--it does crash the host OS, not just vmplayer.
Created attachment 443462 [details] vmware-modules-308.1.1-build.log Added vmware overlay and merged vmware-modules-308.1.1 which compile... almost fine like the 308.1.0+linux-4.6.x.path; a few missing missing symbols would cause the host crash. I googled and found almost the same patch everywhere which does not address this issue.
NOTE: This Bug is partly about "unstable" / partly about "stable": ACCEPT_KEYWORDS="amd64 ~amd64" ( Conrad Kostecki, tokiclover ) and ACCEPT_KEYWORDS="amd64" ( chenglcc@gmail.com) REFERENCE: Bug 616958 : 12.5.7 version bump Currently, we are @ 4.9.36 for latest longterm. Current [Overlay] includes: vmware-modules-304.4-r1.ebuild and vmware-modules-308.5.7.ebuild , but no vmware-modules-308.1.*.ebuild any more. To me, this bug seems to be FIXED / OBSOLETE.
VMware Products have been removed from Main Portage Tree during Nov-2017. Further development has been relegated to [vmware] Overlay. Situation as of today, 30-Nov-2017: Workstation : stable in [vmware] = 12.5.8 / released = 14.0.0 : Bug 634770 Player : stable in [vmware] = 12.5.8 / released = 14.0.0 : Bug 639162 Modules : stable in [vmware] = 308.5.8 / released = 329.0.0 : Bug 634862 Tools : stable in [vmware] = 10.1.6 / released = 10.1.15 : Bug 634854