虚拟机编译A133的longan源码失败,报 or32-elf-gcc找不到的错误
-
我自己搭了个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这都是动态获取的呀,并没有相关的配置要求,求解答
-
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`
-
@whycan 可以了,谢谢
-
@whycan 感谢,帮我解决了公司里的问题。全志给的文档里没说要装这些依赖库和软件,兜兜转转找了好久
-
@ceoifung 大哥你好,你是用Tina系统吗?
-
@fuzhikun TINA系统有A133/R818的兼容的
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号