|
发表于 2022-10-13 21:49:03
|
显示全部楼层
编译 runc 时会报错,有谁知道怎么解决吗?
- touch /home/jht/openwrt-gl-ax1800/build_dir/target-aarch64_cortex-a53_musl/runc-1.0.0-rc10/.configured_68b329da9893e34099c7d8ad5cb9c940
- rm -f /home/jht/openwrt-gl-ax1800/build_dir/target-aarch64_cortex-a53_musl/runc-1.0.0-rc10/.built
- touch /home/jht/openwrt-gl-ax1800/build_dir/target-aarch64_cortex-a53_musl/runc-1.0.0-rc10/.built_check
- CFLAGS="-Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/jht/openwrt-gl-ax1800/staging_dir/target-aarch64_cortex-a53_musl/usr/include -I/home/jht/openwrt-gl-ax1800/staging_dir/target-aarch64_cortex-a53_musl/include -I/home/jht/openwrt-gl-ax1800/staging_dir/toolchain-aarch64_cortex-a53_gcc-7.5.0_musl/usr/include -I/home/jht/openwrt-gl-ax1800/staging_dir/toolchain-aarch64_cortex-a53_gcc-7.5.0_musl/include/fortify -I/home/jht/openwrt-gl-ax1800/staging_dir/toolchain-aarch64_cortex-a53_gcc-7.5.0_musl/include " CXXFLAGS="-Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/jht/openwrt-gl-ax1800/staging_dir/target-aarch64_cortex-a53_musl/usr/include -I/home/jht/openwrt-gl-ax1800/staging_dir/target-aarch64_cortex-a53_musl/include -I/home/jht/openwrt-gl-ax1800/staging_dir/toolchain-aarch64_cortex-a53_gcc-7.5.0_musl/usr/include -I/home/jht/openwrt-gl-ax1800/staging_dir/toolchain-aarch64_cortex-a53_gcc-7.5.0_musl/include/fortify -I/home/jht/openwrt-gl-ax1800/staging_dir/toolchain-aarch64_cortex-a53_gcc-7.5.0_musl/include " LDFLAGS="-L/home/jht/openwrt-gl-ax1800/staging_dir/target-aarch64_cortex-a53_musl/usr/lib -L/home/jht/openwrt-gl-ax1800/staging_dir/target-aarch64_cortex-a53_musl/lib -L/home/jht/openwrt-gl-ax1800/staging_dir/toolchain-aarch64_cortex-a53_gcc-7.5.0_musl/usr/lib -L/home/jht/openwrt-gl-ax1800/staging_dir/toolchain-aarch64_cortex-a53_gcc-7.5.0_musl/lib -znow -zrelro " make -C /home/jht/openwrt-gl-ax1800/build_dir/target-aarch64_cortex-a53_musl/runc-1.0.0-rc10/.go_work/build/src/github.com/opencontainers/runc 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 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -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 CROSS="aarch64-openwrt-linux-musl-" ARCH="aarch64" COMMIT=dc9208a3303feef5b3839f4323d9beb36df0a9dd BUILDTAGS='' ;
- make[4]: Entering directory '/home/jht/openwrt-gl-ax1800/build_dir/target-aarch64_cortex-a53_musl/runc-1.0.0-rc10/.go_work/build/src/github.com/opencontainers/runc'
- go build -buildmode=pie -ldflags "-X main.gitCommit=dc9208a3303feef5b3839f4323d9beb36df0a9dd -X main.version=1.0.0-rc10 " -tags "" -o runc .
- go: cannot find main module, but found vendor.conf in /home/jht/openwrt-gl-ax1800/build_dir/target-aarch64_cortex-a53_musl/runc-1.0.0-rc10/.go_work/build/src/github.com/opencontainers/runc
- to create a module there, run:
- go mod init
- make[4]: *** [Makefile:34: runc] Error 1
- make[4]: Leaving directory '/home/jht/openwrt-gl-ax1800/build_dir/target-aarch64_cortex-a53_musl/runc-1.0.0-rc10/.go_work/build/src/github.com/opencontainers/runc'
- make[3]: *** [Makefile:85: /home/jht/openwrt-gl-ax1800/build_dir/target-aarch64_cortex-a53_musl/runc-1.0.0-rc10/.built] Error 2
- make[3]: Leaving directory '/home/jht/openwrt-gl-ax1800/feeds/packages/utils/runc'
- time: package/feeds/packages/runc/compile#1.41#2.15#3.90
- make[2]: *** [package/Makefile:113: package/feeds/packages/runc/compile] Error 2
- make[2]: Leaving directory '/home/jht/openwrt-gl-ax1800'
- make[1]: *** [package/Makefile:107: /home/jht/openwrt-gl-ax1800/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile] Error 2
- make[1]: Leaving directory '/home/jht/openwrt-gl-ax1800'
- make: *** [/home/jht/openwrt-gl-ax1800/include/toplevel.mk:227:world] 错误 2
复制代码 |
|