瑞芯微Rockchip开发者社区
直播中

他在笑

9年用户 723经验值
擅长:可编程逻辑 电源/新能源 制造/封装
私信 关注
[问答]

在实体机其上部署的docker报错怎么解决?

  • 实体机其上部署的docker。

    日志如下:

    root@993c600bdb31:~/workspace/rk3399/OK3399-android7-source# ./build-rk3399-all.sh -u
    will build update.img
    Start build kernel
      CLEAN   .
      CLEAN   .tmp_versions

    #### make completed successfully (4 seconds) ####

      HOSTCC  scripts/basic/fixdep
      HOSTCC  scripts/basic/bin2c
      HOSTCC  scripts/kconfig/conf.o
      HOSTCC  scripts/kconfig/zconf.tab.o
      HOSTLD  scripts/kconfig/conf
    #
    # configuration written to .config
    #

    #### make completed successfully (1 seconds) ####

    scripts/kconfig/conf  --silentoldconfig Kconfig
      CHK     include/config/kernel.release
      CHK     include/generated/uapi/linux/version.h
      HOSTCC  scripts/kallsyms
      HOSTCC  scripts/pnmtologo
      HOSTCC  scripts/sortextable
      HOSTCC  scripts/genksyms/genksyms.o
      CHK     include/generated/utsrelease.h
      HOSTCC  scripts/genksyms/parse.tab.o
      HOSTCC  scripts/genksyms/lex.lex.o
      HOSTCC  scripts/dtc/dtc.o
      HOSTCC  scripts/dtc/flattree.o
      HOSTCC  scripts/dtc/fstree.o
      CC      scripts/mod/empty.o
      HOSTCC  scripts/dtc/data.o
      HOSTCC  scripts/selinux/genheaders/genheaders
      HOSTCC  scripts/mod/mk_elfconfig
      HOSTCC  scripts/selinux/mdp/mdp
      HOSTCC  scripts/dtc/livetree.o
      CC      kernel/bounds.s
      CC      scripts/mod/devicetable-offsets.s
      CHK     include/generated/timeconst.h
      HOSTCC  scripts/dtc/treesource.o
      HOSTCC  scripts/dtc/srcpos.o
      HOSTCC  scripts/dtc/checks.o
      MKELF   scripts/mod/elfconfig.h
      CHK     scripts/mod/devicetable-offsets.h
      HOSTCC  scripts/dtc/util.o
      HOSTCC  scripts/mod/sumversion.o
      HOSTCC  scripts/dtc/dtc-lexer.lex.o
      CHK     include/generated/bounds.h
      CC      arch/arm64/kernel/asm-offsets.s
      HOSTCC  scripts/mod/modpost.o
      HOSTCC  scripts/dtc/dtc-parser.tab.o
      HOSTCC  scripts/mod/file2alias.o
      HOSTLD  scripts/genksyms/genksyms
      HOSTLD  scripts/dtc/dtc
      CHK     include/generated/asm-offsets.h
      CALL    scripts/checksyscalls.sh
      HOSTLD  scripts/mod/modpost
      DTC     arch/arm64/boot/dts/rockchip/ok3399.dtb
    arch/arm64/boot/dts/rockchip/ok3399.dts:45:33: fatal error: dt-bindings/pwm/pwm.h: No such file or directory
    #include "dt-bindings/pwm/pwm.h"
                                     ^
    compilation terminated.
    scripts/Makefile.lib:314: recipe for target 'arch/arm64/boot/dts/rockchip/ok3399.dtb' failed
    make[1]: *** [arch/arm64/boot/dts/rockchip/ok3399.dtb] Error 1
    arch/arm64/Makefile:122: recipe for target 'rockchip/ok3399.dtb' failed
    make: *** [rockchip/ok3399.dtb] Error 2
    make: *** Waiting for unfinished jobs....

    #### make failed to build some targets (3 seconds) ####

    Build kernel failed!

回帖(2)

李欣

2021-12-30 11:01:01

  • 报错信息显示找不到pwm.h这个头文件,可以看看对应的路劲下是否有此文件,并查看其权限是否正常以及是否能正常打开编辑。
    OK3399-android7-source/kernel/include/dt-bindings/pwm$ls -l
    -rw-r--r-- 1 forlinx forlinx 355 Dec 30  2019 pwm.h

举报

刘艳芳

2021-12-30 11:01:05
应该是头文件搜索路径有问题,如果我使用相对路径指定特定的头文件就不报这个错。但是其他的头文件引用报错
举报

更多回帖

发帖
×
20
完善资料,
赚取积分