From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a05:622a:424b:b0:3e6:43b8:7316 with SMTP id cq11-20020a05622a424b00b003e643b87316mr3129638qtb.2.1680618023210; Tue, 04 Apr 2023 07:20:23 -0700 (PDT) X-Received: by 2002:a25:d2ce:0:b0:b77:ae4b:1b27 with SMTP id j197-20020a25d2ce000000b00b77ae4b1b27mr1661527ybg.8.1680618022971; Tue, 04 Apr 2023 07:20:22 -0700 (PDT) Path: eternal-september.org!feeder.eternal-september.org!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 4 Apr 2023 07:20:22 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=178.132.75.214; posting-account=o0hFDQoAAACsNTYkhl2rrxOvNpovkrlF NNTP-Posting-Host: 178.132.75.214 References: <74e76699-a748-4d83-8411-cc1ce5a1f337n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <096d5dba-2554-4d7f-b6ae-dcf2b53e9863n@googlegroups.com> Subject: Re: [ANN] XNAdaLib and GNATStudio 2022 binaries for macOS Monterey. From: Joakim Strandberg Injection-Date: Tue, 04 Apr 2023 14:20:23 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: feeder.eternal-september.org comp.lang.ada:65070 List-Id: On Tuesday, April 4, 2023 at 3:50:10=E2=80=AFPM UTC+2, Simon Wright wrote: > Joakim Strandberg writes:=20 >=20 > > I've downloaded and installed the above on a M1 Apple laptop and it=20 > > works great. However, I can't compile .c files to be imported into an= =20 > > Ada application:=20 > >=20 > > /opt/gcc-12.1.0/bin/aarch64-apple-darwin21-gcc -c -x c -MMD -MF=20 > > c_linux_api.d=20 > > -specs=3D/private/var/folders/1h/7qcblcxj6z92hg5sf_t39y140000gn/T/GNAT-= TEMP-000004.TMP=20 > > /.../c_linux_api.c=20 > > : error: unknown value '13.0.0' of '-mmacosx-version-min'=20 > > gprbuild: *** compilation phase failed=20 > >=20 > > I created an account on the MacAda list but was unauthorised to post=20 > > messages, therefore I make an attempt to post here. Is it possible to= =20 > > compile C programming language files for import into an Ada=20 > > application on the Mac OS X with the new Apple silicon hardware? Or=20 > > should I just give up? > You need to compile those C files with GCC 12.2.0 (or clang).=20 >=20 > This is the commit: https://github.com/gcc-mirror/gcc/commit/6725f186cb70= d48338f69456864bf469a12ee5be 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 applic= ation. Thanks! Best regards, Joakim