Closed Axiu0823 closed 5 months ago
编译环境是Ubuntu 20.04 LTS,依赖安装了
ack antlr3 asciidoc autoconf automake autopoint binutils bison build-essential \ bzip2 ccache clang clangd cmake cpio curl device-tree-compiler ecj fastjar flex gawk gettext gcc-multilib \ g++-multilib git gperf haveged help2man intltool lib32gcc-s1 libc6-dev-i386 libelf-dev libglib2.0-dev \ libgmp3-dev libltdl-dev libmpc-dev libmpfr-dev libncurses5-dev libncursesw5 libncursesw5-dev libreadline-dev \ libssl-dev libtool lld lldb lrzsz mkisofs msmtp nano ninja-build p7zip p7zip-full patch pkgconf python2.7 \ python3 python3-pip python3-ply python-docutils qemu-utils re2c rsync scons squashfs-tools subversion swig \ texinfo uglifyjs upx-ucl unzip vim wget xmlto xxd zlib1g-dev
按照说明执行了以下代码
find ./ | grep Makefile | grep v2ray-geodata | xargs rm -f find ./ | grep Makefile | grep mosdns | xargs rm -f git clone https://github.com/sbwml/luci-app-mosdns -b v5 package/mosdns git clone https://github.com/sbwml/v2ray-geodata package/v2ray-geodata make menuconfig # choose LUCI -> Applications -> luci-app-mosdns make package/mosdns/luci-app-mosdns/compile V=s
在make package/mosdns/luci-app-mosdns/compile V=s这一步中出现了错误,下面时日志
make package/mosdns/luci-app-mosdns/compile V=s
axiu@ubuntu:~/openwrt/science/hanwckf-immortalwrt-mt798x$ make package/mosdns/luci-app-mosdns/compile V=s make[2]: Entering directory '/home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/scripts/config' cc -O2 -c -o conf.o conf.c cc conf.o confdata.o expr.o lexer.lex.o parser.tab.o preprocess.o symbol.o util.o -o conf make[2]: Leaving directory '/home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/scripts/config' time: target/linux/prereq#0.19#0.05#0.23 make[1]: Entering directory '/home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x' make[2]: Entering directory '/home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/feeds/luci/modules/luci-base' touch /home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/build_dir/hostpkg/luci-base/.prepared75d9dc0e6163a50bb2c299b4806dd637_6664517399ebbbc92a37c5bb081b5c53 touch /home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/build_dir/hostpkg/luci-base/.configured make -C src/ clean po2lmo jsmin make[3]: Entering directory '/home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/feeds/luci/modules/luci-base/src' rm -f contrib/lemon po2lmo parser.so version.lua plural_formula.c plural_formula.h *.o cc -DNDEBUG -c -o po2lmo.o po2lmo.c cc -o contrib/lemon contrib/lemon.c ./contrib/lemon -q plural_formula.y cc -DNDEBUG -c -o template_lmo.o template_lmo.c cc -DNDEBUG -c -o plural_formula.o plural_formula.c cc -o po2lmo po2lmo.o template_lmo.o plural_formula.o cc -DNDEBUG -c -o jsmin.o jsmin.c cc -o jsmin jsmin.o make[3]: Leaving directory '/home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/feeds/luci/modules/luci-base/src' touch /home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/build_dir/hostpkg/luci-base/.built install -d -m0755 /home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/staging_dir/hostpkg/bin install -m0755 src/po2lmo /home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/staging_dir/hostpkg/bin/po2lmo install -m0755 src/jsmin /home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/staging_dir/hostpkg/bin/jsmin mkdir -p /home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/staging_dir/hostpkg/stamp touch /home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/build_dir/hostpkg/luci-base/.built touch /home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/staging_dir/hostpkg/stamp/.luci-base_installed make[2]: Leaving directory '/home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/feeds/luci/modules/luci-base' time: package/feeds/luci/luci-base/host-compile#1.53#0.22#1.71 make[2]: Entering directory '/home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/package/libs/toolchain' touch /home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/build_dir/target-aarch64_cortex-a53_musl/toolchain/.prepared_32a6869eefc51a03df5ece2a280b3ceb_6664517399ebbbc92a37c5bb081b5c53_check mkdir -p /home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/build_dir/target-aarch64_cortex-a53_musl/toolchain touch /home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/build_dir/target-aarch64_cortex-a53_musl/toolchain/.prepared_32a6869eefc51a03df5ece2a280b3ceb_6664517399ebbbc92a37c5bb081b5c53 rm -f /home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/build_dir/target-aarch64_cortex-a53_musl/toolchain/.configured_* rm -f /home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/staging_dir/target-aarch64_cortex-a53_musl/stamp/.toolchain_installed (cd /home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/build_dir/target-aarch64_cortex-a53_musl/toolchain/./; if [ -x ./configure ]; then find /home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/build_dir/target-aarch64_cortex-a53_musl/toolchain/ -name config.guess | xargs -r chmod u+w; find /home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/build_dir/target-aarch64_cortex-a53_musl/toolchain/ -name config.guess | xargs -r -n1 cp --remove-destination /home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/scripts/config.guess; find /home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/build_dir/target-aarch64_cortex-a53_musl/toolchain/ -name config.sub | xargs -r chmod u+w; find /home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/build_dir/target-aarch64_cortex-a53_musl/toolchain/ -name config.sub | xargs -r -n1 cp --remove-destination /home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/scripts/config.sub; AR="aarch64-openwrt-linux-musl-gcc-ar" AS="aarch64-openwrt-linux-musl-gcc -c -Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/build_dir/target-aarch64_cortex-a53_musl/toolchain=toolchain -fstack-protector -D_FORTIFY_SOURCE=2 -Wl,-z,now -Wl,-z,relro" LD=aarch64-openwrt-linux-musl-ld NM="aarch64-openwrt-linux-musl-gcc-nm" CC="aarch64-openwrt-linux-musl-gcc" GCC="aarch64-openwrt-linux-musl-gcc" CXX="aarch64-openwrt-linux-musl-g++" RANLIB="aarch64-openwrt-linux-musl-gcc-ranlib" STRIP=aarch64-openwrt-linux-musl-strip OBJCOPY=aarch64-openwrt-linux-musl-objcopy OBJDUMP=aarch64-openwrt-linux-musl-objdump SIZE=aarch64-openwrt-linux-musl-size CFLAGS="-Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/build_dir/target-aarch64_cortex-a53_musl/toolchain=toolchain -fstack-protector -D_FORTIFY_SOURCE=2 -Wl,-z,now -Wl,-z,relro " CXXFLAGS="-Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/build_dir/target-aarch64_cortex-a53_musl/toolchain=toolchain -fstack-protector -D_FORTIFY_SOURCE=2 -Wl,-z,now -Wl,-z,relro " CPPFLAGS="-I/home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_musl/usr/include -I/home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_musl/include/fortify -I/home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_musl/include " LDFLAGS="-L/home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_musl/usr/lib -L/home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_musl/lib -znow -zrelro " ./configure --target=aarch64-openwrt-linux --host=aarch64-openwrt-linux --build=x86_64-pc-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls ; fi; ) touch /home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/build_dir/target-aarch64_cortex-a53_musl/toolchain/.configured_68b329da9893e34099c7d8ad5cb9c940 rm -f /home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/build_dir/target-aarch64_cortex-a53_musl/toolchain/.built touch /home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/build_dir/target-aarch64_cortex-a53_musl/toolchain/.built_check touch /home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/build_dir/target-aarch64_cortex-a53_musl/toolchain/.built rm -rf /home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/libc.installed /home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/libc mkdir -p /home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/libc install -d -m0755 /home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/libc/lib /home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/libc/usr/bin cp -fpR /home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_musl/lib/ld-musl-*.so* /home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/libc/lib/ cp: cannot stat '/home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_musl/lib/ld-musl-*.so*': No such file or directory make[2]: *** [Makefile:728: /home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/libc.installed] Error 1 make[2]: Leaving directory '/home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/package/libs/toolchain' time: package/libs/toolchain/compile#0.19#0.04#0.21 ERROR: package/libs/toolchain failed to build. make[1]: *** [package/Makefile:120: package/libs/toolchain/compile] Error 1 make[1]: Leaving directory '/home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x' make: *** [/home/axiu/openwrt/science/hanwckf-immortalwrt-mt798x/include/toplevel.mk:230:package/mosdns/luci-app-mosdns/compile] 错误 2
你这个错误和mosdns无关,即使编译其它插件,你一样会报这个错误。建议查看 openwrt 官方docs。
编译环境是Ubuntu 20.04 LTS,依赖安装了
按照说明执行了以下代码
在
make package/mosdns/luci-app-mosdns/compile V=s
这一步中出现了错误,下面时日志