Discussion:
ARM options
Mark Vojta
2014-06-21 17:31:39 UTC
Permalink
I am currently using gcc 4.6.3 on machine running Ubuntu 12.04LTS and am
having trouble getting the option -march=armv7 to work. The compiler
complains about the switch being invalid. Any thoughts on what might be
wrong?
--
Mark Vojta
***@operamail.com
Florian Weimer
2014-06-23 07:15:47 UTC
Permalink
Post by Mark Vojta
I am currently using gcc 4.6.3 on machine running Ubuntu 12.04LTS and am
having trouble getting the option -march=armv7 to work. The compiler
complains about the switch being invalid. Any thoughts on what might be
wrong?
You need to provide more information. What exactly are you doing, and
what's the precise error message? Have you built and installed a
cross-compiler?
--
Florian Weimer / Red Hat Product Security
Mark Vojta
2014-06-23 15:36:36 UTC
Permalink
I am using the gcc supplied by Ubuntu which I am begining to think
probably generates code only for my host machine. I am currently looking
at linaro.org for a cross-compiler.
--
Mark Vojta
Post by Florian Weimer
Post by Mark Vojta
I am currently using gcc 4.6.3 on machine running Ubuntu 12.04LTS and am
having trouble getting the option -march=armv7 to work. The compiler
complains about the switch being invalid. Any thoughts on what might be
wrong?
You need to provide more information. What exactly are you doing, and
what's the precise error message? Have you built and installed a
cross-compiler?
--
Florian Weimer / Red Hat Product Security
Jonathan Wakely
2014-06-23 17:00:45 UTC
Permalink
Post by Mark Vojta
I am using the gcc supplied by Ubuntu which I am begining to think
probably generates code only for my host machine.
Any installation of GCC only supports generating code for a single target.
Post by Mark Vojta
I am currently looking
at linaro.org for a cross-compiler.
Ubuntu also provides a cross-compiler for ARM, but you need to install
it separately, in addition to the host compiler.

Loading...