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 Path: eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: [ANN] XNAdaLib and GNATStudio 2022 binaries for macOS Monterey. Date: Tue, 04 Apr 2023 14:50:06 +0100 Organization: A noiseless patient Spider Message-ID: References: <74e76699-a748-4d83-8411-cc1ce5a1f337n@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: dont-email.me; posting-host="628ed2318fd23c2fc3cf6c890221e7fa"; logging-data="3626898"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/32DxibQTchr6bjEsOHyfk8xJM4n5szps=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (darwin) Cancel-Lock: sha1:0Nx8OvliudkxyJjaOQ2PWCiv53s= sha1:EW6RQ51FCimJiqQn7fpvxogno2I= Xref: feeder.eternal-september.org comp.lang.ada:65069 List-Id: Joakim Strandberg 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 > : 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