From: Sebastian Huber <sebastian.huber@embedded-brains.de>
To: GCC <gcc@gcc.gnu.org>
Subject: RTEMS Ada build problem on trunk
Date: Thu, 17 Jan 2019 08:56:00 -0000 [thread overview]
Message-ID: <4c93d588-c99d-8a72-3313-8b850b0d3f35@embedded-brains.de> (raw)
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.
--
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.
next reply other threads:[~2019-01-17 8:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-17 8:56 Sebastian Huber [this message]
2019-01-17 10:37 ` Sebastian Huber
2019-01-17 11:40 ` Eric Botcazou
2019-01-17 14:25 ` Sebastian Huber
2019-01-18 10:20 ` Sebastian Huber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4c93d588-c99d-8a72-3313-8b850b0d3f35@embedded-brains.de \
--to=sebastian.huber@embedded-brains.de \
--cc=gcc@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).