Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

GNAT Community 2021 and PolyORB: Can't find source for a-sttebu.ali

158 views
Skip to first unread message

Frank Jørgen Jørgensen

unread,
Nov 7, 2021, 5:41:35 AM11/7/21
to
Hi!

I installed GNAT Community 2021 64bit via MinGW32 (I sense an inconsistensy here but this is what I did for GNAT2020 and and REAME in PolyORBS says to use MinGW32...) in Windows 10 Pro

Installation went ok after the usual messing with wrong paths and missing Python :)
When I compile a normal, Non-DSA program with GtkAda it works fine.

When I compile the bank application in the PolyORB or my own DSA application I get an error referring to a-sttebu.ali which I suspect is something new in GNAT 2021 to handle the improved 'Img functionality in Ada 202X.

I am guessing that the issue here is that the PolyORB is not up to date with GNAT 2021 compiler, or have I missed something in installation?

C:\Ada\Git\PolyORB\examples\dsa\bank>po_gnatdist simcity.cfg
C:\GNAT\2021\bin\gnat.exe list polyorb.ali -Ppolyorb -s -aPC:\GNAT\2021\lib\gnat
C:\GNAT\2021\bin\gprbuild.exe simcity_monolithic_app.adb -c -P C:\Ada\Git\PolyORB\examples\dsa\bank\dsa\i686-pc-mingw32\simcity_dist_app.gpr -margs -aPC:\GNAT\2021\lib\gnat
Compile
[Ada] simcity_monolithic_app.adb
C:\GNAT\2021\bin\gnat.exe list simcity_monolithic_app.ali -V -P C:\Ada\Git\PolyORB\examples\dsa\bank\dsa\i686-pc-mingw32\simcity_dist_app.gpr -aPC:\GNAT\2021\lib\gnat
C:\GNAT\2021\bin\gnat.exe list a-sttebu.ali client.ali manager.ali polyorb.ali polyorb-dsa_p.ali polyorb-dsa_p-partitions.ali server.ali -V -P C:\Ada\Git\PolyORB\examples\dsa\bank\dsa\i686-pc-mingw32\simcity_dist_app.gpr -aPC:\GNAT\2021\lib\gnat
Can't find source for a-sttebu.ali
C:\GNAT\2021\bin\gnat.exe compile C:/gnat/2021/lib/gcc/x86_64-w64-mingw32/10.3.1/adainclude/a-sttebu.adb -gnatc -P C:\Ada\Git\PolyORB\examples\dsa\bank\dsa\i686-pc-mingw32\simcity_dist_app.gpr -margs -aPC:\GNAT\2021\lib\gnat
gprbuild: "c:/gnat/2021/lib/gcc/x86_64-w64-mingw32/10.3.1/adainclude/a-sttebu.adb" was not found in the sources of any project
C:\GNAT\2021\bin\gnat.exe list a-sttebu.ali -V -P C:\Ada\Git\PolyORB\examples\dsa\bank\dsa\i686-pc-mingw32\simcity_dist_app.gpr -aPC:\GNAT\2021\lib\gnat
Can't find source for a-sttebu.ali
po_gnatdist: failed to load ALI for C:/gnat/2021/lib/gcc/x86_64-w64-mingw32/10.3.1/adainclude/a-sttebu.adb
po_gnatdist: *** can't continue

Frank

Jesper Quorning

unread,
Nov 7, 2021, 11:38:22 AM11/7/21
to
søndag den 7. november 2021 kl. 11.41.35 UTC+1 skrev Frank Jørgen Jørgensen:
> When I compile the bank application in the PolyORB or my own DSA application I get an error referring to a-sttebu.ali which I suspect is something new in GNAT 2021 to handle the improved 'Img functionality in Ada 202X.

a-sttebu.ali is the package Ada.Strings.Text_Buffers (.ali), which is a recent invention [1].
It is not part of FSF 10.3.0 or FSF 11.2.0.

> I am guessing that the issue here is that the PolyORB is not up to date with GNAT 2021 compiler, or have I missed something in installation?
I do not know why it is needed by your application.


Jesper

[1] https://learn-staging.adacore.com/courses/ada_2022_whats_new/chapters/image_redefine.html#

Simon Wright

unread,
Nov 8, 2021, 4:04:11 AM11/8/21
to
Jesper Quorning <jesper....@gmail.com> writes:

> [1]
> https://learn-staging.adacore.com/courses/ada_2022_whats_new/chapters/image_redefine.html#

Most of us can't see this (but looking forward!).

In the meantime, see the 202x ARM A.4.12:
http://www.ada-auth.org/standards/2xrm/html/RM-A-4-12.html

Daniel Norte Moraes

unread,
Dec 30, 2021, 2:25:50 PM12/30/21
to
Hi! I use it (ada 202x) with gnat switch '-gnat2020' in command line. gcc-11.2 and gcc-12

Rod Kay

unread,
Oct 23, 2023, 5:05:34 AM10/23/23
to
On 7/11/21 21:41, Frank Jørgen Jørgensen wrote:
>
> When I compile the bank application in the PolyORB or my own DSA application I get an error referring to a-sttebu.ali which I suspect is something new in GNAT 2021 to handle the improved 'Img functionality in Ada 202X.
>

I encountered the exact same problem today, except on arch linux,
rather than windows.

After much stabbing in the dark, the chase for several wild gueese,
playing option roulette and moving files around, I found this
'workaround' ...


In the folder from which po_gnatdist is invoked ...

$ cp /usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/adainclude/a-sttebu.ads .

$ mkdir --parents dsa/x86_64-unknown-linux-gnu/obj

$ cp /usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/adalib/a-sttebu.ali
dsa/x86_64-unknown-linux-gnu/obj/


Obviously, this is only a temporary fix. I'll try to send a bug
report to the polyorb issues area on github and hope the problem is able
to be resolved by the experts.


Regards.
0 new messages