-
Notifications
You must be signed in to change notification settings - Fork 14
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
android gfortran for windows #1
Comments
Hi, Just to clarify: you want to build OpenBLAS on Windows, hence you need the gfortran compiler for Android from Windows. But you're trying to build it on Ubuntu using VMware, correct? First if you're building it on Ubuntu, you'll end up with the gfortran compiler for Android from Linux, which won't run on Windows. I think there's 2 possible solutions:
Solution 1 seems easier to me. I will see what can be done to build on Windows, I just need to find a Windows machine to try it out. |
Thank you for your answer. According to the way you did, 'build.py' supports other host using '--host' option. Plz let me know, what is the problem. Thanks. |
Actually I was wrong, they don't allow building on Windows. What is possible is to build it for Windows from Linux. I was able to build it for Windows 64-bit. I don't have a Windows so could you try it? If this works, I'll explain the steps in the README. |
Thank you very much. The toolchains you gave does work well^^. Please explain the step in the README. I also could solve this issue last night. Following is my solution. To build android gfortran for windows, two additional step was needed.
Thanks. |
I've run into the same problem. It turns out that the script that creates the wrappers assumes you have the MinGW compiler in a specific folder. I changed it to point to the one installed with I didn't ecounter your second problem. I'll add the steps later this week, if you get a chance to try them and tell me if you still have the binutils problem. |
Hmm, I did install mingw firstly using 'sudo apt-get install mingw-w64' command. My system couldn't find prebuilt compilers and so I did install them manually. Thanks. |
I just added the instructions to the README.md. Can you try them to see if you still get your binutils problem? I'll release prebuilt toolchains for Windows (32-bit & 64-bit) soon. |
Hi
I am trying to apply OpenBlas on android app for solving pseudo inverse problem.
Thus, I need 'dgesvd_' function.
However when I was building that function using android NDK, I faced with _Undefined reference to '_gfortran_concat_string' problem.
I found closed issue#460 which is a same problem in linux environment but I realized the fact that I need android toolchains for windows with gfortran to apply '-lgfortran' option in Android.mk .
Unfortunately currently provided android toolchains are only for linux. I was trying to build android gfortran for windows myself based 'https://github.com/buffer51/android-gfortran' but I faced another problem which is relate to 'gmp : Could not find a working compiler'.
Following is a log of building process.
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking ABI=32
checking compiler i386-linux-gnu-gcc -O2 -s -D__USE_MINGW_ANSI_STDIO=1 ... no
configure: error: could not find a working compiler, see config.log for details
Makefile:577: recipe for target 'stmp-config-host-gmp' failed
make[1]: *** [stmp-config-host-gmp] Error 1
make[1]: Leaving directory '/tmp/ndk-cmg/build/toolchain/host-i386-linux-gnu'
Makefile:268: recipe for target 'stmp-build-canadian-tools' failed
make: *** [stmp-build-canadian-tools] Error 2
Error while building mingw/darwin toolchain. See /tmp/ndk-cmg/build/toolchain/config.log
Traceback (most recent call last):
File "./build.py", line 64, in
build_support.run(main, ArgParser)
File "/home/cmg/ndk/build/lib/build_support.py", line 277, in run
main_func(args)
File "./build.py", line 61, in main
build_support.build(build_cmd, args)
File "/home/cmg/ndk/build/lib/build_support.py", line 148, in build
subprocess.check_call(cmd + common_args, env=build_env)
File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['bash', 'build-gcc.sh', '/home/cmg/toolchain', '/home/cmg/ndk', 'arm-linux-androideabi-4.9', '-j2', '--sysroot=/home/cmg/ndk/platforms/android-9/arch-arm', '--mingw', '--verbose', '--package-dir=/home/cmg/out/dist']' returned non-zero exit status 1
Please anyone help me.
Simply, I just need 'arm-linux-androideabi-gfortran.exe'.
Android Development Environment
OS : WINDOWS 7 64bit
IDE : eclipse
NDK : 11c
Taraget : armv7
gfortran building environment
OS : ubuntu 16.04 64bit (VMware)
Thanks.
The text was updated successfully, but these errors were encountered: