Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
vmware-modules + kernel 3.16.5
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Fijoldar
Apprentice
Apprentice


Joined: 10 Apr 2013
Posts: 248

PostPosted: Mon Nov 17, 2014 12:57 pm    Post subject: vmware-modules + kernel 3.16.5 Reply with quote

Hallo,

hat es schon jemand geschafft, die vmware-modules mit dem aktuell stabilen Kernel 3.16.5 zu bauen? Ich habe schon versucht, die aktuelle Version aus dem vmware Overlay zu kompilieren, aber die will auch nicht.

Hier die Fehlermeldung:
Code:
 * Preparing vmmon module
make -j4 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/3.16.5-gentoo/build
Using 2.6.x kernel build system.
make -C /lib/modules/3.16.5-gentoo/build SUBDIRS=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/src/linux-3.16.5-gentoo'
make[1]: Entering directory `/lib/modules/3.16.5-gentoo/build'
  CC [M]  /var/tmp/portage/app-emulation/vmware-modules-279.3-r1/work/vmmon-only/linux/driver.o
  CC [M]  /var/tmp/portage/app-emulation/vmware-modules-279.3-r1/work/vmmon-only/linux/hostif.o
  CC [M]  /var/tmp/portage/app-emulation/vmware-modules-279.3-r1/work/vmmon-only/linux/driverLog.o
  CC [M]  /var/tmp/portage/app-emulation/vmware-modules-279.3-r1/work/vmmon-only/common/memtrack.o
  CC [M]  /var/tmp/portage/app-emulation/vmware-modules-279.3-r1/work/vmmon-only/common/hashFunc.o
  CC [M]  /var/tmp/portage/app-emulation/vmware-modules-279.3-r1/work/vmmon-only/common/apic.o
/var/tmp/portage/app-emulation/vmware-modules-279.3-r1/work/vmmon-only/linux/hostif.c: In function ‘HostIF_CallOnEachCPU’:
/var/tmp/portage/app-emulation/vmware-modules-279.3-r1/work/vmmon-only/linux/hostif.c:2851:4: error: too many arguments to function ‘smp_call_function’
    (void)compat_smp_call_function(*func, data, 1);
    ^
In file included from /usr/src/linux-3.16.5-gentoo/include/linux/topology.h:33:0,
                 from /usr/src/linux-3.16.5-gentoo/include/linux/gfp.h:8,
                 from /usr/src/linux-3.16.5-gentoo/include/linux/mm.h:9,
                 from /var/tmp/portage/app-emulation/vmware-modules-279.3-r1/work/vmmon-only/./include/compat_page.h:23,
                 from /var/tmp/portage/app-emulation/vmware-modules-279.3-r1/work/vmmon-only/linux/hostif.c:32:
/usr/src/linux-3.16.5-gentoo/include/linux/smp.h:95:5: note: declared here
 int smp_call_function(smp_call_func_t func, void *info, int wait);
     ^
  CC [M]  /var/tmp/portage/app-emulation/vmware-modules-279.3-r1/work/vmmon-only/common/vmx86.o
/usr/src/linux-3.16.5-gentoo/scripts/Makefile.build:257: recipe for target '/var/tmp/portage/app-emulation/vmware-modules-279.3-r1/work/vmmon-only/linux/hostif.o' failed
make[3]: *** [/var/tmp/portage/app-emulation/vmware-modules-279.3-r1/work/vmmon-only/linux/hostif.o] Error 1
make[3]: *** Waiting for unfinished jobs....
/var/tmp/portage/app-emulation/vmware-modules-279.3-r1/work/vmmon-only/linux/driver.c: In function ‘LinuxDriverSyncCallOnEachCPU’:
/var/tmp/portage/app-emulation/vmware-modules-279.3-r1/work/vmmon-only/linux/driver.c:1252:4: error: too many arguments to function ‘smp_call_function’
    compat_smp_call_function(LinuxDriverSyncCallHook, &args, 0);
    ^
In file included from /usr/src/linux-3.16.5-gentoo/include/linux/percpu.h:6:0,
                 from /usr/src/linux-3.16.5-gentoo/include/linux/percpu-rwsem.h:6,
                 from /usr/src/linux-3.16.5-gentoo/include/linux/fs.h:30,
                 from /usr/src/linux-3.16.5-gentoo/include/linux/highmem.h:4,
                 from /var/tmp/portage/app-emulation/vmware-modules-279.3-r1/work/vmmon-only/linux/driver.c:25:
/usr/src/linux-3.16.5-gentoo/include/linux/smp.h:95:5: note: declared here
 int smp_call_function(smp_call_func_t func, void *info, int wait);
     ^
/var/tmp/portage/app-emulation/vmware-modules-279.3-r1/work/vmmon-only/linux/driver.c: At top level:
/var/tmp/portage/app-emulation/vmware-modules-279.3-r1/work/vmmon-only/linux/driver.c:1342:1: warning: always_inline function might not be inlinable [-Wattributes]
 LinuxDriverSyncReadTSCs(uint64 *delta) // OUT: TSC max - TSC min
 ^
/usr/src/linux-3.16.5-gentoo/scripts/Makefile.build:257: recipe for target '/var/tmp/portage/app-emulation/vmware-modules-279.3-r1/work/vmmon-only/linux/driver.o' failed
make[3]: *** [/var/tmp/portage/app-emulation/vmware-modules-279.3-r1/work/vmmon-only/linux/driver.o] Error 1
/usr/src/linux-3.16.5-gentoo/Makefile:1333: recipe for target '_module_/var/tmp/portage/app-emulation/vmware-modules-279.3-r1/work/vmmon-only' failed
make[2]: *** [_module_/var/tmp/portage/app-emulation/vmware-modules-279.3-r1/work/vmmon-only] Error 2
Makefile:181: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-3.16.5-gentoo'
Makefile:130: recipe for target 'vmmon.ko' failed
make: *** [vmmon.ko] Error 2


Entscheidend ist wohl diese Zeile hier:
Code:
/var/tmp/portage/app-emulation/vmware-modules-279.3-r1/work/vmmon-only/linux/hostif.c:2851:4: error: too many arguments to function ‘smp_call_function’


Im Bugzilla wird es auch angesprochen: https://bugs.gentoo.org/show_bug.cgi?id=462666#c41 Dort wird allerdings auf einen Patch (https://github.com/zlbruce/overlay/blob/master/app-emulation/vmware-modules/files/279-smp_call_3arg.patch) verwiesen, der bei mir fehlschlägt.
Back to top
View user's profile Send private message
Fijoldar
Apprentice
Apprentice


Joined: 10 Apr 2013
Posts: 248

PostPosted: Mon Nov 17, 2014 4:12 pm    Post subject: Reply with quote

Temporäre Lösung:
Code:
CFLAGS="-O2 -pipe -march=x86-64 -mtune=generic" emerge -1 app-emulation/vmware-modules


Damit konnte ich es jetzt erstmal fertig kompilieren.
Back to top
View user's profile Send private message
Schnulli
Guru
Guru


Joined: 25 Jun 2010
Posts: 320
Location: Bremen DE

PostPosted: Sun Dec 21, 2014 2:36 am    Post subject: Reply with quote

Hallo,
hier hat es mit Deiner Lösung leider nicht hingehauen. Der gleiche Fehler beim mergen.
Scheint mir doch am Kern zu liegen, da wurde wohl etwas vergessen im Kernel ^^
Zeit zum kernel source syncen würde ich sagen ;)
Ach ^^ da ist ja der 17ner Kern... na sowas ;)

Code:

/usr/src/linux-3.16.5-gentoo/Makefile:1333: recipe for target '_module_/var/tmp/portage/app-emulation/vmware-modules-279.3/work/vmblock-only' failed
make[2]: *** [_module_/var/tmp/portage/app-emulation/vmware-modules-279.3/work/vmblock-only] Error 2
Makefile:181: recipe for target 'sub-make' failed
Back to top
View user's profile Send private message
Schnulli
Guru
Guru


Joined: 25 Jun 2010
Posts: 320
Location: Bremen DE

PostPosted: Sun Dec 21, 2014 2:03 pm    Post subject: Reply with quote

Auch mit dem 3.17.7 Kern der gleiche Fehler, ich gehe dann mal wieder auf einen LTS Kernel ;)
masking 3.14x. 3.16.x 3.17.x :P
Back to top
View user's profile Send private message
hafgan
n00b
n00b


Joined: 27 Sep 2012
Posts: 39

PostPosted: Tue Dec 23, 2014 7:24 am    Post subject: Reply with quote

Schnulli wrote:
Auch mit dem 3.17.7 Kern der gleiche Fehler, ich gehe dann mal wieder auf einen LTS Kernel ;)
masking 3.14x. 3.16.x 3.17.x :P


Wieso maskierst Du den 3.14x? Der sollte doch auch LTS sein ...
https://www.kernel.org/releases.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum