RTEMS Ada build problem on trunk

Sebastian Huber sebastian.huber@embedded-brains.de
Thu Jan 17 10:37:00 GMT 2019


On 17/01/2019 09:56, Sebastian Huber wrote:
> Hello,
>
> I tried to build the arm-rtems target with Ada support on the trunk 
> yesterday. It fails with:
>
> /home/user/rtems-source-builder/rtems/build/arm-rtems6-gcc-0ca47588bd2e38bbfa427503968e08a6b8ab3166-newlib-068182e26c7b397df579b69a18f745092844d1b4-x86 
>
> _64-linux-gnu-1/build/./gcc/xgcc 
> -B/home/user/rtems-source-builder/rtems/build/arm-rtems6-gcc-0ca47588bd2e38bbfa427503968e08a6b8ab3166-newlib-068182e26
> c7b397df579b69a18f745092844d1b4-x86_64-linux-gnu-1/build/./gcc/ 
> -nostdinc 
> -B/home/user/rtems-source-builder/rtems/build/arm-rtems6-gcc-0ca47588bd2e38bb
> fa427503968e08a6b8ab3166-newlib-068182e26c7b397df579b69a18f745092844d1b4-x86_64-linux-gnu-1/build/arm-rtems6/newlib/ 
> -isystem /home/user/rtems-source-b
> uilder/rtems/build/arm-rtems6-gcc-0ca47588bd2e38bbfa427503968e08a6b8ab3166-newlib-068182e26c7b397df579b69a18f745092844d1b4-x86_64-linux-gnu-1/build/arm 
>
> -rtems6/newlib/targ-include -isystem 
> /home/user/rtems-source-builder/rtems/build/arm-rtems6-gcc-0ca47588bd2e38bbfa427503968e08a6b8ab3166-newlib-068182e
> 26c7b397df579b69a18f745092844d1b4-x86_64-linux-gnu-1/gnu-mirror-gcc-0ca47588bd2e38bbfa427503968e08a6b8ab3166/newlib/libc/include 
> -B/home/user/rtems-ins
> tall/arm-rtems6/bin/ -B/home/user/rtems-install/arm-rtems6/lib/ 
> -isystem /home/user/rtems-install/arm-rtems6/include -isystem 
> /home/user/rtems-install/
> arm-rtems6/sys-include    -c -g -O2   -W -Wall -gnatpg -nostdinc 
> a-envvar.adb -o a-envvar.o
> a-direct.adb:743:28: "SIZEOF_struct_dirent_alloc" is undefined
> s-filatt.ads:62:18: "SIZEOF_struct_file_attributes" not declared in 
> "OS_Constants"
> s-oscons.ads:408:01: (style) multiple blank lines
> s-oscons.ads:413:01: (style) multiple blank lines
>
> In the build tree(gcc/ada/rts) I have this:
>
> grep -- '->CND' s-oscons-tmplt.s
> ...
> ->CND:#1699:CLOCK_REALTIME:#1:System realtime clock
> ->CND:#1702:CLOCK_MONOTONIC:#4:System monotonic clock
> ->CND:#1712:CLOCK_THREAD_CPUTIME_ID:#3:Thread CPU clock
> ->CND:#1771:PTHREAD_SIZE:#4:pthread_t
> ->CND:#1772:PTHREAD_ATTR_SIZE:#96:pthread_attr_t
> ->CND:#1773:PTHREAD_MUTEXATTR_SIZE:#24:pthread_mutexattr_t
> ->CND:#1774:PTHREAD_MUTEX_SIZE:#64:pthread_mutex_t
> ->CND:#1775:PTHREAD_CONDATTR_SIZE:#24:pthread_condattr_t
> ->CND:#1776:PTHREAD_COND_SIZE:#28:pthread_cond_t
> ->CND:#1777:PTHREAD_RWLOCKATTR_SIZE:#8:pthread_rwlockattr_t
> ->CND:#1778:PTHREAD_RWLOCK_SIZE:#32:pthread_rwlock_t
> ->CND:#1779:PTHREAD_ONCE_SIZE:#1:pthread_once_t
> ->CND:#1800:SIZEOF_struct_file_attributes:#24:struct file_attributes
> ->CND:#1812:SIZEOF_struct_dirent_alloc:#278:struct dirent allocation
>
> The
>
> ../bldtools/oscons/xoscons s-oscons
>
> produces this
>
> tail -20 s-oscons.ads
>    ---------------------
>    -- Threads support --
>    ---------------------
>
>    --  Clock identifier definitions
>
>    CLOCK_REALTIME                : constant := 1;           -- System 
> realtime clock
>    CLOCK_MONOTONIC               : constant := 4;           -- System 
> monotonic clock
>    CLOCK_THREAD_CPUTIME_ID       : constant := 3;           -- Thread 
> CPU clock
>    CLOCK_RT_Ada                  : constant := CLOCK_REALTIME;
>
>    --  Sizes of pthread data types
>
>
>    --------------------------------
>    -- File and directory support --
>    --------------------------------
>
>
> end System.OS_Constants;
>
> With GCC 7.4.0 it works and the s-oscons-tmplt.s dosn't look that much 
> different.
>
> My native GNAT is:
>
> gnat --version
> GNAT 9.0.0 20190116 (experimental)
> Copyright (C) 1996-2019, Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.
> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A 
> PARTICULAR PURPOSE.
>

I can build the trunk with a native

gnat --version
GNAT 8.2.1 20190103 [gcc-8-branch revision 267549]
Copyright (C) 1996-2018, Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A 
PARTICULAR PURPOSE.

-- 
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@embedded-brains.de
PGP     : Public key available on request.

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



More information about the Gcc mailing list