forum.gl-inet.cn

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
楼主: 这是饭店

[固件资源] AX+T1800 64位源码

[复制链接]

2

主题

11

帖子

182

积分

注册会员

Rank: 2

积分
182
发表于 2022-10-13 21:49:03 | 显示全部楼层
编译 runc 时会报错,有谁知道怎么解决吗?


  1. touch /home/jht/openwrt-gl-ax1800/build_dir/target-aarch64_cortex-a53_musl/runc-1.0.0-rc10/.configured_68b329da9893e34099c7d8ad5cb9c940
  2. rm -f /home/jht/openwrt-gl-ax1800/build_dir/target-aarch64_cortex-a53_musl/runc-1.0.0-rc10/.built
  3. touch /home/jht/openwrt-gl-ax1800/build_dir/target-aarch64_cortex-a53_musl/runc-1.0.0-rc10/.built_check
  4. 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='' ;
  5. 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'
  6. go build -buildmode=pie  -ldflags "-X main.gitCommit=dc9208a3303feef5b3839f4323d9beb36df0a9dd -X main.version=1.0.0-rc10 " -tags "" -o runc .
  7. 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
  8.         to create a module there, run:
  9.         go mod init
  10. make[4]: *** [Makefile:34: runc] Error 1
  11. 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'
  12. make[3]: *** [Makefile:85: /home/jht/openwrt-gl-ax1800/build_dir/target-aarch64_cortex-a53_musl/runc-1.0.0-rc10/.built] Error 2
  13. make[3]: Leaving directory '/home/jht/openwrt-gl-ax1800/feeds/packages/utils/runc'
  14. time: package/feeds/packages/runc/compile#1.41#2.15#3.90
  15. make[2]: *** [package/Makefile:113: package/feeds/packages/runc/compile] Error 2
  16. make[2]: Leaving directory '/home/jht/openwrt-gl-ax1800'
  17. make[1]: *** [package/Makefile:107: /home/jht/openwrt-gl-ax1800/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile] Error 2
  18. make[1]: Leaving directory '/home/jht/openwrt-gl-ax1800'
  19. make: *** [/home/jht/openwrt-gl-ax1800/include/toplevel.mk:227:world] 错误 2
复制代码
回复

使用道具 举报

12

主题

247

帖子

1426

积分

金牌会员

Rank: 6Rank: 6

积分
1426
 楼主| 发表于 2022-10-14 21:00:29 | 显示全部楼层
zss0hs 发表于 2022-10-13 21:49
编译 runc 时会报错,有谁知道怎么解决吗?

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

使用道具 举报

2

主题

11

帖子

182

积分

注册会员

Rank: 2

积分
182
发表于 2022-10-17 20:07:56 | 显示全部楼层
这是饭店 发表于 2022-10-14 21:00
我觉得是你tizi临时抽风,go没获取到文件

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

使用道具 举报

0

主题

19

帖子

80

积分

注册会员

Rank: 2

积分
80
发表于 2022-10-20 18:09:39 | 显示全部楼层
感谢分享。
回复

使用道具 举报

0

主题

833

帖子

1684

积分

禁止发言

积分
1684
发表于 2023-1-14 03:27:02 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|gl-inet.cn ( 粤ICP备18130956号 )

GMT+8, 2026-1-28 11:48 , Processed in 0.021387 second(s), 22 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表