-
Notifications
You must be signed in to change notification settings - Fork 204
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
Failed to build OpenBLAS? #122
Comments
Regarding build issues, please try to use docker for simplicity. |
@sh1r0 I already use docker. |
@Qvodman Could you show me the command you use? |
@sh1r0 cd caffe-android-lib sudo docker build -t caffe-android-lib . sudo docker run --rm --name caffe-android-builder -e ANDROID_ABI=x86_64 -e N_JOBS=2 -v $(pwd)/android_lib/x86_64:/caffe-android-lib/android_lib caffe-android-lib ./build.sh |
@sh1r0 And when I used: git clone --recursive https://github.com/sh1r0/caffe-android-lib.git cd caffe-android-lib sudo docker build -t caffe-android-lib . sudo docker run --rm --name caffe-android-builder -e ANDROID_ABI=arm64-v8a -e N_JOBS=2 -v $(pwd)/android_lib/arm64-v8a:/caffe-android-lib/android_lib caffe-android-lib ./build.sh The problem: |
Hi @Qvodman, I just did a clean clone, re-created the docker image, and used the command below. docker run --rm --name caffe-android-builder \
-e ANDROID_ABI=arm64-v8a \
-e N_JOBS=2 \
-v $(pwd)/android_lib/arm64-v8a:/caffe-android-lib/android_lib \
caffe-android-lib ./build.sh Per log (listed below), OpenBLAS is successfully built and installed.
Could you provide more details about your environment? |
@sh1r0 |
Hi @Qvodman, I pulled the latest ubuntu:16.04 docker image and tested again without failures. Would you like to re-pull the docker image? |
@sh1r0 Do I need to install OpenBLAS by myself? |
Nope, everything should be self-contained in this project. |
|
First, |
|
According to your comment above (quoted below),
I think the
but this one
|
@sh1r0 I re-created the docker image
But the problem is still reproduced:
|
Could you check the version of cmake via |
|
Hi @Qvodman, I got another linux machine to test from scratch without any issues. I think the docker build should be fine on a clean setup. Sorry, I could not help you to find out why this did not work on your env. |
@sh1r0 The new issues:
|
same problem
and compile command is the following:
|
Hi @Qvodman and @seiyaa, android_lib/arm64-v8a/openblas/lib/:
cmake libopenblas.a libopenblas_armv8p-r0.2.18.a
android_lib/x86_64/openblas/lib/:
cmake libopenblas.a libopenblas_atomp-r0.2.18.a
android_lib/x86/openblas/lib/:
cmake libopenblas.a libopenblas_atomp-r0.2.18.a |
I am facing the same issue
As you mentioned p following arch name, there is same file generated under OpenBLAS directory and linked to libopenblas.a also . So why script expecting without p following arch name in libopenblas file name.
I have used following environment to build
and android-ndk-r11c for android ndk |
Hi @adityakamble49, could you have a try on docker build? |
@sh1r0 , Yes tried docker build , giving same error |
@adityakamble49 Could you let me know your docker version (via |
@sh1r0 Sure, Docker version as below
|
@sh1r0 I Got openblas builds from https://github.com/solrex/caffe-mobile Copied it in the repository
Commented build_openblas.sh in build.sh
Able to build final libcaffe_jni.so and libcaffe.so
|
@adityakamble49 your solution works! |
Disabling multi-threading in Although, the process is really slow. Any idea why this way it works? EDIT: using the docker |
make: *** [getarch_2nd] Error 1
make -j 1 -f Makefile.install install
make[1]: Entering directory '/caffe-android-lib/OpenBLAS'
Generating openblas_config.h in /caffe-android-lib/android_lib/openblas/include
Generating f77blas.h in /caffe-android-lib/android_lib/openblas/include
Generating cblas.h in /caffe-android-lib/android_lib/openblas/include
Copying the static library to /caffe-android-lib/android_lib/openblas/lib
install: cannot stat 'libopenblas_atom-r0.2.18.a': No such file or directory
make[1]: *** [install] Error 1
make: *** [install] Error 2
Makefile.install:23: recipe for target 'install' failed
make[1]: Leaving directory '/caffe-android-lib/OpenBLAS'
Makefile:313: recipe for target 'install' failed
Failed to build OpenBLAS
The text was updated successfully, but these errors were encountered: