alire-project / alire

Command-line tool from the Alire project and supporting library
GNU General Public License v3.0
270 stars 46 forks source link

Curl issue #1543

Open MrAda opened 5 months ago

MrAda commented 5 months ago

When trying to build with Alr I get this a lot: File not found - C:\Users\Chris.config\alire\cache\dependencies\alr-rmpi.tmp File not found - C:\Users\Chris.config\alire\cache\dependencies\alr-rmpi.tmp ERROR: Command ["curl", "https://github.com/alire-project/GNAT-FSF-builds/releases/download/gprbuild-22.0.0-1/gprbuild-x86_64-windows64-22.0.0-1.tar.gz", "--location", "--progress-bar", "--output", "C:\Users\Chris.config\alire\cache\dependencies\alr-rmpi.tmp\gprbuild-x86_64-windows64-22.0.0-1.tar.gz"] exited with code 35

Any clue why?

mosteo commented 5 months ago

If you could provide a complete sequence of instructions to reproduce, I'll take a look at it. Which alr version is this?

MrAda commented 5 months ago

PS C:\Users\Chris> alr version APPLICATION alr version: 1.2.2 libalire version: 1.2.2 compilation date: 2023-01-12 20:53:29 compiler version: Community 2021 (20210519-103)

CONFIGURATION config folder: C:\Users\Chris.config\alire force flag: FALSE non-interactive flag: FALSE community index branch: stable-1.2.1 compatible index versions: ^1.1 & <=1.2.1 indexes folder: C:\Users\Chris.config\alire\indexes indexes metadata: OK index #1: (community) git+https://github.com/alire-project/alire-index#stable-1.2.1 toolchain assistant: disabled tool #1 gnat: gnat_external=13.2.0 tool #2 gprbuild: gprbuild=22.0.0

WORKSPACE root status: OUTSIDE root release: N/A root load error: N/A root folder: N/A current folder: C:\Users\Chris

SYSTEM distribution: DISTRO_UNKNOWN host-arch: X86_64 os: WINDOWS target: NATIVE toolchain: USER word-size: BITS_64 PS C:\Users\Chris>

MrAda commented 5 months ago

There is the version. I will try and reproduce the steps in a few...

MrAda commented 5 months ago

Something new now: gprbuild is installed by the way

PS C:\Users\Chris> alr get hello ERROR: Not installed: gprbuild=22.0.0 ERROR: alr encountered an unexpected error, re-run with -d for details. PS C:\Users\Chris> alr -d get hello stderr: Command ["pacman", "-V"] exited with code-1 and output: stderr: CONSTRAINT_ERROR stderr: Not installed: gprbuild=22.0.0 stderr: raised CONSTRAINT_ERROR : Not installed: gprbuild=22.0.0 [C:\Program Files\Alire\bin\alr.exe] 0xc21034 Semantic_Versioning.Basic.At_Least at alire-shared.adb:279 0xd01d47 Semantic_Versioning.Basic.At_Least at alire-toolchains-solutions.adb:25 0x7cc001 Semantic_Versioning.Basic.At_Least at alire-environment.adb:90 0xc08393 Semantic_Versioning.Basic.At_Least at alire-roots.adb:724 0xc00c59 Semantic_Versioning.Basic.At_Least at alire-roots.adb:429 0x48874a Semantic_Versioning.Basic.At_Least at alr-commands-get.adb:173 0x48d3cc Semantic_Versioning.Basic.At_Least at alr-commands-get.adb:348 0x51c0a3 Semantic_Versioning.Basic.At_Least at clic-subcommand-instance.adb:742 0x528a27 Semantic_Versioning.Basic.At_Least at alr-commands.adb:492 0x401761 Alr.Main at alr-main.adb:10 0x404bd6 Main at balr-main.adb:2130 0x401423 tmainCRTStartup at ??? 0x40113b mainCRTStartup at ??? [C:\WINDOWS\System32\KERNEL32.DLL] 0x7ffd71a27342 [C:\WINDOWS\SYSTEM32\ntdll.dll] 0x7ffd71d026af

ERROR: Not installed: gprbuild=22.0.0 ERROR: alr encountered an unexpected error, re-run with -d for details.

MrAda commented 5 months ago

I would say alr is easier to work with on Linux. Windows is a bear.

MrAda commented 5 months ago

I did this in cmd: C:\Users\Chris>where gprbuild C:\msys64\mingw64\bin\gprbuild.exe

mosteo commented 4 months ago

Thanks for all of the information, it will surely help.