Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nvidia-drivers fails to build with kernel 6.12.16-gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3957

PostPosted: Fri Mar 07, 2025 2:24 pm    Post subject: Nvidia-drivers fails to build with kernel 6.12.16-gentoo Reply with quote

Hi Guys ,
I am getting this error when rebuilding nvidia-drivers for my latest kernel
Code:

Messages for package x11-drivers/nvidia-drivers-570.124.04:

 *   CONFIG_DRM_TTM_HELPER: is not set but is needed to compile when using
 *    kernel version 6.11.x or newer while DRM_FBDEV_EMULATION is set.
 *    Cannot be directly selected in the kernel's config menus, and may need
 *    selection of a DRM device even if unused, e.g. CONFIG_DRM_QXL=m or
 *    DRM_AMDGPU=m (among others, consult the kernel config's help), can
 *    also use DRM_NOUVEAU=m as long as built as module *not* built-in.
 * Please check to make sure these options are set correctly.
 * Failure to do so may cause unexpected problems.
 * Once you have satisfied these options, please try merging
 * this package again.
 * ERROR: x11-drivers/nvidia-drivers-570.124.04::gentoo failed (setup phase):
 *   Incorrect kernel configuration options
 *

My emerge --info
Code:

Portage 3.0.67 (python 3.12.9-final-0, default/linux/amd64/23.0/desktop, gcc-14, glibc-2.41, 6.1.67-gentoo x86_64)
=================================================================
System uname: Linux-6.1.67-gentoo-x86_64-Intel-R-_Core-TM-_i7-4710HQ_CPU_@_2.50GHz-with-glibc2.41
KiB Mem:    16268848 total,  12029112 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Fri, 07 Mar 2025 12:45:00 +0000
Head commit of repository gentoo: 4c5f65cdf532e00c2ce48c6ae46e7f6093778a65
Head commit of repository gentoo-zh: 506111df064b6e88098bdd562429dcd68cb6e92b

Timestamp of repository nest: Fri, 07 Mar 2025 01:34:12 +0000
Head commit of repository nest: 03d83346a246a3dca3e0d3e1ac737cf6b046945c

Timestamp of repository science: Fri, 07 Mar 2025 12:18:45 +0000
Head commit of repository science: 146d24b08f8a48b9935da2aae5e27f51cceb3d7c

sh bash 5.2_p37
ld GNU ld (Gentoo 2.44 p1) 2.44.0
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo, 1.17-r2::gentoo
dev-build/cmake:           3.31.6::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.7.0::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.1::gentoo
dev-lang/python:           3.12.9::gentoo, 3.13.2::gentoo
dev-lang/rust-bin:         1.85.0-r1::gentoo
llvm-core/clang:           19.1.7::gentoo
llvm-core/lld:             19.1.7::gentoo
llvm-core/llvm:            19.1.7::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.60.1::gentoo
sys-apps/sandbox:          2.45::gentoo
sys-devel/binutils:        2.44::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             13.3.1_p20240614::gentoo, 14.2.1_p20241116::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.13::gentoo (virtual/os-headers)
sys-libs/glibc:            2.41::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes

gentoo-zh
    location: /var/db/repos/gentoo-zh
    sync-type: git
    sync-uri: https://github.com/microcai/gentoo-zh
    masters: gentoo
    volatile: False

localrepo
    location: /var/db/repos/localrepo
    masters: gentoo
    volatile: False

nest
    location: /var/db/repos/nest
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/nest.git
    masters: gentoo
    volatile: False

science
    location: /var/db/repos/science
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/science.git
    masters: gentoo
    volatile: False

Binary Repositories:

binhost
    priority: 9999
    sync-uri: http://ftp.ntua.gr/pub/linux/gentoo/releases/amd64/binpackages/23.0/x86-64-v3

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.1/ext-active/ /etc/php/apache2-php8.2/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j4"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cet crypt cups dbus dri dts dvd dvdr elogind encode exif flac gdbm gif gles2 gpm gtk gui iconv ipv6 jpeg kf6compat lcms libnotify libtirpc mad matroska mng mp3 mp4 mpeg multilib ncurses nls ogg opengl openmp openssl pam pango pcre pdf pipewire png policykit ppds pulseaudio qml readline screencast sdl seccomp sound spell ssl startup-notification svg test-rust theora tiff truetype udev udisks unicode upower usb vaapi vdpau vorbis vpx vulkan wayland wxwidgets x264 xattr xcb xfce xft xml xv xvid xwayland zlib" ABI_X86="64" ADA_TARGET="gcc_14" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="event" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="intel nvidia nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS


Plz advice me what to do.
Thanks a lot!
_________________
:)
Back to top
View user's profile Send private message
eeckwrk99
Apprentice
Apprentice


Joined: 14 Mar 2021
Posts: 250
Location: Gentoo forums

PostPosted: Fri Mar 07, 2025 3:07 pm    Post subject: Reply with quote

Had the same issue when trying to build 550 with 6.12 kernel.

The error message pretty much gives the solution.

As far as I'm concerned, I went with CONFIG_DRM_AMD_GPU=m, which allowed me have CONFIG_DRM_TTM_HELPER enabled. This solved the error.

See this commit.
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3484
Location: Canada

PostPosted: Fri Mar 07, 2025 5:29 pm    Post subject: Reply with quote

eeckwrk99 wrote:
Had the same issue when trying to build 550 with 6.12 kernel.

