Comments (5)
Yes, sorry, brainfart on my part. The effect should be similar. It's good you found a simple workaround for your case; we still will need to fix the issue.
from alire.
I think there's a possibility that running alr update
(so the just installed compiler is added to the solution) before the build could fix it.
Still, this points to a problem in the chain of events, as the compiler should be installed before attempting the solving. If the previous workaround indeed works, this would be a problem on only during a first run.
If the workaround doesn't work, that would point to some bad combo of the versions of gnat/gprbuild being used.
from alire.
I think there's a possibility that running alr update before the build could fix it.
I think I tried alr update
and it didn't work.
Still, this points to a problem in the chain of events, as the compiler should be installed before attempting the solving.
I tried with the following command:
alr toolchain --install "gnat"
alr toolchain --install "gprbuild"
alr get "atari_atr_tools"
PUSHD "atari_atr_tools_1.1.3_1e2cccbb"
alr build --release
POPD
And that indeed worked: Alire-Success.txt
Good enough work around for my use case.
from alire.
I guess it was --select
instead of --install
(which doesn't exist)? That should indeed have had the same effect as an alr update
, in the end the thing is that the toolchain be available before the crate dependencies are solved.
from alire.
Install is mentioned in the --help
text:
>alr toolchain --help
SUMMARY
Manage Alire-provided toolchains
USAGE
alr toolchain [options] [-u|--uninstall] [-i|--install crate[version set]] | --select [--local] [releases] [--disable-assistant]
OPTIONS
--disable-assistant Disable autorun of selection assistant
-i (--install) Install one or more toolchain component
--install-dir=ARG Toolchain component(s) installation directory
--local Store toolchain configuration in local workspace
--select Run the toolchain selection assistant
-u (--uninstall) Uninstall one or more toolchain component
GLOBAL OPTIONS
-c (--config=ARG) Override configuration folder location
-f (--force) Keep going after a recoverable troublesome situation
-h (--help) Display general or command-specific help
-n (--non-interactive) Assume default answers for all user prompts
--no-color Disables colors in output
--no-tty Disables control characters in output
--prefer-oldest Prefer oldest versions instead of newest when resolving dependencies
--version Displays version and exits
-q Limit output to errors
-v Be more verbose (use twice for extra detail)
-d (--debug[]) Enable debug-specific log messages
DESCRIPTION
Download toolchain elements, like GNAT and gprbuild, in the shared cache of
the active configuration.
Run it without arguments to get a list of downloaded tools.
Use --select without arguments to run the assistant to select the default
toolchain for this configuration. Adding --local will instead make the
selection apply only to the workspace (overriding a possible configuration-
wide selection). Giving one or more releases argument will skip the assistant
and set the release as the default.
Specify --install/--uninstall and one or more crates name with optional
version set to make available or remove a tool.
Run `alr help toolchains` for further information about toolchain management
and use.
And it seems to do what ist say it says. I guess I could used alr toolchain --select
as well but that would result in more questions. And I'm doing all of that to write an installation guide and that should have as little questions as possible and be as simple as possible.
I think the problem is that that the first command typed is not the developer use case (alr init
) but the end user use case (alr get
) and that that is not as well tested as most of us are developer.
from alire.
Related Issues (20)
- Default style checks too pedantic for the general public HOT 2
- alr can't find libgcc_s.1.dylib HOT 10
- Strange failure in CI with nightly Alire HOT 2
- Support for Apple Silicon
- 2.0.0 release breaks scripts with little guidance to fix
- Alire 2.0.0 release doesn't work on Ubuntu 20.04 HOT 4
- Unclear warning: Possible tilde intended instead of caret for a 0.x version. HOT 2
- Warn about unsupported platform for missing externals
- Auto `alr update` on changes of linked manifests
- `Alire.Directories.Find_Files_Under` is broken with looping softlinks
- Add Fish Completions
- Package Alire in Winget HOT 1
- Official aarch64 build HOT 2
- During publishing, do a shallow copy HOT 1
- Read-only mode of source code files in the cache HOT 1
- Need environment variable pointing to master project directory HOT 2
- Two alr processes in the same folder HOT 1
- `alr get --build hello` fails on a fresh install
- On macOS, download appropriate alr binary
- External crates which are provided natively by a particular OS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alire.