app-laptop/nvidiabl fails to build on more recent Linux kernels due to deprecation of the DEFINE_PCI_DEVICE_TABLE macro. The first error message that is printed is: /var/tmp/portage/app-laptop/nvidiabl-0.87/work/nvidiabl-0.87/nvidiabl-models.h:24:8: error: type defaults to ‘int’ in declaration of ‘DEFINE_PCI_DEVICE_TABLE’ [-Werror=implicit-int] (I apologize if this is somewhat mangled, I copied it from the build.log directly, and I still don't know how to deal with those annoying color control characters, so I removed them manually) Apparently Manjaro has some patches to let nvidiabl build on Linux 4.8, but I have not tried them: https://github.com/manjaro/packages-extra/tree/master/linux48-extramodules/nvidiabl
Created attachment 455540 [details] emerge --info
Created attachment 455542 [details] gzipped build.log Apparently the build log failed to attach because it is 1.2MB. I've gzipped and attached it.
Created attachment 468114 [details, diff] patch to replace deprecated DEFINE_PCI_DEVICE_TABLE macro I have the same problem with compiling nvidiabl on a 4.9.x kernel. The attached patch replaces the deprecated DEFINE_PCI_DEVICE_TABLE macro with explicit structure declarations, which permits the code to compile
Created attachment 468116 [details] Modified Ebuild I have the same problem with compiling nvidiabl on a 4.9.x kernel. The attached ebuild inserts a patch that replaces the deprecated DEFINE_PCI_DEVICE_TABLE macro with explicit structure declarations, which permits the code to compile
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4920ae914fbced2306443df626c070e239315acb commit 4920ae914fbced2306443df626c070e239315acb Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2019-12-05 19:04:24 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2019-12-05 19:08:45 +0000 package.mask: Last rite app-laptop/nvidiabl Bug: https://bugs.gentoo.org/602024 Signed-off-by: Michał Górny <mgorny@gentoo.org> profiles/package.mask | 6 ++++++ 1 file changed, 6 insertions(+)