coolsnowwolf/openwrt-gl-ax1800

尝试编译GL-AX1800固件时添加wireguard编译报错

JiaY-shi opened this issue · 0 comments

mkdir -p /home/shi/openwrt-gl-ax1800/dl
SHELL= flock /home/shi/openwrt-gl-ax1800/tmp/.ppp-2.4.7.git-2019-05-25.tar.xz.flock -c ' /home/shi/openwrt-gl-ax1800/scripts/download.pl "/home/shi/openwrt-gl-ax1800/dl" "ppp-2.4.7.git-2019-05-25.tar.xz" "7e7e74f0261db2c45770d79c6114e768382e85bfeb3f5a83179f270d6c15006d" "" || ( /home/shi/openwrt-gl-ax1800/scripts/dl_github_archive.py --dl-dir="/home/shi/openwrt-gl-ax1800/dl" --url="https://github.com/paulusmack/ppp" --version="8e77984ac5d7acbe68b2b2f590abd17564c9730d" --subdir="ppp-2.4.7.git-2019-05-25" --source="ppp-2.4.7.git-2019-05-25.tar.xz" --hash="7e7e74f0261db2c45770d79c6114e768382e85bfeb3f5a83179f270d6c15006d" || ( echo "Checking out files from the git repository..."; mkdir -p /home/shi/openwrt-gl-ax1800/tmp/dl && cd /home/shi/openwrt-gl-ax1800/tmp/dl && rm -rf ppp-2.4.7.git-2019-05-25 && [ ! -d ppp-2.4.7.git-2019-05-25 ] && git clone https://github.com/paulusmack/ppp ppp-2.4.7.git-2019-05-25 && (cd ppp-2.4.7.git-2019-05-25 && git checkout 8e77984ac5d7acbe68b2b2f590abd17564c9730d && git submodule update --init --recursive) && echo "Packing checkout..." && export TAR_TIMESTAMP=cd ppp-2.4.7.git-2019-05-25 && git log -1 --format='\''@%ct'\'' && rm -rf ppp-2.4.7.git-2019-05-25/.git && tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c ppp-2.4.7.git-2019-05-25 | xz -zc -7e > /home/shi/openwrt-gl-ax1800/tmp/dl/ppp-2.4.7.git-2019-05-25.tar.xz && mv /home/shi/openwrt-gl-ax1800/tmp/dl/ppp-2.4.7.git-2019-05-25.tar.xz /home/shi/openwrt-gl-ax1800/dl/ && rm -rf ppp-2.4.7.git-2019-05-25; ); ) '
mkdir -p /home/shi/openwrt-gl-ax1800/staging_dir/target-aarch64_cortex-a53_musl/root-ipq60xx/stamp
SHELL= flock /home/shi/openwrt-gl-ax1800/tmp/.root-copy.flock -c 'cp -fpR /home/shi/openwrt-gl-ax1800/build_dir/target-aarch64_cortex-a53_musl/linux-ipq60xx_generic/ppp-default/ppp-2.4.7.git-2019-05-25/.pkgdir/ppp/. /home/shi/openwrt-gl-ax1800/staging_dir/target-aarch64_cortex-a53_musl/root-ipq60xx/'
touch /home/shi/openwrt-gl-ax1800/staging_dir/target-aarch64_cortex-a53_musl/root-ipq60xx/stamp/.ppp_installed
echo "ppp" >> /home/shi/openwrt-gl-ax1800/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/ppp.default.install
mkdir -p /home/shi/openwrt-gl-ax1800/staging_dir/target-aarch64_cortex-a53_musl/root-ipq60xx/stamp
SHELL= flock /home/shi/openwrt-gl-ax1800/tmp/.root-copy.flock -c 'cp -fpR /home/shi/openwrt-gl-ax1800/build_dir/target-aarch64_cortex-a53_musl/linux-ipq60xx_generic/ppp-default/ppp-2.4.7.git-2019-05-25/.pkgdir/ppp-mod-pppoe/. /home/shi/openwrt-gl-ax1800/staging_dir/target-aarch64_cortex-a53_musl/root-ipq60xx/'
touch /home/shi/openwrt-gl-ax1800/staging_dir/target-aarch64_cortex-a53_musl/root-ipq60xx/stamp/.ppp-mod-pppoe_installed
echo "ppp-mod-pppoe" >> /home/shi/openwrt-gl-ax1800/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/ppp.default.install
make[3]: Leaving directory '/home/shi/openwrt-gl-ax1800/package/network/services/ppp'
time: package/network/services/ppp/default/compile#0.25#0.13#0.36
make[3]: Entering directory '/home/shi/openwrt-gl-ax1800/package/network/services/wireguard'
mkdir -p /home/shi/openwrt-gl-ax1800/dl
SHELL= flock /home/shi/openwrt-gl-ax1800/tmp/.wireguard-linux-compat-1.0.20200611.tar.xz.flock -c ' /home/shi/openwrt-gl-ax1800/scripts/download.pl "/home/shi/openwrt-gl-ax1800/dl" "wireguard-linux-compat-1.0.20200611.tar.xz" "9b0478c3b1f3a7b488916e632e2fcbb1383bb1a2ef294489858ce2ba1da3246d" "" "https://git.zx2c4.com/wireguard-linux-compat/snapshot/" '
rm -f /home/shi/openwrt-gl-ax1800/build_dir/target-aarch64_cortex-a53_musl/linux-ipq60xx_generic/wireguard-linux-compat-1.0.20200611/.built
touch /home/shi/openwrt-gl-ax1800/build_dir/target-aarch64_cortex-a53_musl/linux-ipq60xx_generic/wireguard-linux-compat-1.0.20200611/.built_check
make -C /home/shi/openwrt-gl-ax1800/build_dir/target-aarch64_cortex-a53_musl/linux-ipq60xx_generic/linux-4.4.60 HOSTCFLAGS="-O2 -I/home/shi/openwrt-gl-ax1800/staging_dir/host/include -I/home/shi/openwrt-gl-ax1800/staging_dir/hostpkg/include -I/home/shi/openwrt-gl-ax1800/staging_dir/target-aarch64_cortex-a53_musl/host/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="aarch64-openwrt-linux-musl-" ARCH="arm64" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" KBUILD_BUILD_TIMESTAMP="Wed Feb 16 20:47:59 2022" KBUILD_BUILD_VERSION="0" HOST_LOADLIBES="-L/home/shi/openwrt-gl-ax1800/staging_dir/host/lib" CONFIG_SHELL="bash" V='' cmd_syscalls= KERNELRELEASE=4.4.60 CC="aarch64-openwrt-linux-musl-gcc" M="/home/shi/openwrt-gl-ax1800/build_dir/target-aarch64_cortex-a53_musl/linux-ipq60xx_generic/wireguard-linux-compat-1.0.20200611/src" modules
make[4]: Entering directory '/home/shi/openwrt-gl-ax1800/build_dir/target-aarch64_cortex-a53_musl/linux-ipq60xx_generic/linux-4.4.60'
CC [M] /home/shi/openwrt-gl-ax1800/build_dir/target-aarch64_cortex-a53_musl/linux-ipq60xx_generic/wireguard-linux-compat-1.0.20200611/src/main.o
In file included from :0:0:
/home/shi/openwrt-gl-ax1800/build_dir/target-aarch64_cortex-a53_musl/linux-ipq60xx_generic/wireguard-linux-compat-1.0.20200611/src/compat/compat.h:671:21: error: redefinition of 'skb_put_data'
static inline void *skb_put_data(struct sk_buff *skb, const void *data, unsigned int len)
^~~~~~~~~~~~
In file included from include/linux/ip.h:20:0,
from include/linux/if_tunnel.h:4,
from include/net/ip_tunnels.h:4,
from include/net/udp_tunnel.h:4,
from /home/shi/openwrt-gl-ax1800/build_dir/target-aarch64_cortex-a53_musl/linux-ipq60xx_generic/wireguard-linux-compat-1.0.20200611/src/compat/udp_tunnel/udp_tunnel_partial_compat.h:143,
from /home/shi/openwrt-gl-ax1800/build_dir/target-aarch64_cortex-a53_musl/linux-ipq60xx_generic/wireguard-linux-compat-1.0.20200611/src/compat/compat.h:76,
from :0:
include/linux/skbuff.h:1859:21: note: previous definition of 'skb_put_data' was here
static inline void *skb_put_data(struct sk_buff *skb, const void *data,
^~~~~~~~~~~~
make[5]: *** [scripts/Makefile.build:338: /home/shi/openwrt-gl-ax1800/build_dir/target-aarch64_cortex-a53_musl/linux-ipq60xx_generic/wireguard-linux-compat-1.0.20200611/src/main.o] Error 1
make[4]: *** [Makefile:1412: module/home/shi/openwrt-gl-ax1800/build_dir/target-aarch64_cortex-a53_musl/linux-ipq60xx_generic/wireguard-linux-compat-1.0.20200611/src] Error 2
make[4]: Leaving directory '/home/shi/openwrt-gl-ax1800/build_dir/target-aarch64_cortex-a53_musl/linux-ipq60xx_generic/linux-4.4.60'
make[3]: *** [Makefile:91: /home/shi/openwrt-gl-ax1800/build_dir/target-aarch64_cortex-a53_musl/linux-ipq60xx_generic/wireguard-linux-compat-1.0.20200611/.built] Error 2
make[3]: Leaving directory '/home/shi/openwrt-gl-ax1800/package/network/services/wireguard'
time: package/network/services/wireguard/compile#1.02#0.49#1.49
make[2]: *** [package/Makefile:113: package/network/services/wireguard/compile] Error 2
make[2]: Leaving directory '/home/shi/openwrt-gl-ax1800'
make[1]: *** [package/Makefile:107: /home/shi/openwrt-gl-ax1800/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/shi/openwrt-gl-ax1800'
make: *** [/home/shi/openwrt-gl-ax1800/include/toplevel.mk:227: world] Error 2