-
-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem running Alire under Windows: raised ADA.ASSERTIONS.ASSERTION_ERROR : Path is not absolute: C: #1743
Comments
This might be due to #1717. Could you try to build after |
I think you are correct. reverting to the commit you mentioned solved the problem. |
Clarification needed: did you revert the commit, or to the commit? Because if the latter then the problem might be elsewhere. |
OK, that makes sense, I see where the problem may be coming from. Thanks! |
I'm unable to reproduce on my local Windows with the info given, puzzling. Could you please paste or attach the output of |
The commit I checked out was: Author: Alejandro R Mosteo amosteo@unizar.es D:\repos\alire>bin\alr version CONFIGURATION WORKSPACE SYSTEM D:\repos\alire> D:\repos\alire>bin\alr -vv -d printenv -->> --->8--- Exception dump end ----->8--- ERROR: Path is not absolute: C: D:\repos\alire> |
This doesn't match either |
The commit that caused the problem is on the release/2.0 branch. |
Thanks, I was looking at the same PR but in the main branch, that has a different commit, so I was confused. Now the versions match. Still unable to reproduce the problem, though. That path, "C:", is certainly not absolute, but I don't know where it is coming from yet. |
Found it. You have msys2 disabled, I expect, right? |
Yes, that's correct. |
Fixed in #1747 |
On My PC I tried to build Alire from the github repository and am experiencing issues when running the executable.
Here is a log of what I did.
Note that the currently installed Alire is alr-2.0.1-bin-x86_64-windows.zip, which works fine.
To reproduce, I built Alire from scratch (Commit: d296745):
================================================================================
D:\repos>git clone --recurse-submodules https://github.com/alire-project/alire.git
Cloning into 'alire'...
D:\repos>cd alire
D:\repos\alire>alr toolchain --select
Welcome to the toolchain selection assistant
In this assistant you can set up the default toolchain to be used with any crate
that does not specify its own top-level dependency on a version of gnat or
gprbuild.
If you choose "None", Alire will use whatever version is found in the
environment.
Note: Currently configured: gnat_native=14.2.1
Please select the gnat version for use with this configuration
a. (See more choices...)
Enter your choice index (first is default):
Note: Choices for the following tool are narrowed down to releases compatible with just selected gnat_native=14.2.1
Note: Currently configured: gprbuild=22.0.1
Please select the gprbuild version for use with this configuration
Enter your choice index (first is default):
D:\repos\alire>set ALIRE_OS=windows
D:\repos\alire>gprbuild -j0 -p -P alr_env
================================================================================
When I go to a crate that worked fine before, I now get an exception:
================================================================================
D:\alire\crates\cuda\cuda64>\repos\alire\bin\alr -d printenv
stderr: ADA.ASSERTIONS.ASSERTION_ERROR
stderr: Path is not absolute: C:
stderr: raised ADA.ASSERTIONS.ASSERTION_ERROR : Path is not absolute: C:
[D:\repos\alire\bin\alr.exe]
0xf86092 Semantic_Versioning.Basic.At_Least at alire.ads:352
0xb6bd23 Semantic_Versioning.Basic.At_Least at alire-platforms-current__windows.adb:91
0x83d1fb Semantic_Versioning.Basic.At_Least at alire-environment-formatting.adb:34
0x841863 Semantic_Versioning.Basic.At_Least at alire-environment-loading.adb:127
0x83fa5a Semantic_Versioning.Basic.At_Least at alire-environment-loading.adb:82
0xd4e369 Semantic_Versioning.Basic.At_Least at alire-roots.adb:300
0x4ad526 Semantic_Versioning.Basic.At_Least at alr-commands-printenv.adb:42
0x535dd7 Semantic_Versioning.Basic.At_Least at clic-subcommand-instance.adb:749
0x54384d Semantic_Versioning.Basic.At_Least at alr-commands.adb:562
0x4017b3 Alr.Main at alr-main.adb:13
0x4054ac Main at b__alr-main.adb:2427
0x401423 __tmainCRTStartup at ???
0x40113b mainCRTStartup at ???
[C:\WINDOWS\System32\KERNEL32.DLL]
0x7ffe9e9e257b
[C:\WINDOWS\SYSTEM32\ntdll.dll]
0x7ffe9f8caf26
ERROR: Path is not absolute: C:
ERROR: alr encountered an unexpected error, re-run with -d for details.
ERROR: error location: 0xf86092 Semantic_Versioning.Basic.At_Least at alire.ads:352
================================================================================
Running the 'old' Alire 2.0.1 I get:
================================================================================
D:\alire\crates\cuda\cuda64>alr -d printenv
export ALIRE="True"
export CUDA64_ALIRE_PREFIX="D:\alire\crates\cuda\cuda64"
export GNAT_NATIVE_ALIRE_PREFIX="C:\Users\veenk\AppData\Local\alire\cache\toolchains\gnat_native_14.2.1_2540cccb"
export GPRBUILD_ALIRE_PREFIX="C:\Users\veenk\AppData\Local\alire\cache\toolchains\gprbuild_22.0.1_c842bbc5"
export GPR_PROJECT_PATH=
(no issues)
================================================================================
The Alire settings are:
================================================================================
D:\alire\crates\cuda\cuda64>alr settings --global
last_build_profile=cuda64=DEVELOPMENT
toolchain.external.gprbuild=false
msys2.do_not_install=true
editor.cmd=gnatstudio -P ${GPR_FILE}
index.last_update=226394249
toolchain.assistant=false
index.auto_update_asked=true
toolchain.use.gnat=gnat_native=14.2.1
toolchain.use.gprbuild=gprbuild=22.0.1
toolchain.external.gnat=false
================================================================================
For this crate the alire.toml is:
================================================================================
name = "cuda64"
version = "10.2.0"
description = "CUDA runtime libraries"
long-description = """
This crate contains NVidia CUDA support libraries."
"""
authors = "veenker@xs4all.nl"
maintainers = ["veenker@xs4all.nl"]
maintainers-logins = ["rveenker",]
project-files = []
The text was updated successfully, but these errors were encountered: