Firefly开源社区

打印 上一主题 下一主题

[Linux] docker 编译Linux版本在buildroot阶段报错

18

积分

0

威望

0

贡献

技术小白

积分
18

docker 编译Linux版本在buildroot阶段报错

发表于 2023-12-12 16:01:06      浏览:2856 | 回复:4        打印     [复制链接] 楼主
问题描述及复现步骤:
您好:
按照文档:https://wiki.t-firefly.com/zh_CN ... pile_linux5.10.html
使用docker编译的时候遇到如下错误:
Failed to build rockchip_rk3566:
# 2023-12-12 07:49:23
2023-12-12T07:49:23 make: Entering directory '/home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/buildroot'
2023-12-12T07:49:38 /usr/bin/make -j1 O=/home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/buildroot/output/rockchip_rk3566 HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" syncconfig
2023-12-12T07:49:38 make[1]: Entering directory '/home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/buildroot'
2023-12-12T07:49:39 GEN     /home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/buildroot/output/rockchip_rk3566/Makefile
2023-12-12T07:49:41 make[1]: Leaving directory '/home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/buildroot'
2023-12-12T07:49:41 >>> host-m4 1.4.19 Extracting
2023-12-12T07:49:41 xzcat /home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/buildroot/dl/m4/m4-1.4.19.tar.xz | tar --strip-components=1 -C /home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/buildroot/output/rockchip_rk3566/build/host-m4-1.4.19   -xf -
2023-12-12T07:49:49 chmod: changing permissions of '/home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/buildroot/output/rockchip_rk3566/build/host-m4-1.4.19/bootstrap': Permission denied
2023-12-12T07:49:51 package/pkg-generic.mk:229: recipe for target '/home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/buildroot/output/rockchip_rk3566/build/host-m4-1.4.19/.stamp_extracted' failed
2023-12-12T07:49:51 make: *** [/home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/buildroot/output/rockchip_rk3566/build/host-m4-1.4.19/.stamp_extracted] Error 1
2023-12-12T07:49:51 make: Leaving directory '/home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/buildroot'

Please check details in /home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/output/sessions/2023-12-12_07-47-23/br-rockchip_rk3566_2023-12-12_07-49-23.log

Command exited with non-zero status 1
you take 0:36.20 to build buildroot
ERROR: Running /home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/device/rockchip/common/scripts/mk-rootfs.sh - build_buildroot failed!
ERROR: exit code 1 from line 16:
    /usr/bin/time -f "you take %E to build buildroot" "$SCRIPTS_DIR/mk-buildroot.sh" $RK_BUILDROOT_CFG "$ROOTFS_DIR"
ERROR: call stack:
    mk-rootfs.sh: build_buildroot(16)
    mk-rootfs.sh: build_hook(265)
    mk-rootfs.sh: main(292)
ERROR: Running /home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/device/rockchip/common/build-hooks/99-all.sh - build_all failed!
ERROR: exit code 1 from line 30:
    "$SCRIPTS_DIR/mk-rootfs.sh"
ERROR: call stack:
    99-all.sh: build_all(30)
    99-all.sh: build_allsave(112)
    99-all.sh: build_hook(137)
    build-helper: try_func(63)
    build-helper: try_hook(95)
    build-helper: source(173)
    99-all.sh: main(147)
ERROR: Running /home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/device/rockchip/common/build-hooks/99-all.sh - try_func build_hook allsave failed!
ERROR: exit code 1 from line 67:
    build_hook
ERROR: call stack:
    build-helper: try_func(67)
    build-helper: try_hook(95)
    build-helper: source(173)
    99-all.sh: main(147)
ERROR: Running ./build.sh - run_hooks build allsave failed!
ERROR: exit code 1 from line 195:
    /home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/device/rockchip/common/build-hooks/99-all.sh build allsave
ERROR: call stack:
    build.sh: run_hooks(195)
    build.sh: run_build_hooks(214)
    build.sh: main(495)
    build.sh: main(510)
ERROR: Running ./build.sh - run_build_hooks build allsave failed!
ERROR: exit code 1 from line 217:
    build
ERROR: call stack:
    build.sh: run_build_hooks(217)
    build.sh: main(495)
    build.sh: main(510)
firefly@firefly:/home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10$ lsattr chmod: changing permissions of '/home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/buildroot/output/rockchip_rk3566/build/host-m4-1.4.19/bootstrap': Permission denied
lsattr: No such file or directory while trying to stat chmod:
lsattr: No such file or directory while trying to stat changing
lsattr: No such file or directory while trying to stat permissions
lsattr: No such file or directory while trying to stat of
lsattr: No such file or directory while trying to stat /home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/buildroot/output/rockchip_rk3566/build/host-m4-1.4.19/bootstrap:
lsattr: No such file or directory while trying to stat Permission
lsattr: No such file or directory while trying to stat denied

请问应该如何解决?看起来是权限的问题。



log.txt.zip

3.56 KB, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1

回复

使用道具 举报

18

积分

0

威望

0

贡献

技术小白

积分
18
发表于 2023-12-12 16:34:02      沙发
我使用一下命令创建的docker容器:
docker run --privileged -it --name firefly_rk3566 -p 50005:22 --mount type=bind,source=/Users/zhangchenyu/Desktop,target=/home/zhangchenyu/Desktop -h firefly firefly_rk3566sdk /bin/bash
回复

使用道具 举报

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

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表