You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
g++ (symbolic link to clang-18), clang version 18.1.5
Target: aarch64-unknown-linux-android24
Thread model: posix
InstalledDir: /data/data/com.termux/files/usr/bin
Make version:
GNU Make 4.4.1
Built for aarch64-unknown-linux-android
Abseil C++ library: 20240116.2 for the AArch64
Python Environment:
Python Version: 3.11.9
pip Version: 24.0
Cython Version: 3.0.10
setuptools Version: 69.5.1
PyTorch Version: 2.1.2 *
numpy Version: 1.26.4 *
The text was updated successfully, but these errors were encountered:
Manamama
changed the title
Clang unusual switches wrongly in resulting setup.py
Clang unusual switches wrongly hardcoded in resulting setup.py
May 19, 2024
(On mobile, so pithy.) As I have found the same error: -fno-openmp-implicit-rpath in also another package, I have spent half an hour since then asking Ms Perplexity AI about root cause. In short, quoth she:
The clang 17.0.2 in NDK supports fopenmp-implicit-rpath option but clang 18.1.5 in termux-packages does not support that, so (here a Python script to change smth in pychache follows, which works for all such cases).
In very short: it may be specific to that config above, and yet removing this (hard-coded) switch may help all.
After compiling manually (cmake and make with many switches and changes to CmakeList.txt file), Python kvetches that:
amd:
Grep shows it hardcoded:
so we must trim it to:
./setup.py:cflags = ["-std=c++17"]
etc.
-> Do change.
With fixes:
etc and installs.
My box:
Compiler:
Target: aarch64-unknown-linux-android24
Thread model: posix
InstalledDir: /data/data/com.termux/files/usr/bin
GNU Make 4.4.1
Built for aarch64-unknown-linux-android
Python Environment:
The text was updated successfully, but these errors were encountered: