comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: ANN: GCC 11.1.0 for macOS
Date: Thu, 10 Jun 2021 17:21:57 +0100	[thread overview]
Message-ID: <lytum5wuze.fsf@pushface.org> (raw)
In-Reply-To: lyeeep2j8m.fsf@pushface.org

Simon Wright <simon@pushface.org> 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?

      parent reply	other threads:[~2021-06-10 16:21 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-02 16:28 ANN: GCC 11.1.0 for macOS Simon Wright
2021-05-02 16:54 ` Dmitry A. Kazakov
2021-05-04 17:47   ` Stephen Leake
2021-05-04 20:12     ` Dmitry A. Kazakov
2021-05-03  8:29 ` J-P. Rosen
2021-05-03 10:46   ` Luke A. Guest
2021-05-03 11:50     ` J-P. Rosen
2021-05-03 11:14   ` Simon Wright
2021-05-03 15:16 ` Bill Findlay
2021-05-03 15:44   ` Simon Wright
2021-05-04 15:20 ` Simon Wright
2021-05-23  7:32 ` Blady
2021-06-10 16:21 ` Simon Wright [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