[GH-ISSUE #18] kmod-amneziawg OpenWrt SDK cannot stat wireguard/{*.c,*.h,selftest/} #11

Open
opened 2026-10-13 21:04:53 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @inrealt on GitHub (Oct 11, 2024).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-openwrt/issues/18

wget https://downloads.openwrt.org/snapshots/targets/x86/64/openwrt-sdk-x86-64_gcc-13.3.0_musl.Linux-x86_64.tar.zst
tar -xvf https://downloads.openwrt.org/snapshots/targets/x86/64/openwrt-sdk-x86-64_gcc-13.3.0_musl.Linux-x86_64.tar.zst
cd openwrt-sdk-x86-64_gcc-13.3.0_musl.Linux-x86_64
echo "src-git amnezia https://github.com/amnezia-vpn/amneziawg-openwrt.git" >> feeds.conf.default
./scripts/feeds update -a
./scripts/feeds install amneziawg-tools kmod-amneziawg luci-proto-amneziawg
make package/kmod-amneziawg/compile V=s
cp: cannot stat '/sdk/x/openwrt-sdk-x86-64_gcc-13.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/linux-x86_64/linux-6.6.54/drivers/net/wireguard/*.c': No such file or directory
cp: cannot stat '/sdk/x/openwrt-sdk-x86-64_gcc-13.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/linux-x86_64/linux-6.6.54/drivers/net/wireguard/*.h': No such file or directory
cp: cannot stat '/sdk/x/openwrt-sdk-x86-64_gcc-13.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/linux-x86_64/linux-6.6.54/drivers/net/wireguard/selftest/': No such file or directory

amneziasdk.log

Originally created by @inrealt on GitHub (Oct 11, 2024). Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-openwrt/issues/18 ``` wget https://downloads.openwrt.org/snapshots/targets/x86/64/openwrt-sdk-x86-64_gcc-13.3.0_musl.Linux-x86_64.tar.zst tar -xvf https://downloads.openwrt.org/snapshots/targets/x86/64/openwrt-sdk-x86-64_gcc-13.3.0_musl.Linux-x86_64.tar.zst cd openwrt-sdk-x86-64_gcc-13.3.0_musl.Linux-x86_64 echo "src-git amnezia https://github.com/amnezia-vpn/amneziawg-openwrt.git" >> feeds.conf.default ./scripts/feeds update -a ./scripts/feeds install amneziawg-tools kmod-amneziawg luci-proto-amneziawg make package/kmod-amneziawg/compile V=s cp: cannot stat '/sdk/x/openwrt-sdk-x86-64_gcc-13.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/linux-x86_64/linux-6.6.54/drivers/net/wireguard/*.c': No such file or directory cp: cannot stat '/sdk/x/openwrt-sdk-x86-64_gcc-13.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/linux-x86_64/linux-6.6.54/drivers/net/wireguard/*.h': No such file or directory cp: cannot stat '/sdk/x/openwrt-sdk-x86-64_gcc-13.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/linux-x86_64/linux-6.6.54/drivers/net/wireguard/selftest/': No such file or directory ``` [amneziasdk.log](https://github.com/user-attachments/files/17346099/amneziasdk.log)
Author
Owner

@defanator commented on GitHub (Feb 23, 2025):

@inrealt FWIW, I've recently seen quite similar errors while trying to build kmod and packages on an outdated toolchain: https://github.com/defanator/amneziawg-openwrt/actions/runs/13473544067/job/37649929779

Rebuilding the toolchain + kernel fixed the issue.

<!-- gh-comment-id:2676714479 --> @defanator commented on GitHub (Feb 23, 2025): @inrealt FWIW, I've recently seen quite similar errors while trying to build kmod and packages on an outdated toolchain: https://github.com/defanator/amneziawg-openwrt/actions/runs/13473544067/job/37649929779 Rebuilding the toolchain + kernel fixed the issue.
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-openwrt#11
No description provided.