Hi, I'm trying to build the native compiler to a arm a9 using this tutorial,https://wiki.linaro.org/WorkingGroups/ToolChain/Using/GCCNative.However, I need to compile in a x86_64 platform ubuntu, like this --target=arm-unknown-eabi --build=i686-pc-linux-gnu --host=arm-unknown-eabi, but without success.There is any possible solution? Thank you.Felipe Rocha da Rosa.
On 11 March 2014 23:47, Felipe Rocha da Rosa frdarosa@inf.ufrgs.br wrote:
I'm trying to build the native compiler to a arm a9 using this tutorial, https://wiki.linaro.org/WorkingGroups/ToolChain/Using/GCCNative. However, I need to compile in a x86_64 platform ubuntu, like this --target=arm-unknown-eabi --build=i686-pc-linux-gnu --host=arm-unknown-eabi, but without success.
It's odd that you have to set --host as ARM, since your host is x86_64.
Also, GCC might be different, but arm-unknown-eabi is a bare metal toolchain, not a linux one, maybe that's another source of problems. Try arm-linux-gnueabi for soft-float and arm-linux-gnueabihf for hard-float.
cheers, --renato
On 12 March 2014 09:57, Renato Golin renato.golin@linaro.org wrote:
On 11 March 2014 23:47, Felipe Rocha da Rosa frdarosa@inf.ufrgs.br wrote:
I'm trying to build the native compiler to a arm a9 using this tutorial, https://wiki.linaro.org/WorkingGroups/ToolChain/Using/GCCNative. However, I need to compile in a x86_64 platform ubuntu, like this --target=arm-unknown-eabi --build=i686-pc-linux-gnu --host=arm-unknown-eabi, but without success.
It's odd that you have to set --host as ARM, since your host is x86_64.
Also, GCC might be different, but arm-unknown-eabi is a bare metal toolchain, not a linux one, maybe that's another source of problems. Try arm-linux-gnueabi for soft-float and arm-linux-gnueabihf for hard-float.
IIUC, what you are trying to do is called "Canadian Cross" build, which involves to use a cross-compiler: - you'll use an x86_64 compiler to build a cross-compiler, running on x86_64 and producing code for ARM. - then you'll use this cross-compiler to cross-build the native-ARM compiler.
I believe there is some documentation in GCC about Canadian Cross builds, and I think cbuild2 supports such builds too.
Christophe.
On 12 March 2014 09:57, Renato Golin renato.golin@linaro.org wrote:
On 11 March 2014 23:47, Felipe Rocha da Rosa frdarosa@inf.ufrgs.br wrote:
I'm trying to build the native compiler to a arm a9 using this tutorial, https://wiki.linaro.org/WorkingGroups/ToolChain/Using/GCCNative. However, I need to compile in a x86_64 platform ubuntu, like this --target=arm-unknown-eabi --build=i686-pc-linux-gnu --host=arm-unknown-eabi, but without success.
It's odd that you have to set --host as ARM, since your host is x86_64.
Also, GCC might be different, but arm-unknown-eabi is a bare metal toolchain, not a linux one, maybe that's another source of problems. Try arm-linux-gnueabi for soft-float and arm-linux-gnueabihf for hard-float.
IIUC, what you are trying to do is called "Canadian Cross" build, which involves to use a cross-compiler:
- you'll use an x86_64 compiler to build a cross-compiler, running on
x86_64 and producing code for ARM.
- then you'll use this cross-compiler to cross-build the native-ARM compiler.
I believe there is some documentation in GCC about Canadian Cross builds, and I think cbuild2 supports such builds too.
Christophe.
Let's me explain, I want to compile that will be hosted and working in a ARM A9 Linux producing ARM binary (cross-native), but I need to create this compiler in my machine ubuntu x86_x64. Canadian cross, I think is when the three are different archs I 'm compiling now this ../configure --target=arm-none-linux-gnueabi --build=x86_64-linux-gnu --host=arm-none-linux-gnueabi, Thank you.
On 13 March 2014 07:42, Felipe Rocha da Rosa frdarosa@inf.ufrgs.br wrote:
On 12 March 2014 09:57, Renato Golin renato.golin@linaro.org wrote:
On 11 March 2014 23:47, Felipe Rocha da Rosa frdarosa@inf.ufrgs.br wrote:
I'm trying to build the native compiler to a arm a9 using this tutorial, https://wiki.linaro.org/WorkingGroups/ToolChain/Using/GCCNative. However, I need to compile in a x86_64 platform ubuntu, like this --target=arm-unknown-eabi --build=i686-pc-linux-gnu --host=arm-unknown-eabi, but without success.
It's odd that you have to set --host as ARM, since your host is x86_64.
Also, GCC might be different, but arm-unknown-eabi is a bare metal toolchain, not a linux one, maybe that's another source of problems. Try arm-linux-gnueabi for soft-float and arm-linux-gnueabihf for hard-float.
IIUC, what you are trying to do is called "Canadian Cross" build, which involves to use a cross-compiler:
- you'll use an x86_64 compiler to build a cross-compiler, running on
x86_64 and producing code for ARM.
- then you'll use this cross-compiler to cross-build the native-ARM
compiler.
I believe there is some documentation in GCC about Canadian Cross builds, and I think cbuild2 supports such builds too.
Christophe.
Let's me explain, I want to compile that will be hosted and working in a ARM A9 Linux producing ARM binary (cross-native), but I need to create this compiler in my machine ubuntu x86_x64. Canadian cross, I think is when the three are different archs
But the process is similar.
Please try my hack based on Linaro crosstool-ng Canadian windows build.
(1) wget http://cbuild.validation.linaro.org/snapshots/crosstool-ng-linaro-1.13.1-4.8... (2) tar -xf crosstool-ng-linaro-1.13.1-4.8-2014.02.tar.bz2 (3) cd crosstool-ng-linaro-1.13.1-4.8-2014.02 (4) patch -p1 < hack.patch (attached. It changes HOST from i586-mingw32msvc to arm-linux-gnueabi) (5) make -f contrib/linaro/build.mk TARGETS=arm-linux-gnueabi
Please ignore the fails at the end to package windows staffs. And you will get a toolchain at
./builds/arm-linux-gnueabi-win32/install
To build your gcc, (1) Replace the gcc-linaro-4.8-2014.02 at ./builds/arm-linux-gnueabi-win32/.build/src (2) Remove builds/stamp/arm-linux-gnueabi-win32-build (3) make -f contrib/linaro/build.mk TARGETS=arm-linux-gnueabi
Good luck!
-Zhenqiang
I 'm compiling now this ../configure --target=arm-none-linux-gnueabi --build=x86_64-linux-gnu --host=arm-none-linux-gnueabi,
Thank you.
linaro-toolchain mailing list linaro-toolchain@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-toolchain
linaro-toolchain@lists.linaro.org