[GH-ISSUE #85] manual build fails on arch linux kernel 6.15.9 stable #49

Closed
opened 2026-10-13 21:05:50 +00:00 by bsakaguchi · 7 comments
Owner

Originally created by @Rusball-xd on GitHub (Aug 13, 2025).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/issues/85

$ sudo dkms build -m amneziawg -v 1.0.0
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/amneziawg/1.0.0/source/dkms.conf)
Sign command: /usr/lib/modules/6.15.9-arch1-1/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Running the pre_build script... done.
Building module(s)...(bad exit status: 2)
Failed command:
make -j16 KERNELRELEASE=6.15.9-arch1-1 -C /var/lib/dkms/amneziawg/1.0.0/build

Error! Bad return status for module build on kernel: 6.15.9-arch1-1 (x86_64)
Consult /var/lib/dkms/amneziawg/1.0.0/build/make.log for more information.

Originally created by @Rusball-xd on GitHub (Aug 13, 2025). Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/issues/85 $ sudo dkms build -m amneziawg -v 1.0.0 Deprecated feature: REMAKE_INITRD (/var/lib/dkms/amneziawg/1.0.0/source/dkms.conf) Sign command: /usr/lib/modules/6.15.9-arch1-1/build/scripts/sign-file Signing key: /var/lib/dkms/mok.key Public certificate (MOK): /var/lib/dkms/mok.pub Running the pre_build script... done. Building module(s)...(bad exit status: 2) Failed command: make -j16 KERNELRELEASE=6.15.9-arch1-1 -C /var/lib/dkms/amneziawg/1.0.0/build Error! Bad return status for module build on kernel: 6.15.9-arch1-1 (x86_64) Consult /var/lib/dkms/amneziawg/1.0.0/build/make.log for more information.
Author
Owner

@LedviL commented on GitHub (Aug 20, 2025):

Same shit with 6.15.8-arch1-1:

src ➤ sudo dkms build -m amneziawg -v 1.0.0
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/amneziawg/1.0.0/source/dkms.conf)
Sign command: /usr/lib/modules/6.15.8-arch1-1/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Running the pre_build script... done.
Building module(s)...(bad exit status: 2)
Failed command:
make -j12 KERNELRELEASE=6.15.8-arch1-1 -C /var/lib/dkms/amneziawg/1.0.0/build

Error! Bad return status for module build on kernel: 6.15.8-arch1-1 (x86_64)
Consult /var/lib/dkms/amneziawg/1.0.0/build/make.log for more information.
<!-- gh-comment-id:3204078049 --> @LedviL commented on GitHub (Aug 20, 2025): Same shit with 6.15.8-arch1-1: ``` src ➤ sudo dkms build -m amneziawg -v 1.0.0 Deprecated feature: REMAKE_INITRD (/var/lib/dkms/amneziawg/1.0.0/source/dkms.conf) Sign command: /usr/lib/modules/6.15.8-arch1-1/build/scripts/sign-file Signing key: /var/lib/dkms/mok.key Public certificate (MOK): /var/lib/dkms/mok.pub Running the pre_build script... done. Building module(s)...(bad exit status: 2) Failed command: make -j12 KERNELRELEASE=6.15.8-arch1-1 -C /var/lib/dkms/amneziawg/1.0.0/build Error! Bad return status for module build on kernel: 6.15.8-arch1-1 (x86_64) Consult /var/lib/dkms/amneziawg/1.0.0/build/make.log for more information. ```
Author
Owner

@YaRandomGuy commented on GitHub (Aug 20, 2025):

Same story for me on 6.12.41+deb13-amd64.

GCC complains about redeclarations.

make.log

Also make clean doesn't clean dkms artifacts. :(

<!-- gh-comment-id:3204135331 --> @YaRandomGuy commented on GitHub (Aug 20, 2025): Same story for me on 6.12.41+deb13-amd64. GCC complains about redeclarations. [make.log](https://github.com/user-attachments/files/21880778/make.log) Also make clean doesn't clean dkms artifacts. :(
Author
Owner

@mufelheimdev commented on GitHub (Sep 19, 2025):

Same story for me on 6.12.41+deb13-amd64.

GCC complains about redeclarations.

make.log

Also make clean doesn't clean dkms artifacts. :(

Did you manage to fix it?

<!-- gh-comment-id:3311629515 --> @mufelheimdev commented on GitHub (Sep 19, 2025): > Same story for me on 6.12.41+deb13-amd64. > > GCC complains about redeclarations. > > [make.log](https://github.com/user-attachments/files/21880778/make.log) > > Also make clean doesn't clean dkms artifacts. :( Did you manage to fix it?
Author
Owner
<!-- gh-comment-id:3317435324 --> @ghbld commented on GitHub (Sep 22, 2025): Try https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/issues/55#issuecomment-3317387653
Author
Owner

@mufelheimdev commented on GitHub (Sep 29, 2025):

Sorry, my bad, I created invalid sim link to kernel source

<!-- gh-comment-id:3348579307 --> @mufelheimdev commented on GitHub (Sep 29, 2025): Sorry, my bad, I created invalid sim link to kernel source
Author
Owner

@mufelheimdev commented on GitHub (Sep 29, 2025):

In case someone want to build core on Trixie Debian

Here's how I did it:

sudo ln -s /usr/src/linux-source-6.12 kernel # here you can specify your kernel source
sudo install -m 644 amneziawg.ko /lib/modules/6.12.48+deb13-amd64/updates/
sudo depmod -a
sudo modprobe amneziawg

And check that module was installed:

lsmod | grep amneziawg

And you ready to go.

<!-- gh-comment-id:3348587472 --> @mufelheimdev commented on GitHub (Sep 29, 2025): In case someone want to build core on Trixie Debian Here's how I did it: ``` sudo ln -s /usr/src/linux-source-6.12 kernel # here you can specify your kernel source sudo install -m 644 amneziawg.ko /lib/modules/6.12.48+deb13-amd64/updates/ sudo depmod -a sudo modprobe amneziawg ``` And check that module was installed: ``` lsmod | grep amneziawg ``` And you ready to go.
Author
Owner

@ygurov commented on GitHub (Oct 20, 2025):

Hello
This should be addressed by the latest fixes. Please feel free to reopen this (or open another one) if you face with building issues

<!-- gh-comment-id:3423348784 --> @ygurov commented on GitHub (Oct 20, 2025): Hello This should be addressed by the latest fixes. Please feel free to reopen this (or open another one) if you face with building issues
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amneziawg-linux-kernel-module#49
No description provided.