AdaCore / AdaCore/aws

Post-build fails in windows with wsdl2aws_templates-p_f3be9e58aeef1fc8860f3b9e1f1958650e8eab7a.ads: No such file or directory

Open
#380 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ada
Stars
162
Forks
45
PR merge metrics
No merged PRs in 30d

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure on Windows with YASS using alr update && alr build, then inspect tools/wsdl2aws-templates/Makefile and its gen-templates step. Compare the AWS 24 and 23 behavior, focusing on the generated path and the missing wsdl2aws_templates-p_*.ads file; done means the Windows build completes successfully.

Written by the indexing model from the issue text.

Assessment

Domain
build-system, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.