sentry was Re: cdtest example using cout on psim problem

Ralf Corsepius ralf_corsepius at rtems.org
Sat Apr 17 01:22:36 UTC 2004


On Sat, 2004-04-17 at 02:27, JP Bonn wrote:
> I didn't look at cdtest carefully enough. It looks like global
> constructors and exceptions are not working.  Which is probably why cout
> isn't initialized.
Not unlikely. Interfacing ctors/dtors to RTEMS is troublesome.

To investigate this in depth, you'd have to debug the program startup
behavior, from the program startup code until main().

AFAIS, you seem to be using powerpc-macosx, so you're likely not using
the RPMS and probably are using a custom built toolchain. Which version
of gcc are you using? 

> Is there something I missed in the configuration?  I built with:
Except you are passing several doubtful options, this should be OK.

>  $ ../rtems-4.6.0/configure --target=powerpc-rtems --enable-posix
> --enable-itron
>  --disable-tcpip
^^^^^^^^^^^^^^^^^^
This option doesn't exist (You are probably looking for
--disable-networking), however it should not have any impact.

>  --enable-cxx --enable-tests
> --prefix=/opt/test --enable-rtemsbsp=psim

>  --host=powerpc-apple-macosx --build=powerpc-apple-macosx
What is the reason for setting --host and --build? There should not be
any need to do so. 

Conversely, though setting --host,--build and --target at a time should
work, this is not extensively tested. So I would not exclude unwanted
side effects. However, this shouldn't be related to your c++-problems.

Ralf






More information about the users mailing list