compile error in rtems/confdefs header

Vishav.Vishav at dlr.de Vishav.Vishav at dlr.de
Wed Nov 27 09:09:37 UTC 2019


Hi Sebastian,


Thanks for the reply. These are the compiler options that I use:

'-march=armv7-a',
'-mthumb',
'-mfpu=neon',
'-mfloat-abi=hard',
'-mtune=cortex-a9'

Optimization flags:
'-O2', '-ffunction-sections', '-fdata-sections',

Warning:
-Wall

-std=c99
Debug:
-g

Regards
Vishav


________________________________
From: Sebastian Huber <sebastian.huber at embedded-brains.de>
Sent: 27 November 2019 08:40:09
To: Vishav, Vishav; users at rtems.org
Subject: Re: compile error in rtems/confdefs header

On 26/11/2019 18:31, Vishav.Vishav at dlr.de wrote:
> Hello,
>
> To explain my problem, here are my system details:
>
> RTEMS Version: 5.0.0
>
> RTEMS tools: 7.4.1
>
> BSP: Custom BSP adopted from Xilinx_zynq
>
> Build tool: scons
>
> While compiling I get the following error:
>
> In file included from
> /tools/modulesystem/tools/rtems/rtems/bsps/5/arm/arm-rtems5/xilinx_zynq_scosa/lib/include/rtems/confdefs.h:320:0,
> from **/examples/rtems_hello/init.c:70:
> ***/lib/include/rtems/imfs.h: In function '_IMFS_get_time':
> **/lib/include/rtems/imfs.h:344:18: error: storage size of 'now' isn't known
>     struct bintime now;

This is likely due to compiler options which force standard header files
to hide non-standard content. Which options do you use?

If you use

#define CONFIGURE_MAXIMUM_TASKS 1

then you can create at most one Classic API task at a time. See

https://docs.rtems.org/branches/master/c-user/configuring_a_system.html

--
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20191127/0d8c53f2/attachment-0001.html>


More information about the users mailing list