From: bugzilla@busybox.net
To: buildroot@uclibc.org
Subject: [Buildroot] [Bug 14856] New: nvidia-driver package fails to build
Date: Mon, 20 Jun 2022 09:03:00 +0000 [thread overview]
Message-ID: <bug-14856-163@https.bugs.busybox.net/> (raw)
https://bugs.busybox.net/show_bug.cgi?id=14856
Bug ID: 14856
Summary: nvidia-driver package fails to build
Product: buildroot
Version: 2022.05
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned@buildroot.uclibc.org
Reporter: ian_ormshaw@waters.com
CC: buildroot@uclibc.org
Target Milestone: ---
Created attachment 9326
--> https://bugs.busybox.net/attachment.cgi?id=9326&action=edit
config files
I an trying to build a system with kernel 5.15.44-rt46 to use openCl on an
nvidia graphics card. If I enable Target packages->Hardware
handling->nvidia-driver I get the following build error:
>>> linux 5.15.44 Installing to images directory
/usr/bin/install -m 0644 -D
/home/ian/build/amst-hiwire-linux-8009b251-x86_64/buildroot/build/linux-5.15.44/arch/x86/boot/bzImage
/home/ian/build/amst-hiwire-linux-8009b251-x86_64/buildroot/images/bzImage
touch
/home/ian/build/amst-hiwire-linux-8009b251-x86_64/buildroot/build/linux-5.15.44/.stamp_images_installed
touch
/home/ian/build/amst-hiwire-linux-8009b251-x86_64/buildroot/build/linux-5.15.44/.stamp_installed
>>> nvidia-driver 390.132 Building
>>> nvidia-driver 390.132 Building kernel module(s)
PATH="/home/ian/build/amst-hiwire-linux-8009b251-x86_64/buildroot/host/bin:/home/ian/build/amst-hiwire-linux-8009b251-x86_64/buildroot/host/sbin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/ian/bin"
PKG_CONFIG="/home/ian/build/amst-hiwire-linux-8009b251-x86_64/buildroot/host/bin/pkg-config"
PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
PKG_CONFIG_LIBDIR="/home/ian/build/amst-hiwire-linux-8009b251-x86_64/buildroot/host/lib/pkgconfig:/home/ian/build/amst-hiwire-linux-8009b251-x86_64/buildroot/host/share/pkgconfig"
BR_BINARIES_DIR=/home/ian/build/amst-hiwire-linux-8009b251-x86_64/buildroot/images
KCFLAGS=-Wno-attribute-alias /usr/bin/make -j17 -C
/home/ian/build/amst-hiwire-linux-8009b251-x86_64/buildroot/build/linux-5.15.44
HOSTCC="/home/ian/build/amst-hiwire-linux-8009b251-x86_64/buildroot/host/bin/ccache
/usr/lib64/ccache/gcc -O2
-I/home/ian/build/amst-hiwire-linux-8009b251-x86_64/buildroot/host/include
-L/home/ian/build/amst-hiwire-linux-8009b251-x86_64/buildroot/host/lib
-Wl,-rpath,/home/ian/build/amst-hiwire-linux-8009b251-x86_64/buildroot/host/lib"
ARCH=x86_64
INSTALL_MOD_PATH=/home/ian/build/amst-hiwire-linux-8009b251-x86_64/buildroot/target
CROSS_COMPILE="/home/ian/build/amst-hiwire-linux-8009b251-x86_64/buildroot/host/bin/x86_64-WatersAMST-linux-gnu-"
WERROR=0
DEPMOD=/home/ian/build/amst-hiwire-linux-8009b251-x86_64/buildroot/host/sbin/depmod
NV_KERNEL_SOURCES="/home/ian/build/amst-hiwire-linux-8009b251-x86_64/buildroot/build/linux-5.15.44"
NV_KERNEL_OUTPUT="/home/ian/build/amst-hiwire-linux-8009b251-x86_64/buildroot/build/linux-5.15.44"
NV_KERNEL_MODULES="nvidia nvidia-modeset nvidia-drm nvidia-uvm"
PWD=/home/ian/build/amst-hiwire-linux-8009b251-x86_64/buildroot/build/nvidia-driver-390.132/kernel
M=/home/ian/build/amst-hiwire-linux-8009b251-x86_64/buildroot/build/nvidia-driver-390.132/kernel
modules
make[2]: Entering directory
'/home/ian/build/amst-hiwire-linux-8009b251-x86_64/buildroot/build/linux-5.15.44'
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (
\
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are
missing.";\
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix
it."; \
echo >&2 ; \
/bin/false)
/usr/bin/make -f ./scripts/Makefile.build
obj=/home/ian/build/amst-hiwire-linux-8009b251-x86_64/buildroot/build/nvidia-driver-390.132/kernel
\
single-build= \
need-builtin=1 need-modorder=1
Compiler version check failed:
The major and minor number of the compiler used to
compile the kernel:
x86_64-WatersAMST-linux-gnu-gcc.br_real (Buildroot 2022.05) 9.4.0, GNU ld (GNU
Binutils) 2.37
does not match the compiler used here:
x86_64-WatersAMST-linux-gnu-gcc.br_real (Buildroot 2022.05) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
It is recommended to set the CC environment variable
to the compiler that was used to compile the kernel.
The compiler version check can be disabled by setting
the IGNORE_CC_MISMATCH environment variable to "1".
However, mixing compiler versions between the kernel
and kernel modules can result in subtle bugs that are
difficult to diagnose.
*** Failed CC version check. Bailing out! ***
make[3]: ***
[/home/ian/build/amst-hiwire-linux-8009b251-x86_64/buildroot/build/nvidia-driver-390.132/kernel/Kbuild:189:
cc_version_check] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [Makefile:1868:
/home/ian/build/amst-hiwire-linux-8009b251-x86_64/buildroot/build/nvidia-driver-390.132/kernel]
Error 2
make[2]: Leaving directory
'/home/ian/build/amst-hiwire-linux-8009b251-x86_64/buildroot/build/linux-5.15.44'
make[1]: *** [package/pkg-generic.mk:294:
/home/ian/build/amst-hiwire-linux-8009b251-x86_64/buildroot/build/nvidia-driver-390.132/.stamp_built]
Error 2
make[1]: Leaving directory
'/home/ian/projects/amst-hiwire-linux/source/buildroot'
make: *** [Makefile:616: buildroot] Error 2
My development system is Fedora 36 GNU/Linux 5.18.5-200.fc36.x86_64
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next reply other threads:[~2022-06-20 9:03 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-20 9:03 bugzilla [this message]
2022-06-20 9:16 ` [Buildroot] [Bug 14856] nvidia-driver package fails to build bugzilla
2022-06-20 13:47 ` bugzilla
2022-06-20 14:17 ` bugzilla
2022-06-20 17:32 ` bugzilla
2022-06-21 7:30 ` bugzilla
2022-06-21 8:43 ` bugzilla
2022-06-21 12:02 ` bugzilla
2022-06-21 12:43 ` bugzilla
2024-06-15 15:03 ` bugzilla
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-14856-163@https.bugs.busybox.net/ \
--to=bugzilla@busybox.net \
--cc=buildroot@uclibc.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox