LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-09-2012, 01:00 PM   #1
lb_dbd
LQ Newbie
 
Registered: Apr 2012
Posts: 8

Rep: Reputation: Disabled
gcc -march for the ARM9 core


I am trying to compile a C test program for the ARM9 core and cannot seem
to get the right architecture comple option set correctly.
using the following I get bad value (arm9)

gcc -march=arm9 test.c

test.c:1:0: error: bad value (arm9) for -march= switch
 
Old 05-09-2012, 01:21 PM   #2
Nermal
Member
 
Registered: Jan 2009
Distribution: Debian
Posts: 59
Blog Entries: 2

Rep: Reputation: 6
Just checked the manual and there is no arm9.

http://gcc.gnu.org/onlinedocs/gcc-4....ml#ARM-Options

is this for a RPi if so I think that uses arm7.
 
Old 05-09-2012, 03:16 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,684

Rep: Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286
When you are using your Linux Computer to compile software for arm :
A complete tool-chain is a must.
( Unless the used Linux computer also has an arm processor. ( arm9.))

A tool-chain is : binutils, gcc, a *libc. (Glibc Uclibc eglibc etc.)
All built for arm only.

The recommended tool-chain : crosstool-ng http://crosstool-ng.org/
> http://crosstool-ng.org/download/cro...1.15.2.tar.bz2

.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] GCC and G++ build results if the -march=TYPE is not specified Dweeb2010 Programming 7 05-25-2010 03:53 PM
[SOLVED] install gcc to arm9 board aydemirk Linux - Newbie 5 05-21-2010 06:16 AM
[SOLVED] GCC options: (-m64) vs (-march=native) vs (-march=core2) -- Which one(s) to use? GrapefruiTgirl Linux - Software 5 09-29-2009 07:53 AM
A question on GCC march setting satimis Linux - Distributions 1 08-21-2006 10:35 AM
gcc march agdepus Programming 8 05-26-2004 09:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration