Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TrueNAS Scale build #212

Open
blaz0r opened this issue Oct 20, 2024 · 2 comments
Open

TrueNAS Scale build #212

blaz0r opened this issue Oct 20, 2024 · 2 comments

Comments

@blaz0r
Copy link

blaz0r commented Oct 20, 2024

Hi,

I have a TrueNAS Scale install which runs 6.6.44 - unfortunately the build errors out with ISO99 macro expansion errors, I believe because of the "+" in the uname -a: Linux truenas 6.6.44-production+truenas

Updating the Makefile as below to convert the + to _ seemed like a quick win, but unfortunately results in even more, different, macro errors.

EXTRAVERSION_DEFINE := $(shell var=$(EXTRAVERSION_NAME); var=$$(echo $$var | sed 's/[-+]//g' | awk '{print toupper($$0)}'); echo EXTRAVERSION$${var:-EMPTY})

Logs attached from dkms build.

I'm really at my limit of c/build tool chain knowledge here, any ideas how to advance?

Thank you, and kind regards,

make.log.underscore.txt
make.log.plus.txt

@scyto
Copy link

scyto commented Nov 18, 2024

did you ever solve this?

my log looks like this, not sure i am getting even as far as you did..

root@truenas[/home/truenas_admin/i915-sriov-dkms]# cat /var/lib/dkms/i915-sriov-dkms/2024.09.21/build/make.log
DKMS make.log for i915-sriov-dkms-2024.09.21 for kernel 6.6.44-production+truenas (x86_64)
Sun Nov 17 19:21:13 PST 2024
make: Entering directory '/usr/src/linux-headers-6.6.44-production+truenas'
KERNELRELEASE=6.6.44-production+truenas
KERNELVERSION=6.6.44
EXTRAVERSION_MAJOR=0
EXTRAVERSION_MINOR=0
EXTRAVERSION_NAME=production+truenas
EXTRAVERSION_DEFINE=EXTRAVERSION_PRODUCTION+TRUENAS
LSBRELEASE=12
LSBRELEASE_MAJOR=12
LSBRELEASE_MINOR=0
LSBRELEASE_NAME=Debian
LSBRELEASE_DEFINE=RELEASE_DEBIAN
GUCFIRMWARE_MAJOR=1
GUCFIRMWARE_MINOR=9
make[2]: *** [scripts/Makefile.build:252: /var/lib/dkms/i915-sriov-dkms/2024.09.21/build/i915.mod] Killed
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [scripts/Makefile.build:243: /var/lib/dkms/i915-sriov-dkms/2024.09.21/build/drivers/gpu/drm/i915/i915_driver.o] Killed
make[1]: *** [/usr/src/linux-headers-6.6.44-production+truenas/Makefile:1924: /var/lib/dkms/i915-sriov-dkms/2024.09.21/build] Error 2
make: *** [Makefile:237: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.6.44-production+truenas'

@blaz0r
Copy link
Author

blaz0r commented Nov 18, 2024

did you ever solve this?

my log looks like this, not sure i am getting even as far as you did..

root@truenas[/home/truenas_admin/i915-sriov-dkms]# cat /var/lib/dkms/i915-sriov-dkms/2024.09.21/build/make.log
DKMS make.log for i915-sriov-dkms-2024.09.21 for kernel 6.6.44-production+truenas (x86_64)
Sun Nov 17 19:21:13 PST 2024
make: Entering directory '/usr/src/linux-headers-6.6.44-production+truenas'
KERNELRELEASE=6.6.44-production+truenas
KERNELVERSION=6.6.44
EXTRAVERSION_MAJOR=0
EXTRAVERSION_MINOR=0
EXTRAVERSION_NAME=production+truenas
EXTRAVERSION_DEFINE=EXTRAVERSION_PRODUCTION+TRUENAS
LSBRELEASE=12
LSBRELEASE_MAJOR=12
LSBRELEASE_MINOR=0
LSBRELEASE_NAME=Debian
LSBRELEASE_DEFINE=RELEASE_DEBIAN
GUCFIRMWARE_MAJOR=1
GUCFIRMWARE_MINOR=9
make[2]: *** [scripts/Makefile.build:252: /var/lib/dkms/i915-sriov-dkms/2024.09.21/build/i915.mod] Killed
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [scripts/Makefile.build:243: /var/lib/dkms/i915-sriov-dkms/2024.09.21/build/drivers/gpu/drm/i915/i915_driver.o] Killed
make[1]: *** [/usr/src/linux-headers-6.6.44-production+truenas/Makefile:1924: /var/lib/dkms/i915-sriov-dkms/2024.09.21/build] Error 2
make: *** [Makefile:237: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.6.44-production+truenas'

Sadly not. I’ve basically resigned myself to waiting for the next truenas scale release to hopefully have the presumed next lts kernel 6.12 that should have all these sr-iov changes merged… so i guess a few months. If not, I’ll consider a switch back to proxmox with truenas as a guest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants