Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Nvidia prob with 5.8.x kernels
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Nreal
Apprentice
Apprentice


Joined: 06 Jan 2009
Posts: 206

PostPosted: Fri Sep 18, 2020 5:42 am    Post subject: [solved] Nvidia prob with 5.8.x kernels Reply with quote

None of the nvidia drivers doesnt compile with 5.8.x kernels.
Tried with -uvm -tools -static-libs..

What Im doing wrong here? Installs just fine with 5.7.x kernels.

Code:
[ebuild   R    ] x11-drivers/nvidia-drivers-455.23.04:0/455.23::gentoo  USE="X driver kms (libglvnd) multilib static-libs tools uvm -compat -gtk3 -wayland" ABI_X86="32 (64) (-x32)" 0 KiB


Code:

DNAME='"nvidia_uvm"' /var/tmp/portage/x11-drivers/nvidia-drivers-455.23.04/work/kernel/nvidia-uvm/uvm_gpu.c | scripts/genksyms/genksyms    -r /dev/null > /var/tmp/portage/x11-drivers/nvidia-drivers-455.23.04/work/kernel/nvidia-uvm/.tmp_uvm_gpu.ver; x86_64-pc-linux-gnu-ld -m elf_x86_64  -z max-page-size=0x200000 -r -o /var/tmp/portage/x11-drivers/nvidia-drivers-455.23.04/work/kernel/nvidia-uvm/.tmp_uvm_gpu.o /var/tmp/portage/x11-drivers/nvidia-drivers-455.23.04/work/kernel/nvidia-uvm/uvm_gpu.o -T /var/tmp/portage/x11-drivers/nvidia-drivers-455.23.04/work/kernel/nvidia-uvm/.tmp_uvm_gpu.ver; mv -f /var/tmp/portage/x11-drivers/nvidia-drivers-455.23.04/work/kernel/nvidia-uvm/.tmp_uvm_gpu.o /var/tmp/portage/x11-drivers/nvidia-drivers-455.23.04/work/kernel/nvidia-uvm/uvm_gpu.o; rm -f /var/tmp/portage/x11-drivers/nvidia-drivers-455.23.04/work/kernel/nvidia-uvm/.tmp_uvm_gpu.ver; fi
   ./tools/objtool/objtool orc generate  --module --no-fp --retpoline --uaccess /var/tmp/portage/x11-drivers/nvidia-drivers-455.23.04/work/kernel/nvidia-uvm/uvm_va_block.o
  if x86_64-pc-linux-gnu-objdump -h /var/tmp/portage/x11-drivers/nvidia-drivers-455.23.04/work/kernel/nvidia-uvm/uvm_va_block.o | grep -q __ksymtab; then x86_64-pc-linux-gnu-gcc -E -D__GENKSYMS__ -Wp,-MMD,/var/tmp/portage/x11-drivers/nvidia-drivers-455.23.04/work/kernel/nvidia-uvm/.uvm_va_block.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=native -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -fplugin=./scripts/gcc-plugins/latent_entropy_plugin.so -fplugin=./scripts/gcc-plugins/structleak_plugin.so -fplugin=./scripts/gcc-plugins/stackleak_plugin.so -DLATENT_ENTROPY_PLUGIN -fplugin-arg-structleak_plugin-byref -DSTRUCTLEAK_PLUGIN -DSTACKLEAK_PLUGIN -fplugin-arg-stackleak_plugin-track-min-size=100 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wimplicit-fallthrough -Wno-unused-const-variable -fomit-frame-pointer -fno-var-tracking-assignments -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-zero-length-bounds -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -fcf-protection=none -Wno-packed-not-aligned -I/var/tmp/portage/x11-drivers/nvidia-drivers-455.23.04/work/kernel/common/inc -I/var/tmp/portage/x11-drivers/nvidia-drivers-455.23.04/work/kernel -Wall -MD -Wno-cast-qual -Wno-error -Wno-format-extra-args -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"455.23.04\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Werror=undef -DNV_SPECTRE_V2=0 -O2 -DNVIDIA_UVM_ENABLED -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -DLinux -D__linux__ -I/var/tmp/portage/x11-drivers/nvidia-drivers-455.23.04/work/kernel/nvidia-uvm  -DMODULE  -DKBUILD_BASENAME='"uvm_va_block"' -DKBUILD_MODNAME='"nvidia_uvm"' /var/tmp/portage/x11-drivers/nvidia-drivers-455.23.04/work/kernel/nvidia-uvm/uvm_va_block.c | scripts/genksyms/genksyms    -r /dev/null > /var/tmp/portage/x11-drivers/nvidia-drivers-455.23.04/work/kernel/nvidia-uvm/.tmp_uvm_va_block.ver; x86_64-pc-linux-gnu-ld -m elf_x86_64  -z max-page-size=0x200000 -r -o /var/tmp/portage/x11-drivers/nvidia-drivers-455.23.04/work/kernel/nvidia-uvm/.tmp_uvm_va_block.o /var/tmp/portage/x11-drivers/nvidia-drivers-455.23.04/work/kernel/nvidia-uvm/uvm_va_block.o -T /var/tmp/portage/x11-drivers/nvidia-drivers-455.23.04/work/kernel/nvidia-uvm/.tmp_uvm_va_block.ver; mv -f /var/tmp/portage/x11-drivers/nvidia-drivers-455.23.04/work/kernel/nvidia-uvm/.tmp_uvm_va_block.o /var/tmp/portage/x11-drivers/nvidia-drivers-455.23.04/work/kernel/nvidia-uvm/uvm_va_block.o; rm -f /var/tmp/portage/x11-drivers/nvidia-drivers-455.23.04/work/kernel/nvidia-uvm/.tmp_uvm_va_block.ver; fi
