arm-linux-gcc所在目录怎么找,获取arm-buildroot-linux-uclibcgnueabihf-gcc:找不到命令(Getting arm-buildroot-linux-ucl...

获取arm-buildroot-linux-uclibcgnueabihf-gcc:找不到命令(Getting arm-buildroot-linux-uclibcgnueabihf-gcc: Command not found)

我正在尝试为我的Raspberry Pi 3构建Linux。

当我做的时候,我得到以下错误。

make[2]: /home/rohit/workplace/rp/buildroot/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabihf-gcc: Command not found

一点点背景会有所帮助。 我正在关注此链接 。 总结一下,这就是我的经历。

make raspberrypi3_defconfig

make linux-menuconfig

make

从错误中我得到的是交叉gcc在路径上不可用。 但我不确定我错过了什么。

制作的完整日志粘贴在此处 。 output/host/usr/bin文件夹也不包含arm-buildroot-linux-uclibcgnueabihf-gcc ,尽管它包含arm-buildroot-linux-uclibcgnueabi-gcc 。 我在这里粘贴了文件夹的内容。

请帮忙。

I am trying to build Linux for my Raspberry Pi 3.

When I do make, I get the below error.

make[2]: /home/rohit/workplace/rp/buildroot/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabihf-gcc: Command not found

A little background will help. I am following this link . To summarize this is what I ran.

make raspberrypi3_defconfig

make linux-menuconfig

make

From the error I get that the cross gcc is not available at the path as it should be. But I am not sure what I am missing.

The complete log of the make is pasted here. The output/host/usr/bin folder also doesn't contain arm-buildroot-linux-uclibcgnueabihf-gcc, though it does contain arm-buildroot-linux-uclibcgnueabi-gcc. I have pasted the contents of the folder here.

Please help.

原文:https://stackoverflow.com/questions/39150306

更新时间:2019-09-23 01:14

最满意答案

我遇到了这个问题,经过一次make clean之后问题就解决了。 我认为错误是因为不同的构建中使用了不同的工具链。 手册说这是你必须做一个make clean的案例之一

i was having this problem and after a make clean the problem was solved. I think the error was because different toolchains used in different builds. The manual says that is one of the cases that you have to do a make clean

2016-09-17

相关问答

你没设置环境变量。 首先:你要着到arm-linux-gcc 所在的目录。比如 /opt/arm 然后:敲入命令 export PATH=$PATH:/opt/arm 这样就可以了 如果你不知道arm-linux-gcc在哪,你可以这样。 1、cd / 2、find -name "arm-linux-gcc" 然后就能找到arm-linux-gcc了,你就知道在哪个目录里

没有这个包!应该是让你安装开发工具,开发库吧!你yum grouplist 查看一下安装了吗 安装组的时候应该是 yum -y groupinstall " 你的库"不是 install

lint可用于/sdk/tools/ 。 所以你需要在lint命令之前去目录或添加相对路径,比如 SDK_PATH/sdk/tools/lint project_path

lint is available into /sdk/tools/. So you need to go to directory or add relative path before lint command, like SDK_PATH/sdk/tools/lint project_path

这将修复文件中的行结尾: dos2unix my_env.sh

在文件中不需要一个shebang,因为它无论如何都是在当前shell中运行的。 然而,作为评论,它可能为人类读者提供信息。 This will fix the line endings in the file: dos2unix my_env.sh

There's no need for a shebang in a file that's only going to be sourced since it is run in t

...

该文件具有与两个相邻文件不同的权限和修改时间,这让我想知道是否有些东西被破坏了。 (试试“cmp arm-eabi-gcc arm-eabi-gcc-4.4.0”,应该是一样的。) “ldd arm-eabi-gcc”报告任何遗失的图书馆吗? 我所想的是,缺少的文件不是“arm-eabi-gcc”本身,而是它依赖的东西。 下一步将是“strace ./arm-eabi-gcc”以查看它正在调用的系统。 Thank you fadden for the response, however it tu

...

听起来像gcc-4.2安装? 当安装程序查找gcc-4.0时,可能会链接此链接。 要检查gcc的位置,请执行 ls -l $(which gcc)

在我的系统上,这表明gcc是llvm-gcc-4.2的符号链接: lrwxr-xr-x 1 root wheel 12 Aug 13 2012 /usr/bin/gcc@ -> llvm-gcc-4.2

如果没有显示任何内容,请尝试: ls -l $(which gcc-4.2)

无论哪个显示输出,都将该语句准确地放入此命令中......

...

我遇到了这个问题,经过一次make clean之后问题就解决了。 我认为错误是因为不同的构建中使用了不同的工具链。 手册说这是你必须做一个make clean的案例之一 i was having this problem and after a make clean the problem was solved. I think the error was because different toolchains used in different builds. The manual says

...

我想通了,非常愚蠢的错误。 我试图在64位系统上运行32位二进制文件。 i figured it out,very silly mistake. i was trying to run 32-bit binary on a 64-bit system.

你不应该设置--cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- ,你应该首先使用export PATH=$TOOLCHAIN/bin:$PATH将该目录添加到你的路径中,并且只指定--cross-prefix=arm-linux-androideabi- (就像你链接的帖子一样)。 You shouldn't set --cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi-, you should

...

您正在使用较旧版本的Docker镜像。 gcc 两个月前加入了它。 所以,跑 docker pull marcelstoer/nodemcu-build

从Docker Hub获取最新版本。 如果您之前下载了图像,Docker不会自动确保您拥有最新版本。 You're using an older version of the Docker image. gcc was added to it two months ago. So, run docker pull marcelstoer/no

...

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
当出现"arm-buildroot-linux-gnueabihf-gcc: command not found"的错误时,意味着系统无法到这个命令。这通常是因为缺少交叉编译工具链或者工具链配置不正确所致。 在这个具体问题中,引用和引用提供了两种解决方法。第一种方法是使用配套资料提供的环境,利用repo方式在线下载工具链。具体步骤可以参考《嵌入式Linux应用开发完全手册V4.0_韦东山全系列视频文档-IMX6ULL开发板》中的说明。下载完成后,工具链会出现在ToolChain文件夹下。这种方法需要保证网络速度良好。 第二种方法是让别人拷贝一份ToolChain文件夹,并按照文档中的配置进行设置。这种方法避免了下载大量无用的文件,节省了空间。需要注意的是,ToolChain文件较小,可以直接从给定的链接下载后解压缩使用。 总结起来,当系统不到"arm-buildroot-linux-gnueabihf-gcc"命令时,可以尝试使用配套资料提供的环境进行在线下载,或者直接拷贝一个ToolChain文件夹进行配置。这样就能解决不到命令的问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* *3* [IMX6ULL_PRO配置交叉编译工具链出现arm-buildroot-linux-gnueabihf-gcc command not find](https://blog.csdn.net/qq_38145331/article/details/124217913)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值