The error message pretty much gives the solution.

As far as I'm concerned, I went with CONFIG_DRM_AMD_GPU=m, which allowed me have CONFIG_DRM_TTM_HELPER enabled. This solved the error.

See this commit.



Does one actually need DRM_FBDEV_EMULATION to be set ? (which seems triggers the requirements)
Back to top
View user's profile Send private message
eeckwrk99
Apprentice
Apprentice


Joined: 14 Mar 2021
Posts: 250
Location: Gentoo forums

PostPosted: Fri Mar 07, 2025 7:08 pm    Post subject: Reply with quote

dmpogo wrote:
Does one actually need DRM_FBDEV_EMULATION to be set ? (which seems triggers the requirements)


I guess so considering the message from the ebuild?

At least I did have CONFIG_DRM_FBDEV_EMULATION=y in my 6.6.74 .config file when updating to 6.12.16.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23171

PostPosted: Fri Mar 07, 2025 7:39 pm    Post subject: Reply with quote

No, the ebuild message says that if DRM_FBDEV_EMULATION is set, then CONFIG_DRM_TTM_HELPER is needed. This suggests to me that if DRM_FBDEV_EMULATION is not set, then there is no requirement for CONFIG_DRM_TTM_HELPER. Hence, it seems reasonable to question whether OP could solve the issue by unsetting DRM_FBDEV_EMULATION. If OP has a need for DRM_FBDEV_EMULATION, then the answer would be that unsetting it is wrong. If OP has it set without need, unsetting it could be the easier solution.
Back to top
View user's profile Send private message
eeckwrk99
Apprentice
Apprentice


Joined: 14 Mar 2021
Posts: 250
Location: Gentoo forums

PostPosted: Fri Mar 07, 2025 8:07 pm    Post subject: Reply with quote

Hu wrote:
No, the ebuild message says that if DRM_FBDEV_EMULATION is set, then CONFIG_DRM_TTM_HELPER is needed. This suggests to me that if DRM_FBDEV_EMULATION is not set, then there is no requirement for CONFIG_DRM_TTM_HELPER.


Yes, that's what I meant.

Quote:
Does one actually need DRM_FBDEV_EMULATION to be set ? (which seems triggers the requirements)


I thought that dmpogo was asking if having this option set was required to trigger the error, which is what the error message in the ebuild says. Turns out it was just a general questioning on whether having DRM_FBDEV_EMULATION set was needed in general.

Sorry for the confusion!
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3484
Location: Canada

PostPosted: Fri Mar 07, 2025 8:48 pm    Post subject: Reply with quote

eeckwrk99 wrote:
Hu wrote:
No, the ebuild message says that if DRM_FBDEV_EMULATION is set, then CONFIG_DRM_TTM_HELPER is needed. This suggests to me that if DRM_FBDEV_EMULATION is not set, then there is no requirement for CONFIG_DRM_TTM_HELPER.


Yes, that's what I meant.

Quote:
Does one actually need DRM_FBDEV_EMULATION to be set ? (which seems triggers the requirements)


I thought that dmpogo was asking if having this option set was required to trigger the error, which is what the error message in the ebuild says. Turns out it was just a general questioning on whether having DRM_FBDEV_EMULATION set was needed in general.

Sorry for the confusion!


No, I meant exactly how Hu understood. For me the first question seeing this error message would be, do I need this fbdev emulation, or can I unset it and solve the problem this way (instead of enabling unneeded modules)
Back to top
View user's profile Send private message
eeckwrk99
Apprentice
Apprentice


Joined: 14 Mar 2021
Posts: 250
Location: Gentoo forums

PostPosted: Fri Mar 07, 2025 9:59 pm    Post subject: Reply with quote

dmpogo wrote:
No, I meant exactly how Hu understood. For me the first question seeing this error message would be, do I need this fbdev emulation, or can I unset it and solve the problem this way (instead of enabling unneeded modules)


Indeed, this would be a better approach assuming one can disable DRM_FBDEV_EMULATION.

Code:
CONFIG_DRM_FBDEV_EMULATION:

Choose this option if you have a need for the legacy fbdev
support. Note that this support also provides the linux console
support on top of your modesetting driver.

If in doubt, say "Y".

Symbol: DRM_FBDEV_EMULATION [=y]
Type  : bool
Defined at drivers/gpu/drm/Kconfig:214
  Prompt: Enable legacy fbdev support for your modesetting driver
  Depends on: HAS_IOMEM [=y] && DRM [=m]
  Location:
    -> Device Drivers
      -> Graphics support
        -> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) (DRM [=m])
          -> Enable legacy fbdev support for your modesetting driver (DRM_FBDEV_EMULATION [=y])
Selects: FRAMEBUFFER_CONSOLE_DETECT_PRIMARY [=y]


I decided to keep it enabled due to "If in doubt, say "Y"." when I had the error but maybe I don't need it.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3957

PostPosted: Sat Mar 08, 2025 10:33 pm    Post subject: Reply with quote

Thamk you all.
Code:

CONFIG_DRM_QXL=m

solved the problem.
By the way I also had problems with
Code:

CONFIG_MODULE_COMPRESS_ZSTD=y

which stopped working because
Code:

CONFIG_MODULE_COMPRESS=y

was not present for some obscure reason.
Just my experience.
It boots fine and i havent yet seen the end of the world :)
_________________
:)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum