Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

If it's not in the computer, it doesn't exist.


devel / comp.lang.ada / GNAT linking and macOS

SubjectAuthor
* GNAT linking and macOSmoi
`* Re: GNAT linking and macOSSimon Wright
 `* Re: GNAT linking and macOSSimon Wright
  +- Re: GNAT linking and macOShn...@yahoo.de
  +* Re: GNAT linking and macOShn...@yahoo.de
  |+- Re: GNAT linking and macOSmoi
  |`- Re: GNAT linking and macOSSimon Wright
  `* Re: GNAT linking and macOSKenneth Wolcott
   `* Re: GNAT linking and macOSSimon Wright
    `* Re: GNAT linking and macOSKenneth Wolcott
     `- Re: GNAT linking and macOSSimon Wright

1
GNAT linking and macOS

<knje69F1tamU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=10137&group=comp.lang.ada#10137

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: findlaybill@blueyonder.co.uk (moi)
Newsgroups: comp.lang.ada
Subject: GNAT linking and macOS
Date: Wed, 27 Sep 2023 20:30:17 +0100
Lines: 9
Message-ID: <knje69F1tamU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net NiyIXbs/BEvsa+Robh8M2glcBNotsB9LYRY5b/DizHFGB8MGWm
Cancel-Lock: sha1:c9UmDkw2zhexbVbpWAgt11/+QeI= sha256:ZAvaLVbNUzD8gQy+uLSFrS2ik/iDH/0PPUPmiOhfNg0=
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
 by: moi - Wed, 27 Sep 2023 19:30 UTC

I installed 14.0, Sonoma, on my M1 Mac last night.

The good news:

Using GNAT 12.2.0, it all just works, *so long as* I REMOVE
'-largs -Wl,-ld_classic' from the linker options!

--
Bill F.

Re: GNAT linking and macOS

<lymsx6mni8.fsf@pushface.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=10143&group=comp.lang.ada#10143

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: simon@pushface.org (Simon Wright)
Newsgroups: comp.lang.ada
Subject: Re: GNAT linking and macOS
Date: Thu, 28 Sep 2023 14:32:47 +0100
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <lymsx6mni8.fsf@pushface.org>
References: <knje69F1tamU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="f11e4b71224519ee7e9dc80c08b5d4c4";
logging-data="3896174"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19RRjI0lsqcRgAiXSpIuWzHj0hqr0NlQUk="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin)
Cancel-Lock: sha1:uPQg+zLVujuAbmXwWRhNtayvvZg=
sha1:VlMOoFrT6AeDlz0E5P2KEFn4cUo=
 by: Simon Wright - Thu, 28 Sep 2023 13:32 UTC

moi <findlaybill@blueyonder.co.uk> writes:

> I installed 14.0, Sonoma, on my M1 Mac last night.
>
> The good news:
>
> Using GNAT 12.2.0, it all just works, *so long as* I REMOVE
> '-largs -Wl,-ld_classic' from the linker options!

Likewise, but that didn't work for me.

It turns out there's an environment variable DEFAULT_LINKER, which with
the 15.0 CLT would be set to

export DEFAULT_LINKER=/Library/Developer/CommandLineTools/usr/bin/ld-classic

(the Xcode equivalent is much longer & more inscrutable)

I haven't tried this.

Re: GNAT linking and macOS

<lybkdmm2s2.fsf@pushface.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=10146&group=comp.lang.ada#10146

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: simon@pushface.org (Simon Wright)
Newsgroups: comp.lang.ada
Subject: Re: GNAT linking and macOS
Date: Thu, 28 Sep 2023 22:00:29 +0100
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <lybkdmm2s2.fsf@pushface.org>
References: <knje69F1tamU1@mid.individual.net> <lymsx6mni8.fsf@pushface.org>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="f11e4b71224519ee7e9dc80c08b5d4c4";
logging-data="4056662"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+kVuEVx7S+3zDPUvP6ZoYMyrRE20vf4aY="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin)
Cancel-Lock: sha1:5547qu8CSgRmMimbYTKgheaKrLM=
sha1:OXH+pqFN8wr34F1FvBSeP47fVWE=
 by: Simon Wright - Thu, 28 Sep 2023 21:00 UTC

Simon Wright <simon@pushface.org> writes:

> moi <findlaybill@blueyonder.co.uk> writes:
>
>> I installed 14.0, Sonoma, on my M1 Mac last night.
>>
>> The good news:
>>
>> Using GNAT 12.2.0, it all just works, *so long as* I REMOVE
>> '-largs -Wl,-ld_classic' from the linker options!
>
> Likewise, but that didn't work for me.

You can't reinstall the 14.3 CLT under Sonoma (it's "too old"). I
reinstalled from a Time Machine backup, but if you don't have that set
up I'd recommend taking a copy of /Library/Developer/CommandLineTools
before updating to 15.0.

> It turns out there's an environment variable DEFAULT_LINKER, which with
[...]
> I haven't tried this.

This affects building the compiler, not using it.

Re: GNAT linking and macOS

<6c8ece56-9546-4ea9-9af7-99de1327bea4n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=10154&group=comp.lang.ada#10154

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:620a:2b43:b0:76f:f0e:e650 with SMTP id dp3-20020a05620a2b4300b0076f0f0ee650mr63328qkb.9.1696018746871;
Fri, 29 Sep 2023 13:19:06 -0700 (PDT)
X-Received: by 2002:a05:6808:1405:b0:3a8:45f0:b83a with SMTP id
w5-20020a056808140500b003a845f0b83amr2342440oiv.5.1696018746656; Fri, 29 Sep
2023 13:19:06 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Fri, 29 Sep 2023 13:19:06 -0700 (PDT)
In-Reply-To: <lybkdmm2s2.fsf@pushface.org>
Injection-Info: google-groups.googlegroups.com; posting-host=2a03:7405:401b:f00:700a:f88e:37fb:db18;
posting-account=3Fg1FgoAAACfsmWScNfMD1tGFhR4DU0o
NNTP-Posting-Host: 2a03:7405:401b:f00:700a:f88e:37fb:db18
References: <knje69F1tamU1@mid.individual.net> <lymsx6mni8.fsf@pushface.org> <lybkdmm2s2.fsf@pushface.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6c8ece56-9546-4ea9-9af7-99de1327bea4n@googlegroups.com>
Subject: Re: GNAT linking and macOS
From: hnptz@yahoo.de (hn...@yahoo.de)
Injection-Date: Fri, 29 Sep 2023 20:19:06 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2116
 by: hn...@yahoo.de - Fri, 29 Sep 2023 20:19 UTC

On Thursday, September 28, 2023 at 11:00:33 PM UTC+2, Simon Wright wrote:
> Simon Wright <si...@pushface.org> writes:
>
> > moi <findl...@blueyonder.co.uk> writes:
> >
> >> I installed 14.0, Sonoma, on my M1 Mac last night.
> >>
> >> The good news:
> >>
> >> Using GNAT 12.2.0, it all just works, *so long as* I REMOVE
> >> '-largs -Wl,-ld_classic' from the linker options!
> >
> > Likewise, but that didn't work for me.
> You can't reinstall the 14.3 CLT under Sonoma (it's "too old"). I
> reinstalled from a Time Machine backup, but if you don't have that set
> up I'd recommend taking a copy of /Library/Developer/CommandLineTools
> before updating to 15.0.
> > It turns out there's an environment variable DEFAULT_LINKER, which with
> [...]
> > I haven't tried this.
> This affects building the compiler, not using it.

Re: GNAT linking and macOS

<0432e5f4-a21f-4538-b1d9-7abe10b31c66n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=10155&group=comp.lang.ada#10155

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:6214:a51:b0:656:33fa:350b with SMTP id ee17-20020a0562140a5100b0065633fa350bmr67157qvb.2.1696019179945;
Fri, 29 Sep 2023 13:26:19 -0700 (PDT)
X-Received: by 2002:a05:6808:2121:b0:3a7:3b45:74ed with SMTP id
r33-20020a056808212100b003a73b4574edmr2425603oiw.0.1696019179757; Fri, 29 Sep
2023 13:26:19 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Fri, 29 Sep 2023 13:26:19 -0700 (PDT)
In-Reply-To: <lybkdmm2s2.fsf@pushface.org>
Injection-Info: google-groups.googlegroups.com; posting-host=2a03:7405:401b:f00:700a:f88e:37fb:db18;
posting-account=3Fg1FgoAAACfsmWScNfMD1tGFhR4DU0o
NNTP-Posting-Host: 2a03:7405:401b:f00:700a:f88e:37fb:db18
References: <knje69F1tamU1@mid.individual.net> <lymsx6mni8.fsf@pushface.org> <lybkdmm2s2.fsf@pushface.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0432e5f4-a21f-4538-b1d9-7abe10b31c66n@googlegroups.com>
Subject: Re: GNAT linking and macOS
From: hnptz@yahoo.de (hn...@yahoo.de)
Injection-Date: Fri, 29 Sep 2023 20:26:19 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2279
 by: hn...@yahoo.de - Fri, 29 Sep 2023 20:26 UTC

On Thursday, September 28, 2023 at 11:00:33 PM UTC+2, Simon Wright wrote:
> Simon Wright <si...@pushface.org> writes:
>
> > moi <findl...@blueyonder.co.uk> writes:
> >
> >> I installed 14.0, Sonoma, on my M1 Mac last night.
> >>
> >> The good news:
> >>
> >> Using GNAT 12.2.0, it all just works, *so long as* I REMOVE
> >> '-largs -Wl,-ld_classic' from the linker options!
> >
> > Likewise, but that didn't work for me.
> You can't reinstall the 14.3 CLT under Sonoma (it's "too old"). I
> reinstalled from a Time Machine backup, but if you don't have that set
> up I'd recommend taking a copy of /Library/Developer/CommandLineTools
> before updating to 15.0.
> > It turns out there's an environment variable DEFAULT_LINKER, which with
> [...]
> > I haven't tried this.
> This affects building the compiler, not using it.

What exactly is meant by "Using GNAT 12.2.0"? I put gcc-13.2.0 in ~/.zshrc.
Then I got Could not locate executable on path: gprbuild.
What do i miss?

Re: GNAT linking and macOS

<knp9otFqb5U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=10156&group=comp.lang.ada#10156

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: findlaybill@blueyonder.co.uk (moi)
Newsgroups: comp.lang.ada
Subject: Re: GNAT linking and macOS
Date: Sat, 30 Sep 2023 01:51:41 +0100
Lines: 38
Message-ID: <knp9otFqb5U1@mid.individual.net>
References: <knje69F1tamU1@mid.individual.net> <lymsx6mni8.fsf@pushface.org>
<lybkdmm2s2.fsf@pushface.org>
<0432e5f4-a21f-4538-b1d9-7abe10b31c66n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net A1eSOE/RpnEfJQ4Zx1IDuAHc97/rMpEb3JTCtJFhLZSpPG3ntV
Cancel-Lock: sha1:8Mwvi4Qsdhwu/ewOcRNf5wKcAY0= sha256:4Oxx2UpnGnCScQRqSU53sp1aqpJwrvsVapLBhkpzNxI=
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
In-Reply-To: <0432e5f4-a21f-4538-b1d9-7abe10b31c66n@googlegroups.com>
 by: moi - Sat, 30 Sep 2023 00:51 UTC

On 29/09/2023 21:26, hn...@yahoo.de wrote:
> On Thursday, September 28, 2023 at 11:00:33 PM UTC+2, Simon Wright wrote:
>> Simon Wright <si...@pushface.org> writes:
>>
>>> moi <findl...@blueyonder.co.uk> writes:
>>>
>>>> I installed 14.0, Sonoma, on my M1 Mac last night.
>>>>
>>>> The good news:
>>>>
>>>> Using GNAT 12.2.0, it all just works, *so long as* I REMOVE
>>>> '-largs -Wl,-ld_classic' from the linker options!
>>>
>>> Likewise, but that didn't work for me.
>> You can't reinstall the 14.3 CLT under Sonoma (it's "too old"). I
>> reinstalled from a Time Machine backup, but if you don't have that set
>> up I'd recommend taking a copy of /Library/Developer/CommandLineTools
>> before updating to 15.0.
>>> It turns out there's an environment variable DEFAULT_LINKER, which with
>> [...]
>>> I haven't tried this.
>> This affects building the compiler, not using it.
>
> What exactly is meant by "Using GNAT 12.2.0"? I put gcc-13.2.0 in ~/.zshrc.
> Then I got Could not locate executable on path: gprbuild.
> What do i miss?

It means using the version that announces itself
at the head of the source listing as:

"GNAT 12.2.0
Copyright 1992-2022, Free Software Foundation, Inc."

What exactly is meant by "I put gcc-13.2.0 in ~/.zshrc"?

--
Bill F.

Re: GNAT linking and macOS

<e2a2223e-621e-4987-95b3-61e3349a9238n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=10157&group=comp.lang.ada#10157

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:620a:a43:b0:773:af88:ed4e with SMTP id j3-20020a05620a0a4300b00773af88ed4emr68186qka.6.1696041027895;
Fri, 29 Sep 2023 19:30:27 -0700 (PDT)
X-Received: by 2002:a05:6870:b7b1:b0:1dc:8274:a1c with SMTP id
ed49-20020a056870b7b100b001dc82740a1cmr2256095oab.10.1696041027664; Fri, 29
Sep 2023 19:30:27 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Fri, 29 Sep 2023 19:30:27 -0700 (PDT)
In-Reply-To: <lybkdmm2s2.fsf@pushface.org>
Injection-Info: google-groups.googlegroups.com; posting-host=98.59.238.112; posting-account=oHOvdQoAAACYgyEBjgPNvKFOGxg8pNns
NNTP-Posting-Host: 98.59.238.112
References: <knje69F1tamU1@mid.individual.net> <lymsx6mni8.fsf@pushface.org> <lybkdmm2s2.fsf@pushface.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e2a2223e-621e-4987-95b3-61e3349a9238n@googlegroups.com>
Subject: Re: GNAT linking and macOS
From: kennethwolcott@gmail.com (Kenneth Wolcott)
Injection-Date: Sat, 30 Sep 2023 02:30:27 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 70
 by: Kenneth Wolcott - Sat, 30 Sep 2023 02:30 UTC

Hi Simon;

>I'd recommend taking a copy of /Library/Developer/CommandLineTools
> before updating to 15.0.

Well, I should have done this, but I didn't...

> > It turns out there's an environment variable DEFAULT_LINKER, which with

I tried this (xport DEFAULT_LINKER=/Library/Developer/CommandLineTools/usr/bin/ld-classic) and it did not help:

Using:

/opt/gcc-13.1.0-aarch64/bin/gnatmake --version
GNATMAKE 13.1.0

-- This is from Rosetta Code:

with Ada.Text_IO; use Ada.Text_IO;

procedure Test_Short_Circuit is
function A (Value : Boolean) return Boolean is
begin
Put (" A=" & Boolean'Image (Value));
return Value;
end A;
function B (Value : Boolean) return Boolean is
begin
Put (" B=" & Boolean'Image (Value));
return Value;
end B;
begin
for I in Boolean'Range loop
for J in Boolean'Range loop
Put (" (A and then B)=" & Boolean'Image (A (I) and then B (J)));
New_Line;
end loop;
end loop;
for I in Boolean'Range loop
for J in Boolean'Range loop
Put (" (A or else B)=" & Boolean'Image (A (I) or else B (J)));
New_Line;
end loop;
end loop;
end Test_Short_Circuit;

gnatmake test_short_circuit.adb
gcc -c test_short_circuit.adb
gnatbind -x test_short_circuit.ali
gnatlink test_short_circuit.ali
-macosx_version_min has been renamed to -macos_version_min
ld: warning: ignoring duplicate libraries: '-lgcc'
0 0x10306b648 __assert_rtn + 72
1 0x102f9ffac ld::AtomPlacement::findAtom(unsigned char, unsigned long long, ld::AtomPlacement::AtomLoc const*&, long long&) const + 1204
2 0x102fb5924 ld::InputFiles::SliceParser::parseObjectFile(mach_o::Header const*) const + 15164
3 0x102fc304c ld::InputFiles::parseAllFiles(void (ld::AtomFile const*) block_pointer)::$_7::operator()(unsigned long, ld::FileInfo const&) const + 960
4 0x18e36d950 _dispatch_client_callout2 + 20
5 0x18e3821a4 _dispatch_apply_invoke_and_wait + 176
6 0x18e381464 _dispatch_apply_with_attr_f + 1176
7 0x18e381650 dispatch_apply + 96
8 0x10303d3b8 ld::AtomFileConsolidator::parseFiles(bool) + 292
9 0x102fde170 main + 9048
ld: Assertion failed: (resultIndex < sectData.atoms.size()), function findAtom, file Relocations.cpp, line 1336.
collect2: error: ld returned 1 exit status
gnatlink: error when calling /opt/gcc-13.1.0-aarch64/bin/gcc
gnatmake: *** link failed.

Are there any other workarounds to solve the inability to link? This does not only adversely affect Ada, but everything that uses a linker, BTW.

Thanks,
Ken Wolcott

Re: GNAT linking and macOS

<ly7co7n4ua.fsf@pushface.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=10158&group=comp.lang.ada#10158

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: simon@pushface.org (Simon Wright)
Newsgroups: comp.lang.ada
Subject: Re: GNAT linking and macOS
Date: Sat, 30 Sep 2023 14:55:09 +0100
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <ly7co7n4ua.fsf@pushface.org>
References: <knje69F1tamU1@mid.individual.net> <lymsx6mni8.fsf@pushface.org>
<lybkdmm2s2.fsf@pushface.org>
<e2a2223e-621e-4987-95b3-61e3349a9238n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="7d3274ce33089df2409f384514a28a04";
logging-data="971700"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18uXY81n1yBi1D+3LHNNfkiHV8RAzjE2pE="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin)
Cancel-Lock: sha1:iDwUUpHjDprtBWR76jGxw0dBkwM=
sha1:Rxyh8fSaKGXLPEON6WtjUgkaEDg=
 by: Simon Wright - Sat, 30 Sep 2023 13:55 UTC

Kenneth Wolcott <kennethwolcott@gmail.com> writes:

>> > It turns out there's an environment variable DEFAULT_LINKER, which with
>
> I tried this (xport
> DEFAULT_LINKER=/Library/Developer/CommandLineTools/usr/bin/ld-classic)
> and it did not help:

As I said above, this only affects building GCC, not using it. Sorry.

> Are there any other workarounds to solve the inability to link? This
> does not only adversely affect Ada, but everything that uses a linker,
> BTW.

I have some evidence that the issue only arises with static
libraries. Not much help.

We're hoping that the 15.1 release of Command Line Tools fixes this. In
the meantime,

(1) using gnatmake, or gprbuild without changing the GPR:

$ gnatmake foo.adb -largs -Wl,-ld_classic
or
$ gprbuild -P foo -largs -Wl,-ld_classic

(2) modifying the GPR by adding a new package Linker:

package Linker is
for Default_Switches ("ada") use ("-Wl,-ld_classic");
end Linker;

(3) if you already have a package Linker, modify as above.

Re: GNAT linking and macOS

<ly34yvn3o9.fsf@pushface.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=10159&group=comp.lang.ada#10159

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: simon@pushface.org (Simon Wright)
Newsgroups: comp.lang.ada
Subject: Re: GNAT linking and macOS
Date: Sat, 30 Sep 2023 15:20:22 +0100
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <ly34yvn3o9.fsf@pushface.org>
References: <knje69F1tamU1@mid.individual.net> <lymsx6mni8.fsf@pushface.org>
<lybkdmm2s2.fsf@pushface.org>
<0432e5f4-a21f-4538-b1d9-7abe10b31c66n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="7d3274ce33089df2409f384514a28a04";
logging-data="985846"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18BUfXu4rDk4A8V4ggKPlpN/mW5irjyqec="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin)
Cancel-Lock: sha1:aTZ3J0rRL4ss6PLAK/03bB+iC4E=
sha1:uouH7cf9Mjf+I1gmGAqxGRZxbss=
 by: Simon Wright - Sat, 30 Sep 2023 14:20 UTC

"hn...@yahoo.de" <hnptz@yahoo.de> writes:

> What exactly is meant by "Using GNAT 12.2.0"? I put gcc-13.2.0 in ~/.zshrc.
> Then I got Could not locate executable on path: gprbuild.
> What do i miss?

First, I asked above where you got GCC 13.2.0 from; you certainly didn't
get it from one of my builds.

If you got it via Homebrew, then be aware that homebrew's gcc *does*
*not* *support* *Ada* (or gprbuild).

There are two ways I know of for getting hold of GNAT and gprbuild:

(1) go to https://alire.ada.dev/docs/#introduction and follow the steps
at 'alr for macOS', then 'First steps' ... This provides GCC 12.2.0 for
x86_64 (intel), which runs on an M1/M2 mac under Rosetta.

(2) go to my release page at
https://github.com/simonjwright/distributing-gcc/releases and download

for Intel:
https://github.com/simonjwright/distributing-gcc/releases/tag/gcc-13.1.0-x86_64

for M1/M2:
https://github.com/simonjwright/distributing-gcc/releases/tag/gcc-13.1.0-aarch64-2

(in both cases, the actual download is found under Assets at the bottom
of the page; but please read the release notes for what's included and
how to install).

Re: GNAT linking and macOS

<00e88f44-a9b8-4a66-8756-2c2e27e07489n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=10161&group=comp.lang.ada#10161

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:622a:1a1a:b0:40f:e2a5:3100 with SMTP id f26-20020a05622a1a1a00b0040fe2a53100mr142369qtb.6.1696118278406;
Sat, 30 Sep 2023 16:57:58 -0700 (PDT)
X-Received: by 2002:a9d:6b82:0:b0:6b9:cf90:87a6 with SMTP id
b2-20020a9d6b82000000b006b9cf9087a6mr2587926otq.1.1696118278207; Sat, 30 Sep
2023 16:57:58 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Sat, 30 Sep 2023 16:57:57 -0700 (PDT)
In-Reply-To: <ly7co7n4ua.fsf@pushface.org>
Injection-Info: google-groups.googlegroups.com; posting-host=98.59.238.112; posting-account=oHOvdQoAAACYgyEBjgPNvKFOGxg8pNns
NNTP-Posting-Host: 98.59.238.112
References: <knje69F1tamU1@mid.individual.net> <lymsx6mni8.fsf@pushface.org>
<lybkdmm2s2.fsf@pushface.org> <e2a2223e-621e-4987-95b3-61e3349a9238n@googlegroups.com>
<ly7co7n4ua.fsf@pushface.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <00e88f44-a9b8-4a66-8756-2c2e27e07489n@googlegroups.com>
Subject: Re: GNAT linking and macOS
From: kennethwolcott@gmail.com (Kenneth Wolcott)
Injection-Date: Sat, 30 Sep 2023 23:57:58 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2087
 by: Kenneth Wolcott - Sat, 30 Sep 2023 23:57 UTC

Hi Simon;

> We're hoping that the 15.1 release of Command Line Tools fixes this.

+1

> In the meantime,
>
> (1) using gnatmake, or gprbuild without changing the GPR:
>
> $ gnatmake foo.adb -largs -Wl,-ld_classic
> or
> $ gprbuild -P foo -largs -Wl,-ld_classic
>
> (2) modifying the GPR by adding a new package Linker:
>
> package Linker is
> for Default_Switches ("ada") use ("-Wl,-ld_classic");
> end Linker;
>
> (3) if you already have a package Linker, modify as above.

I chose option #1a...

Using the Turtle Graphics Rosetta Code example for Ada, I was able to get a successful compile+link:

gnatmake main.adb -largs -Wl,-ld_classic
gcc -c main.adb
gnatbind -x main.ali
gnatlink main.ali -Wl,-ld_classic
-macosx_version_min has been renamed to -macos_version_min

Appreciate the suggestions...

Thanks,
Ken

Re: GNAT linking and macOS

<lyy1gmlqq9.fsf@pushface.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=10162&group=comp.lang.ada#10162

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: simon@pushface.org (Simon Wright)
Newsgroups: comp.lang.ada
Subject: Re: GNAT linking and macOS
Date: Sun, 01 Oct 2023 08:57:34 +0100
Organization: A noiseless patient Spider
Lines: 5
Message-ID: <lyy1gmlqq9.fsf@pushface.org>
References: <knje69F1tamU1@mid.individual.net> <lymsx6mni8.fsf@pushface.org>
<lybkdmm2s2.fsf@pushface.org>
<e2a2223e-621e-4987-95b3-61e3349a9238n@googlegroups.com>
<ly7co7n4ua.fsf@pushface.org>
<00e88f44-a9b8-4a66-8756-2c2e27e07489n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="cc34608b05b7a5f03583669343e1fbac";
logging-data="1546028"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Sk5/SZyrA/nzA8kS+omnji2pZtyk2brs="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin)
Cancel-Lock: sha1:74WLmKznSsOP3MV7X9E5G2euX4c=
sha1:EDlSHlasGvGxOhZ02a2Yembr9xg=
 by: Simon Wright - Sun, 1 Oct 2023 07:57 UTC

Kenneth Wolcott <kennethwolcott@gmail.com> writes:

> -macosx_version_min has been renamed to -macos_version_min

This will be fixed in GCC 14.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor