Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
dkm
@marcat:matrix.org
[m]
I know I had a similar issue with this crate IIRC. I did a lot of edits/try/fail/retry until it worked :')
barryhouser
@barryhouser:matrix.org
[m]
I had a similar issue a while back. It turned out my Alire version was the latest version, but my configuration files weren't compatible with it. I had to nuke my project configuration and reinitialize it. Alire should have an an autoupdate command to update itself and the project. At the very least it should be able to detect and warn the user if the configuration needs updating.
1 reply
I wonder how Alire handles dependencies with created with different configurations versions.
1 reply
Blady-Com
@Blady-Com
Florist is registered in Alire as external while source code repo exists. It could be built from source code. In Alire is it possible that I may add a Florist crate from source code?
4 replies
Blady-Com
@Blady-Com
In a withed crate, -gnatW8 is needed to read source code but not needed for the main program thus I don't want to add this option which is not relevant at main level. How to do it with alr 1.2.1? (the option -gnatW8 in the withed crate GPR seems not be considered)
Rod Kay
@charlie5
hi all
DrPi
@drpi:matrix.org
[m]
Hi. Welcome.
Rod Kay
@charlie5
@onox I get an error when building inotify-ada ...
i'm on archlinux which uses gcc version 12.2.0
would i need to let alire know about the 12.2.0 version ?
i cannot find any reference to 12.1.0 in your toml
probly a silly config prob on my part but i haven't used alire enuff to tell
here is the PKGBUILD file ...
Rod Kay
@charlie5
i can work around the trouble by uncommenting the 'commented out' lines but would prefer to know what i've done wrong
Rod Kay
@charlie5
Thanks @DrPi :)
onox
@onox
@charlie5 you should delete that aur package. Just alr with inotify in your crate
and you should probably run alr toolchain --select because the code compiles here on Arch just fine
barryhouser
@barryhouser:matrix.org
[m]

I'm getting these strange errors when compiling a project I made by following the instruction https://blog.adacore.com/starting-micro-controller-ada-drivers-in-the-alire-ecosystem

ⓘ Building atsamd21g18a/atsamd21g18a.gpr...
gprconfig: can't find a toolchain for the following configuration:
gprconfig: language 'ada', target 'arm-elf', runtime '$zfp-cortex-m0p'
atsamd21g18a.gpr:6:25: warning: libraries are not supported on this platform
hal.gpr:5:24: warning: libraries are not supported on this platform
hal.gpr:1:09: no compiler for language "Ada", cannot compile "hal-bitmap.ads"
gprbuild: * compilation phase failed

