<br><div class="gmail_quote">On Wed, Jul 14, 2010 at 11:45 AM, Ajai James <span dir="ltr"><<a href="mailto:ajai@sigtechwireless.com">ajai@sigtechwireless.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi All,<br>
Thank you very much Vinu, and Gedare for your kind inputs.<br>
I have checked your suggestions. The cross compiler tool chain appears to be<br>
installed correctly. I am able to compile and generate arm assembly as per<br>
the validation procedure in<br>
<a href="http://rtems.org/onlinedocs/doc-current/share/rtems/html/started/started0005
7.html" target="_blank">http://rtems.org/onlinedocs/doc-current/share/rtems/html/started/started0005<br>
7.html</a> using arm-rtems-4.10-gcc<br>
<br>
There appears to be some CFLAGS error when I checked the config.log inside<br>
the bsp build directory as suggested by Vinu.<br>
arm920t flag is flashing an error, as below. Any suggestions?<br>
<br>
Thread model: rtems<br>
gcc version 4.4.4 20100429 (RTEMS gcc-4.4.4-1.fc12/newlib-1.18.0-12.fc12)<br>
(GCC)<br>
configure:3344: $? = 0<br>
configure:3333: arm-rtems4.10-gcc -V >&5<br>
arm-rtems4.10-gcc: '-V' option must have argument<br>
configure:3344: $? = 1<br>
configure:3333: arm-rtems4.10-gcc -qversion >&5<br>
arm-rtems4.10-gcc: unrecognized option '-qversion'<br>
arm-rtems4.10-gcc: no input files<br>
configure:3344: $? = 1<br>
configure:3364: checking whether the C compiler works<br>
configure:3386: arm-rtems4.10-gcc -mstructure-size-boundary=32 -mcpu=arm920t<br>
-mfpu=vfp -mfloat-abi=soft -DCPU_S3C2410 -O2 -g conftest.c >&5<br>
as: unrecognized option '-mcpu=arm920t'<br></blockquote><div><br></div><div>If you have your cross compiler toolset all correct shouldn't the error be something</div><div>like this - </div><div><br></div><div>
/opt/rtems-4.11/bin/../lib/gcc/i386-rtems4.11/4.5.0/../../../../i386-rtems4.11/bin/as: unrecognized option '-mcpu=arm920t'</div><div><br></div><div>One possibility is that you may have not installed the binutils part of the cross compiler toolchain.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
configure:3390: $? = 1<br>
configure:3428: result: no<br>
configure: failed program was:<br>
| /* confdefs.h */<br>
| #define PACKAGE_NAME "rtems-c-src"<br>
| #define PACKAGE_TARNAME "rtems-c-src"<br>
| #define PACKAGE_VERSION "4.9.99.0"<br>
| #define PACKAGE_STRING "rtems-c-src 4.9.99.0"<br>
| #define PACKAGE_BUGREPORT "<a href="http://www.rtems.org/bugzilla" target="_blank">http://www.rtems.org/bugzilla</a>"<br>
| #define PACKAGE_URL ""<br>
| /* end confdefs.h. */<br>
|<br>
| int<br>
| main ()<br>
| {<br>
|<br>
| ;<br>
| return 0;<br>
| }<br>
configure:3433: error: in<br>
<div class="im">`/home/rtems/rtems-4.10-work/rtems/build-rtems/arm-rtems4.10/c/smdk2410':<br>
</div>configure:3437: error: C compiler cannot create executables<br>
<div><div></div><div class="h5"><br>
<br>
<br>
<br>
<br>
<br>
-----Original Message-----<br>
From: Gedare Bloom [mailto:<a href="mailto:gedare@gwmail.gwu.edu">gedare@gwmail.gwu.edu</a>]<br>
Sent: Tuesday, July 13, 2010 9:33 PM<br>
To: Ajai James<br>
Cc: <a href="mailto:rtems-users@rtems.com">rtems-users@rtems.com</a><br>
Subject: Re: ARM compiler error when building RTEMS for smdk2410<br>
<br>
On Fri, Jul 9, 2010 at 7:08 AM, Ajai James <<a href="mailto:ajai@sigtechwireless.com">ajai@sigtechwireless.com</a>> wrote:<br>
><br>
><br>
> Hi All,<br>
><br>
> I am a newbie in RTEMS and Linux environment.<br>
><br>
> I was trying to compile RTEMS for ARM smdk2410 board using Fedora<br>
> guest in Virtual box with command<br>
><br>
> make RTEMS_BSP="smdk2410" after configure command as per the steps in<br>
><br>
> <a href="http://rtems.org/onlinedocs/doc-current/share/rtems/html/started/start" target="_blank">http://rtems.org/onlinedocs/doc-current/share/rtems/html/started/start</a><br>
> ed00061.html<br>
><br>
><br>
><br>
><br>
><br>
> Got an error as below<br>
><br>
><br>
><br>
> Checking whether the C compiler works... no<br>
><br>
<br>
Aside from checking what Vinu suggested, I also want to know if you followed<br>
the instructions to build and install an appropriate cross-compiler? The<br>
getting started guide also has instructions for that. If you don't have<br>
arm-rtems4.*-gcc, then you won't be able to build RTEMS for the ARM target.<br>
<br>
For Fedora, you can use the RPM and YUM:<br>
<a href="http://www.rtems.com/wiki/index.php/APT/Yum_Repository#Yum_Instructions" target="_blank">http://www.rtems.com/wiki/index.php/APT/Yum_Repository#Yum_Instructions</a><br>
<br>
Just follow the wiki instructions, and replace 4.9 with whichever version of<br>
RTEMS you are using, for example 4.10 for the most recent release or 4.11 if<br>
you are using the RTEMS CVS head. Also replace sparc with arm, since you<br>
are building for the arm target...<br>
<br>
-Gedare<br>
<br>
</div></div></blockquote></div><br>