zss0hs 发表于 2022-10-13 21:49:03

编译 runc 时会报错,有谁知道怎么解决吗?{:6_208:}


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: 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: *** Error 1
make: 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: *** Error 2
make: Leaving directory '/home/jht/openwrt-gl-ax1800/feeds/packages/utils/runc'
time: package/feeds/packages/runc/compile#1.41#2.15#3.90
make: *** Error 2
make: Leaving directory '/home/jht/openwrt-gl-ax1800'
make: *** Error 2
make: Leaving directory '/home/jht/openwrt-gl-ax1800'
make: *** 错误 2

这是饭店 发表于 2022-10-14 21:00:29

zss0hs 发表于 2022-10-13 21:49
编译 runc 时会报错,有谁知道怎么解决吗?

我觉得是你tizi临时抽风,go没获取到文件

zss0hs 发表于 2022-10-17 20:07:56

这是饭店 发表于 2022-10-14 21:00
我觉得是你tizi临时抽风,go没获取到文件

找到原因了,是因为go版本比较高的原因,升级 runc 版可以编译通过。

H3MKL 发表于 2022-10-20 18:09:39

感谢分享。

nihaolai 发表于 2023-1-14 03:27:02

页: 1 2 3 4 5 6 7 [8]
查看完整版本: AX+T1800 64位源码