dkm
@marcat:matrix.org
[m]
Are you sure abouth the ''$zfp-cortex-m0p'? Do you have a $ in the gpr file?
3 replies
Also, if using gcc 12, you'll need to change zfp by light I think (at least, I had to do that when using the beta release of alire's gcc 12 build)
dkm
@marcat:matrix.org
[m]
The runtime has been renamed. So zfp is now called light IIRC. See for example my gpr: https://github.com/dkm/stm32f0x2_hal-ada/blob/main/stm32f0x2_hal.gpr
1 reply
Rolf Ebert
@RREE
Is there a preference or a policy where to put some explanations about a crate? Either in the long-description of the alire.tomlor in a separate README. Personally I prefer the README and was wondering if I was supposed to copy some of the info also to the ling-description.
1 reply
dkm
@marcat:matrix.org
[m]
I wonder how github is computing the dependencies for Rust crates (see for example https://github.com/rust-embedded/cortex-m/network/dependents?package_id=UGFja2FnZS0zMjE3MzkwMDQ2 ). It's probably . Would be nice to have the same feature for alire's crates.
dkm
@marcat:matrix.org
[m]
:point_up: Edit: I wonder how github is computing the dependencies for Rust crates (see for example https://github.com/rust-embedded/cortex-m/network/dependents?package\_id=UGFja2FnZS0zMjE3MzkwMDQ2 ). It's probably parsing the toml, so not far from Alire . Would be nice to have the same feature for alire's crates.
1 reply
Paul Jarrett
@pyjarrett
Is there any movement on improving the Alire submission process so that it's not "Submit a random file as a pull request on Github?"
2 replies
I know Alire team has other priorities, but this is a huge usability thing, so I was curious.
Simon Wright
@simonjwright
Trying to use the output of pkg-config to configure for alr build - specifically, on Linux (only) I need to get the output of pkg-config --libs tk8.6 into the linker switches of my GPR. Has anyone done this?
barryhouser
@barryhouser:matrix.org
[m]
I was read https://github.com/toml-lang/toml/wiki and Ada isn't mentioned in the list of supported languages.
6 replies
Stephen Leake
@stephe-ada-guru
Emacs ada-mode uses the re2c lexer-generator. That's available as Debian and msys2 packages. So there are two ways to proceed: 1) Add re2c as a dependency, and add a pre-build step to run it. 2) Include the generated file in the source tarball that defines the crate. Is there a preference? How do I add re2c as a dependency?
8 replies
Michael Casadevall
@NCommander
Has anyone managed to bootstrap GNAT on a M1 mac?
might take a stab at it if not - I've done it before on Linux for ARM cross compiling from x86
1 reply
Which sucked, but was a one time deal
Holger Rodriguez
@hgrodriguez
after a while I can now come back to the community (workload was crazy and moved house). So I was optimistic to publish a new version of my eeprom_i2c crate, but somehow I am struggling to publish my alire index contribution.
I forked the newest alire 1.2.1 stable branch and tried
alr publish
I get:
Success: User has forked the community repository
ERROR: Could not complete the publishing assistant:
ERROR: Your index fork is missing the current base branch (stable-1.2) for pull requests to the community repository:
ERROR: Please synchronize this branch and try again:
ERROR: Your fork URL is: https://github.com/hgrodriguez/alire-index
I did
rm -Rf $HOME/.config/alire
to force alire to fetch everything again, but no success.
Any hint would be appreciated.
Rolf Ebert
@RREE
I recently had a similar problem. I had to delete my github fork of the alire-index. Select your fork repository --> Settings, scroll down to Danger Zone --> Delete Repository. Than fork again the alire-index and be sure to uncheck "Copy the stable-1.2 branch only". This will get you all branches including future ones.
13 replies
Holger Rodriguez
@hgrodriguez
@RREE thanks, that did the trick!
Simon Wright
@simonjwright
I need to say that an external dependency (libtcl) has to be 8.6.*. How do I specify that?
onox
@onox
@simonjwright "~8.6.0"?
Simon Wright
@simonjwright
@onox won’t that allow 8.7? (my problem is that the Homebrew-provided library is just libtcl8.6.dylib, no helpful symlinks. I guess the recommendation would be to use Homebrew to install the required version (so long as it’s still provided) and not get Alire to install it.)
onox
@onox
in the Alire docs:
Available constraint operators are the usual Ada relationals (=, /=, >, >=, <, <=) plus caret (^, any upwards version within the same major point) and tilde (~, any upwards version within the same minor point).
^ is used if you want to allow 8.7 or higher
Simon Wright
@simonjwright
I read that but failed to understand it. Thanks for the push! (which seems to work just fine; if I say ~8.5.0 it isn’t found. Just what I wanted!)
onox
@onox
good to know, it's a bit hidden in the docs. I found it only with the help of ctrl+f :p
Maxim Reznik
@reznikmm
alr init --in-place doesn't create config/. Is it expected?
Alejandro R Mosteo
@mosteo
yes, even without --in-place
Maxim Reznik
@reznikmm
indeed! sorry for the noise
Fabien Chouteau
@Fabien-Chouteau
It used to generate config/ before, but not anymore.
Manuel
@mgrojo
I noticed there's no longer possible to set this in your GitHub action: uses: alire-project/setup-alire@latest-stable