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

[ANN] XNAdaLib and GNATStudio 2022 binaries for macOS Monterey.

112 views
Skip to first unread message

Blady

unread,
Nov 26, 2022, 3:07:54 AM11/26/22
to
Hello,

This is XNAdaLib 2022 built on macOS 12.6 Monterey for Native Quartz
with GNAT FSF 12.1
(github.com/simonjwright/distributing-gcc/releases/tag/gcc-12.1.0-x86_64)
including:

- GTKAda 22.2 (www.adacore.com/gtkada ) with GTK+ 3.24.33 (www.gtk.org)
complete,
- Glade 3.40.0 (glade.gnome.org),
- Florist mid-2022a (github.com/Blady-Com/florist),
- AdaCurses 6.3 (patch 20221105)
(invisible-island.net/ncurses/ncurses-Ada95.html),
- Gate3 0.5d (sourceforge.net/projects/lorenz),
- Components 4.64 (www.dmitry-kazakov.de/ada/components.htm),
- AICWL 3.25 (www.dmitry-kazakov.de/ada/aicwl.htm),
- Zanyblue 1.4.0 (zanyblue.sourceforge.net),
- PragmARC mid-2022 (pragmada.x10hosting.com/pragmarc.htm),
- UXStrings 0.4.0 (github.com/Blady-Com/UXStrings) - NEW
- GNOGA 2.2 mid-2022 (www.gnoga.com),
- SparForte 2.5 (sparforte.com),
- HAC 0.21 (https://hacadacompiler.sourceforge.io)

Here is also GNATStudio 23.0wb as a stand alone app for macOS 12.
See readme for important details.
There could be some limitations that you might meet. Feel free to report
them on MacAda list (http://hermes.gwu.edu/archives/gnat-osx.html). Any
help will be really appreciated.

Both packages have been post on Source Forge:
https://sourceforge.net/projects/gnuada/files/GNAT_GPL%20Mac%20OS%20X/2022-monterey

Enjoy, Pascal.
http://blady.pagesperso-orange.fr

Joakim Strandberg

unread,
Apr 4, 2023, 6:02:54 AM4/4/23
to
Hi,

I've downloaded and installed the above on a M1 Apple laptop and it works great. However, I can't compile .c files to be imported into an Ada application:

/opt/gcc-12.1.0/bin/aarch64-apple-darwin21-gcc -c -x c -MMD -MF c_linux_api.d -specs=/private/var/folders/1h/7qcblcxj6z92hg5sf_t39y140000gn/T/GNAT-TEMP-000004.TMP /.../c_linux_api.c
<built-in>: error: unknown value '13.0.0' of '-mmacosx-version-min'
gprbuild: *** compilation phase failed

I created an account on the MacAda list but was unauthorised to post messages, therefore I make an attempt to post here. Is it possible to compile C programming language files for import into an Ada application on the Mac OS X with the new Apple silicon hardware? Or should I just give up?

Best regards,
Joakim

Simon Wright

unread,
Apr 4, 2023, 9:50:10 AM4/4/23
to
Joakim Strandberg <joakim.s...@elk-studios.com> writes:

> I've downloaded and installed the above on a M1 Apple laptop and it
> works great. However, I can't compile .c files to be imported into an
> Ada application:
>
> /opt/gcc-12.1.0/bin/aarch64-apple-darwin21-gcc -c -x c -MMD -MF
> c_linux_api.d
> -specs=/private/var/folders/1h/7qcblcxj6z92hg5sf_t39y140000gn/T/GNAT-TEMP-000004.TMP
> /.../c_linux_api.c
> <built-in>: error: unknown value '13.0.0' of '-mmacosx-version-min'
> gprbuild: *** compilation phase failed
>
> I created an account on the MacAda list but was unauthorised to post
> messages, therefore I make an attempt to post here. Is it possible to
> compile C programming language files for import into an Ada
> application on the Mac OS X with the new Apple silicon hardware? Or
> should I just give up?

You need to compile those C files with GCC 12.2.0 (or clang).

This is the commit: https://github.com/gcc-mirror/gcc/commit/6725f186cb70d48338f69456864bf469a12ee5be

Joakim Strandberg

unread,
Apr 4, 2023, 10:20:24 AM4/4/23
to
Thanks Simon, that does the trick. I can compile the C file with "clang -c c_linux_api.c" and then use the c_linux_api.o for the linking of the application. Thanks!

Best regards,
Joakim
0 new messages