-
Notifications
You must be signed in to change notification settings - Fork 39
Description
I'm using Windows 10, but others have reported similar here and here on Windows 11. When trying to build AWS in Alire version 2.0.1 (specifically YASS), it fails at the very last stage with messages similar to:
Bind
[gprbind] awsres.bexch
[Ada] awsres.ali
Link
[link] awsres.adb
make[1]: Entering directory '/c/Users/Dell/AppData/Local/alire/cache/builds/aws_24.0.0_2b75fe6d/76ffc400ad3402a54fb70c8123b2c7e3ca05994d4ebde43aa84bc3b5eaa2e888/tools/wsdl2aws-templates'
../../.build/x86_64-w64-mingw32/debug/static/tools/awsres \
-r wsdl2aws_templates \
-o ../../.build/x86_64-w64-mingw32/common/src \
*.tad[sb] *.macros
AWSRes - Resource Creator v1.3
creating s-main.tadb
raised ADA.IO_EXCEPTIONS.NAME_ERROR : ../../.build/x86_64-w64-mingw32/common/src\wsdl2aws_templates-p_f3be9e58aeef1fc8860f3b9e1f1958650e8eab7a.ads: No such file or directory
make[1]: *** [Makefile:20: gen-templates] Error 1
make[1]: Leaving directory '/c/Users/Dell/AppData/Local/alire/cache/builds/aws_24.0.0_2b75fe6d/76ffc400ad3402a54fb70c8123b2c7e3ca05994d4ebde43aa84bc3b5eaa2e888/tools/wsdl2aws-templates'
make: *** [Makefile:220: gen-templates] Error 2
ERROR: Command ["make", "all", "ENABLE_SHARED=false"] exited with code 2
It appears to happen when it hits aws/tools/wsdl2aws-templates/Makefile.
When I check C:\Users\Dell\AppData\Local\alire\cache\builds\aws_24.0.0_2b75fe6d\76ffc400ad3402a54fb70c8123b2c7e3ca05994d4ebde43aa84bc3b5eaa2e888\.build\x86_64-w64-mingw32\common\src I get:
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 8/24/2024 12:07 AM 93 wsdl2aws_templates.adb
Except it seems to be looking for ../../.build/x86_64-w64-mingw32/common/src\wsdl2aws_templates-p_f3be9e58aeef1fc8860f3b9e1f1958650e8eab7a.ads
(note the \ after /src and -p_f3be9e58aeef1fc8860f3b9e1f1958650e8eab7a)
If you want to download a copy of yass on windows with alire and just run alr update && alr build you can see what I mean. It's weird because sometimes aws builds but other times it doesn't; it may be because yass is using the template engine, so you may be able to replicate this with another app using it.
Compiles fine on MacOS and Linux.
EDIT: Just wanted to note, that this does not happen with version 23, just 24.