编译newlib时出错

发布于 2024-09-18 19:42:24 字数 1210 浏览 14 评论 0原文

我正在尝试从头开始构建手臂工具链。

我指的是这个网站。

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** 

请帮忙

I am trying to build a arm toolchain from scratch.

I am referring to this site.

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

Followed all the instructions carefully. Everything went well till newlib compilation. I am getting strange error.

/bin/bash: arm-none-eabi-cc: command not found

So I checked the Makefile
there is a line in makefile. There is a directive related to 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

I checked the /usr/arm/bin directory. So i do find arm-none-eabi tools, but not 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** 

Please help

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

染火枫林 2024-09-25 19:42:24

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

Try replacing arm-none-eabi-cc in the Makefile with arm-none-eabi-gcc, or symlinking arm-none-eabi-cc to arm-none-eabi-gcc.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文