Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 858794 - app-emulation/virtualbox-modules-6.1.34 fails to compile against 5.18.12 kernel (error: __write_overflow_field declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group)
Summary: app-emulation/virtualbox-modules-6.1.34 fails to compile against 5.18.12 kern...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Viorel Munteanu
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-18 13:04 UTC by Alexey Mikhailov
Modified: 2022-07-20 18:40 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge @module-rebuild + emerge --info (virtualbox_modules.log,78.11 KB, text/plain)
2022-07-18 13:04 UTC, Alexey Mikhailov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Mikhailov 2022-07-18 13:04:52 UTC
Created attachment 792152 [details]
emerge @module-rebuild + emerge --info

virtualbox-modules-6.1.34 fails to build anymore. Tested with gcc 12.1.1 and 11.3.0, 5.18.9 and 5.8.12 kernels.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-18 13:06:02 UTC

*** This bug has been marked as a duplicate of bug 847094 ***
Comment 2 Alexey Mikhailov 2022-07-18 16:48:30 UTC
I'd seen #847094, but that's another issue.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-18 23:38:14 UTC
Can you try without -Werror?
Comment 4 Alexey Mikhailov 2022-07-19 08:49:04 UTC
I'm not sure where is -Werror coming from. I'd finished up modifying Makefile by adding '-Wno-error=attribute-warning' to VBOXMOD_CFLAGS in Makefile - looks like it fixed this issue. Going to investigate more.
Comment 5 Alexey Mikhailov 2022-07-19 09:22:37 UTC
I'd met error from #847094 afterwards. Patched VBoxNetFlt-linux.c by hands:

+#if RTLNX_VER_MIN(5,18,0)
+                local_bh_disable();
+                err = netif_rx(pBuf);
+                local_bh_enable();
+#else
                 err = netif_rx_ni(pBuf);
+#endif

Compilation finished successfully.