make[1]: *** [Makefile:1753: /var/tmp/portage/x11-drivers/nvidia-drivers-455.23.04/work/kernel] Error 2
make[1]: Leaving directory '/usr/src/linux-5.8.10-gentoo'
make: *** [Makefile:81: modules] Error 2
 * ERROR: x11-drivers/nvidia-drivers-455.23.04::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=x11-drivers/nvidia-drivers-455.23.04::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=x11-drivers/nvidia-drivers-455.23.04::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-455.23.04/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-455.23.04/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-drivers/nvidia-drivers-455.23.04/work/kernel'
 * S: '/var/tmp/portage/x11-drivers/nvidia-drivers-455.23.04/work/'

>>> Failed to emerge x11-drivers/nvidia-drivers-455.23.04, Log file:

Code:

emerge --info '=x11-drivers/nvidia-drivers-455.23.04::gentoo'
Portage 3.0.7 (python 3.7.9-final-0, default/linux/amd64/17.1/desktop, gcc-10.2.0, glibc-2.32-r1, 5.7.19-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.7.19-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5-2696_v3_@_2.30GHz-with-gentoo-2.7
KiB Mem:   148359216 total, 116484204 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Fri, 18 Sep 2020 03:30:01 +0000
Head commit of repository gentoo: ccf04e1c61e2591d928ac93870a164d25dcd7882
sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          2.7.18-r3::gentoo, 3.6.12::gentoo, 3.7.9::gentoo, 3.8.5::gentoo, 3.9.0_rc1::gentoo
dev-util/cmake:           3.18.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.15.1-r2::gentoo, 1.16.2::gentoo
sys-devel/binutils:       2.34-r2::gentoo
sys-devel/gcc:            8.4.0-r1::gentoo, 10.2.0-r1::gentoo
sys-devel/gcc-config:     2.3.2::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.8::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes

paikalliset
    location: /usr/local/portage
    masters: gentoo

crossdev
    location: /usr/local/portage-crossdev
    masters: gentoo
    priority: 10

bombo82
    location: /var/lib/layman/bombo82
    masters: gentoo
    priority: 50

brave-overlay
    location: /var/lib/layman/brave-overlay
    masters: gentoo
    priority: 50

causelay
    location: /var/lib/layman/causelay
    masters: gentoo
    priority: 50

reagentoo
    location: /var/lib/layman/reagentoo
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    masters: gentoo
    priority: 50

vmacs
    location: /var/lib/layman/vmacs
    masters: gentoo
    priority: 50

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/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /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-php7.2/ext-active/ /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://mirror.mdfnet.se/gentoo"
LANG="fi_FI.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fi en no"
PKGDIR="/usr/portage/packages"
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"
USE="// 3d 64bit X a52 aac aacs ace acl acpi addns ads alsa amd64 apache2 apng appindicator aspell audit avi avx avx2 bash-completion berkdb blueray bluetooth bluez bluray branding bzip2 cairo calendar capi caps cdda cdr cgi cli connection-sharing corefonts creds crypt css cue cups cursors custom-cflags dbus designer device-mapper devil dhcp-tools disk-partition djvu dlz dos dri dts dvb dvd dvd-read dvdarchive dvdr ecdh egl emboss encode equalizer examples exif experimental extraengine extras fax fbcon ffmpeg flac fontconfig fortran fpx fuse gconf gd gdbm gdu gif git gles2 gnome gnome-keyring gnuplot go gphoto2 gpm grammar graphviz gssapi gtk gui h264 hal hddtemp heimdal hpijs hwaccel icarus icons iconv icu imagemagick innodb-lz4 innodb-lzo innodb-snappy inputlirc inspector introspection iptables iptv ipv6 iso jack java java6 javascript joystick jpeg jpeg2k jre kde kdenlive kerberos lame latex lcms lfuda libextractor libglvnd libnotify libsamplerate libtirpc libusb0 lirc livebuffer lm_sensors lto lua lz4 mad matroska melt menuorg mercurial mikmod minizip mmx mng mod mp3 mp4 mpeg mpeg2 mpfi mpx mssql mtp multilib multitarget music mysql mysqli mysqlnd native-headset ncurses netapi networkmanager nfs nls nptl ntl nvidia objc objc++ objc-gc odbc ofono-headset ogg ogm opengl openmp openrc optimized-qmake otr pam pango pcap pch pcre pdf pdo perl pic pipelight pkcs11 playlist pmu png policykit postscript ppds pulseaudio python qt5 rar raw rdoc readline realtime regression-test resolvconf samba scanner script scripttools sdk sdl seccomp sensord smartcard smp softosd sortrecords sox speex spell split-usr sqlite sse sse2 ssl startup-notification static-ppds stl subversion suid svg taglib tahoma tcpd teamd teletext theora thesaurus threads tiff tools truetype ttf ttxtsubs udev udisks unicode upower usb user-session utils uvm v4l2 vdpau vdr vobsub vorbis warmstarts wav widevine widgets winbind wms wxwidgets x264 x265 xattr xcb xine xinerama xkb xml xmp xpm xv xvid zip zlib" ABI_X86="64 32" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="samsung canon sony" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev joystick" KERNEL="linux" L10N="fi en-GB en-US nb-no nb" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_6 python3_7 python3_8 python3_9" RUBY_TARGETS="ruby27 ruby26 ruby25" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

x11-drivers/nvidia-drivers-455.23.04::gentoo was built with the following:
USE="X driver kms (libglvnd) multilib static-libs tools uvm -compat -gtk3 -wayland" ABI_X86="32 (64) (-x32)"


Last edited by Nreal on Fri Sep 18, 2020 10:53 am; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24636
Location: here

PostPosted: Fri Sep 18, 2020 5:49 am    Post subject: Reply with quote

You should post full build.log with wgetpaste
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Nreal
Apprentice
Apprentice


Joined: 06 Jan 2009
Posts: 206

PostPosted: Fri Sep 18, 2020 6:48 am    Post subject: Reply with quote

fedeliallalinea wrote:
You should post full build.log with wgetpaste


here it is https://kuleksii.com/build.log
Back to top
View user's profile Send private message
Ionen
Veteran
Veteran


Joined: 06 Dec 2018
Posts: 1251

PostPosted: Fri Sep 18, 2020 8:20 am    Post subject: Reply with quote

I see what's happening, from nvidia-drivers' source:
Code:
#if NV_ENABLE_BUILTIN_PAT_SUPPORT
[...]
    __flush_tlb();

__flush_tlb() is gone in 5.8.x but if CONFIG_X86_PAT=y is set in the kernel then it doesn't matter. This is something you should definitely set either way.
Back to top
View user's profile Send private message
Nreal
Apprentice
Apprentice


Joined: 06 Jan 2009
Posts: 206

PostPosted: Fri Sep 18, 2020 10:52 am    Post subject: Reply with quote

Ionen wrote:
I see what's happening, from nvidia-drivers' source:
Code:
#if NV_ENABLE_BUILTIN_PAT_SUPPORT
[...]
    __flush_tlb();

__flush_tlb() is gone in 5.8.x but if CONFIG_X86_PAT=y is set in the kernel then it doesn't matter. This is something you should definitely set either way.


Thank you very much :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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