C++ Does not Compile on PowerPC

Sebastian Huber sebastian.huber at embedded-brains.de
Sat May 5 07:53:21 UTC 2012


On 04/05/12 22:22, Joel Sherrill wrote:
> Hi
>
> The stdint.h in gcc 4.7.0 has changed and made constants
> like UINT32_MAX hidden to C++ code by default.
>
> In file included from 
> ../../.././psim/lib/include/rtems/score/isr.h:361:0,
>                  from 
> ../../.././psim/lib/include/rtems/score/object.h:22,
>                  from ../../.././psim/lib/include/rtems/score/mppkt.h:38,
>                  from 
> ../../.././psim/lib/include/rtems/score/thread.h:92,
>                  from ../../.././psim/lib/include/rtems/score/heap.h:22,
>                  from ../../.././psim/lib/include/rtems/rtems/types.h:25,
>                  from ../../.././psim/lib/include/rtems.h:48,
>                  from 
> ../../.././psim/lib/include/rtems++/rtemsStatusCode.h:22,
>                  from 
> ../../.././psim/lib/include/rtems++/rtemsEvent.h:23,
>                  from 
> ../../../../../rtems/c/src/librtems++/src/rtemsEvent.cc:19:
> ../../.././psim/lib/include/rtems/score/isr.inl: In function 'bool 
> _ISR_Is_vector_number_valid(uint32_t)':
> ../../.././psim/lib/include/rtems/score/isr.inl:38:22: error: 
> 'UINT32_MAX' was not declared in this scope 
[...]
> Any thoughts on how to address this?
>

This shows only that the PowerPC CPU port is broken.  We don't define 
CPU_SIMPLE_VECTORED_INTERRUPTS thus it is implicitly FALSE.  So we don't 
need these

#define CPU_INTERRUPT_NUMBER_OF_VECTORS     (0)
#define CPU_INTERRUPT_MAXIMUM_VECTOR_NUMBER (UINT32_MAX)

defines.

-- 
Sebastian Huber, embedded brains GmbH

Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone   : +49 89 18 90 80 79-6
Fax     : +49 89 18 90 80 79-9
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the devel mailing list