From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader02.eternal-september.org!2.eu.feeder.erje.net!feeder.erje.net!news.uzoreto.com!aioe.org!yy9MKEJN2ULhWGfnfq4v5w.user.gioia.aioe.org.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: ANN: GCC 11.1.0 for macOS Date: Thu, 10 Jun 2021 17:21:57 +0100 Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: yy9MKEJN2ULhWGfnfq4v5w.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin) X-Notice: Filtered by postfilter v. 0.9.2 Cancel-Lock: sha1:TkrF1r86d6i4yJO2VInUEEXWpEQ= Xref: reader02.eternal-september.org comp.lang.ada:62168 List-Id: Simon Wright writes: > GCC 11.1.0 x86_64-apple-darwin for macOS is available at: > > https://sourceforge.net/projects/gnuada/files/GNAT_GCC%20Mac%20OS%20X/11.1.0/native This release contains versions of gnatstub, gnattest, gnatpp and gnatmetric which fail to load: $ /opt/gcc-11.1.0/bin/gnattest --help dyld: Library not loaded: @rpath/libgnarl-11.dylib Referenced from: /opt/gcc-11.1.0/bin/gnattest Reason: image not found Abort trap: 6 Workround: export DYLD_FALLBACK_LIBRARY_PATH=/opt/gcc-11.1.0/lib/gcc/x86_64-apple-darwin15/11.1.0/adalib ~~~~~~~~~~~~~~~~~~~ You may not be aware that gprbuild now lets you specify building standalone static libraries "for Library_Interface use (list-of-units);" - this doesn't work on macOS, and in fact cannot work, because it uses features of binutils object binaries that aren't available in Mach-O. The effect of this is that a static link against such a library will fail if the library involves any tasking. If you try to fix this by using the relocatable version, and then move the executable, it won't find the GNAT runtime dylibs. I wonder why the GNAT runtime dylibs are all the way down there without a symlink in $prefix/lib?