LEON3 (GR712RC) Building RTEMS for SMP

Chris Johns chrisj at rtems.org
Thu May 26 00:15:52 UTC 2016


On 26/05/2016 00:19, Leonard Bise wrote:
> Hello all,
>
> I'm trying to build RTEMS to be able to do SMP on GR712RC processor.
> My understanding after digging around is that I need to build RTEMS
> master branch and sparc-rtems leon3 bsp.
>
> Is this correct?
>
> I did the following:
> - Using rsb build toolchain for rtems 4.12
> - Import in rsb the rtems master source tree from git
> - bootstrap
> - configure with --target=sparc-rtems4.12 --enable-rtemsbsp=leon3
> --enable-smp --enable-tests
> - make
>
> Sadly make fails with the following error:
>
> sparc-rtems4.12-gcc -B../../../../../leon3/lib/ -specs bsp_specs -qrtems
> -mcpu=leon3 -msoft-float -O2 -g -ffunction-sections -fdata-sections
> -Wall -Wmissing-prototypes -Wimplicit-function-declaration
> -Wstrict-prototypes -Wnested-externs  -Wl,--gc-sections  -mcpu=leon3
> -msoft-float   -o loopback.exe init.o
> ../../../../../leon3/lib/librtemscpu.a(testbeginend.o): In function
> `rtems_test_begin':
> /home/dormoyj/development/rtems/rsb/b-leon3/sparc-rtems4.12/c/leon3/cpukit/libmisc/../../../../../../rtems/c/src/../../cpukit/libmisc/testsupport/testbeginend.c:23:
> undefined reference to `rtems_test_printer'
> /home/dormoyj/development/rtems/rsb/b-leon3/sparc-rtems4.12/c/leon3/cpukit/libmisc/../../../../../../rtems/c/src/../../cpukit/libmisc/testsupport/testbeginend.c:23:
> undefined reference to `rtems_test_printer'
> ../../../../../leon3/lib/librtemscpu.a(testbeginend.o): In function
> `rtems_test_end':
> /home/dormoyj/development/rtems/rsb/b-leon3/sparc-rtems4.12/c/leon3/cpukit/libmisc/../../../../../../rtems/c/src/../../cpukit/libmisc/testsupport/testbeginend.c:31:
> undefined reference to `rtems_test_printer'
> /home/dormoyj/development/rtems/rsb/b-leon3/sparc-rtems4.12/c/leon3/cpukit/libmisc/../../../../../../rtems/c/src/../../cpukit/libmisc/testsupport/testbeginend.c:31:
> undefined reference to `rtems_test_printer'
> collect2: error: ld returned 1 exit status
> Could someone give me a hand?

I will take a look today and this.

Chris



More information about the users mailing list