Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 698238 - x11-drivers/nvidia-drivers-440.26 LC_ALL=ru_RU.UTF-8 - .../work/kernel/common/inc/nv-linux.h:131:10: фатальная ошибка: asm/system.h: Нет такого файла или каталога
Summary: x11-drivers/nvidia-drivers-440.26 LC_ALL=ru_RU.UTF-8 - .../work/kernel/common...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-22 07:08 UTC by Serge Plyukhin
Modified: 2019-10-22 09:17 UTC (History)
0 users

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


Attachments
build.log (build.log,23.69 KB, text/plain)
2019-10-22 07:23 UTC, Serge Plyukhin
Details
The ebuild environment file (environment.gz,50.51 KB, application/gzip)
2019-10-22 07:27 UTC, Serge Plyukhin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Serge Plyukhin 2019-10-22 07:08:35 UTC
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
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2019-10-22 07:11:41 UTC
Please attach the entire build log to this bug report.
Comment 2 Serge Plyukhin 2019-10-22 07:23:58 UTC
Created attachment 593608 [details]
build.log
Comment 3 Serge Plyukhin 2019-10-22 07:27:27 UTC
Created attachment 593610 [details]
The ebuild environment file
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2019-10-22 08:00:36 UTC
kernel/conftest.sh says:
           if grep -q -e "$file: No such file or directory" conftest_headers$$.log > /dev/null 2>&1; then
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2019-10-22 08:03:26 UTC
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.
Comment 6 Larry the Git Cow gentoo-dev 2019-10-22 09:17:25 UTC
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(+)