Closed jzhou404 closed 7 months ago
默认.config 编译可以通过
只选择Luci==Application==Luci-app-ssr-plus==Include NaiveProxy, 报错不能编译通过
故障可以重现。
aws 编译
make[3]: Entering directory '/home/ubuntu/lede/package/utils/lua' make[3]: Leaving directory '/home/ubuntu/lede/package/utils/lua' time: package/utils/lua/host-compile#0.17#0.08#0.22 make[3]: Entering directory '/home/ubuntu/lede/feeds/packages/lang/golang/golang' make[3]: Leaving directory '/home/ubuntu/lede/feeds/packages/lang/golang/golang' time: package/feeds/packages/golang/host-compile#0.44#0.32#0.61 make[3]: Entering directory '/home/ubuntu/lede/package/system/ca-certificates' mkdir -p /home/ubuntu/lede/staging_dir/target-x86_64_musl/root-x86/stamp SHELL= flock /home/ubuntu/lede/tmp/.root-copy.flock -c 'cp -fpR /home/ubuntu/lede/build_dir/target-x86_64_musl/ca-certificates-20211016/.pkgdir/ca-bundle/. /home/ubuntu/lede/staging_dir/target-x86_64_musl/root-x86/' touch /home/ubuntu/lede/staging_dir/target-x86_64_musl/root-x86/stamp/.ca-bundle_installed echo "ca-bundle" >> /home/ubuntu/lede/staging_dir/target-x86_64_musl/pkginfo/ca-certificates.default.install mkdir -p /home/ubuntu/lede/staging_dir/target-x86_64_musl/root-x86/stamp SHELL= flock /home/ubuntu/lede/tmp/.root-copy.flock -c 'cp -fpR /home/ubuntu/lede/build_dir/target-x86_64_musl/ca-certificates-20211016/.pkgdir/ca-certificates/. /home/ubuntu/lede/staging_dir/target-x86_64_musl/root-x86/' touch /home/ubuntu/lede/staging_dir/target-x86_64_musl/root-x86/stamp/.ca-certificates_installed echo "ca-certificates" >> /home/ubuntu/lede/staging_dir/target-x86_64_musl/pkginfo/ca-certificates.default.install make[3]: Leaving directory '/home/ubuntu/lede/package/system/ca-certificates' time: package/system/ca-certificates/compile#0.16#0.10#0.23 make[3]: Entering directory '/home/ubuntu/lede/feeds/packages/net/mosdns' mkdir -p /home/ubuntu/lede/staging_dir/target-x86_64_musl/root-x86/stamp SHELL= flock /home/ubuntu/lede/tmp/.root-copy.flock -c 'cp -fpR /home/ubuntu/lede/build_dir/target-x86_64_musl/mosdns-5.3.1/.pkgdir/mosdns/. /home/ubuntu/lede/staging_dir/target-x86_64_musl/root-x86/' touch /home/ubuntu/lede/staging_dir/target-x86_64_musl/root-x86/stamp/.mosdns_installed echo "mosdns" >> /home/ubuntu/lede/staging_dir/target-x86_64_musl/pkginfo/mosdns.default.install make[3]: Leaving directory '/home/ubuntu/lede/feeds/packages/net/mosdns' time: package/feeds/packages/mosdns/compile#0.16#0.09#0.22 make[3]: Entering directory '/home/ubuntu/lede/feeds/helloworld/gn' MAKEFLAGS="" /home/ubuntu/lede/staging_dir/host/bin/ninja -j1 -C /home/ubuntu/lede/build_dir/hostpkg/gn-2024-01-24-a2e2717e/out ninja: Entering directory `/home/ubuntu/lede/build_dir/hostpkg/gn-2024-01-24-a2e2717e/out' [1/287] CXX src/base/command_line.o FAILED: src/base/command_line.o clang++ -MMD -MF src/base/command_line.o.d -I../src -I. -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -DSTDC_CONSTANT_MACROS -DSTDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -std=c++20 -Wrange-loop-analysis -Wextra-semi-stmt -c ../src/base/command_line.cc -o src/base/command_line.o /bin/sh: 1: clang++: not found ninja: build stopped: subcommand failed. make[3]: [Makefile:58: /home/ubuntu/lede/build_dir/hostpkg/gn-2024-01-24-a2e2717e/.built] Error 1 make[3]: Leaving directory '/home/ubuntu/lede/feeds/helloworld/gn' time: package/feeds/helloworld/gn/host-compile#0.09#0.05#0.13 ERROR: package/feeds/helloworld/gn [host] failed to build. make[2]: [package/Makefile:114: package/feeds/helloworld/gn/host/compile] Error 1 make[2]: Leaving directory '/home/ubuntu/lede' make[1]: [package/Makefile:110: /home/ubuntu/lede/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2 make[1]: Leaving directory '/home/ubuntu/lede' make: [/home/ubuntu/lede/include/toplevel.mk:231: world] Error 2
sudo apt-get install clang
后解决
详细叙述
默认.config 编译可以通过
只选择Luci==Application==Luci-app-ssr-plus==Include NaiveProxy, 报错不能编译通过
故障可以重现。
重复 issue
具体型号
aws 编译
详细日志
make[3]: Entering directory '/home/ubuntu/lede/package/utils/lua' make[3]: Leaving directory '/home/ubuntu/lede/package/utils/lua' time: package/utils/lua/host-compile#0.17#0.08#0.22 make[3]: Entering directory '/home/ubuntu/lede/feeds/packages/lang/golang/golang' make[3]: Leaving directory '/home/ubuntu/lede/feeds/packages/lang/golang/golang' time: package/feeds/packages/golang/host-compile#0.44#0.32#0.61 make[3]: Entering directory '/home/ubuntu/lede/package/system/ca-certificates' mkdir -p /home/ubuntu/lede/staging_dir/target-x86_64_musl/root-x86/stamp SHELL= flock /home/ubuntu/lede/tmp/.root-copy.flock -c 'cp -fpR /home/ubuntu/lede/build_dir/target-x86_64_musl/ca-certificates-20211016/.pkgdir/ca-bundle/. /home/ubuntu/lede/staging_dir/target-x86_64_musl/root-x86/' touch /home/ubuntu/lede/staging_dir/target-x86_64_musl/root-x86/stamp/.ca-bundle_installed echo "ca-bundle" >> /home/ubuntu/lede/staging_dir/target-x86_64_musl/pkginfo/ca-certificates.default.install mkdir -p /home/ubuntu/lede/staging_dir/target-x86_64_musl/root-x86/stamp SHELL= flock /home/ubuntu/lede/tmp/.root-copy.flock -c 'cp -fpR /home/ubuntu/lede/build_dir/target-x86_64_musl/ca-certificates-20211016/.pkgdir/ca-certificates/. /home/ubuntu/lede/staging_dir/target-x86_64_musl/root-x86/' touch /home/ubuntu/lede/staging_dir/target-x86_64_musl/root-x86/stamp/.ca-certificates_installed echo "ca-certificates" >> /home/ubuntu/lede/staging_dir/target-x86_64_musl/pkginfo/ca-certificates.default.install make[3]: Leaving directory '/home/ubuntu/lede/package/system/ca-certificates' time: package/system/ca-certificates/compile#0.16#0.10#0.23 make[3]: Entering directory '/home/ubuntu/lede/feeds/packages/net/mosdns' mkdir -p /home/ubuntu/lede/staging_dir/target-x86_64_musl/root-x86/stamp SHELL= flock /home/ubuntu/lede/tmp/.root-copy.flock -c 'cp -fpR /home/ubuntu/lede/build_dir/target-x86_64_musl/mosdns-5.3.1/.pkgdir/mosdns/. /home/ubuntu/lede/staging_dir/target-x86_64_musl/root-x86/' touch /home/ubuntu/lede/staging_dir/target-x86_64_musl/root-x86/stamp/.mosdns_installed echo "mosdns" >> /home/ubuntu/lede/staging_dir/target-x86_64_musl/pkginfo/mosdns.default.install make[3]: Leaving directory '/home/ubuntu/lede/feeds/packages/net/mosdns' time: package/feeds/packages/mosdns/compile#0.16#0.09#0.22 make[3]: Entering directory '/home/ubuntu/lede/feeds/helloworld/gn' MAKEFLAGS="" /home/ubuntu/lede/staging_dir/host/bin/ninja -j1 -C /home/ubuntu/lede/build_dir/hostpkg/gn-2024-01-24-a2e2717e/out ninja: Entering directory `/home/ubuntu/lede/build_dir/hostpkg/gn-2024-01-24-a2e2717e/out' [1/287] CXX src/base/command_line.o FAILED: src/base/command_line.o clang++ -MMD -MF src/base/command_line.o.d -I../src -I. -DNDEBUG -O3 -fdata-sections -ffunction-sections -Werror -D_FILE_OFFSET_BITS=64 -DSTDC_CONSTANT_MACROS -DSTDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -std=c++20 -Wrange-loop-analysis -Wextra-semi-stmt -c ../src/base/command_line.cc -o src/base/command_line.o /bin/sh: 1: clang++: not found ninja: build stopped: subcommand failed. make[3]: [Makefile:58: /home/ubuntu/lede/build_dir/hostpkg/gn-2024-01-24-a2e2717e/.built] Error 1 make[3]: Leaving directory '/home/ubuntu/lede/feeds/helloworld/gn' time: package/feeds/helloworld/gn/host-compile#0.09#0.05#0.13 ERROR: package/feeds/helloworld/gn [host] failed to build. make[2]: [package/Makefile:114: package/feeds/helloworld/gn/host/compile] Error 1 make[2]: Leaving directory '/home/ubuntu/lede' make[1]: [package/Makefile:110: /home/ubuntu/lede/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2 make[1]: Leaving directory '/home/ubuntu/lede' make: [/home/ubuntu/lede/include/toplevel.mk:231: world] Error 2