x11-drivers/nvidia-drivers-440.26 and linux-5.3.7-gentoo if LANG=ru_RU.UTF-8 have fatal error: asm/system.h * ERROR: x11-drivers/nvidia-drivers-440.26::gentoo failed (compile phase): * emake failed !!! but !!! if # LC_ALL="C" emerge -1 nvidia-drivers compile without problems Reproducible: Always Steps to Reproduce: 1.do nothing with locale / start with LC_ALL="C" 2.emerge -1 nvidia-drivers 3.not compile / compile maybe it will help someone save time
Please attach the entire build log to this bug report.
Created attachment 593608 [details] build.log
Created attachment 593610 [details] The ebuild environment file
kernel/conftest.sh says: if grep -q -e "$file: No such file or directory" conftest_headers$$.log > /dev/null 2>&1; then
Additionally, nvidia-installer apparently already works around this (according to NVIDIA_Changelog): ======== Release 340 Entries ======== [...] * Updated nvidia-installer to avoid problems with commands whose proper functionality may be dependent on system localization (e.g. via the LANG environment variable.) For example, some kernel configurations may produce unusable kernel modules if LANG is set to a language other than English.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aed27473c455465e20eff60f0b623a6914a1e268 commit aed27473c455465e20eff60f0b623a6914a1e268 Author: Jeroen Roovers <jer@gentoo.org> AuthorDate: 2019-10-22 09:11:51 +0000 Commit: Jeroen Roovers <jer@gentoo.org> CommitDate: 2019-10-22 09:17:21 +0000 x11-drivers/nvidia-drivers: Fix conftest.sh locale expectations conftest.sh in 440.* expects to find "$file: No such file or directory" in compile test output for kernel headers, but with LC_ALL set, its translations will not trigger that, resulting in false positives for certain headers where the test intended to rule out false negatives. Fix this by setting the default locale in conftest.sh. Package-Manager: Portage-2.3.77, Repoman-2.3.17 Fixes: https://bugs.gentoo.org/698238 Signed-off-by: Jeroen Roovers <jer@gentoo.org> .../nvidia-drivers/files/nvidia-drivers-440.26-locale.patch | 13 +++++++++++++ x11-drivers/nvidia-drivers/nvidia-drivers-440.26.ebuild | 3 +++ 2 files changed, 16 insertions(+)