-
Notifications
You must be signed in to change notification settings - Fork 1.6k
win7+mingw+android ndk #1524
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
Comments
Does it work when you set sysroot to D:\software\android-ndk-r16b\my-android-toolchain\sysroot, |
I tried ,and new error occured:
|
From #1632 (comment) this may actually have been a bug in NDK r16b |
I get this same error trying to build on Fedora 34 with NDK r21e and current OpenBLAS version (0.3.19 I believe) |
can you try with the current ndk (23b I believe), just in case this was a temporary regression ? |
Yeah, the paths are a bit different for 23b, so I'm trying to make sure I have them correct. 23b doesn't seem to have all the binaries that the previous versions have (e.g. seems to have removed |
Also, versions after r22b don't seem to have EDIT confirmed, r23 and up do not include libgcc |
Tried with r22b and got same error. |
Actually, I am getting a slightly different error with versions before 23b:
Here's what I'm running: export NDK_BUNDLE_DIR=/home/djacobs/Android/Sdk/ndk/21.4.7075529
export PATH=${NDK_BUNDLE_DIR}/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin:${NDK_BUNDLE_DIR}/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH
export LDFLAGS="-L${NDK_BUNDLE_DIR}/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/lib/gcc/aarch64-linux-android/4.9.x -lm"
export CLANG_FLAGS="-target aarch64-linux-android --sysroot ${NDK_BUNDLE_DIR}/sysroot -gcc-toolchain ${NDK_BUNDLE_DIR}/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/"
make TARGET=ARMV8 ONLY_CBLAS=1 AR=ar CC="clang ${CLANG_FLAGS}" HOSTCC=gcc -j4 |
I have now gotten in to compile with r23b on Fedora34 using just
can you check if that works for you ? (If you need LAPACK, things will get more complicated due to the current lack of a usable Fortran compiler in the NDK (and in current LLVM in general). |
Wow, that's very simple and works, thanks! I now see #2005 which probably would've helped me had I looked at the closed issues sooner. Is |
ONLY_CBLAS and NOFORTRAN should be identical, just different origins. And the wiki usually carries the collected wisdom from closed tickets, though Android NDK is a bit of a moving target |
I am going to compile openblas for android in windows 7. To make in windows 7, I install mingw and msys.
I followed https://github.com/xianyi/OpenBLAS/wiki/How-to-build-OpenBLAS-for-Android to build armv8 with clang.
I
Error happened:

stdio.h is in
D:\software\android-ndk-r16b\my-android-toolchain\sysroot\usr\include
I included it in CLANG_FLAGS, why this happened?
The text was updated successfully, but these errors were encountered: