交叉编译GCC [英] Cross compiling gcc

查看:188
本文介绍了交叉编译GCC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试着让GCC跑在我的Kindle 3。我有一个本地端和ssh的工作,而且我发现的Sourcery G ++工具链ARM EABI linux的生产工作的二进制文件,所以它好像我应该能够仅仅配置GCC生成使用臂无 - EABI-gcc和编译它,但是我显然误解的东西......当我和配置--target =臂无 - EABI主机=臂无 - EABI并运行make时,用gcc编译,不臂无 - EABI-GCC。除非孤单使用gcc的一些pre-编译阶段?我还没有得到所有的方式,通过构建的是,因为Ive有其他错误进出口工作过,但我不想,如果IM配置一些错误的开始浪费这么长的时间。我发现这个问题, GCC编译与code的Sourcery 哪里运似乎想同样的事情,但它从来没有回答......而且,我已经碰到问题编译卢阿与编译器的Sourcery,它似乎是使用不同版本的glibc,我认为将是一个问题的时候。有没有更简单的方式做到这一点?

Im trying to get gcc running on my Kindle 3. I have a native terminal and ssh working, and I found that the Sourcery G++ toolchain for arm eabi linux produces working binaries, so it seems like I should be able to just configure gcc to build using arm-none-eabi-gcc and compile it, but Im obviously misunderstanding something... When I configure with --target=arm-none-eabi --host=arm-none-eabi and run make, it compiles using gcc, not arm-none-eabi-gcc. Unless theres some pre-compilation phase that uses gcc? I havent gotten all the way through the build yet, since Ive had other errors im working through, but I dont want to waste all this time if im configuring something wrong in the beginning. I found this question, Compile GCC with Code Sourcery where the op seems to want the same thing, but it was never answered... Also, Ive run into problems when compiling lua with the sourcery compiler, it seems to be using a different version of GLIBC, which I assume will be a problem. Is there any easier way to do this?

推荐答案

/ pathToStuffifNotPathed / ARM-NONE-Linux的gnueabi-G ++的foo.c

/pathToStuffifNotPathed/arm-none-linux-gnueabi-g++ foo.c

如果您不能调用编译器通过它的工具链调用?我相信如此。

Should you not invoke the compiler via it's tool-chain invocation? I believe so.

这篇关于交叉编译GCC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