-
Notifications
You must be signed in to change notification settings - Fork 75
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
Compile error on raspberry pi zero #17
Comments
Please connect to Wireguard community on #Wireguard (IRC, Freenode), here you can also find the developer of Wireguard. If you find an answer, please post here. |
Nobody responded on #Wireguard so I installed an older version:
installs without errors but when you do a wg-quick up wg0-client I get: [#] resolvconf -a wg0-client -m 0 -x It works for my purposes though. If anybody has any input please post here. |
Same compilation problem for me! |
Are you guys trying to compile it from source or via wireguard-dkms from Debian unstable repo? AFAIK it is a known issue the Debian unstable packages work only on ARMv7+, thus not on RPi1 nor on RPi Zero. You need to compile from source then, e.g.:
|
$ make |
I was able to compile using snapshot https://git.zx2c4.com/WireGuard/snapshot/WireGuard-0.0.20181218.tar.xz But the client cannot properly manage the handshake.
|
Please join to Wireguard channel on IRC, there you can get help easier. |
I tried from source. Nobody replied on IRC.
…________________________________
From: Lubbo <[email protected]>
Sent: Tuesday, March 26, 2019 11:52 AM
To: adrianmihalko/raspberrypiwireguard
Cc: modidep; Author
Subject: Re: [adrianmihalko/raspberrypiwireguard] Compile error on raspberry pi zero (#17)
Are you guys trying to compile it from source or via wireguard-dkms from Debian unstable repo?
AFAIK it is a known issue the Debian unstable packages work only on ARMv7+, thus not on RPi1 nor on RPi Zero.
You need to compile from source then, e.g.:
sudo apt install libmnl-dev build-essential git raspberrypi-kernel-headers qrencode
git clone https://git.zx2c4.com/WireGuard
cd WireGuard/src
make
sudo make install
sudo modinfo wireguard
sudo modprobe wireguard
$ make
CC [M] /home/pi/WireGuard/src/main.o
CC [M] /home/pi/WireGuard/src/noise.o
CC [M] /home/pi/WireGuard/src/device.o
/home/pi/WireGuard/src/device.c: In function 'wg_xmit':
/home/pi/WireGuard/src/device.c:165:3: error: implicit declaration of function 'skb_mark_not_on_list' [-Werror=implicit-function-declaration]
skb_mark_not_on_list(skb);
^~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:326: recipe for target '/home/pi/WireGuard/src/device.o' failed
make[2]: *** [/home/pi/WireGuard/src/device.o] Error 1
Makefile:1535: recipe for target 'module/home/pi/WireGuard/src' failed
make[1]: *** [module/home/pi/WireGuard/src] Error 2
Makefile:37: recipe for target 'module' failed
make: *** [module] Error 2
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#17 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/Aavf59A1sAqisov5A0MLEgUjCptFI6HHks5vad_BgaJpZM4b4T2E>.
|
OMG ... IRC and mailing list ... isn’t it a bit strange the usage of those vintage support channels for a product that aims to innovate the security? |
Emm, no? |
I have the same problem with my raspberry pi 1 model B. As modidep I asked for help on the #wireguard IRC channel without getting any reply. Is there any solution for this compile error problem? |
Hi,
I use Raspian image 2018-11-13-raspbian-stretch-lite
But when ever I try to compile I receive the below errors. I tried to compile with previous version of wireguard. It compiles OK but when you make wg-quick up wg0. It gives too few arguments after resolvconf.
` CC [M] /home/pi/WireGuard/src/main.o
In file included from :0:0:
/home/pi/WireGuard/src/compat/compat.h:787:0: warning: "call_rcu" redefined
#define call_rcu call_rcu_bh
In file included from ./include/linux/srcu.h:33:0,
from ./include/linux/notifier.h:16,
from ./include/linux/memory_hotplug.h:7,
from ./include/linux/mmzone.h:782,
from ./include/linux/gfp.h:6,
from ./include/linux/slab.h:15,
from /home/pi/WireGuard/src/compat/compat.h:325,
from :0:
./include/linux/rcupdate.h:55:0: note: this is the location of the previous definition
#define call_rcu call_rcu_sched
CC [M] /home/pi/WireGuard/src/noise.o
In file included from :0:0:
/home/pi/WireGuard/src/compat/compat.h:787:0: warning: "call_rcu" redefined
#define call_rcu call_rcu_bh
In file included from ./include/linux/srcu.h:33:0,
from ./include/linux/notifier.h:16,
from ./include/linux/memory_hotplug.h:7,
from ./include/linux/mmzone.h:782,
from ./include/linux/gfp.h:6,
from ./include/linux/slab.h:15,
from /home/pi/WireGuard/src/compat/compat.h:325,
from :0:
./include/linux/rcupdate.h:55:0: note: this is the location of the previous definition
#define call_rcu call_rcu_sched
CC [M] /home/pi/WireGuard/src/device.o
In file included from :0:0:
/home/pi/WireGuard/src/compat/compat.h:787:0: warning: "call_rcu" redefined
#define call_rcu call_rcu_bh
In file included from ./include/linux/srcu.h:33:0,
from ./include/linux/notifier.h:16,
from ./include/linux/memory_hotplug.h:7,
from ./include/linux/mmzone.h:782,
from ./include/linux/gfp.h:6,
from ./include/linux/slab.h:15,
from /home/pi/WireGuard/src/compat/compat.h:325,
from :0:
./include/linux/rcupdate.h:55:0: note: this is the location of the previous definition
#define call_rcu call_rcu_sched
CC [M] /home/pi/WireGuard/src/peer.o
In file included from :0:0:
/home/pi/WireGuard/src/compat/compat.h:787:0: warning: "call_rcu" redefined
#define call_rcu call_rcu_bh
In file included from ./include/linux/srcu.h:33:0,
from ./include/linux/notifier.h:16,
from ./include/linux/memory_hotplug.h:7,
from ./include/linux/mmzone.h:782,
from ./include/linux/gfp.h:6,
from ./include/linux/slab.h:15,
from /home/pi/WireGuard/src/compat/compat.h:325,
from :0:
./include/linux/rcupdate.h:55:0: note: this is the location of the previous definition
#define call_rcu call_rcu_sched
CC [M] /home/pi/WireGuard/src/timers.o
In file included from :0:0:
/home/pi/WireGuard/src/compat/compat.h:787:0: warning: "call_rcu" redefined
#define call_rcu call_rcu_bh
In file included from ./include/linux/srcu.h:33:0,
from ./include/linux/notifier.h:16,
from ./include/linux/memory_hotplug.h:7,
from ./include/linux/mmzone.h:782,
from ./include/linux/gfp.h:6,
from ./include/linux/slab.h:15,
from /home/pi/WireGuard/src/compat/compat.h:325,
from :0:
./include/linux/rcupdate.h:55:0: note: this is the location of the previous definition
#define call_rcu call_rcu_sched
CC [M] /home/pi/WireGuard/src/queueing.o
In file included from :0:0:
/home/pi/WireGuard/src/compat/compat.h:787:0: warning: "call_rcu" redefined
#define call_rcu call_rcu_bh
In file included from ./include/linux/srcu.h:33:0,
from ./include/linux/notifier.h:16,
from ./include/linux/memory_hotplug.h:7,
from ./include/linux/mmzone.h:782,
from ./include/linux/gfp.h:6,
from ./include/linux/slab.h:15,
from /home/pi/WireGuard/src/compat/compat.h:325,
from :0:
./include/linux/rcupdate.h:55:0: note: this is the location of the previous definition
#define call_rcu call_rcu_sched
CC [M] /home/pi/WireGuard/src/send.o
In file included from :0:0:
/home/pi/WireGuard/src/compat/compat.h:787:0: warning: "call_rcu" redefined
#define call_rcu call_rcu_bh
In file included from ./include/linux/srcu.h:33:0,
from ./include/linux/notifier.h:16,
from ./include/linux/memory_hotplug.h:7,
from ./include/linux/mmzone.h:782,
from ./include/linux/gfp.h:6,
from ./include/linux/slab.h:15,
from /home/pi/WireGuard/src/compat/compat.h:325,
from :0:
./include/linux/rcupdate.h:55:0: note: this is the location of the previous definition
#define call_rcu call_rcu_sched
CC [M] /home/pi/WireGuard/src/receive.o
In file included from :0:0:
/home/pi/WireGuard/src/compat/compat.h:787:0: warning: "call_rcu" redefined
#define call_rcu call_rcu_bh
In file included from ./include/linux/srcu.h:33:0,
from ./include/linux/notifier.h:16,
from ./include/linux/memory_hotplug.h:7,
from ./include/linux/mmzone.h:782,
from ./include/linux/gfp.h:6,
from ./include/linux/slab.h:15,
from /home/pi/WireGuard/src/compat/compat.h:325,
from :0:
./include/linux/rcupdate.h:55:0: note: this is the location of the previous definition
#define call_rcu call_rcu_sched
CC [M] /home/pi/WireGuard/src/socket.o
In file included from :0:0:
/home/pi/WireGuard/src/compat/compat.h:787:0: warning: "call_rcu" redefined
#define call_rcu call_rcu_bh
In file included from ./include/linux/srcu.h:33:0,
from ./include/linux/notifier.h:16,
from ./include/linux/memory_hotplug.h:7,
from ./include/linux/mmzone.h:782,
from ./include/linux/gfp.h:6,
from ./include/linux/slab.h:15,
from /home/pi/WireGuard/src/compat/compat.h:325,
from :0:
./include/linux/rcupdate.h:55:0: note: this is the location of the previous definition
#define call_rcu call_rcu_sched
CC [M] /home/pi/WireGuard/src/hashtables.o
In file included from :0:0:
/home/pi/WireGuard/src/compat/compat.h:787:0: warning: "call_rcu" redefined
#define call_rcu call_rcu_bh
In file included from ./include/linux/srcu.h:33:0,
from ./include/linux/notifier.h:16,
from ./include/linux/memory_hotplug.h:7,
from ./include/linux/mmzone.h:782,
from ./include/linux/gfp.h:6,
from ./include/linux/slab.h:15,
from /home/pi/WireGuard/src/compat/compat.h:325,
from :0:
./include/linux/rcupdate.h:55:0: note: this is the location of the previous definition
#define call_rcu call_rcu_sched
CC [M] /home/pi/WireGuard/src/allowedips.o
In file included from :0:0:
/home/pi/WireGuard/src/compat/compat.h:787:0: warning: "call_rcu" redefined
#define call_rcu call_rcu_bh
In file included from ./include/linux/srcu.h:33:0,
from ./include/linux/notifier.h:16,
from ./include/linux/memory_hotplug.h:7,
from ./include/linux/mmzone.h:782,
from ./include/linux/gfp.h:6,
from ./include/linux/slab.h:15,
from /home/pi/WireGuard/src/compat/compat.h:325,
from :0:
./include/linux/rcupdate.h:55:0: note: this is the location of the previous definition
#define call_rcu call_rcu_sched
CC [M] /home/pi/WireGuard/src/ratelimiter.o
In file included from :0:0:
/home/pi/WireGuard/src/compat/compat.h:787:0: warning: "call_rcu" redefined
#define call_rcu call_rcu_bh
In file included from ./include/linux/srcu.h:33:0,
from ./include/linux/notifier.h:16,
from ./include/linux/memory_hotplug.h:7,
from ./include/linux/mmzone.h:782,
from ./include/linux/gfp.h:6,
from ./include/linux/slab.h:15,
from /home/pi/WireGuard/src/compat/compat.h:325,
from :0:
./include/linux/rcupdate.h:55:0: note: this is the location of the previous definition
#define call_rcu call_rcu_sched
/home/pi/WireGuard/src/ratelimiter.c: In function ‘entry_uninit’:
/home/pi/WireGuard/src/ratelimiter.c:60:2: error: implicit declaration of function ‘call_rcu’ [-Werror=implicit-function-declaration]
call_rcu(&entry->rcu, entry_free);
^~~~~~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:326: recipe for target '/home/pi/WireGuard/src/ratelimiter.o' failed
make[2]: *** [/home/pi/WireGuard/src/ratelimiter.o] Error 1
Makefile:1535: recipe for target 'module/home/pi/WireGuard/src' failed
make[1]: *** [module/home/pi/WireGuard/src] Error 2
Makefile:37: recipe for target 'module' failed
make: *** [module] Error 2
`
I tied after update && upgrade and before. Both gave the same result. Any help will be apperciated.
The text was updated successfully, but these errors were encountered: