Code Monkey home page Code Monkey logo

Comments (5)

mosteo avatar mosteo commented on June 13, 2024 1

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.

mosteo avatar mosteo commented on June 13, 2024

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.

krischik avatar krischik commented on June 13, 2024

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.

mosteo avatar mosteo commented on June 13, 2024

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.

krischik avatar krischik commented on June 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.