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:658c:b0:765:942d:b19 with SMTP id qd12-20020a05620a658c00b00765942d0b19mr15231qkn.13.1691272723238; Sat, 05 Aug 2023 14:58:43 -0700 (PDT) X-Received: by 2002:a05:6808:1a1f:b0:3a7:2639:f835 with SMTP id bk31-20020a0568081a1f00b003a72639f835mr9349321oib.6.1691272723044; Sat, 05 Aug 2023 14:58:43 -0700 (PDT) Path: eternal-september.org!news.eternal-september.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: Sat, 5 Aug 2023 14:58:42 -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: <62e805a8-d705-4783-874b-73d4ecd19ff1n@googlegroups.com> Subject: Re: ALR unable to get many packages From: Kenneth Wolcott Injection-Date: Sat, 05 Aug 2023 21:58:43 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 5068 Xref: news.eternal-september.org comp.lang.ada:65488 List-Id: On Saturday, August 5, 2023 at 2:02:27=E2=80=AFPM UTC-7, Kenneth Wolcott wr= ote: > On Saturday, August 5, 2023 at 12:28:59=E2=80=AFAM UTC-7, Simon Wright wr= ote: > > Kenneth Wolcott writes:=20 > >=20 > > > I am on a Mac Mini with an M1 chip and I have GNAT Ada 13.1 (thanks S= imon!)=20 > > I take it you're using the aarch64 (Apple silicon) version?=20 > > > ALR does not work very well for me. I am unable to "alr get" many=20 > > > packages (see below for an example).=20 > > Please let me know which (external) packages you're having trouble with= .=20 > > > Updating the index does not help in most of these cases.=20 > > >=20 > > > Is ALR incompatible with an external GNAT compiler?=20 > > 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= _aarch64-1.0.0=20 > >=20 > > Not all index entries for external packages have been updated to includ= e=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=20 > > > What am I doing wrong here?=20 > > 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.=20 > > > 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 c= ontinue?=20 > > > [Y] Yes [N] No (default is No) n=20 > > > ERROR: Crate retrieval abandoned.=20 > > 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;=20 >=20 > 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?=20 >=20 > Thanks,=20 > Ken BTW, Simon, I am NOW using your ALR package. I am using the following build alr --no-color build -- -XTARGET=3Darm64-apple-darwin22.6.0 I was able to "alr get" and successfully build only eight of the alr packa= ges that I was interested in. ansiada_1.0.0_dc770a5a apdf_6.0.0_7c3ce4e9 aunit_23.0.0_84ce7d0b euler_tools_1.1.1_cf37e6f9 gnatcoll_23.0.0_29478a20 parse_args_0.9.0_635f9e4f stephes_ada_library_3.7.2_2b6a88f9 xmlada_23.0.0_70494123 Either the get failed or the compile failed. I'll assume that virtually al= l of those "get" failures are due to lack of a homebrew installation. I have MANY MacPorts port packages installed which I like very much. It seems clear that MacPorts and homebrew are not compatible (especially if= building packages using either or both of them). BTW: mathpaqs failed to build due to "digits value out of range, maximum is= 15". Thanks, Ken