-
Notifications
You must be signed in to change notification settings - Fork 35
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
Error compiling Ada code when using build-langkit-support option #501
Comments
Hello, This is very surprising: gprbind complains about modified sources whereas they are supposed to be compiled in the current project (so gprbuild is supposed to have just compiled them). Unfortunately we cannot reproduce for now: do you have this problem every single time, or just once in a while? Could you please get changes from #502 and re-run the |
Fetched as requested, and then ran, and still fails with the same error message, but the '-vl' produces a lot of logging which I hope is helpful to you. The problem occurs every time that I run it - even when I remove the entire langkit directory and fetch a fresh version of the code from git - as I have just performed.
|
That’s puzzling. Langkit_Support is a pure Ada project and its sources are not generated, so it must be a toolchain issue, but for now I have no idea how this can be possible. |
Hello again, Just to check that the problem does not come from the
|
Also, if it still fails, could you send as attachments the following files?
|
As requested, I fetched a clean version of langkit and then ran the gprbuild command that you provided and all worked perfectly - compiled with no errors and ran to completion. I have tried it for the static and static-pic library types and these also compile fine and to completion. |
Ok, thank you for the experiment. The Could you re-try running the |
Now I am totally confused as I re-ran the manage.py script as requested and this time, without any changes to my Debian Linux/Testing system that I think would have an impact, and without any changes to the toolchain, the script now runs to completion and builds the three library types. I can then run the installer and that works perfectly as well. So, I apologise if I have wasted your time, but for the life of me, I cannot work out what has changed at my end to make things work now, but could have caused the failures that I had been experiencing before. |
I have cloned the repository via:
git clone https://github.com/AdaCore/langkit.git
and then followed the instructions to build the code. I typed in:
pip install .
and this worked fine. I then typed in:
python manage.py build-langkit-support --library-types=static,static-pic,relocatable
and the following set of error messages are displayed:
I have tried the command without the --library-types to build only one library type, but the error message is the same. What am I doing wrong ?
The text was updated successfully, but these errors were encountered: