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,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: ALR unable to get many packages Date: Sat, 05 Aug 2023 08:28:53 +0100 Organization: A noiseless patient Spider Message-ID: References: <616ebbaf-0483-4af6-9249-e083bf36bcf8n@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: dont-email.me; posting-host="b3e38a66e93065b763b397acd012a8a3"; logging-data="1763902"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18oXJswac66IQP6GFkHkhHtpu9rKNztD0Y=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin) Cancel-Lock: sha1:03dQrxCuX2jemSv6KibdYK1vZbk= sha1:moQJlpq5ekPmSBKY3BKhdtx7ui4= Xref: news.eternal-september.org comp.lang.ada:65486 List-Id: Kenneth Wolcott writes: > I am on a Mac Mini with an M1 chip and I have GNAT Ada 13.1 (thanks Simon!) 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 > 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. > > Is ALR incompatible with an external GNAT compiler? No. Which version of alr are you using? If it's 2.0-dev (from my build, see below, for Apple silicon) then it understands Homebrew. https://github.com/simonjwright/alire-index.mac/releases/tag/alr_binary_aarch64-1.0.0 Not all index entries for external packages have been updated to include Homebrew links (this includes openssl), but you should still be able to say "brew install " and have it work. At present, you need to have something like this in your startup scripts: working on it! eval $(/opt/homebrew/bin/brew shellenv) export C_INCLUDE_PATH=$HOMEBREW_PREFIX/include export LIBRARY_PATH=$HOMEBREW_PREFIX/lib > What am I doing wrong here? Running past the wavefront :-( > alr --no-color get aws It took me a while to work out that I needed to use --no-color. Investigating what's going wrong. > Warning: > Warning: New solution is incomplete. > Warning: +i gnat 13.1.0 (new,installed,gnat_external) > Warning: + gnatcoll 23.0.0 (new) > Warning: + libgpr 23.0.0 (new,indirect) > Warning: + make 3.81.0 (new) > Warning: +~ openssl * (new,external) > Warning: + xmlada 23.0.0 (new) > Warning: > Warning: Could not find a complete solution for aws=23.0.0 > Build will fail unless externals are made available, do you want to continue? > [Y] Yes [N] No (default is No) n > ERROR: Crate retrieval abandoned. If you "brew install openssl" you should be able to say "Y" here. I found there was an extra setting required: alr build -- -XTARGET=aarch64-apple-darwin21 (find the correct setting by "gcc -v" and looking at the "Target:" line).