zoukankan      html  css  js  c++  java
  • 【转】飞凌嵌入式(Forlinx)TE/OK6410内核编译:“make: arm-none-linux-gnueabi-gcc:命令未找到”

    原文网址:http://www.xuebuyuan.com/1104711.html

    Ubuntu10.04下编译飞凌嵌入式(Forlinx)TE/OK6410开发板提供的内核2.6.36

    本以为按照用户手册的操作,不会有任何问题的,可能是因为内核是在Unbuntu10.10下测试通过的吧,在Ubuntu10.04下反而出了问题。

    已经执行export PATH=/usr/local/arm/arm-none-linux-gnueabi/bin:$PATH,但还是出现如下问题

    make: arm-none-linux-gnueabi-gcc:命令未找到
      CHK     include/linux/version.h
      CHK     include/generated/utsrelease.h
      HOSTCC  scripts/basic/fixdep
      HOSTCC  scripts/basic/docproc
    scripts/basic/docproc.c: In function ‘docsect’:
    scripts/basic/docproc.c:336: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
      HOSTCC  scripts/basic/hash
    make[1]: “include/generated/mach-types.h”是最新的。
      CC      kernel/bounds.s
    /bin/sh: arm-none-linux-gnueabi-gcc: not found
    make[1]: *** [kernel/bounds.s] 错误 127
    make: *** [prepare0] 错误 2

    解决方案:

    修改kernel文件夹下的Makefile文件
    关于交叉编译的设置,在第192行附近
    #ARCH ?= $(SUBARCH)
    ARCH ?= arm
    CROSS_COMPILE ?= $(CONFIG_CROSS_COMPILE:"%"=%)
    修改为(修改了CROSS_COMPILE项,为交叉编译器的路径)
    #ARCH ?= $(SUBARCH)
    ARCH ?= arm
    # CROSS_COMPILE ?= $(CONFIG_CROSS_COMPILE:"%"=%)
    CROSS_COMPILE ?= /usr/local/arm/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-

    但是在Ubuntu10.10下并不需要修改Makefile文件,原因留待明白后再补充吧。

  • 相关阅读:
    A1023 Have Fun with Numbers (20分)(大整数四则运算)
    A1096 Consecutive Factors (20分)(质数分解)
    A1078 Hashing (25分)(哈希表、平方探测法)
    A1015 Reversible Primes (20分)(素数判断,进制转换)
    A1081 Rational Sum (20分)
    A1088 Rational Arithmetic (20分)
    A1049 Counting Ones (30分)
    A1008 Elevator (20分)
    A1059 Prime Factors (25分)
    A1155 Heap Paths (30分)
  • 原文地址:https://www.cnblogs.com/wi100sh/p/4556238.html
Copyright © 2011-2022 走看看