[Solved][wireguard-dkms] missing headers

Problems with packages? Post here, using [tags] of the package name.

[Solved][wireguard-dkms] missing headers

Postby karog » Wed Feb 05, 2020 11:12 pm

Just upgraded a pogoplug E02 to linux-kirkwood-dt 5.5.2-1 and wireguard-dkms no longer builds (it did build on 5.4.15-1).

Here is the make.log file:

$this->bbcode_second_pass_code('', '
DKMS make.log for wireguard-0.0.20200205 for kernel 5.5.2-1-ARCH (armv5tel)
Wed 05 Feb 2020 06:10:35 PM EST
make: Entering directory '/usr/src/linux-5.5.2-1-ARCH'
AR /var/lib/dkms/wireguard/0.0.20200205/build/built-in.a
CC [M] /var/lib/dkms/wireguard/0.0.20200205/build/main.o
In file included from ./arch/arm/include/asm/elf.h:7,
from ./include/linux/elf.h:5,
from ./include/linux/module.h:18,
from ./include/linux/kallsyms.h:13,
from ./include/linux/filter.h:21,
from ./include/net/sock.h:59,
from ./include/linux/tcp.h:19,
from ./include/linux/ipv6.h:87,
from ./include/net/ipv6.h:12,
from /var/lib/dkms/wireguard/0.0.20200205/build/compat/compat.h:963,
from <command-line>:
./arch/arm/include/asm/vdso_datapage.h:14:10: fatal error: vdso/datapage.h: No such file or directory
14 | #include <vdso/datapage.h>
| ^~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.build:266: /var/lib/dkms/wireguard/0.0.20200205/build/main.o] Error 1
make: *** [Makefile:1693: /var/lib/dkms/wireguard/0.0.20200205/build] Error 2
make: Leaving directory '/usr/src/linux-5.5.2-1-ARCH'
')
karog
 
Posts: 305
Joined: Thu Jan 05, 2012 7:55 pm

Re: [wireguard-dkms] missing headers

Postby graysky » Wed Feb 05, 2020 11:30 pm

