Chinaunix首页 | 论坛 | 博客
  • 博客访问: 72526
  • 博文数量: 17
  • 博客积分: 658
  • 博客等级: 上士
  • 技术积分: 235
  • 用 户 组: 普通用户
  • 注册时间: 2009-08-31 19:44
文章分类

全部博文(17)

文章存档

2011年(1)

2010年(13)

2009年(3)

我的朋友

分类:

2010-01-30 19:09:37

为什么老是有 arm-linux-gcc 命令未找到

我使用arm-none-linux-gnueabi-gcc 的时候 make还是会这样警告。。。 无解中。。。。。。
#####################################################
Makefile:
# Default value for CROSS_COMPILE is not to prefix executables
# Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile
export KBUILD_BUILDHOST := $(SUBARCH)
ARCH        ?= arm
CROSS_COMPILE    ?=/home/arm/new/codesourcery/4.4.1/bin/arm-none-linux-gnueabi-

# Architecture as present in compile.h
UTS_MACHINE     := $(ARCH)
SRCARCH     := $(ARCH)

# Additional ARCH settings for x86
###############################
打印消息如下:
arm@arm-desktop:~/new/kernel/linux-2.6.32.2$ make 
make: arm-linux-gcc:命令未找到
  CHK     include/linux/version.h
make[1]: “include/asm-arm/mach-types.h”是最新的。
  CHK     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-arm
  CC      kernel/bounds.s
/bin/sh: arm-linux-gcc:找不到命令
make[1]: *** [kernel/bounds.s] 错误 127
make: *** [prepare0] 错误 2


打印调试:

arm@arm-desktop:~/new/kernel/linux-2.6.32.2$ make  -d zImage
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

 这个程序创建为 i486-pc-linux-gnu
正在读入 makefiles...
正在读入 makefile “Makefile”...
正在读入 makefile “/home/arm/new/kernel/linux-2.6.32.2/scripts/Kbuild.include” (搜索路径) (no ~ expansion)...
正在读入 makefile “include/config/auto.conf” (搜索路径) (不必担心) (no ~ expansion)...
正在读入 makefile “include/config/auto.conf.cmd” (搜索路径) (不必担心) (no ~ expansion)...
正在读入 makefile “/home/arm/new/kernel/linux-2.6.32.2/arch/arm/Makefile” (搜索路径) (no ~ expansion)...
make: arm-linux-gcc:命令未找到
正在更新 makefile....
 正在考虑目标文件“/home/arm/new/kernel/linux-2.6.32.2/arch/arm/Makefile”。
  正在为“/home/arm/new/kernel/linux-2.6.32.2/arch/arm/Makefile”寻找隐含规则。
 ........


   正在考虑目标文件“mm/Kconfig.debug”。
    目标文件“mm/Kconfig.debug”的前提已完成。
   不需要重新创建目标“mm/Kconfig.debug”.
 
   正在考虑目标文件“arch/arm/mach-iop33x/Kconfig”。
    目标文件“arch/arm/mach-iop33x
................
    目标文件“arch/arm/Kconfig”的前提已完成。
   不需要重新创建目标“arch/arm/Kconfig”.
  目标文件“include/config/auto.conf”的前提已完成。
  前提“.config”比目标“include/config/auto.conf”旧。
 
  ...........
  前提“init/Kconfig”比目标“include/config/auto.conf”旧。
  前提“arch/arm/Kconfig”比目标“include/config/auto.conf”旧。
 不需要重新创建目标“include/config/auto.conf”.
 正在考虑目标文件“/home/arm/new/kernel/linux-2.6.32.2/scripts/Kbuild.include”。
  目标文件“/home/arm/new/kernel/linux-2.6.32.2/scripts/Kbuild.include”的前提已完成。
 不需要重新创建目标“/home/arm/new/kernel/linux-2.6.32.2/scripts/Kbuild.include”.
 正在考虑目标文件“Makefile”。
  目标文件“Makefile”的前提已完成。
 不需要重新创建目标“Makefile”.
正在更新目标……
正在考虑目标文件“zImage”。
 文件“zImage”不存在。
  正在考虑目标文件“vmlinux”。
   文件“vmlinux”不存在。
    正在考虑目标文件“arch/arm/kernel/vmlinux.lds”。
     文件“arch/arm/kernel/vmlinux.lds”不存在。
      正在考虑目标文件“init”。
       文件“init”不存在。
        正在考虑目标文件“prepare”。
         文件“prepare”不存在。
          正在考虑目标文件“prepare0”。
           文件“prepare0”不存在。
            正在考虑目标文件“archprepare”。
             文件“archprepare”不存在。
              正在考虑目标文件“maketools”。
               文件“maketools”不存在。
                正在考虑目标文件“include/linux/version.h”。
                  正在考虑目标文件“/home/arm/new/kernel/linux-2.6.32.2/Makefile”。
                   目标文件“/home/arm/new/kernel/linux-2.6.32.2/Makefile”的前提已完成。
                  不需要重新创建目标“/home/arm/new/kernel/linux-2.6.32.2/Makefile”.
                  正在考虑目标文件“FORCE”。
                   文件“FORCE”不存在。
        
活跃子进程 0x08098330 (kernel/bounds.s) PID 9957
正在中止获胜的子进程 0x08098330 PID 9957
  CC      kernel/bounds.s
活跃子进程 0x08098330 (kernel/bounds.s) PID 9958
/bin/sh: arm-linux-gcc:找不到命令
正在中止失败的子进程 0x08098330 PID 9958
make[1]: *** [kernel/bounds.s] 错误 127
Removing child 0x08098330 PID 9958 from chain.
正在中止失败的子进程 0x080d1350 PID 9956
make: *** [prepare0] 错误 2
Removing child 0x080d1350 PID 9956 from chain.

 ***************
用超级用户:  成功!!!!! 无语
arm@arm-desktop:~/new/kernel/linux-2.6.32.2$ sudo make -d
[sudo] password for arm:
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

 这个程序创建为 i486-pc-linux-gnu
正在读入 makefiles...
正在读入 makefile “Makefile”...
正在读入 makefile “/home/arm/new/kernel/linux-2.6.32.2/scripts/Kbuild.include” (搜索路径) (no ~ expansion)...
正在读入 makefile “include/config/auto.conf” (搜索路径) (不必担心) (no ~ expansion)...
正在读入 makefile “include/config/auto.conf.cmd” (搜索路径) (不必担心) (no ~ expansion)...
正在读入 makefile “/home/arm/new/kernel/linux-2.6.32.2/arch/arm/Makefile” (搜索路径) (no ~ expansion)...
正在更新 makefile....
 正在考虑目标文件“/home/arm/new/kernel/linux-2.6.32.2/arch/arm/Makefile”。
  正在为“/home/arm/new/kernel/linux-2.6.32.2/arch/arm/Makefile”寻找隐含规则。
  以主干“Makefile”尝试匹配模式规则。
 ........

    必须重新创建目标“kernel/bounds.s”。
将子进程 0x08098e10 (kernel/bounds.s) PID 10412 放入链。
活跃子进程 0x08098e10 (kernel/bounds.s) PID 10412
正在中止获胜的子进程 0x08098e10 PID 10412
  CC      kernel/bounds.s
活跃子进程 0x08098e10 (kernel/bounds.s) PID 10413
正在中止获胜的子进程 0x08098e10 PID 10413
Removing child 0x08098e10 PID 10413 from chain.
    重新创建目标文件“kernel/bounds.s”成功。
    正在考虑目标文件“Kbuild”。
     正在为“Kbuild”寻找隐含规则。
   

谁能拯救我。。。。

阅读(1159) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~