Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] vmware-modules-16.2.1 fails under kernel 5.16.0
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
cfgauss
l33t
l33t


Joined: 18 May 2005
Posts: 688
Location: USA

PostPosted: Sat Jan 15, 2022 4:33 pm    Post subject: [SOLVED] vmware-modules-16.2.1 fails under kernel 5.16.0 Reply with quote

Here is emerge --info '=app-emulation/vmware-modules-16.2.1::stefantalpalaru'.
Here is the build log.
Code:
$ emerge -pqv '=app-emulation/vmware-modules-16.2.1::stefantalpalaru
[ebuild  N    ] app-emulation/vmware-modules-16.2.1  USE="-dist-kernel"

Any debugging hints will be gratefully received.

[SOLVED] Thanks to gruftie who pointed out that editing the ebuild to MY_KERNEL_VERSION="5.16" works. I did this in a local repo. Thanks also to Jaglover who found an error in my CFLAGS. [/SOLVED]


Last edited by cfgauss on Sun Jan 16, 2022 11:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30917
Location: here

PostPosted: Sat Jan 15, 2022 4:47 pm    Post subject: Reply with quote

You can try this patch.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sat Jan 15, 2022 4:53 pm    Post subject: Reply with quote

What is the output of
Code:

ls -ld /usr/src/linux
ls /usr/src/linux/include/linux/stddef.h

_________________
:)
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sat Jan 15, 2022 5:43 pm    Post subject: Reply with quote

Ryzen with march=nocona? Is Ryzen AMD equivalent for Intel Pentium 4?
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
cfgauss
l33t
l33t


Joined: 18 May 2005
Posts: 688
Location: USA

PostPosted: Sat Jan 15, 2022 7:30 pm    Post subject: Reply with quote

alamahant wrote:
What is the output of
Code:

ls -ld /usr/src/linux
ls /usr/src/linux/include/linux/stddef.h

Code:
$ ls -ld /usr/src/linux
lrwxrwxrwx 1 root root 20 Jan 15 09:55 /usr/src/linux -> linux-5.16.0-gentoo/
$ ls /usr/src/linux/include/linux/stddef.h
/usr/src/linux/include/linux/stddef.h
Back to top
View user's profile Send private message
cfgauss
l33t
l33t


Joined: 18 May 2005
Posts: 688
Location: USA

PostPosted: Sat Jan 15, 2022 7:49 pm    Post subject: Reply with quote

Jaglover wrote:
Ryzen with march=nocona? Is Ryzen AMD equivalent for Intel Pentium 4?

It seems that nocona is the wrong parameter value.
Code:
$ grep -m1 -A3 "vendor_id" /proc/cpuinfo
vendor_id       : AuthenticAMD
cpu family      : 23
model           : 8
model name      : AMD Ryzen Threadripper 2950X 16-Core Processor

Does the Gentoo Wiki suggest CFLAGS="-march=znver2 -O2 -pipe" in /etc/portage/make.conf?
Back to top
View user's profile Send private message
cfgauss
l33t
l33t


Joined: 18 May 2005
Posts: 688
Location: USA

PostPosted: Sat Jan 15, 2022 8:35 pm    Post subject: Reply with quote

fedeliallalinea wrote:
You can try this patch.

Are these the correct lines for the patch?
Code:
$ cat /etc/portage/patches/app-emulation/vmware-modules-16.2.1/kernel-5.16-stddef-patch
--- a/vmmon-only/include/vm_basic_defs.h
+++ b/vmmon-only/include/vm_basic_defs.h
@@ -51,7 +51,7 @@
  *   C90 7.17, C99 7.19, C11 7.19
  */
 #if !defined(VMKERNEL)
-#  include <stddef.h>
+#  include <linux/stddef.h>
 #else

If so, I would expect the emerge would output lines showing the patch was applied, but it didn't. Also the first error:
Code:
fatal error: stddef.h: No such file or directory
   54 | #  include <stddef.h>

I changed the CFLAGS as suggested below before I emerged and I get this warning:
Code:
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: gcc (Gentoo 11.2.1_p20211127 p0) 11.2.1 20211127
  You are using:           x86_64-pc-linux-gnu-gcc (Gentoo 11.2.1_p20211127 p0) 11.2.1 20211127

Is this a problem?
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30917
Location: here

PostPosted: Sun Jan 16, 2022 6:59 am    Post subject: Reply with quote

You should post complete build.log.
Quote:
Is this a problem?

This cause only a problem when you load module, you should have module and kernel compiled with same gcc version if not module doesn't work, but not in the compilation phase.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
gruftie
Apprentice
Apprentice


Joined: 24 Sep 2002
Posts: 184

PostPosted: Sun Jan 16, 2022 8:55 am    Post subject: Reply with quote

the problem is in the ebuild itself:

Code:
MY_KERNEL_VERSION="5.15"


so the wrong 5.15 patchset is selected instead of the 5.16 one.

the problem with stddef.h was already solved here

and by changing the ebuild to MY_KERNEL_VERSION="5.16" solves this for me.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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