Issue with RTEMS 4.12 compiler include path
Sebastian Huber
sebastian.huber at embedded-brains.de
Thu Jun 23 12:15:07 UTC 2016
On 23/06/16 03:30, Chris Johns wrote:
> On 23/06/2016 04:39, John Harwell wrote:
>> The command line make uses when attempting to compile my super-simple
>> test application is:
>>
>> /opt/rtems-4.12/bin/sparc-rtems4.12-gcc -O0 -g -D__rtems__ -m32 -W
>> -Wall -Wextra -std=gnu99 -fmessage-length=0
>> -isystem/opt/rtems-4.12/lib/gcc/sparc-rtems4.12/6.1.1/include
>> -isystem/opt/rtems-4.12/lib
This set of options is seriously wrong if you want to build an SMP
application for a LEON3 BSP.
For C99 multi-threaded programs are undefined behaviour. Thus, use at
least -std=gnu11.
In addition, you must use the machine options of the BSP, see
c/src/lib/libbsp/sparc/leon3/make/custom/leon3.cfg (-mcpu=leon3
-msoft-float).
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
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 users
mailing list