mirror of
https://github.com/amnezia-vpn/amneziawg-linux-kernel-module.git
synced 2026-10-13 21:34:34 +00:00
[GH-ISSUE #149] warning: unused variable 'blake' #93
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
amnezia-vpn/amneziawg-linux-kernel-module#93
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @AlexRay2 on GitHub (Mar 8, 2026).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/issues/149
Hello. I have one problem with installation of amneziawg kernel. When I type make, it gives error:
lex@archlinux
/a/src (master)> make~CC [M] main.o
CC [M] noise.o
noise.c: In function ‘wg_noise_init’:
noise.c:39:30: error: storage size of ‘blake’ isn’t known
39 | struct blake2s_state blake;
| ^~~~~
noise.c:41:46: error: passing argument 2 of ‘blake2s’ makes integer from pointer without a cast [-Wint-conversion]
41 | blake2s(handshake_init_chaining_key, handshake_name, NULL,
| ^~~~~~~~~~~~~~
| |
| const u8 * {aka const unsigned char *}
In file included from messages.h:11,
from noise.h:8,
from noise.c:6:
/usr/lib/modules/6.19.6-arch1-1/build/include/crypto/blake2s.h:145:50: note: expected ‘size_t’ {aka ‘long unsigned int’} but argument is of type ‘const u8 *’ {aka ‘const unsigned char *’}
145 | static inline void blake2s(const u8 *key, size_t keylen,
| ~~~~~~~^~~~~~
noise.c:42:33: error: passing argument 5 of ‘blake2s’ makes pointer from integer without a cast [-Wint-conversion]
42 | NOISE_HASH_LEN, sizeof(handshake_name), 0);
| ^~~~~~~~~~~~~~~~~~~~~~
| |
| long unsigned int
/usr/lib/modules/6.19.6-arch1-1/build/include/crypto/blake2s.h:147:32: note: expected ‘u8 *’ {aka ‘unsigned char *’} but argument is of type ‘long unsigned int’
147 | u8 *out, size_t outlen)
| ~~~~^
noise.c:39:30: warning: unused variable ‘blake’ [-Wunused-variable]
39 | struct blake2s_state blake;
| ^~~~~
noise.c: In function ‘hmac’:
noise.c:310:30: error: storage size of ‘state’ isn’t known
310 | struct blake2s_state state;
| ^~~~~
noise.c:310:30: warning: unused variable ‘state’ [-Wunused-variable]
noise.c: In function ‘mix_hash’:
noise.c:437:30: error: storage size of ‘blake’ isn’t known
437 | struct blake2s_state blake;
| ^~~~~
noise.c:437:30: warning: unused variable ‘blake’ [-Wunused-variable]
make[3]: *** [/usr/lib/modules/6.19.6-arch1-1/build/scripts/Makefile.build:289: noise.o] Error 1
make[2]: *** [/usr/lib/modules/6.19.6-arch1-1/build/Makefile:2064: .] Error 2
make[1]: *** [Makefile:248: __sub-make] Error 2
make: *** [Makefile:27: module] Error 2
help please, I am a new user of Arch
Edited: I am reinstalling this, because when I am trying to start my conf service: systemctl start awg-quick@wg0.service
It gives error, this is journalctl if it will help
alex@archlinux ~/a/src (master) [1]> journalctl -xeu awg-quick@wg0.service
мар 08 13:29:28 archlinux systemd[1]: Starting WireGuard via wg-quick(8) for wg0...
░░ Subject: A start job for unit awg-quick@wg0.service has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit awg-quick@wg0.service has begun execution.
░░
░░ The job identifier is 278.
мар 08 13:29:28 archlinux awg-quick[716]: [#] ip link add wg0 type amneziawg
мар 08 13:29:28 archlinux awg-quick[745]: Error: Unknown device type.
мар 08 13:29:28 archlinux awg-quick[750]: Unable to access interface: Protocol not supported
мар 08 13:29:28 archlinux awg-quick[716]: [#] ip link delete dev wg0
мар 08 13:29:28 archlinux awg-quick[752]: Cannot find device "wg0"
мар 08 13:29:28 archlinux systemd[1]: awg-quick@wg0.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ An ExecStart= process belonging to unit awg-quick@wg0.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
мар 08 13:29:28 archlinux systemd[1]: awg-quick@wg0.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit awg-quick@wg0.service has entered the 'failed' state with result 'exit-code'.
мар 08 13:29:28 archlinux systemd[1]: Failed to start WireGuard via wg-quick(8) for wg0.
░░ Subject: A start job for unit awg-quick@wg0.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit awg-quick@wg0.service has finished with a failure.
░░
░░ The job identifier is 278 and the job result is failed.
мар 08 14:12:01 archlinux systemd[1]: Starting WireGuard via wg-quick(8) for wg0...
@noctuum commented on GitHub (Mar 8, 2026):
This is the same blake2s API breakage on kernel 6.19 as #143. Fix is in #145.