docker 编译Linux版本在buildroot阶段报错
您好:按照文档:https://wiki.t-firefly.com/zh_CN/ROC-RK3566-PC/linux_compile_linux5.10.html
使用docker编译的时候遇到如下错误:
Failed to build rockchip_rk3566:# 2023-12-12 07:49:232023-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++" syncconfig2023-12-12T07:49:38 make: 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/Makefile2023-12-12T07:49:41 make: Leaving directory '/home/zhangchenyu/Desktop/firefly/RK3566/SDK/rk356x_sdk-linux5.10/buildroot'2023-12-12T07:49:41 >>> host-m4 1.4.19 Extracting2023-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 denied2023-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' failed2023-12-12T07:49:51 make: *** Error 12023-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 1you take 0:36.20 to build buildrootERROR: 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_hookERROR: 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 allsaveERROR: 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: buildERROR: 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 deniedlsattr: No such file or directory while trying to stat chmod:lsattr: No such file or directory while trying to stat changinglsattr: No such file or directory while trying to stat permissionslsattr: No such file or directory while trying to stat oflsattr: 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 Permissionlsattr: No such file or directory while trying to stat denied
请问应该如何解决?看起来是权限的问题。
我使用一下命令创建的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 楼主,如何解决的这个问题? zhu.bo 发表于 2024-4-4 17:12
楼主,如何解决的这个问题?
这个问题解决了吗,求助!!!
莫乘 发表于 2024-11-20 10:25
这个问题解决了吗,求助!!!
直接用ubuntu18编译也很顺畅啊
页:
[1]