I am on a Mac Mini with an M1 chip and I have GNAT Ada 13.1 (thanks Simon!)
ALR does not work very well for me. I am unable to "alr get" many
packages (see below for an example).
Updating the index does not help in most of these cases.
Is ALR incompatible with an external GNAT compiler?
What am I doing wrong here?
alr --no-color get aws
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.
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" manyPlease let me know which (external) packages you're having trouble with.
packages (see below for an example).
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:If you "brew install openssl" you should be able to say "Y" here.
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.
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).
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:If you "brew install openssl" you should be able to say "Y" here.
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.
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
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?
Kenneth Wolcott writes:
So I guess it is fair to say that ALR depends on homebrew and ALRSorry, but I've no idea how you got there from what I said!
will not work at all if there is a dependency on some C headers or libraries that can only be provided by homebrew?
BTW, Simon, I am NOW using your ALR package. I am using the following
build
alr --no-color build -- -XTARGET=arm64-apple-darwin22.6.0
I was able to "alr get" and successfully build only eight of the alr packages that I was interested in.
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".
If I don't install homebrew then what is it that I need to do to
achieve the objective? I'd like to use ALR, but it looks like it only
works for packages that are pure Ada (I'm not 100% sure of that, but
it seems to be the case).
So please show me what to do that will result in further progress with
ALR and an M1 chip without using homebrew...
TXT:233:-- This is the version for arm64-apple-darwin22.6.0^
TXT:234:^
TXT:240:with Interfaces.C.Strings;^
TXT:241:with System;^
TXT:243:with GNAT.OS_Lib;^
Kenneth Wolcott writes:
So please show me what to do that will result in further progress withNo guarantees here, but ..
ALR and an M1 chip without using homebrew...
If alr says that a particular external package isn't available, then
* instead of saying N say Y and install the requested package using port
* set these environment variables:
export C_INCLUDE_PATH=/opt/local/include
export CPLUS_INCLUDE_PATH=/opt/local/include
export LIBRARY_PATH=/opt/local/lib
make[1]: *** [../.build/arm64-apple-darwin22.6.0/debug/../setup/src/aws-os_lib.ads] Error 1
make: *** [config_setup] Error 2
The reason, I think, is that you have /usr/bin in your PATH before /opt/gcc-13.1.0-aarch64.
ONE:
sed issues (three instances):
sed: illegal option -- s
usage: sed script [-Ealnru] [-i extension] [file ...]
sed [-Ealnu] [-i extension] [-e script] ... [-f script_file] ... [file ...]
TWO:
gnatcoll-refcount.ads:90:04: warning: in instantiation at gnatcoll-storage_pools-headers.adb:57 [enabled by default]
gnatcoll-refcount.ads:90:04: warning: possible aliasing problem for type "Header_Access" [enabled by default]
gnatcoll-refcount.ads:90:04: warning: use -fno-strict-aliasing switch for references [enabled by default]
gnatcoll-refcount.ads:90:04: warning: or use "pragma No_Strict_Aliasing (Header_Access);" [enabled by default]
Lots of "Exploring..." would there be something useful here as far as something not pertinent being examined or something that was NOT
explored that should have been?
Lots of "Building"...If it doesn't complain then there's nothing
missing and nothing wrong with the C and Ada sources?
The process generates at least three times a warning something like
the following: "Generating possibly incomplete environment because of
missing dependencies"
What do I do now to ascertain the precise state of the alr aws package?
sed: illegal option -- sThis dosn't seem to do any harm.
usage: sed script [-Ealnru] [-i extension] [file ...]
sed [-Ealnu] [-i extension] [-e script] ... [-f script_file] ... [file ...]
See this PR: https://github.com/AdaCore/aws/pull/368
gnatcoll-refcount.ads:90:04: warningsThis set of warnings has been there for quite a while. I've never had a problem with it.
Lots of "Exploring..."I don't recall those messages ... I probably wasn't looking, so if the
build didn't stop I wouldn't have noticed
If it doesn't complain then there's nothingLots of "Building"...
missing and nothing wrong with the C and Ada sources?I'd say Yes
The process generates at least three times a warning something likeThat's because the alr you're using doesn't understand MacPorts. Watch
the following: "Generating possibly incomplete environment because of missing dependencies"
this space.
What do I do now to ascertain the precise state of the alr aws package?You could try
cd demos/hello_world
alr exec -- make TARGET=aarch64-apple-darwin21
./hello_world
and within 60 seconds open your browser on localhost:8080.
(the 'make' part rebuilds the whole of aws!!)
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 379 |
Nodes: | 16 (2 / 14) |
Uptime: | 44:50:44 |
Calls: | 8,141 |
Calls today: | 4 |
Files: | 13,085 |
Messages: | 5,858,055 |