{"action":"opened","issue":{"url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/952","repository_url":"https://api.github.com/repos/xianyi/OpenBLAS","labels_url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/952/labels{/name}","comments_url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/952/comments","events_url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/952/events","html_url":"https://github.com/xianyi/OpenBLAS/issues/952","id":173804773,"number":952,"title":"\"fatal error: stdio.h: No such file or directory\" when building for Android","user":{"login":"tanayz","id":2476251,"avatar_url":"https://avatars.githubusercontent.com/u/2476251?v=3","gravatar_id":"","url":"https://api.github.com/users/tanayz","html_url":"https://github.com/tanayz","followers_url":"https://api.github.com/users/tanayz/followers","following_url":"https://api.github.com/users/tanayz/following{/other_user}","gists_url":"https://api.github.com/users/tanayz/gists{/gist_id}","starred_url":"https://api.github.com/users/tanayz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanayz/subscriptions","organizations_url":"https://api.github.com/users/tanayz/orgs","repos_url":"https://api.github.com/users/tanayz/repos","events_url":"https://api.github.com/users/tanayz/events{/privacy}","received_events_url":"https://api.github.com/users/tanayz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-29T15:42:23Z","updated_at":"2016-08-29T15:42:23Z","closed_at":null,"body":"Mine is a Ubuntu 14.04 system.I've downloaded ndk r12b and unzipped it and also cloned the latest OpenBLAS.\r\nThen I created following entries in my ~/.bashrc file \r\n```\r\nexport NDK_ROOT=/home/tanay/src/android-ndk-r12b\r\nexport ANDROID_NDK_ROOT=/home/tanay/src/android-ndk-r12b\r\nexport PATH=/home/tanay/src/android-ndk-r12b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin:$PATH\r\nexport CC=arm-linux-androideabi-gcc\r\nexport CXX=arm-linux-androideabi-g++\r\nexport TOOLCHAIN=/home/tanay/src/android-ndk-r12b/toolchains\r\nexport ANDROID_TOOL_CHAIN=/home/tanay/src/android-ndk-r12b/toolchains\r\n```\r\nThen I ran following command inside OpenBLAS directory \r\n`make TARGET=ARMV7 HOSTCC=gcc CC=arm-linux-androideabi-gcc NOFORTRAN=1\r\n`\r\nI got the below error after that\r\nOpenBLAS: Detecting fortran compiler failed. Cannot compile LAPACK. Only compile BLAS.\r\nmake[1]: Entering directory `/home/tanay/src/OpenBLAS/interface'\r\narm-linux-androideabi-gcc -O2 -DMAX_STACK_ALLOC=2048 -Wall -DF_INTERFACE_GFORT -fPIC -DNO_LAPACK -DNO_LAPACKE -DSMP_SERVER -DNO_WARMUP -DMAX_CPU_NUMBER=4 -marm -mfpu=neon  -mfloat-abi=hard -march=armv7-a -Wl,--no-warn-mismatch -DASMNAME=saxpy -DASMFNAME=saxpy_ -DNAME=saxpy_ -DCNAME=saxpy -DCHAR_NAME=\\\"saxpy_\\\" -DCHAR_CNAME=\\\"saxpy\\\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -c axpy.c -o saxpy.o\r\narm-linux-androideabi-gcc -O2 -DMAX_STACK_ALLOC=2048 -Wall -DF_INTERFACE_GFORT -fPIC -DNO_LAPACK -DNO_LAPACKE -DSMP_SERVER -DNO_WARMUP -DMAX_CPU_NUMBER=4 -marm -mfpu=neon  -mfloat-abi=hard -march=armv7-a -Wl,--no-warn-mismatch -DASMNAME=sswap -DASMFNAME=sswap_ -DNAME=sswap_ -DCNAME=sswap -DCHAR_NAME=\\\"sswap_\\\" -DCHAR_CNAME=\\\"sswap\\\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -c swap.c -o sswap.o\r\narm-linux-androideabi-gcc -O2 -DMAX_STACK_ALLOC=2048 -Wall -DF_INTERFACE_GFORT -fPIC -DNO_LAPACK -DNO_LAPACKE -DSMP_SERVER -DNO_WARMUP -DMAX_CPU_NUMBER=4 -marm -mfpu=neon  -mfloat-abi=hard -march=armv7-a -Wl,--no-warn-mismatch -DASMNAME=scopy -DASMFNAME=scopy_ -DNAME=scopy_ -DCNAME=scopy -DCHAR_NAME=\\\"scopy_\\\" -DCHAR_CNAME=\\\"scopy\\\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -c copy.c -o scopy.o\r\narm-linux-androideabi-gcc -O2 -DMAX_STACK_ALLOC=2048 -Wall -DF_INTERFACE_GFORT -fPIC -DNO_LAPACK -DNO_LAPACKE -DSMP_SERVER -DNO_WARMUP -DMAX_CPU_NUMBER=4 -marm -mfpu=neon  -mfloat-abi=hard -march=armv7-a -Wl,--no-warn-mismatch -DASMNAME=sscal -DASMFNAME=sscal_ -DNAME=sscal_ -DCNAME=sscal -DCHAR_NAME=\\\"sscal_\\\" -DCHAR_CNAME=\\\"sscal\\\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX -c scal.c -o sscal.o\r\naxpy.c:39:19: fatal error: stdio.h: No such file or directory\r\n #include <stdio.h>\r\n                   ^\r\ncompilation terminated.\r\nmake[1]: *** [saxpy.o] Error 1\r\nmake[1]: *** Waiting for unfinished jobs....\r\ncopy.c:39:19: fatal error: stdio.h: No such file or directory\r\n #include <stdio.h>\r\n                   ^\r\ncompilation terminated.\r\nmake[1]: *** [scopy.o] Error 1\r\nswap.c:39:19: fatal error: stdio.h: No such file or directory\r\n #include <stdio.h>\r\n                   ^\r\ncompilation terminated.\r\nscal.c:39:19: fatal error: stdio.h: No such file or directory\r\n #include <stdio.h>\r\n                   ^\r\ncompilation terminated.\r\nmake[1]: *** [sswap.o] Error 1\r\nmake[1]: *** [sscal.o] Error 1\r\nmake[1]: Leaving directory `/home/tanay/src/OpenBLAS/interface'\r\nmake: *** [libs] Error 1\r\n\r\nAny suggestion will be appreciated."}}
{"actor":{"display_login":"tanayz"}}