Looking for working steps to cross compile gcc for ARM

Asked by BITAN BISWAS

I am unable to cross-compile gcc 4.7.0 for ARMv7 target. Can anyone share pointers to working instructions for same?

Question information

Language:
English Edit question
Status:
Answered
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Andre Vieira (andre-simoesdiasvieira) said :
#1

Hi Bitan,

What are you trying to do exactly? Build GCC on your host machine such that you can run gcc on an ARMv7 target? Or are you trying to compile code for an ARMv7 target on your host machine?

The second one is easy, you just pass '-march=armv7'. I suggest you use our latest version of GCC though, see https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads .

As for the first, that will require a bit more work. See https://gcc.gnu.org/install/ for more information.

Cheers,
Andre

Can you help with this problem?

Provide an answer of your own, or ask BITAN BISWAS for more information if necessary.

To post a message you must log in.