-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 build issue with ibm-clang_r compiler #13773
Comments
Hi, Is this queue getting monitored for support. |
As of now ibm-clang_r compiler does not work in AIX with meson. Only GCC is. So any package that uses meson [numpy/scipy/matplotlib/p11-kit and so on] builds using GCC only in AIX. You may try with GCC. |
If someone wants to add support, by the way, we'd be happy to merge it. We may be able to mentor for it. I definitely cannot do it myself -- I don't have an AIX system to experiment with. The GCC Compile Farm does, and I actually tried applying, but I got a rather strange answer and no account... |
@eli-schwartz We can work together on this. One thing I observe is this is seen only in meson version < 16. For example,
But with the master branch we are able to build :), meson --version1.6.0.rc2
Unknowingly something has fixed this in AIX. Let me check. |
I suspect it to be this fix: b7ce7c2 That has fixed AIX linker detection with clang as well. :) I will test without this commit in AIX and then confirm |
@eli-schwartz I can confirm from AIX that after I revoked b7ce7c2 from my friendly fork I reproduced the error. So b7ce7c2 fixes this issue as well.
|
@QuLogic @rgommers Kindly add to the vendored meson in numpy the commit b7ce7c2 so that AIX users can build numpy and you can close the issue in numpy's end. Attaching the succeessful tail of build log of numpy using ibm-clang below this message. I had patched the meson to the commit during my build.
One can use the above instructions to build numpy in AIX. Can change m64 to maix64 and clang to gcc if they want to try in GCC.
|
Great, thanks @KamathForAIX. I'll update the vendored Meson in NumPy. |
Yes, please add a release notes entry for 1.6.0. |
@KamathForAIX , bash-5.2$ meson --version meson_cpu/x86/meson.build:2:15: ERROR: Module "features" does not exist A full log can be found at /home/user/numpy/2.0.1/numpy-2.0.1/build_dir/meson-logs/meson-log.txt
|
I had installed module features as well but still same issue . $ python -m pip list | grep features |
@Ganeshkumhar1 You are going to get that error since vendored meson is not updated. Also, features is a module within vendored meson here and not features module from pypi. Can you try one thing. Run "git submodule update --init " and then in the vendored meson, /numpy/vendored-meson/meson/mesonbuild/linkers/linkers.py, Update changes to the above file from the commit b7ce7c2 Then you will be able to build. |
Thank you @jpakkane |
Describe the bug
while building the numpy 2.0.1 on AIX with ibm-clang_r compiler , meson build is hitting issue while detecting the linker.
To Reproduce
$ python -m build --wheel --no-isolation .
The Meson build system
Version: 1.4.99
Source dir: /home/user/numpy/2.0.1/numpy-2.0.1
Build dir: /home/user/numpy/2.0.1/numpy-2.0.1/.mesonpy-5yatrh9i
Build type: native build
Project name: NumPy
Project version: 2.0.1
../meson.build:1:0: ERROR: Unable to detect linker for compiler
ibm-clang_r -Wl,--version -L/tmp/3392379693/python/lib -I/tmp/3392379693/python/include -I/tmp/3392379693/python/include/openssl
stdout:
stderr: ld: 0706-012 The -- flag is not recognized.
.ibm-clang: error: linker command failed with exit code 255 (use -v to see invocation)
Expected behavior
it should build numpy
system parameters
meson --version
. - 1.5.2numpy/numpy#27531
The text was updated successfully, but these errors were encountered: