Skip to content
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

Wrong build values for VSS dependancy. #654

Closed
Blady-Com opened this issue Jun 2, 2024 · 1 comment
Closed

Wrong build values for VSS dependancy. #654

Blady-Com opened this issue Jun 2, 2024 · 1 comment

Comments

@Blady-Com
Copy link

Blady-Com commented Jun 2, 2024

I got these errors:

% python3 manage.py build-langkit-support --library-types=static,static-pic,relocatable --build-mode=prod
prettier_ada.gpr:16:04: value "static" is illegal for typed string "build"
vss_gnat.gpr:5:04: value "static" is illegal for typed string "build"
vss_text.gpr:7:04: value "static" is illegal for typed string "build"

How to recover?
[Edited]
Obviously, by selecting only relocatable:
% python3 manage.py build-langkit-support --library-types=relocatable --build-mode=prod
Indeed, this comes from the fact that by default VSS makefile builds only relocatable lib. build-all-lib shouldn't be the default as other tools?

@pmderodat
Copy link
Member

Hello,

This looks like all the Ada dependencies that are listed (prettier-ada, vss) were built and installed only in relocatable mode. Since it is invalid in gprbuild to have a mix of statically-linked and dynamically-linked library projects in the same tree, the request to build Langkit_Support in all link mode is invalid.

In principle, all AdaCore projects should be built as static libraries by default: if that’s not the case in VSS, it’s worth opening an issue directly in the VSS repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants