gpt4 book ai didi

arm - 编译newlib时出错

转载 作者:行者123 更新时间:2023-12-02 03:33:37 26 4
gpt4 key购买 nike

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

我指的是这个网站。

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

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

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

所以我检查了Makefilemakefile中有一行。有一个与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**

请帮忙

最佳答案

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

关于arm - 编译newlib时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3660672/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com