Not missing, you need to install them:
$this->bbcode_second_pass_code('', '% pacman -Si dkms
Repository : extra
Name : dkms
Version : 2.8.1-1
Description : Dynamic Kernel Modules System
Architecture : any
URL : https://github.com/dell/dkms
Licenses : GPL2
Groups : None
Provides : None
Depends On : bash kmod gcc make patch
Optional Deps : linux-headers: build modules against the Arch kernel
linux-lts-headers: build modules against the LTS kernel
linux-zen-headers: build modules against the ZEN kernel
linux-hardened-headers: build modules against the HARDENED kernel
Conflicts With : None
Replaces : None
Download Size : 52.21 KiB
Installed Size : 173.03 KiB
Packager : Arch Linux ARM Build System <builder+xu4@archlinuxarm.org>
Build Date : Fri 01 Nov 2019 11:48:46 AM EDT
Validated By : MD5 Sum SHA-256 Sum Signature
')
graysky
Developer
 
Posts: 1881
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: [wireguard-dkms] missing headers

Postby karog » Thu Feb 06, 2020 3:18 am

$this->bbcode_second_pass_quote('graysky', 'N')ot missing, you need to install them:

Nope, I already had dkms installed. I have been building wireguard-dkms successfully for almost a year. As I stated in my prior post, it built on 5.4.15-1, and several earlier versions of the 5.4 kernel and before. It was only after upgrading to 5.5 that it broke.

I also build it on my odroid xu4 which is back on kernel 4.14. There vdso_datapage.h only incudes asm/page.h and has 2 structs. The newer version in 5.5 added the include to vdso/datapage.h and I cannot find datapage.h anywhere on my e02. I could not find it in the archlinuxarm git but did find it in torvalds git and an exact copy in arch linux git. So I tried that version and it broke on some of its contents which is when I gave up. That contents is very different from the contents of the older vdso_datapage.h.

So I figured it was time for someone who is more knowledgable about this hence my post.

ETA: The files are missing from linux-kirkwood-dt-headers-5.5.2-1-arm.pkg.tar.xz
karog
 
Posts: 305
Joined: Thu Jan 05, 2012 7:55 pm

Re: [wireguard-dkms] missing headers

Postby moonman » Fri Feb 07, 2020 2:07 am

Please see if this resolves the issue for you?
https://olegtown.pw/Public/ArchLinuxArm ... pkg.tar.xz
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: [wireguard-dkms] missing headers

Postby karog » Fri Feb 07, 2020 3:41 am

$this->bbcode_second_pass_quote('moonman', 'P')lease see if this resolves the issue for you?
https://olegtown.pw/Public/ArchLinuxArm ... pkg.tar.xz

Thanks, @moonman, that did it. That is the same version I had installed from the normal repo but your version has the correct files. I built the module and tested and it is working. Great job.
karog
 
Posts: 305
Joined: Thu Jan 05, 2012 7:55 pm

Re: [wireguard-dkms] missing headers

Postby moonman » Fri Feb 07, 2020 5:07 am

I just rebuilt the package but didn't change the version so you wouldn't have to reinstall the kernel itself.

Proper update will appear in 5.5.2-2
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: [wireguard-dkms] missing headers

Postby karog » Fri Feb 07, 2020 5:51 am

I appreciate that. Excellent response. Thanks very much.
karog
 
Posts: 305
Joined: Thu Jan 05, 2012 7:55 pm

Re: [Solved][wireguard-dkms] missing headers

Postby rk3y » Sat Feb 15, 2020 2:53 pm

Hi there,

obviously others are able to install wireguard under aarch64 - except me. Can someone please help me installing wireguard under aarch64/arm64 running archlinux?

$this->bbcode_second_pass_code('', '➜ ~ uname -a
Linux ESPRESSO-BIN 5.5.3-1-ARCH #1 SMP Wed Feb 12 02:18:42 UTC 2020 aarch64 GNU/Linux
')


$this->bbcode_second_pass_code('', '➜ ~ sudo modprobe wireguard
[sudo] password for exp:
modprobe: ERROR: could not insert 'wireguard': Unknown symbol in module, or unknown parameter (see dmesg)
')

$this->bbcode_second_pass_code('', '➜ ~ dmesg | grep wireguard
[11407.429863] wireguard: Unknown symbol kmem_cache_alloc_trace (err -2)
[11407.433897] wireguard: Unknown symbol __list_add_valid (err -2)
[11407.441189] wireguard: Unknown symbol __list_del_entry_valid (err -2)
[14641.546527] wireguard: Unknown symbol kmem_cache_alloc_trace (err -2)
[14641.550499] wireguard: Unknown symbol __list_add_valid (err -2)
[14641.556507] wireguard: Unknown symbol __list_del_entry_valid (err -2)
')


$this->bbcode_second_pass_code('', '➜ ~ sudo pacman -Ss wireguard
extra/wireguard-dkms 0.0.20200214-1 [installed]
next generation secure network tunnel - module sources
extra/wireguard-tools 1.0.20200206-2 [installed]
next generation secure network tunnel - tools for configuration
')


$this->bbcode_second_pass_code('', '➜ ~ ls -l /var/lib/dkms/wireguard/
total 8
drwxr-xr-x 3 root root 4096 Feb 14 11:07 0.0.20200205
drwxr-xr-x 3 root root 4096 Feb 15 14:02 0.0.20200214
lrwxrwxrwx 1 root root 33 Feb 15 14:02 kernel-5.5.3-1-ARCH-aarch64 -> 0.0.20200214/5.5.3-1-ARCH/aarch64
')


$this->bbcode_second_pass_code('', '➜ ~ sudo dkms status
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/wireguard/0.0.20200205/source/dkms.conf does not exist.')

$this->bbcode_second_pass_code('', '➜ ~ cat /var/lib/dkms/wireguard/0.0.20200214/5.5.3-1-ARCH/aarch64/log/make.log
DKMS make.log for wireguard-0.0.20200214 for kernel 5.5.3-1-ARCH (aarch64)
Sat Feb 15 13:57:20 UTC 2020
make: Entering directory '/usr/lib/modules/5.5.3-1-ARCH/build'
AR /var/lib/dkms/wireguard/0.0.20200214/build/built-in.a
CC [M] /var/lib/dkms/wireguard/0.0.20200214/build/main.o
CC [M] /var/lib/dkms/wireguard/0.0.20200214/build/noise.o
CC [M] /var/lib/dkms/wireguard/0.0.20200214/build/device.o
CC [M] /var/lib/dkms/wireguard/0.0.20200214/build/peer.o
CC [M] /var/lib/dkms/wireguard/0.0.20200214/build/timers.o
CC [M] /var/lib/dkms/wireguard/0.0.20200214/build/queueing.o
CC [M] /var/lib/dkms/wireguard/0.0.20200214/build/send.o
CC [M] /var/lib/dkms/wireguard/0.0.20200214/build/receive.o
CC [M] /var/lib/dkms/wireguard/0.0.20200214/build/socket.o
CC [M] /var/lib/dkms/wireguard/0.0.20200214/build/peerlookup.o
CC [M] /var/lib/dkms/wireguard/0.0.20200214/build/allowedips.o
CC [M] /var/lib/dkms/wireguard/0.0.20200214/build/ratelimiter.o
CC [M] /var/lib/dkms/wireguard/0.0.20200214/build/cookie.o
CC [M] /var/lib/dkms/wireguard/0.0.20200214/build/netlink.o
CC [M] /var/lib/dkms/wireguard/0.0.20200214/build/crypto/zinc/chacha20/chacha20.o
PERLASM /var/lib/dkms/wireguard/0.0.20200214/build/crypto/zinc/chacha20/chacha20-arm64.S
CC [M] /var/lib/dkms/wireguard/0.0.20200214/build/crypto/zinc/poly1305/poly1305.o
PERLASM /var/lib/dkms/wireguard/0.0.20200214/build/crypto/zinc/poly1305/poly1305-arm64.S
CC [M] /var/lib/dkms/wireguard/0.0.20200214/build/crypto/zinc/chacha20poly1305.o
CC [M] /var/lib/dkms/wireguard/0.0.20200214/build/crypto/zinc/blake2s/blake2s.o
CC [M] /var/lib/dkms/wireguard/0.0.20200214/build/crypto/zinc/curve25519/curve25519.o
AS [M] /var/lib/dkms/wireguard/0.0.20200214/build/crypto/zinc/chacha20/chacha20-arm64.o
AS [M] /var/lib/dkms/wireguard/0.0.20200214/build/crypto/zinc/poly1305/poly1305-arm64.o
LD [M] /var/lib/dkms/wireguard/0.0.20200214/build/wireguard.o
Building modules, stage 2.
MODPOST 1 modules
CC [M] /var/lib/dkms/wireguard/0.0.20200214/build/wireguard.mod.o
LD [M] /var/lib/dkms/wireguard/0.0.20200214/build/wireguard.ko
make: Leaving directory '/usr/lib/modules/5.5.3-1-ARCH/build'
')

I tried to build it on my own as listed here https://www.wireguard.com/compilation. But still get errors inside dmesg.

Any help is much appreciated.

Kind regards,

rk3y

I already have tried to
rk3y
 
Posts: 4
Joined: Sat Feb 15, 2020 2:43 pm

Re: [Solved][wireguard-dkms] missing headers

Postby moonman » Sat Feb 15, 2020 8:18 pm

Please create your own thread as you are off-topic in this one. Noone will be able to find and answer your question here.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am


Return to Packages

Who is online

Users browsing this forum: No registered users and 10 guests