使用代码源编译 GCC [英] Compile GCC with Code Sourcery

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

问题描述

是否可以使用 Code Sourcery G++ 为 ARM(主机 == 目标 == ARM)编译原生 GCC?如果不可能,我可以使用 crosstool-NG 来构建交叉编译,然后使用这个来编译原生 ARM GCC 吗?

Is it possible to compile native GCC for ARM (host == target == ARM) using Code Sourcery G++? If it is not possible, could I use crosstool-NG to build the cross-compile and then using this one for compiling the native ARM GCC?

谢谢,

至于原因:我正在为 beagleboard 创建自己的发行版...

as to why: I'm creating my own distro for beagleboard...

推荐答案

CodeSourcery 仅提供适用于 Linux/x86 和 Windows 的预构建工具链(请参阅主机系统要求"这里).如果您想要一个本地 ARM 托管的工具链,您应该能够使用交叉编译器构建一个.如果您想要一个预构建的,您可以尝试一些现有的 ARM 发行版,例如 Debian-arm,或 Aboriginal Linux(它被设计为在 QEMU 中运行,但您可能可以从中提取编译器并运行本机).

CodeSourcery provides prebuilt toolchains only for Linux/x86 and Windows (see "Host System Requirements" here). If you want a native ARM-hosted toolchain, you should be able to build one using a cross-compiler. If you want a prebuilt one, you can try some of the existing ARM distros such as Debian-arm, or Aboriginal Linux (it's made to be run in QEMU but you can probably extract the compiler from it and run natively).

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

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