Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#70237 - [DKMS] dkms compilation is falling with nvidia-dkms/linux when gcc is compiled in native

Attached to Project: Arch Linux
Opened by Rémi Clédou (Morhue) - Tuesday, 30 March 2021, 19:59 GMT
Last edited by Doug Newgard (Scimmia) - Tuesday, 30 March 2021, 20:23 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When trying to compile nvidia module with dkms with my toolchain compiled in native with linux official package from repo, it fail with an error :"incompatible gcc/plugin versions"
I used to have my own optimized toolchain since several years to recompile some kernels. I used to keep an official kernel from repo for "security"

Additional info:
* package version(s):
-linux : 5.11.9.arch1-1
-nvidia-dkms: 460.67-1
-dkms: 2.8.4-1
-gcc : 10.2.0-6

* config and/or log files etc.
-log_versions.txt of packages
-/var/lib/dkms/nvidia/460.67/build/make.log when error
-makepkg.conf
-gcc flags: gcc.txt

* link to upstream bug report, if any

Steps to reproduce:
-change march from generic to native in makepkg.conf
-compile a toolchain : linux-api-headers->glibc->binutils->gcc->binutils->glibc
-install nvidia-utils and nvidia-dkms from repo
-install linux-headers and linux from repo
-> dkms compilation of nvidia will fail:
==> dkms install --no-depmod -m nvidia -v 460.67 -k 5.11.9-arch1-1
Error! Bad return status for module build on kernel: 5.11.9-arch1-1 (x86_64)
Consult /var/lib/dkms/nvidia/460.67/build/make.log for more information.
==> Warning, `dkms install --no-depmod -m nvidia -v 460.67 -k 5.11.9-arch1-1' returned 10


This task depends upon

Closed by  Doug Newgard (Scimmia)
Tuesday, 30 March 2021, 20:23 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Building the kernel and modules with different compilers is supposed to break
Comment by Rémi Clédou (Morhue) - Tuesday, 30 March 2021, 20:11 GMT
Some additional tests done :
- gcc 10.2.0-6 from official repo + (linux linux-headers) 5.11.9.arch1-1 from official repos = OK
- gcc 10.2.0-6 compiled by me from PKGBUILD in native + (linux linux-headers) 5.11.9.arch1-1 compiled by me from PKGBUILD in native= OK

It seem the march=native break something in gcc plugins.

Loading...