{"action":"created","issue":{"url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/1632","repository_url":"https://api.github.com/repos/xianyi/OpenBLAS","labels_url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/1632/labels{/name}","comments_url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/1632/comments","events_url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/1632/events","html_url":"https://github.com/xianyi/OpenBLAS/issues/1632","id":334332777,"node_id":"MDU6SXNzdWUzMzQzMzI3Nzc=","number":1632,"title":"OpenBLAS , Build ARMV8 with clang. '../libopenblas_haswellp-r0.2.20.so' failed","user":{"login":"cefengxu","id":11307973,"node_id":"MDQ6VXNlcjExMzA3OTcz","avatar_url":"https://avatars2.githubusercontent.com/u/11307973?v=4","gravatar_id":"","url":"https://api.github.com/users/cefengxu","html_url":"https://github.com/cefengxu","followers_url":"https://api.github.com/users/cefengxu/followers","following_url":"https://api.github.com/users/cefengxu/following{/other_user}","gists_url":"https://api.github.com/users/cefengxu/gists{/gist_id}","starred_url":"https://api.github.com/users/cefengxu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cefengxu/subscriptions","organizations_url":"https://api.github.com/users/cefengxu/orgs","repos_url":"https://api.github.com/users/cefengxu/repos","events_url":"https://api.github.com/users/cefengxu/events{/privacy}","received_events_url":"https://api.github.com/users/cefengxu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-06-21T04:22:23Z","updated_at":"2018-06-21T19:41:54Z","closed_at":null,"author_association":"NONE","body":"Dear ~\r\n\r\nTo build the  .so for android as  command below ( refer to **Build ARMV8 with clang** ):\r\n```\r\nexport NDK_BUNDLE_DIR=/my/path/Android/ndk/android-ndk-r16b\r\n\r\nexport 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\r\n\r\nexport LDFLAGS=\"-L${NDK_BUNDLE_DIR}/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/lib/gcc/aarch64-linux-android/4.9.x -lm\"\r\n\r\nexport CLANG_FLAGS=\"-target aarch64-none-linux-android --sysroot ${NDK_BUNDLE_DIR}/platforms/android-27/arch-arm64 -gcc-toolchain ${NDK_BUNDLE_DIR}/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64\"\r\n\r\nmake TARGET=ARMV8 ONLY_CBLAS=1 AR=ar CC=\"clang ${CLANG_FLAGS}\" HOSTCC=gcc -j4\r\n```\r\n**The platform & cofig. as follow:**\r\n\r\n- OS = Ubuntu 16.04\r\n- NDK = android-nkd-r16b\r\n- BLAS = OpenBLAS-0.2.20\r\n\r\n**But , get the error output as follown:**\r\n\r\n```\r\n END OF TESTS\r\nmake[1]: Leaving directory '/my/path/OpenBLAS-master/ctest'\r\nmake[1]: 警告: 子 make 中强制 -jN: 关闭 jobserver 模式。\r\nmake[1]: Entering directory '/my/path/OpenBLAS-master/exports'\r\nclang -target aarch64-none-linux-android --sysroot /my/path/Android/ndk/android-ndk-r16b/platforms/android-27/arch-arm64 -gcc-toolchain /my/path/Android/ndk/android-ndk-r16b/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64 -O2 -DMAX_STACK_ALLOC=2048 -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DNO_LAPACK -DNO_LAPACKE -DSMP_SERVER -DNO_WARMUP -DMAX_CPU_NUMBER=8 -DASMNAME= -DASMFNAME=_ -DNAME=_ -DCNAME= -DCHAR_NAME=\\\"_\\\" -DCHAR_CNAME=\\\"\\\" -I.. -L/my/path/Android/ndk/android-ndk-r16b/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/lib/gcc/aarch64-linux-android/4.9.x -lm -shared -o ../libopenblas_haswellp-r0.2.20.so \\\r\n-Wl,--whole-archive ../libopenblas_haswellp-r0.2.20.a -Wl,--no-whole-archive \\\r\n-Wl,-soname,libopenblas.so.0 -lm -lpthread -lm -lpthread\r\n/my/path/Android/ndk/android-ndk-r16b/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: ../libopenblas_haswellp-r0.2.20.a(saxpy.o): Relocations in generic ELF (EM: 62)\r\n/my/path/Android/ndk/android-ndk-r16b/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: ../libopenblas_haswellp-r0.2.20.a(saxpy.o): Relocations in generic ELF (EM: 62)\r\n../libopenblas_haswellp-r0.2.20.a(saxpy.o): error adding symbols: File in wrong format\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\nMakefile:139: recipe for target '../libopenblas_haswellp-r0.2.20.so' failed\r\nmake[1]: *** [../libopenblas_haswellp-r0.2.20.so] Error 1\r\nmake[1]: Leaving directory '/my/path/OpenBLAS-master/exports'\r\nMakefile:90: recipe for target 'shared' failed\r\nmake: *** [shared] Error 2\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/comments/399219921","html_url":"https://github.com/xianyi/OpenBLAS/issues/1632#issuecomment-399219921","issue_url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/1632","id":399219921,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTIxOTkyMQ==","user":{"login":"brada4","id":16061801,"node_id":"MDQ6VXNlcjE2MDYxODAx","avatar_url":"https://avatars3.githubusercontent.com/u/16061801?v=4","gravatar_id":"","url":"https://api.github.com/users/brada4","html_url":"https://github.com/brada4","followers_url":"https://api.github.com/users/brada4/followers","following_url":"https://api.github.com/users/brada4/following{/other_user}","gists_url":"https://api.github.com/users/brada4/gists{/gist_id}","starred_url":"https://api.github.com/users/brada4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brada4/subscriptions","organizations_url":"https://api.github.com/users/brada4/orgs","repos_url":"https://api.github.com/users/brada4/repos","events_url":"https://api.github.com/users/brada4/events{/privacy}","received_events_url":"https://api.github.com/users/brada4/received_events","type":"User","site_admin":false},"created_at":"2018-06-21T19:41:54Z","updated_at":"2018-06-21T19:41:54Z","author_association":"CONTRIBUTOR","body":"It uses host fortran compiler too set `FC= NONE`"}}
{"actor":{"display_login":"brada4"}}