I want to participate in GSoC from RTEMS

Joel Sherrill joel.sherrill at OARcorp.com
Thu Mar 20 13:25:57 UTC 2008


This is probably going to nail all the SOC students so let's
kill this "getting started" beast now. :-D

Since you are installing the tools by hand and not using apt/yum,
my guess is that didn't install the sparc-rtems4.9 binutils package.

You have to install the "common" packages which are shared across
all target architectures (in the GNU target sense).  Then there
are CPU-rtems packages in addition to those.  I have these installed
for sparc:

rtems-4.9-sparc-rtems4.9-binutils-2.18-4.fc8
rtems-4.9-sparc-rtems4.9-gcc-4.3.0-11.fc8
rtems-4.9-sparc-rtems4.9-gdb-6.7.1-5.fc8
rtems-4.9-sparc-rtems4.9-newlib-1.16.0-11.fc8
rtems-4.9-sparc-rtems4.9-gcc-c++-4.3.0-11.fc8

And these installed for common:

rtems-4.9-binutils-common-2.18-4.fc8
rtems-4.9-gdb-common-6.7.1-5.fc8
rtems-4.9-newlib-common-1.16.0-11.fc8
rtems-4.9-gcc-common-4.3.0-11.fc8

The erc32 BSP cannot be run on a free simulator.  You want the sis
BSP which can be run using the gdb provided in the RPM.

mkdir b-sis
cd b-sis
../rtems-XXX/configure --target=sparc-rtems4.9 \
  --enable-rtemsbsp=sis --enable-tests=samples
make

/opt/rtems-4.9/bin must be at the head of your PATH.

Try compiling this:

int main() {}

with "sparc-rtems-4.9-gcc TEST.c"

If it fails you can add a -v to the command line and get more details.

To do internal RTEMS work you will also want the RTEMS autoconf
and automake packages.

--joel

Madhusudan C.S wrote:
> Hi Daron,
>                This is the error I get when I run "make all"
>
> checking whether make sets $(MAKE)... yes
> checking for sparc-rtems4.9-strip... sparc-rtems4.9-strip
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking for RTEMS_BSP... sis
> checking for 
> ../../../../rtems/c/src/../../bspkit/sparc/*/cfg/sis.cfg... no
> checking for ../../../../rtems/c/src/../../make/custom/sis.cfg... yes
> checking whether BSP supports networking... yes
> checking whether CPU supports libposix... disabled
> checking for rpcgen... rpcgen
> configure: setting up make/custom
> checking for 
> ../../../../rtems/c/src/../../bspkit/sparc/*/cfg/sis.cfg... no
> checking for ../../../../rtems/c/src/../../make/custom/sis.cfg... yes
> checking for 
> ../../../../rtems/c/src/../../bspkit/sparc/*/cfg/erc32.cfg... no
> checking for ../../../../rtems/c/src/../../make/custom/erc32.cfg... yes
> configure: creating make/sis.cache
> make[3]: Entering directory 
> `/media/professional/rtems/b-sis/sparc-rtems4.9/c/sis'
> make[3]: Leaving directory 
> `/media/professional/rtems/b-sis/sparc-rtems4.9/c/sis'
> checking for RTEMS_CPU_MODEL... erc32
> checking for RTEMS_BSP_FAMILY... (cached) erc32
> checking for CPU_CFLAGS... (cached) -mcpu=cypress
> checking for CFLAGS_OPTIMIZE_V... (cached) -O2 -g
> checking for style of include used by make... GNU
> checking for sparc-rtems4.9-gcc... sparc-rtems4.9-gcc
> checking for sparc-rtems4.9-gcc... (cached) sparc-rtems4.9-gcc
> checking for C compiler default output file name...
> configure: error: C compiler cannot create executables
> See `config.log' for more details.
> make[2]: *** [sis] Error 1
> make[2]: Leaving directory 
> `/media/professional/rtems/b-sis/sparc-rtems4.9/c'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory 
> `/media/professional/rtems/b-sis/sparc-rtems4.9/c'
> make: *** [all-recursive] Error 1
>
> -- 
> Thanks and regards,
> Madhusudan.C.S


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985





More information about the users mailing list