Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
@ 2023-03-19 21:00 egrain
  2023-03-20  2:32 ` sgn
                   ` (31 more replies)
  0 siblings, 32 replies; 33+ messages in thread
From: egrain @ 2023-03-19 21:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2069 bytes --]

New issue by egrain on void-packages repository

https://github.com/void-linux/void-packages/issues/42871

Description:
### Is this a new report?

Yes

### System Info

musl 6.1.19_1 #1 SMP PREEMPT_DYNAMIC Wed Mar 15 13:49:56 UTC 2023 x86_64 GNU/Linux

### Package(s) Affected

zfs-2.1.9_1  

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

Not sure, seems similar:
https://www.reddit.com/r/voidlinux/comments/9yz777/comment/ea7u041/
https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/1683340

### Expected behaviour

Install successfully, not just claim it did.

### Actual behaviour

$ xboxplaystation-install zfs
...
zfs-2.1.9_1: configuring ...
DKMS module 'zfs-2.1.9' already added, skipping.
Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
DKMS module 'zfs-2.1.9' failed to build, please check /var/lib/dkms
for errors in the log file.
Regenerating initramfs images using kernel hook 20-initramfs
dracut-install: Failed to find module 'zfs'
dracut: FAILED:  /usr/lib/dracut/dracut-install -D /var/tmp/dracut.wkwa04/initramfs --kerneldir /lib/modules/6.1.19_1/ -m zfs
dracut: installkernel failed in module zfs
zfs-2.1.9_1: installed successfully.

$ cat /var/lib/dkms/zfs/2.1.9/build/make.log 
DKMS make.log for zfs-2.1.9 for kernel 6.1.19_1 (x86_64)
Sun Mar 19 20:53:34 UTC 2023
make: Entering directory '/var/lib/dkms/zfs/2.1.9/build/module'
make: *** No targets specified and no makefile found.  Stop.
make: Leaving directory '/var/lib/dkms/zfs/2.1.9/build/module'

$ xboxplaystation-query -Rs headers |grep 6.1.19
[*] linux6.1-headers-6.1.19_1                    Linux kernel and modules (6.1 series) - source headers for 3rd party modules

$ ls /boot
config-6.1.19_1  grub  initramfs-6.1.19_1.img  vmlinuz-6.1.19_1

$ xboxplaystation-pkgdb -a     returns nothing.

### Steps to reproduce

