View previous topic :: View next topic |
Author |
Message |
cfgauss l33t
Joined: 18 May 2005 Posts: 723 Location: USA
|
Posted: Sat Jan 15, 2022 4:33 pm Post subject: [SOLVED] vmware-modules-16.2.1 fails under kernel 5.16.0 |
|
|
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 |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31270 Location: here
|
Posted: Sat Jan 15, 2022 4:47 pm Post subject: |
|
|
You can try this patch. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3918
|
Posted: Sat Jan 15, 2022 4:53 pm Post subject: |
|
|
What is the output of
Code: |
ls -ld /usr/src/linux
ls /usr/src/linux/include/linux/stddef.h
|
_________________
|
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
cfgauss l33t
Joined: 18 May 2005 Posts: 723 Location: USA
|
Posted: Sat Jan 15, 2022 7:30 pm Post subject: |
|
|
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 |
|
|
cfgauss l33t
Joined: 18 May 2005 Posts: 723 Location: USA
|
Posted: Sat Jan 15, 2022 7:49 pm Post subject: |
|
|
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 |
|
|
cfgauss l33t
Joined: 18 May 2005 Posts: 723 Location: USA
|
Posted: Sat Jan 15, 2022 8:35 pm Post subject: |
|
|
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 |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31270 Location: here
|
Posted: Sun Jan 16, 2022 6:59 am Post subject: |
|
|
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 |
|
|
gruftie Apprentice
Joined: 24 Sep 2002 Posts: 184
|
Posted: Sun Jan 16, 2022 8:55 am Post subject: |
|
|
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 |
|
|
|