comp.lang.ada
 help / color / mirror / Atom feed
From: Kenneth Wolcott <kennethwolcott@gmail.com>
Subject: Re: ALR unable to get many packages
Date: Sat, 5 Aug 2023 14:02:25 -0700 (PDT)	[thread overview]
Message-ID: <cd8f1247-1623-463a-801f-d569b55f0a06n@googlegroups.com> (raw)
In-Reply-To: <ly4jle9ccq.fsf@pushface.org>

On Saturday, August 5, 2023 at 12:28:59 AM UTC-7, Simon Wright wrote:
> 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 <whatever>" 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).

Hi Simon;

  So I guess it is fair to say that ALR depends on homebrew and ALR will not work at all if there is a dependency on some C headers or libraries that can only be provided by homebrew?

Thanks,
Ken

  reply	other threads:[~2023-08-05 21:02 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-04 20:09 ALR unable to get many packages Kenneth Wolcott
2023-08-05  7:28 ` Simon Wright
2023-08-05 21:02   ` Kenneth Wolcott [this message]
2023-08-05 21:58     ` Kenneth Wolcott
2023-08-06  8:26       ` Simon Wright
2023-08-05 22:12     ` Simon Wright
2023-08-05 22:41       ` Kenneth Wolcott
2023-08-06 11:30         ` Simon Wright
2023-08-06 23:20           ` Kenneth Wolcott
2023-08-06 23:29             ` Kenneth Wolcott
2023-08-07 13:14               ` Simon Wright
2023-08-07 15:05                 ` Simon Wright
2023-08-08  0:04                   ` Kenneth Wolcott
2023-08-08  8:38                     ` Simon Wright
2023-08-08 22:58                       ` Kenneth Wolcott
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox