嵌入式爱好者

查看: 160|回复: 1

[Linux] build.sh all 出错

[复制链接]

1

主题

1

帖子

5

积分

扫一扫,手机访问本帖
发表于 2024-9-11 15:13:57 | 显示全部楼层 |阅读模式
本帖最后由 18630183513 于 2024-9-11 15:15 编辑

板子是ok3562
环境是下载的虚拟机环境OK3562-VM15.5.6-ubuntu20.04
执行./build.sh all
出:
==========================================
          Start building rootfs(buildroot)
==========================================
==========================================
          Start building buildroot(2021.11)
==========================================


===========================================================================================
~/work/OK3562-linux-source/buildroot/output/OK3562_Linux/host ~/work/OK3562-linux-source/output/sessions/2024-09-10_23-46-37
This buildroot SDK has already been relocated!
~/work/OK3562-linux-source/output/sessions/2024-09-10_23-46-37
===========================================================================================


/home/forlinx/work/OK3562-linux-source/buildroot/output/OK3562_Linux/host
/home/forlinx/work/OK3562-linux-source/output/sessions/2024-09-10_23-46-37
getopt: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by getopt)
getopt: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by getopt)
fakeroot, create a fake root environment.
   usage: fakeroot [-l|--lib fakerootlib] [-f|--faked fakedbin]
                   [-i file] [-s file] [-u|--unknown-is-real]
                   [-b|--fd-base fd] [-h|--help] [-v|--version]
                   [--] [command]
ERROR: Running /home/forlinx/work/OK3562-linux-source/device/forlinx/common/build-hooks/30-rootfs.sh - build_buildroot failed!
ERROR: exit code 1 from line 16:
    "$RK_SCRIPTS_DIR/mk-buildroot.sh" $RK_BUILDROOT_CFG "$IMAGE_DIR"
ERROR: call stack:
    30-rootfs.sh: build_buildroot(16)
    30-rootfs.sh: build_hook(265)
    build-helper: try_func(63)
    build-helper: try_hook(95)
    build-helper: source(173)
    30-rootfs.sh: main(291)
ERROR: Running /home/forlinx/work/OK3562-linux-source/device/forlinx/common/build-hooks/30-rootfs.sh - try_func build_hook rootfs 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)
    30-rootfs.sh: main(291)
ERROR: Running ./build.sh - run_hooks build rootfs failed!
ERROR: exit code 1 from line 247:
    /home/forlinx/work/OK3562-linux-source/device/forlinx/common/build-hooks/30-rootfs.sh build rootfs
ERROR: call stack:
    build.sh: run_hooks(247)
    build.sh: run_build_hooks(266)
    build.sh: main(627)
    build.sh: main(642)
ERROR: Running ./build.sh - run_build_hooks build rootfs failed!
ERROR: exit code 1 from line 269:
    build
ERROR: call stack:
    build.sh: run_build_hooks(269)
    build.sh: main(627)
    build.sh: main(642)

这个错误,是什么原因?
回复

使用道具 举报

0

主题

7

帖子

26

积分

发表于 2024-9-12 17:38:41 | 显示全部楼层
首先开发环境推荐使用我司制作好的,由于3562的源码太大,在ubuntu中解压之前最好使用md5校验之后再解压编译,确认无误后按照用户编译手册编译就可以,出厂的文件编译都是经过验证的,理论上不会出现问题,如果您编译还有问题可以致电我司技服或者整理错误发到我司软件支持的邮箱。:loveliness:
点评回复 支持 反对

使用道具 举报

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

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-9-21 11:17

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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