rtems++ test stub, how to compile it?

Mogens Dybæk Christensen MogensD.Christensen at man.eu
Wed Aug 10 07:40:32 UTC 2011


> From: Ralf Corsepius [mailto:ralf.corsepius at rtems.org]
> Sent: 9. august 2011 18:33
> To: Mogens Dybæk Christensen
> Cc: rtems-users at rtems.org
> Subject: Re: rtems++ test stub, how to compile it?
> 
> On 08/09/2011 04:55 PM, Mogens Dybæk Christensen wrote:
> 
> > A lot of teststubs in i386-rtems4.10/c/testsuites are built, but not
> this one.
> 
> > $BUILD_DIR/rtems-4.10.0/configure --enable-rtems-debug \
> > 	--target=$TARGET --enable-posix \
> > 	--prefix=/opt/rtems-4.10 \
> > 	--enable-networking --enable-cxx \
> > 	--enable-rtemsbsp="pc386" --enable-maintainer-mode \
> >        --enable-tests=samples
> >
> > I have also tried enable-tests=yes. Same result.
> 
> Check the output running configure produces and check if you have your
> target's g++ installed. I guess you don't have  the target's g++
> compiler (i386-rtems4.10-g++) installed (or it's broken).
> 
> rtems++ is only being built if building librtems++ is enabled
> (--enable-cxx), --enable-tests (==--enable-tests=yes) is being passed
> and if the target-toolchain's g++ is installed.
> 
> > Our build scripts are based upon a step by step description for
> Ubuntu on the wiki.
> 
> Well, Ubuntu ... many further possibilities.
> 
> Ralf

Hi Ralf

We have i386-rtems4.10-g++, and the C++ samples like "C++ Static Constructors" and "C++ IO Streams" are running in qemu.
Even librtems++.a is built, but apparently never used. - So I think it is a problem with Makefile.* settings in the 
testsuites/libtest tree.

To be more specific about our build, we started from here 
http://wiki.rtems.org/wiki/index.php/Building_the_RTEMS_toolset_on_Ubuntu
but took the 4.10 kit. After first success, the process was scripted.

/Mogens





More information about the users mailing list