

























CC [M] main.o
CC [M] noise.o
noise.c: В функции «wg_noise_init»:
noise.c:39:30: ошибка: размер «blake» в памяти неизвестен
39 | struct blake2s_state blake;
| ^
noise.c:41:46: ошибка: при передаче аргумента 2 «blake2s» указатель преобразуется в целое без приведения типа [-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.8-arch1-1/build/include/crypto/blake2s.h:145:50: замечание: 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: ошибка: при передаче аргумента 5 «blake2s» целое преобразуется в указатель без приведения типа [-Wint-conversion]
42 | NOISE_HASH_LEN, sizeof(handshake_name), 0);
| ^~
| |
| long unsigned int
/usr/lib/modules/6.19.8-arch1-1/build/include/crypto/blake2s.h:147:32: замечание: expected «u8 » {aka «unsigned char »} but argument is of type «long unsigned int»
147 | u8 *out, size_t outlen)
| ^
noise.c:39:30: предупреждение: неиспользуемая переменная «blake» [-Wunused-variable]
39 | struct blake2s_state blake;
| ^
noise.c: В функции «hmac»:
noise.c:310:30: ошибка: размер «state» в памяти неизвестен
310 | struct blake2s_state state;
| ^
noise.c:310:30: предупреждение: неиспользуемая переменная «state» [-Wunused-variable]
noise.c: В функции «mix_hash»:
noise.c:437:30: ошибка: размер «blake» в памяти неизвестен
437 | struct blake2s_state blake;
| ^
noise.c:437:30: предупреждение: неиспользуемая переменная «blake» [-Wunused-variable]
make[3]: *** [/usr/lib/modules/6.19.8-arch1-1/build/scripts/Makefile.build:289: noise.o] Ошибка 1
make[2]: *** [/usr/lib/modules/6.19.8-arch1-1/build/Makefile:2064: .] Ошибка 2
make[1]: *** [Makefile:248: __sub-make] Ошибка 2
make: *** [Makefile:27: module] Ошибка 2
==> ОШИБКА: Произошел сбой в build().
If after updating amneziawg-linux awg-quick doesn't use this kernel module, you need to rebuild amneziawg-tools and amneziawg-go (idk which of them explicitly causes this problem)
I've removed hard depend on version of linux package. You may try to build it now.
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing linux (6.12.3.arch1-1) breaks dependency 'linux=6.11.6.arch1-1' required by amneziawg-linux
:: installing linux-headers (6.12.3.arch1-1) breaks dependency 'linux-headers=6.11.6.arch1-1' required by amneziawg-linux
-> error installing repo packages
I double-checked everything and was able to reproduce the error. For some unknown reason, all package managers working with AUR determine the dependencies of the pkg{} block before building, and not during packaging, as intended in this PKGBUILD. This causes some inconvenience - a hard link to the linux version is needed for correct updating of the kernel in the future - you will also need to update the amneziawg-linux package, otherwise the kernel will be updated and the module will stop working. I don't know how to solve this problem yet, I will try different options.
No packages amneziawg-linux, linux-headers, linux in cache.
Can you clear your yay cache (build directory)?
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。
workaround: build with linux-lts kernel version
https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/issues/138