导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页

    虚拟机编译A133的longan源码失败,报 or32-elf-gcc找不到的错误

    编译和烧写问题专区
    5
    6
    2904
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • C
      ceoifung LV 4 最后由 ceoifung 编辑

      我自己搭了个ubuntu18.04的虚拟机,打算编译A133的Longan源码,然后报了如下的错误

      INFO: build arisc
      make: Entering directory '/home/ceoifung/workspace/a133/longan/brandy/arisc'
      arisc defconfig: generate ar100s/.config by sun50iw10p1_axp803_defconfig
      #
      # configuration written to .config
      #
        CHK     include/generated/conf.h
        CC       driver/intc/intc.o
      /bin/sh: 1: or32-elf-gcc: not found
      mv: cannot stat 'driver/intc/.intc.o.tmp': No such file or directory
      scripts/Makefile.build:103: recipe for target 'driver/intc/intc.o' failed
      make[3]: *** [driver/intc/intc.o] Error 1
      scripts/Makefile.build:146: recipe for target 'intc' failed
      make[2]: *** [intc] Error 2
      Makefile:91: recipe for target 'driver/obj-in.o' failed
      make[1]: *** [driver/obj-in.o] Error 2
      Makefile:9: recipe for target 'all' failed
      make: *** [all] Error 2
      make: Leaving directory '/home/ceoifung/workspace/a133/longan/brandy/arisc'
      INFO: mkarisc failed
      

      他报错说找不到 or32-elf-gcc,但是我在当前的源码目录搜了一下,是有这个工具链的,但是为什么会报错呢?

      ceoifung@ceoifung:~/workspace/a133/longan$ find ./ -name  or32-elf-gcc
      ./brandy/arisc/coco/coco/tools/arch_toolchain/openrisc_toolchain/bin/or32-elf-gcc
      ./brandy/arisc/ar100s/tools/toolchain/bin/or32-elf-gcc
      

      我是还要什么环境变量没有设置吗?我看了编译的Makefile这都是动态获取的呀,并没有相关的配置要求,求解答

      F 1 条回复 最后回复 回复 引用 分享 0
      • whycan
        whycan晕哥 LV 9 最后由 编辑

        @ceoifung

        sudo apt-get install build-essential subversion git-core repo libncurses5-dev zlib1g-dev \
            gawk flex quilt libssl-dev xsltproc libxml-parser-perl \
            mercurial bzr ecj cvs unzip lib32z1 lib32z1-dev lib32stdc++6 libstdc++6 \
            libncurses-dev zlib1g-dev gawk openssl libssl-dev linux-tools-common gperf -y`
        
        
        C X 2 条回复 最后回复 回复 引用 分享 1
        • C
          ceoifung LV 4 @whycan 最后由 编辑

          @whycan 可以了,谢谢😊

          1 条回复 最后回复 回复 引用 分享 0
          • X
            xueguo1991 LV 2 @whycan 最后由 编辑

            @whycan 感谢,帮我解决了公司里的问题。全志给的文档里没说要装这些依赖库和软件,兜兜转转找了好久

            1 条回复 最后回复 回复 引用 分享 0
            • F
              fuzhikun LV 5 @ceoifung 最后由 编辑

              @ceoifung 大哥你好,你是用Tina系统吗?

              T 1 条回复 最后回复 回复 引用 分享 0
              • T
                TEVET LV 7 @fuzhikun 最后由 编辑

                @fuzhikun TINA系统有A133/R818的兼容的

                1 条回复 最后回复 回复 引用 分享 0
                • 1 / 1
                • First post
                  Last post

                Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

                行为准则 | 用户协议 | 隐私权政策