1. Have musl (though I haven't actually tested if it works on glibc)
2. doas xbps-install -Su
3. doas xbps-remove -Oo 
4. doas vkpurge rm all
5. doas xbps-install zfs

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
  2023-03-19 21:00 [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED! egrain
@ 2023-03-20  2:32 ` sgn
  2023-03-20  8:02 ` egrain
                   ` (30 subsequent siblings)
  31 siblings, 0 replies; 33+ messages in thread
From: sgn @ 2023-03-20  2:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 191 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/42871#issuecomment-1475523554

Comment:
Not reproducible! Please share your dkms build log.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
  2023-03-19 21:00 [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED! egrain
  2023-03-20  2:32 ` sgn
@ 2023-03-20  8:02 ` egrain
  2023-03-20 10:02 ` egrain
                   ` (29 subsequent siblings)
  31 siblings, 0 replies; 33+ messages in thread
From: egrain @ 2023-03-20  8:02 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 367 bytes --]

New comment by egrain on void-packages repository

https://github.com/void-linux/void-packages/issues/42871#issuecomment-1475776463

Comment:
All I could find was this /var/lib/dkms/zfs/2.1.9/build/make.log, which I added already.
Is there anything else I have to do to produce one or did I just not find it? Sorry, I just use stuff and make bad xbps console jokes.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
  2023-03-19 21:00 [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED! egrain
  2023-03-20  2:32 ` sgn
  2023-03-20  8:02 ` egrain
@ 2023-03-20 10:02 ` egrain
  2023-03-20 14:43 ` sgn
                   ` (28 subsequent siblings)
  31 siblings, 0 replies; 33+ messages in thread
From: egrain @ 2023-03-20 10:02 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 688 bytes --]

New comment by egrain on void-packages repository

https://github.com/void-linux/void-packages/issues/42871#issuecomment-1475935163

Comment:
I tried installing it on another void musl system. Same error. Everything else works fine on that machine though. Qemu, lxc, openvpn, sshd, updates and boots without any issues. I installed both following the chroot documentation. This one 2 years ago. The one where I first encountered the error I installed last December.

I included the install output and /var/lib/dkms/zfs/2.1.9/build/make.log:
[zfs_other_void_musl_box_install_log.txt](https://github.com/void-linux/void-packages/files/11016360/zfs_other_void_musl_box_install_log.txt)


^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
  2023-03-19 21:00 [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED! egrain
                   ` (2 preceding siblings ...)
  2023-03-20 10:02 ` egrain
@ 2023-03-20 14:43 ` sgn
  2023-03-20 14:47 ` sgn
                   ` (27 subsequent siblings)
  31 siblings, 0 replies; 33+ messages in thread
From: sgn @ 2023-03-20 14:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 259 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/42871#issuecomment-1476362740

Comment:
What is the output of `xbps-query -p pkgver zfs; xbps-query -p pkgver linux6.1; xbps-query -p pkgver linux6.1-headers`?

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
  2023-03-19 21:00 [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED! egrain
                   ` (3 preceding siblings ...)
  2023-03-20 14:43 ` sgn
@ 2023-03-20 14:47 ` sgn
  2023-03-20 15:11 ` egrain
                   ` (26 subsequent siblings)
  31 siblings, 0 replies; 33+ messages in thread
From: sgn @ 2023-03-20 14:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 292 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/42871#issuecomment-1476369741

Comment:
`musl 6.1.19_1 #1 SMP PREEMPT_DYNAMIC Wed Mar 15 13:49:56 UTC 2023 x86_64 GNU/Linux` How can you generate this line? This doesn't match with `uname -a`?

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
  2023-03-19 21:00 [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED! egrain
                   ` (4 preceding siblings ...)
  2023-03-20 14:47 ` sgn
@ 2023-03-20 15:11 ` egrain
  2023-03-20 15:12 ` egrain
                   ` (25 subsequent siblings)
  31 siblings, 0 replies; 33+ messages in thread
From: egrain @ 2023-03-20 15:11 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 641 bytes --]

New comment by egrain on void-packages repository

https://github.com/void-linux/void-packages/issues/42871#issuecomment-1476413358

Comment:
$ xbps-query -p pkgver zfs; xbps-query -p pkgver linux6.1; xbps-query -p pkgver linux6.1-headers
zfs-2.1.9_1
linux6.1-6.1.19_1
linux6.1-headers-6.1.19_1

$ uname -a | sed -E 's/^Linux\s(\S+)/musl/g'
I saw the dependencies of xtools, and figured only musl was missing, so I replaced the first two words with it.

$ xbps-query -Rs musl |grep \*
[*] musl-1.1.24_15                            Musl C library
[*] musl-fts-1.2.7_4                          Implementation of fts(3) for musl libc

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
  2023-03-19 21:00 [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED! egrain
                   ` (5 preceding siblings ...)
  2023-03-20 15:11 ` egrain
@ 2023-03-20 15:12 ` egrain
  2023-03-20 15:16 ` egrain
                   ` (24 subsequent siblings)
  31 siblings, 0 replies; 33+ messages in thread
From: egrain @ 2023-03-20 15:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 644 bytes --]

New comment by egrain on void-packages repository

https://github.com/void-linux/void-packages/issues/42871#issuecomment-1476413358

Comment:
$ xbps-query -p pkgver zfs; xbps-query -p pkgver linux6.1; xbps-query -p pkgver linux6.1-headers
zfs-2.1.9_1
linux6.1-6.1.19_1
linux6.1-headers-6.1.19_1

$ uname -a | sed -E 's/^Linux\s(\S+)/musl/g'
I saw the dependencies of xtools, and figured only musl was missing, so I replaced the first two words with it.

$ xbps-query -Rs musl |grep \\*
[\*] musl-1.1.24_15                            Musl C library
[\*] musl-fts-1.2.7_4                          Implementation of fts(3) for musl libc

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
  2023-03-19 21:00 [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED! egrain
                   ` (6 preceding siblings ...)
  2023-03-20 15:12 ` egrain
@ 2023-03-20 15:16 ` egrain
  2023-03-20 15:18 ` egrain
                   ` (23 subsequent siblings)
  31 siblings, 0 replies; 33+ messages in thread
From: egrain @ 2023-03-20 15:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 915 bytes --]

New comment by egrain on void-packages repository

https://github.com/void-linux/void-packages/issues/42871#issuecomment-1476413358

Comment:
$ xbps-query -p pkgver zfs; xbps-query -p pkgver linux6.1; xbps-query -p pkgver linux6.1-headers
zfs-2.1.9_1
linux6.1-6.1.19_1
linux6.1-headers-6.1.19_1

$ uname -a | sed -E 's/^Linux\s(\S+)/musl/g'
I saw the dependencies of xtools, and figured only musl was missing, so I replaced the first two words with it.

$ xbps-query -Rs musl |grep \\*
[\*] musl-1.1.24_15                            Musl C library
[\*] musl-fts-1.2.7_4                          Implementation of fts(3) for musl libc

Ha, this one is better, I think:
$ xbps-query -l|grep musl
ii musl-1.1.24_15                     Musl C library
ii musl-devel-1.1.24_15               Musl C library - development files
ii musl-fts-1.2.7_4                   Implementation of fts(3) for musl libc


^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
  2023-03-19 21:00 [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED! egrain
                   ` (7 preceding siblings ...)
  2023-03-20 15:16 ` egrain
@ 2023-03-20 15:18 ` egrain
  2023-03-20 16:01 ` sgn
                   ` (22 subsequent siblings)
  31 siblings, 0 replies; 33+ messages in thread
From: egrain @ 2023-03-20 15:18 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1059 bytes --]

New comment by egrain on void-packages repository

https://github.com/void-linux/void-packages/issues/42871#issuecomment-1476413358

Comment:
$ xbps-query -p pkgver zfs; xbps-query -p pkgver linux6.1; xbps-query -p pkgver linux6.1-headers
zfs-2.1.9_1
linux6.1-6.1.19_1
linux6.1-headers-6.1.19_1

$ uname -a | sed -E 's/^Linux\s(\S+)/musl/g'
I saw the dependencies of xtools, and figured only musl was missing, so I replaced the first two words with it.

$ xbps-query -Rs musl |grep \\*
[\*] musl-1.1.24_15                            Musl C library
[\*] musl-fts-1.2.7_4                          Implementation of fts(3) for musl libc

Ha, this one is better, I think:
$ xbps-query -l|grep musl
ii musl-1.1.24_15                     Musl C library
ii musl-devel-1.1.24_15               Musl C library - development files
ii musl-fts-1.2.7_4                   Implementation of fts(3) for musl libc

Oh, sshed into the wrong box. anyway, i have the devel file installed on the newer box where the other stuff is from. Sorry for the confusion.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
  2023-03-19 21:00 [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED! egrain
                   ` (8 preceding siblings ...)
  2023-03-20 15:18 ` egrain
@ 2023-03-20 16:01 ` sgn
  2023-03-20 16:11 ` egrain
                   ` (21 subsequent siblings)
  31 siblings, 0 replies; 33+ messages in thread
From: sgn @ 2023-03-20 16:01 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 588 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/42871#issuecomment-1476509661

Comment:
Your error is really weird:
```
$ cat /var/lib/dkms/zfs/2.1.9/build/make.log
DKMS make.log for zfs-2.1.9 for kernel 6.1.19_1 (x86_64)
Mon Mar 20 10:13:22 CET 2023
make: Entering directory '/var/lib/dkms/zfs/2.1.9/build/module'
make: *** No targets specified and no makefile found.  Stop.
make: Leaving directory '/var/lib/dkms/zfs/2.1.9/build/module'
```

It can't find the `Makefile` not any build errors.

Can you run `xbps-pkgdb -a`?

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
  2023-03-19 21:00 [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED! egrain
                   ` (9 preceding siblings ...)
  2023-03-20 16:01 ` sgn
@ 2023-03-20 16:11 ` egrain
  2023-03-20 16:21 ` sgn
                   ` (20 subsequent siblings)
  31 siblings, 0 replies; 33+ messages in thread
From: egrain @ 2023-03-20 16:11 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 359 bytes --]

New comment by egrain on void-packages repository

https://github.com/void-linux/void-packages/issues/42871#issuecomment-1476529060

Comment:
$ doas xbps-pkgdb -a 
gave back nothing.
So all good I take it.

I apologize for the inconvenience. I hope you believe me that I don't have the weird errors on purpose, and that I do appreciate you taking a look.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
  2023-03-19 21:00 [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED! egrain
                   ` (10 preceding siblings ...)
  2023-03-20 16:11 ` egrain
@ 2023-03-20 16:21 ` sgn
  2023-03-20 16:26 ` sgn
                   ` (19 subsequent siblings)
  31 siblings, 0 replies; 33+ messages in thread
From: sgn @ 2023-03-20 16:21 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 232 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/42871#issuecomment-1476546297

Comment:
How about your `xbps-query -l | grep -v '^ii'`?
Did you try `xbps-reconfigure -f linux6.1`?

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
  2023-03-19 21:00 [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED! egrain
                   ` (11 preceding siblings ...)
  2023-03-20 16:21 ` sgn
@ 2023-03-20 16:26 ` sgn
  2023-03-20 16:40 ` egrain
                   ` (18 subsequent siblings)
  31 siblings, 0 replies; 33+ messages in thread
From: sgn @ 2023-03-20 16:26 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 223 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/42871#issuecomment-1476556962

Comment:
Maybe try this directly:
```
# dkms build --force -m zfs -v 2.1.9 -k 6.1.9_1
```

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
  2023-03-19 21:00 [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED! egrain
                   ` (12 preceding siblings ...)
  2023-03-20 16:26 ` sgn
@ 2023-03-20 16:40 ` egrain
  2023-03-20 16:46 ` sgn
                   ` (17 subsequent siblings)
  31 siblings, 0 replies; 33+ messages in thread
From: egrain @ 2023-03-20 16:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2692 bytes --]

New comment by egrain on void-packages repository

https://github.com/void-linux/void-packages/issues/42871#issuecomment-1476578175

Comment:
$ xbps-query -l | grep -v '^ii'
nothing

$ doas xbps-reconfigure -f linux6.1
linux6.1: configuring ...
Executing post-install kernel hook: 10-dkms ...
Available DKMS module: zfs-2.1.9.
Building DKMS module: zfs-2.1.9... FAILED!
Generating kernel module dependency lists... done.
Executing post-install kernel hook: 20-initramfs ...
dracut-install: Failed to find module 'zfs'
dracut: FAILED:  /usr/lib/dracut/dracut-install -D /var/tmp/dracut.inSxCU/initramfs --kerneldir /lib/modules/6.1.19_1/ -m zfs
dracut: installkernel failed in module zfs
Executing post-install kernel hook: 50-grub ...
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.1.19_1
Found initrd image: /boot/initramfs-6.1.19_1.img
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
done
linux6.1: configured successfully.

You sure about that last one? Gave me this:
$ doas dkms build --force -m zfs -v 2.1.9 -k 6.1.9_1
Sign command: /lib/modules/6.1.9_1/build/scripts/sign-file
Binary /lib/modules/6.1.9_1/build/scripts/sign-file not found, modules won't be signed
Error! Your kernel headers for kernel 6.1.9_1 cannot be found at /lib/modules/6.1.9_1/build or /lib/modules/6.1.9_1/source.
Please install the linux-headers-6.1.9_1 package or use the --kernelsourcedir option to tell DKMS where it's located.

I added a 1 to 6.1.9:
$ doas dkms build --force -m zfs -v 2.1.9 -k 6.1.19_1
Sign command: /lib/modules/6.1.19_1/build/scripts/sign-file
Binary /lib/modules/6.1.19_1/build/scripts/sign-file not found, modules won't be signed

Warning: The pre_build script is not executable.

Building module:
Cleaning build area...(bad exit status: 2)
make -j12 KERNELRELEASE=6.1.19_1 -C module/...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.1.19_1 (x86_64)
Consult /var/lib/dkms/zfs/2.1.9/build/make.log for more information.

$ find /lib/modules/6.1.19_1/build/scripts/ -iname *sign*
/lib/modules/6.1.19_1/build/scripts/sign-file.c
/lib/modules/6.1.19_1/build/scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci

$ cat /var/lib/dkms/zfs/2.1.9/build/make.log 
DKMS make.log for zfs-2.1.9 for kernel 6.1.19_1 (x86_64)
Mon Mar 20 16:37:30 UTC 2023
make: Entering directory '/var/lib/dkms/zfs/2.1.9/build/module'
make: *** No targets specified and no makefile found.  Stop.
make: Leaving directory '/var/lib/dkms/zfs/2.1.9/build/module'

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
  2023-03-19 21:00 [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED! egrain
                   ` (13 preceding siblings ...)
  2023-03-20 16:40 ` egrain
@ 2023-03-20 16:46 ` sgn
  2023-03-20 16:47 ` sgn
                   ` (16 subsequent siblings)
  31 siblings, 0 replies; 33+ messages in thread
From: sgn @ 2023-03-20 16:46 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 408 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/42871#issuecomment-1476586840

Comment:
`Warning: The pre_build script is not executable.`

Can you check if `configure` is executable? (It should!)
```
$ ls -al ls -al /var/lib/dkms/zfs/2.1.9/source/configure
-rwxr-xr-x 1 root root 2741513 2023-01-28 17:07 /var/lib/dkms/zfs/2.1.9/source/configure
```

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
  2023-03-19 21:00 [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED! egrain
                   ` (14 preceding siblings ...)
  2023-03-20 16:46 ` sgn
@ 2023-03-20 16:47 ` sgn
  2023-03-20 16:47 ` egrain
                   ` (15 subsequent siblings)
  31 siblings, 0 replies; 33+ messages in thread
From: sgn @ 2023-03-20 16:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 401 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/42871#issuecomment-1476586840

Comment:
`Warning: The pre_build script is not executable.`

Can you check if `configure` is executable? (It should!)
```
$ ls -al /var/lib/dkms/zfs/2.1.9/source/configure
-rwxr-xr-x 1 root root 2741513 2023-01-28 17:07 /var/lib/dkms/zfs/2.1.9/source/configure
```

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
  2023-03-19 21:00 [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED! egrain
                   ` (15 preceding siblings ...)
  2023-03-20 16:47 ` sgn
@ 2023-03-20 16:47 ` egrain
  2023-03-20 16:50 ` sgn
                   ` (14 subsequent siblings)
  31 siblings, 0 replies; 33+ messages in thread
From: egrain @ 2023-03-20 16:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 287 bytes --]

New comment by egrain on void-packages repository

https://github.com/void-linux/void-packages/issues/42871#issuecomment-1476588737

Comment:
$ ls -l /var/lib/dkms/zfs/2.1.9/source/configure
-rwxr-xr-x 1 root root 2741513 Jan 31 20:57 /var/lib/dkms/zfs/2.1.9/source/configure

it is.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
  2023-03-19 21:00 [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED! egrain
                   ` (16 preceding siblings ...)
  2023-03-20 16:47 ` egrain
@ 2023-03-20 16:50 ` sgn
  2023-03-20 16:52 ` egrain
                   ` (13 subsequent siblings)
  31 siblings, 0 replies; 33+ messages in thread
From: sgn @ 2023-03-20 16:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 291 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/42871#issuecomment-1476592942

Comment:
How about `/var/lib/dkms/zfs/2.1.9/build/configure`? Since my build is success, those folders were removed, but I believe it should have `x` bits, too.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
  2023-03-19 21:00 [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED! egrain
                   ` (17 preceding siblings ...)
  2023-03-20 16:50 ` sgn
@ 2023-03-20 16:52 ` egrain
  2023-03-20 17:05 ` sgn
                   ` (12 subsequent siblings)
  31 siblings, 0 replies; 33+ messages in thread
From: egrain @ 2023-03-20 16:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 372 bytes --]

New comment by egrain on void-packages repository

https://github.com/void-linux/void-packages/issues/42871#issuecomment-1476594888

Comment:
$ ls -l /var/lib/dkms/zfs/2.1.9/build/configure
-rwxr-xr-x 1 root root 2741513 Jan 31 20:57 /var/lib/dkms/zfs/2.1.9/build/configure

Would have been funny thought if it had been a rights issue again. It's usually one of those.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
  2023-03-19 21:00 [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED! egrain
                   ` (18 preceding siblings ...)
  2023-03-20 16:52 ` egrain
@ 2023-03-20 17:05 ` sgn
  2023-03-20 17:10 ` sgn
                   ` (11 subsequent siblings)
  31 siblings, 0 replies; 33+ messages in thread
From: sgn @ 2023-03-20 17:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 294 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/42871#issuecomment-1476616022

Comment:
What is your `/bin/sh`? Maybe your can try:
```
doas /bin/bash -x /usr/bin/dkms build --force -m zfs -v 2.1.9 -k 6.1.9_1
```

To see detailed output.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
  2023-03-19 21:00 [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED! egrain
                   ` (19 preceding siblings ...)
  2023-03-20 17:05 ` sgn
@ 2023-03-20 17:10 ` sgn
  2023-03-20 17:10 ` sgn
                   ` (10 subsequent siblings)
  31 siblings, 0 replies; 33+ messages in thread
From: sgn @ 2023-03-20 17:10 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 295 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/42871#issuecomment-1476616022

Comment:
What is your `/bin/sh`? Maybe your can try:
```
doas /bin/bash -x /usr/bin/dkms build --force -m zfs -v 2.1.9 -k 6.1.19_1
```

To see detailed output.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
  2023-03-19 21:00 [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED! egrain
                   ` (20 preceding siblings ...)
  2023-03-20 17:10 ` sgn
@ 2023-03-20 17:10 ` sgn
  2023-03-20 17:10 ` sgn
                   ` (9 subsequent siblings)
  31 siblings, 0 replies; 33+ messages in thread
From: sgn @ 2023-03-20 17:10 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 292 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/42871#issuecomment-1476592942

Comment:
How about `/var/lib/dkms/zfs/2.1.19/build/configure`? Since my build is success, those folders were removed, but I believe it should have `x` bits, too.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
  2023-03-19 21:00 [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED! egrain
                   ` (21 preceding siblings ...)
  2023-03-20 17:10 ` sgn
@ 2023-03-20 17:10 ` sgn
  2023-03-20 17:14 ` egrain
                   ` (8 subsequent siblings)
  31 siblings, 0 replies; 33+ messages in thread
From: sgn @ 2023-03-20 17:10 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 291 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/42871#issuecomment-1476592942

Comment:
How about `/var/lib/dkms/zfs/2.1.9/build/configure`? Since my build is success, those folders were removed, but I believe it should have `x` bits, too.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
  2023-03-19 21:00 [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED! egrain
                   ` (22 preceding siblings ...)
  2023-03-20 17:10 ` sgn
@ 2023-03-20 17:14 ` egrain
  2023-03-20 17:16 ` paper42
                   ` (7 subsequent siblings)
  31 siblings, 0 replies; 33+ messages in thread
From: egrain @ 2023-03-20 17:14 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 502 bytes --]

New comment by egrain on void-packages repository

https://github.com/void-linux/void-packages/issues/42871#issuecomment-1476631504

Comment:
+ error 'Your kernel headers for kernel 6.1.9_1 cannot be found at /lib/modules/6.1.9_1/build or /lib/modules/6.1.9_1/source.' 'Please install the linux-headers-6.1.9_1 package or use the --kernelsourcedir option to tell DKMS where it     '\''s

all of it:
[bash-x_output.txt](https://github.com/void-linux/void-packages/files/11021103/bash-x_output.txt)


^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
  2023-03-19 21:00 [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED! egrain
                   ` (23 preceding siblings ...)
  2023-03-20 17:14 ` egrain
@ 2023-03-20 17:16 ` paper42
  2023-03-20 17:17 ` paper42
                   ` (6 subsequent siblings)
  31 siblings, 0 replies; 33+ messages in thread
From: paper42 @ 2023-03-20 17:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 161 bytes --]

New comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/issues/42871#issuecomment-1476635579

Comment:
6.1.19, not 6.1.9

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
  2023-03-19 21:00 [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED! egrain
                   ` (24 preceding siblings ...)
  2023-03-20 17:16 ` paper42
@ 2023-03-20 17:17 ` paper42
  2023-03-20 17:27 ` egrain
                   ` (5 subsequent siblings)
  31 siblings, 0 replies; 33+ messages in thread
From: paper42 @ 2023-03-20 17:17 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 170 bytes --]

New comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/issues/42871#issuecomment-1476635579

Comment:
try with 6.1.19, not 6.1.9

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
  2023-03-19 21:00 [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED! egrain
                   ` (25 preceding siblings ...)
  2023-03-20 17:17 ` paper42
@ 2023-03-20 17:27 ` egrain
  2023-03-21  0:44 ` sgn
                   ` (4 subsequent siblings)
  31 siblings, 0 replies; 33+ messages in thread
From: egrain @ 2023-03-20 17:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 417 bytes --]

New comment by egrain on void-packages repository

https://github.com/void-linux/void-packages/issues/42871#issuecomment-1476650683

Comment:
Oh, my bad. I didn't check the numbers.
+ error 'Bad return status for module build on kernel: 6.1.19_1 (x86_64)' 'Consult /var/lib/dkms/zfs/2.1.9/build/make.log for more information.'

[6.1.19.txt](https://github.com/void-linux/void-packages/files/11021257/6.1.19.txt)


^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
  2023-03-19 21:00 [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED! egrain
                   ` (26 preceding siblings ...)
  2023-03-20 17:27 ` egrain
@ 2023-03-21  0:44 ` sgn
  2023-03-21  9:13 ` egrain
                   ` (3 subsequent siblings)
  31 siblings, 0 replies; 33+ messages in thread
From: sgn @ 2023-03-21  0:44 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 397 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/42871#issuecomment-1477134698

Comment:
Somehow `[[ -x /var/lib/dkms/zfs/2.1.9/build/configure ]]` is failure, but yours has executable bits. Can you check your `/bin/sh`, or try to run the file directly:
```
cd /var/lib/dkms/zfs/2.1.9/build/ && doas /var/lib/dkms/zfs/2.1.9/build/configure
```

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
  2023-03-19 21:00 [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED! egrain
                   ` (27 preceding siblings ...)
  2023-03-21  0:44 ` sgn
@ 2023-03-21  9:13 ` egrain
  2023-03-21 10:39 ` [ISSUE] [CLOSED] " paper42
                   ` (2 subsequent siblings)
  31 siblings, 0 replies; 33+ messages in thread
From: egrain @ 2023-03-21  9:13 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 722 bytes --]

New comment by egrain on void-packages repository

https://github.com/void-linux/void-packages/issues/42871#issuecomment-1477494528

Comment:
$ pwd
/var/lib/dkms/zfs/2.1.9/build

$ ls -l configure
-rwxr-xr-x 1 root root 2741513 Jan 31 20:57 configure

$doas ./configure
doas: ./configure: Permission denied

HA! told you it's a rights issue.
I tried it as root, becuase I thought maybe I configured doas wrong on both machines. Then I realized:
/var type ext4 (rw,nosuid,nodev,noexec,relatime,data=ordered)
and that's of course why it doesn't work on the other box either, because I always have the noexec going for almost everything.

So yeah, this was totally my fault. Sorry for taking up all your time. 

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: [ISSUE] [CLOSED] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
  2023-03-19 21:00 [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED! egrain
                   ` (28 preceding siblings ...)
  2023-03-21  9:13 ` egrain
@ 2023-03-21 10:39 ` paper42
  2023-03-23  1:59 ` sgn
  2023-03-23  7:45 ` egrain
  31 siblings, 0 replies; 33+ messages in thread
From: paper42 @ 2023-03-21 10:39 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2072 bytes --]

Closed issue by egrain on void-packages repository

https://github.com/void-linux/void-packages/issues/42871

Description:
### Is this a new report?

Yes

### System Info

musl 6.1.19_1 #1 SMP PREEMPT_DYNAMIC Wed Mar 15 13:49:56 UTC 2023 x86_64 GNU/Linux

### Package(s) Affected

zfs-2.1.9_1  

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

Not sure, seems similar:
https://www.reddit.com/r/voidlinux/comments/9yz777/comment/ea7u041/
https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/1683340

### Expected behaviour

Install successfully, not just claim it did.

### Actual behaviour

$ xboxplaystation-install zfs
...
zfs-2.1.9_1: configuring ...
DKMS module 'zfs-2.1.9' already added, skipping.
Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
DKMS module 'zfs-2.1.9' failed to build, please check /var/lib/dkms
for errors in the log file.
Regenerating initramfs images using kernel hook 20-initramfs
dracut-install: Failed to find module 'zfs'
dracut: FAILED:  /usr/lib/dracut/dracut-install -D /var/tmp/dracut.wkwa04/initramfs --kerneldir /lib/modules/6.1.19_1/ -m zfs
dracut: installkernel failed in module zfs
zfs-2.1.9_1: installed successfully.

$ cat /var/lib/dkms/zfs/2.1.9/build/make.log 
DKMS make.log for zfs-2.1.9 for kernel 6.1.19_1 (x86_64)
Sun Mar 19 20:53:34 UTC 2023
make: Entering directory '/var/lib/dkms/zfs/2.1.9/build/module'
make: *** No targets specified and no makefile found.  Stop.
make: Leaving directory '/var/lib/dkms/zfs/2.1.9/build/module'

$ xboxplaystation-query -Rs headers |grep 6.1.19
[*] linux6.1-headers-6.1.19_1                    Linux kernel and modules (6.1 series) - source headers for 3rd party modules

$ ls /boot
config-6.1.19_1  grub  initramfs-6.1.19_1.img  vmlinuz-6.1.19_1

$ xboxplaystation-pkgdb -a     returns nothing.

### Steps to reproduce

1. Have musl (though I haven't actually tested if it works on glibc)
2. doas xbps-install -Su
3. doas xbps-remove -Oo 
4. doas vkpurge rm all
5. doas xbps-install zfs

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
  2023-03-19 21:00 [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED! egrain
                   ` (29 preceding siblings ...)
  2023-03-21 10:39 ` [ISSUE] [CLOSED] " paper42
@ 2023-03-23  1:59 ` sgn
  2023-03-23  7:45 ` egrain
  31 siblings, 0 replies; 33+ messages in thread
From: sgn @ 2023-03-23  1:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 309 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/42871#issuecomment-1480476373

Comment:
If you like to mount noexec `/var` that much, you can ask openzfs to run `/bin/sh configure` on `pre_build`.
I'm not sure if they will accommodate your request, though.

^ permalink raw reply	[flat|nested] 33+ messages in thread

* Re: zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED!
  2023-03-19 21:00 [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED! egrain
                   ` (30 preceding siblings ...)
  2023-03-23  1:59 ` sgn
@ 2023-03-23  7:45 ` egrain
  31 siblings, 0 replies; 33+ messages in thread
From: egrain @ 2023-03-23  7:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 519 bytes --]

New comment by egrain on void-packages repository

https://github.com/void-linux/void-packages/issues/42871#issuecomment-1480728323

Comment:
I can just reboot twice. But I think I'll survive.

I'd rather have someone take a look at the "success" message after xbps-install -Su while half the kernel files I need to boot are missing. Happened to me twice now. Once boot wasn't big enough for two kernels and this time when the DKMS build failed while updating to 6.1.20_1. 

Anyway, thanks again for all your help.

^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2023-03-23  7:45 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-19 21:00 [ISSUE] zfs on musl: Building DKMS module 'zfs-2.1.9' for kernel-6.1.19_1... FAILED! egrain
2023-03-20  2:32 ` sgn
2023-03-20  8:02 ` egrain
2023-03-20 10:02 ` egrain
2023-03-20 14:43 ` sgn
2023-03-20 14:47 ` sgn
2023-03-20 15:11 ` egrain
2023-03-20 15:12 ` egrain
2023-03-20 15:16 ` egrain
2023-03-20 15:18 ` egrain
2023-03-20 16:01 ` sgn
2023-03-20 16:11 ` egrain
2023-03-20 16:21 ` sgn
2023-03-20 16:26 ` sgn
2023-03-20 16:40 ` egrain
2023-03-20 16:46 ` sgn
2023-03-20 16:47 ` sgn
2023-03-20 16:47 ` egrain
2023-03-20 16:50 ` sgn
2023-03-20 16:52 ` egrain
2023-03-20 17:05 ` sgn
2023-03-20 17:10 ` sgn
2023-03-20 17:10 ` sgn
2023-03-20 17:10 ` sgn
2023-03-20 17:14 ` egrain
2023-03-20 17:16 ` paper42
2023-03-20 17:17 ` paper42
2023-03-20 17:27 ` egrain
2023-03-21  0:44 ` sgn
2023-03-21  9:13 ` egrain
2023-03-21 10:39 ` [ISSUE] [CLOSED] " paper42
2023-03-23  1:59 ` sgn
2023-03-23  7:45 ` egrain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).