CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 11804|回复: 5

A20 编译lichee,gcc not found

[复制链接]
发表于 2018-11-29 11:33:18 | 显示全部楼层 |阅读模式
我按照说明文档安装了编译环境的基本工具
$sudo apt-get update
$sudo apt-get upgrade
$sudo apt-get install build-essential u-boot-tools uboot-mkimage binutils-arm-linux-gnueabihf
$sudo apt-get install gcc g++ gcc-arm-linux-gnueabi gcc-arm-linux-gnueabihf g++-multilib
$sudo apt-get install cpp-arm-linux-gnueabihf libusb-1.0-0 libusb-1.0-0-dev wget fakeroot
$sudo apt-get install kernel-package zlib1g-dev libncurses5-dev build-essential
$sudo apt-get install texinfo texlive ccache zlib1g-dev gawk bison flex gettext uuid-dev
$sudo apt-get install ia32-libs git gnupg flex bison gperf build-essential zip
$sudo apt-get install curl libc6-dev x11proto-core-dev libx11-dev:i386 lib32ncurses5-dev
$sudo apt-get install libreadline6-dev:i386 mingw32 tofrodos python-markdown
$sudo apt-get install libxml2-utils xsltproc zlib1g-dev:i386 libgl1-mesa-dev

在编译时:
jason@jvm:~/cubieaio-a20/lichee$ ./build.sh -p sun7i_android

mkscript current setting:
        Chip: sun7i
    Platform: android
       Board:
  Output Dir: /home/jason/cubieaio-a20/lichee/out/android/common

INFO: build lichee ...
INFO: build buildroot ...
external toolchain has been installed
INFO: build buildroot OK.
INFO: build kernel ...
INFO: prepare toolchain ...
Building kernel
build standby
Generating autoconf.h for standby
  HOSTCC  scripts/basic/fixdep
/bin/sh: 1: gcc: not found
make[1]: *** [scripts/basic/fixdep] 错误 127
make: *** [scripts_basic] 错误 2
ERROR: build kernel Failed


请问应当如何解决!谢谢
回复

使用道具 举报

发表于 2018-11-30 10:32:45 | 显示全部楼层
andy@andy:/work/SDK/a20/lichee$ ./build.sh -p sun7i_android

mkscript current setting:
        Chip: sun7i
    Platform: android
       Board:
  Output Dir: /work/SDK/a20/lichee/out/android/common

INFO: build lichee ...
INFO: build buildroot ...
external toolchain has been installed
INFO: build buildroot OK.
INFO: build kernel ...
INFO: prepare toolchain ...
Building kernel
build standby
make: Entering directory `/work/SDK/a20/lichee/linux-3.4/arch/arm/mach-sun7i/pm/standby'
rm -rf *.o ../*.o dram/*.o
arm-linux-gnueabi-gcc -I. -I/work/SDK/a20/lichee/linux-3.4/include -I/work/SDK/a20/lichee/linux-3.4/arch/arm/mach-sun7i/include  -g -c -nostdlib -march=armv7-a -marm -D__STANDBY_MODULE__ -fno-unwind-tables -fno-asynchronous-unwind-tables -mlittle-endian -O0 --min_array_alignment=4 --no_unaligned_access -D DRAM_USE_VA_ADDR common.c           -o common.o


正常的编译如上所示,应该是你的编译工具链有问题。arm-linux-gnueabi-gcc

问题:/bin/sh: 1: gcc: not found
回复 支持 反对

使用道具 举报

发表于 2018-11-30 10:46:21 | 显示全部楼层



Ubuntu系统12.04? 64位?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2018-11-30 16:23:01 | 显示全部楼层
Ubuntu12.04

执行GCC 安装命令就可以了
sudo apt-get install gcc
回复 支持 反对

使用道具 举报

发表于 2019-2-21 15:39:08 | 显示全部楼层
我想问问,你参考的这个说明指导手册在哪里呢?
回复 支持 反对

使用道具 举报

发表于 2023-1-10 23:02:51 | 显示全部楼层
百家樂的玩家下注一段時間就會發現,有段時間特別好賺
回复 支持 反对

使用道具 举报

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

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-3-28 19:54 , Processed in 0.022274 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部