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,FREEMAIL_FROM, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a05:620a:6882:b0:75b:2820:8baf with SMTP id rv2-20020a05620a688200b0075b28208bafmr14789qkn.10.1691269346079; Sat, 05 Aug 2023 14:02:26 -0700 (PDT) X-Received: by 2002:a05:6870:b790:b0:1bf:5a7d:3754 with SMTP id ed16-20020a056870b79000b001bf5a7d3754mr6001419oab.3.1691269345634; Sat, 05 Aug 2023 14:02:25 -0700 (PDT) Path: eternal-september.org!news.eternal-september.org!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: Sat, 5 Aug 2023 14:02:25 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=98.59.238.112; posting-account=oHOvdQoAAACYgyEBjgPNvKFOGxg8pNns NNTP-Posting-Host: 98.59.238.112 References: <616ebbaf-0483-4af6-9249-e083bf36bcf8n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: ALR unable to get many packages From: Kenneth Wolcott Injection-Date: Sat, 05 Aug 2023 21:02:26 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:65487 List-Id: On Saturday, August 5, 2023 at 12:28:59=E2=80=AFAM UTC-7, Simon Wright wrot= e: > Kenneth Wolcott writes:=20 >=20 > > I am on a Mac Mini with an M1 chip and I have GNAT Ada 13.1 (thanks Sim= on!) > I take it you're using the aarch64 (Apple silicon) version? > > ALR does not work very well for me. I am unable to "alr get" many=20 > > packages (see below for an example). > Please let me know which (external) packages you're having trouble with. > > Updating the index does not help in most of these cases.=20 > >=20 > > Is ALR incompatible with an external GNAT compiler? > No.=20 >=20 > Which version of alr are you using? If it's 2.0-dev (from my build, see= =20 > below, for Apple silicon) then it understands Homebrew.=20 >=20 > https://github.com/simonjwright/alire-index.mac/releases/tag/alr_binary_a= arch64-1.0.0=20 >=20 > Not all index entries for external packages have been updated to include= =20 > Homebrew links (this includes openssl), but you should still be able to= =20 > say "brew install " and have it work.=20 >=20 > At present, you need to have something like this in your startup=20 > scripts: working on it!=20 >=20 > eval $(/opt/homebrew/bin/brew shellenv)=20 > export C_INCLUDE_PATH=3D$HOMEBREW_PREFIX/include=20 > export LIBRARY_PATH=3D$HOMEBREW_PREFIX/lib > > What am I doing wrong here? > Running past the wavefront :-(=20 >=20 > > alr --no-color get aws=20 >=20 > It took me a while to work out that I needed to use=20 > --no-color. Investigating what's going wrong. > > Warning:=20 > > Warning: New solution is incomplete.=20 > > Warning: +i gnat 13.1.0 (new,installed,gnat_external)=20 > > Warning: + gnatcoll 23.0.0 (new)=20 > > Warning: + libgpr 23.0.0 (new,indirect)=20 > > Warning: + make 3.81.0 (new)=20 > > Warning: +~ openssl * (new,external)=20 > > Warning: + xmlada 23.0.0 (new)=20 > > Warning:=20 > > Warning: Could not find a complete solution for aws=3D23.0.0=20 > > Build will fail unless externals are made available, do you want to con= tinue?=20 > > [Y] Yes [N] No (default is No) n=20 > > ERROR: Crate retrieval abandoned. > If you "brew install openssl" you should be able to say "Y" here.=20 >=20 > I found there was an extra setting required:=20 >=20 > alr build -- -XTARGET=3Daarch64-apple-darwin21=20 >=20 > (find the correct setting by "gcc -v" and looking at the "Target:" line). Hi Simon; So I guess it is fair to say that ALR depends on homebrew and ALR will no= t work at all if there is a dependency on some C headers or libraries that = can only be provided by homebrew? Thanks, Ken