【问题标题】:Getting error on compiling newlib编译 newlib 时出错
【发布时间】:2010-09-07 16:38:31
【问题描述】:

我正在尝试从头开始构建一个 arm 工具链。

我指的是这个网站。

http://www.nixit.co.uk/cortex-m3-mac-1

仔细遵循所有说明。一切顺利,直到 newlib 编译。我收到奇怪的错误。

/bin/bash: arm-none-eabi-cc: 找不到命令

所以我检查了 Makefile makefile 中有一行。有一个与 arm-none-eabi-cc 相关的指令

# -----------------------------------------------
# Programs producing files for the TARGET machine
# -----------------------------------------------

AR_FOR_TARGET=arm-none-eabi-ar
AS_FOR_TARGET=arm-none-eabi-as
CC_FOR_TARGET=$(STAGE_CC_WRAPPER) arm-none-eabi-cc

# If GCC_FOR_TARGET is not overriden on the command line, then this
# variable is passed down to the gcc Makefile, where it is used to
# build libgcc2.a.  We define it here so that it can itself be
# overridden on the command line.
GCC_FOR_TARGET=$(STAGE_CC_WRAPPER) arm-none-eabi-gcc

我检查了 /usr/arm/bin 目录。所以我确实找到了 arm-none-eabi 工具,但没有找到 arm-none-eabi-cc

arm-none-eabi-ld       arm-none-eabi-readelf
arm-none-eabi-ar         arm-none-eabi-gcc-4.4.3  arm-none-eabi-nm       arm-none-eabi-size
arm-none-eabi-as         **arm-none-eabi-gcc** 

请帮忙

【问题讨论】:

    标签: arm toolchain


    【解决方案1】:

    尝试将 Makefile 中的 arm-none-eabi-cc 替换为 arm-none-eabi-gcc,或将 arm-none-eabi-cc 符号链接到 arm-none-eabi-gcc。

    【讨论】:

    • 事情进展顺利。让我们看看如果工具链能够正确编译代码会发生什么。
    猜你喜欢
    • 2013-12-30
    • 1970-01-01
    • 2012-01-28
    • 2013-08-16
    • 2017-07-13
    • 2014-06-25
    • 2012-03-11
    相关资源
    最近更新 更多