From: Joakim Strandberg <joakim.strandberg@elk-studios.com>
Subject: Re: [ANN] XNAdaLib and GNATStudio 2022 binaries for macOS Monterey.
Date: Tue, 4 Apr 2023 07:20:22 -0700 (PDT) [thread overview]
Message-ID: <096d5dba-2554-4d7f-b6ae-dcf2b53e9863n@googlegroups.com> (raw)
In-Reply-To: <ly8rf7hi41.fsf@pushface.org>
On Tuesday, April 4, 2023 at 3:50:10 PM UTC+2, Simon Wright wrote:
> 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
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
prev parent reply other threads:[~2023-04-04 14:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-26 8:07 [ANN] XNAdaLib and GNATStudio 2022 binaries for macOS Monterey Blady
2023-04-04 10:02 ` Joakim Strandberg
2023-04-04 13:50 ` Simon Wright
2023-04-04 14:20 ` Joakim Strandberg [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox