-
Notifications
You must be signed in to change notification settings - Fork 149
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
Meson: Can't link non-PIC static library 'mctc-lib' into shared library 'xtb' #660
Comments
Am I the only one to run into this issue? I don't think there are anything specific with our NVIDIA SDK install. |
Some of those are known issues
From my observations there are also some recurring issues like
|
Thanks for your feedback on this!
It does work but you cannot test the libraries one by one as currently done in the Meson script. If you do
I will try, doing a static only build should work I guess. Would it be possible to force
As far as I can tell, Meson is returning that the "c_std=c11" option is not supported by NVIDIA SDK but it looks like it is:
|
That's not true, this works completely fine with other compilers like GCC and Intel Fortran, the detection is made in a way with meson that unresolved symbols for a single library usually don't interfere (sometimes they do as in #640).
This is an issue of meson not knowing about the supported standards than, feel free to raise this upstream at the meson repository. |
I am trying to build the GPU version of xtb with NVIDIA HPC SDK 21.9 but I stuck with an error during the Mason setup.
I have tried both Meson 0.59.2 and 0.62.1 and I am getting the same error each time:
Also note that I had to work around some other issues:
-Dc_std=none
is needed to avoid this error:../meson.build:19:0: ERROR: Value "c11" (of type "string") for combo option "C language standard to use" is not one of the choices. Possible choices are (as string): "none".
.-Dla_backend=mkl
does not work:../meson/meson.build:124:6: ERROR: Fortran shared or static library 'mkl_intel_lp64' not found
. This happens becausemkl_intel_lp64
depends on other libs, e.g.mkl_sequential
andmkl_core
.-Dopenmp=false
is required becausemctc-lib
cannot figure out how to compile with OpenMP:The text was updated successfully, but these errors were encountered: