Enabling smptests for i386/pc386 (for #2138)

Amaan Cheval amaan.cheval at gmail.com
Thu Mar 8 18:22:31 UTC 2018


In reference to #2138; I'd like to give fixing this issue a shot to get my
feet
wet with RTEMS.

I tried enabling the tests in ./testsuites/smptests/ to find a way to make
the
test fail at first, so I'd have a frame of reference, but I couldn't quite
get
the test to be compiled for i386 at all.

(I'm not quite sure yet how --enable-tests determines which of the
testsuites
get built - I think bspopts.h.in is generated based on the BSP-specific
config?)

Based on the little note about --enable-smp in the docs[1], I added the
switch,
along with --enable-tests during the configure stage.

Full command:

../kernel/configure --prefix=$HOME/bin/rtems/5-i386 --target=i386-rtems5
--enable-rtemsbsp=pc386 --enable-posix --enable-tests --enable-smp

This results in a failure at the make step[2] (at least as of commit cf2024
(and
a quick test against 828049, after running bootstrap -H as well)).

Before the preinstall stage was removed, BSP_HAS_SMP in
./c/src/lib/libbsp/i386/pc386/include/bspopts.h.in was undef'd as well,
which
seems to be relevant.

I haven't dug enough into what may be causing the error; I'm sending this
email
erring on the side of asking too many questions, since I figured it'd be
more
effective to just get help and work faster from the collective genius of the
community!

Am I just doing something inherently misguided in even trying to enable
these
tests for i386?


[1]
https://docs.rtems.org/branches/master/c-user/symmetric_multiprocessing_services.html#introduction
[2] https://gist.github.com/AmaanC/03566c18793ff61a25328bfaf395df09


More information about the devel mailing list