android ndk - How to build NDK LLVM toolchain for Windows? -


i trying build ndk llvm toolchain windows 64bits.

i downloaded source code via "download-toolchain-sources.sh".

firstly, tried run "build-llvm.sh" in cygwin64 bash on windows-7-64bits os.

my command is:

sh build-llvm.sh --verbose --build-out=/cygdrive/d/g//toolchain-llvm --platform=android-14 --try-64 -j4 /cygdrive/d/g/android-toolchain /cygdrive/p/android/android-ndk-r10e llvm-3.5 

i got 2 errors:

1.

error: unsupported host_tag: cygwin-x86_64 

2.

makefile:152: d:/cygdrive/d/g/android-toolchain/llvm-3.5/llvm/makefile.rules: no such file or directory make: *** no rule make target `d:/cygdrive/d/g/android-toolchain/llvm-3.5/llvm/makefile.rules'.  stop. 

then, tried run "build-llvm.sh" on ubuntu64 mingw64 installed.

my command is:

build-llvm.sh --verbose --build-out=~/toolchain-llvm-out --platform=android-14 --try-64 -j4 --mingw /media/sf_android-toolchain-src ~/android-ndk-r10e llvm-3.5 

i got following error:

found mingw toolchain: /usr/bin/x86_64-w64-mingw32-gcc warning: shell running script isn't bash.  although try avoid bashism in scripts, things can happen. warning: shell running script isn't bash.  although try avoid bashism in scripts, things can happen. warning: shell running script isn't bash.  although try avoid bashism in scripts, things can happen. warning: shell running script isn't bash.  although try avoid bashism in scripts, things can happen. warning: shell running script isn't bash.  although try avoid bashism in scripts, things can happen. using mingw64 wrapper: /tmp/ndk-root/build/mingw64-wrapper/x86_64-pc-mingw32msvc-gcc using specific build directory: ~/toolchain-llvm-out follow build in terminal, please use: tail -f /home/yifan/toolchain-llvm-out/config.log using source directory: /media/sf_android-toolchain-src using ndk directory: /home/yifan/android-ndk-r10e generating 64-bit windows binaries using toolchain path: /home/yifan/android-ndk-r10e/toolchains/llvm-3.5/prebuilt/windows-x86_64 using toolchain prefix: /home/yifan/android-ndk-r10e/toolchains/llvm-3.5/prebuilt/windows-x86_64/bin/ configure: llvm-3.5 toolchain build ## command: cp -a /home/yifan/android-ndk-r10e/tests/abcc/jni/abcc.cpp /media/sf_android-toolchain-src/llvm-3.5/llvm/tools/ndk-bc2native ## command: cp -a /home/yifan/android-ndk-r10e/tests/abcc/jni/abcc.h /media/sf_android-toolchain-src/llvm-3.5/llvm/tools/ndk-bc2native ## command: cp -a /home/yifan/android-ndk-r10e/tests/abcc/jni/host/abcc_host.cpp /home/yifan/android-ndk-r10e/tests/abcc/jni/host/main.cpp /media/sf_android-toolchain-src/llvm-3.5/llvm/tools/ndk-bc2native ## command: cp -a /home/yifan/android-ndk-r10e/tests/abcc/jni/host/abcc_host.h /media/sf_android-toolchain-src/llvm-3.5/llvm/tools/ndk-bc2native ## command: cp -a /home/yifan/android-ndk-r10e/tests/abcc/jni/llvm_35.h /media/sf_android-toolchain-src/llvm-3.5/llvm/tools/ndk-bc2native/llvm_version.h ## command: cp -a /home/yifan/android-ndk-r10e/tests/abcc/jni/mman-win32/mman.c /home/yifan/android-ndk-r10e/tests/abcc/jni/mman-win32/mman.h /media/sf_android-toolchain-src/llvm-3.5/llvm/tools/ndk-bc2native ## command: /media/sf_android-toolchain-src/llvm-3.5/llvm/configure --prefix=/home/yifan/toolchain-llvm-out/prefix --host=x86_64-pc-mingw32msvc --build=x86_64-linux-gnu --with-bug-report-url=http://source.android.com/source/report-bugs.html --enable-targets=arm,mips,x86,aarch64 --enable-optimized --with-binutils-include=/media/sf_android-toolchain-src/binutils/binutils-2.25/include checking x86_64-pc-mingw32msvc-clang... no checking x86_64-pc-mingw32msvc-gcc... x86_64-pc-mingw32msvc-gcc checking c compiler default output file name... a.exe checking whether c compiler works... yes checking whether cross compiling... yes checking suffix of executables... .exe checking suffix of object files... o checking whether using gnu c compiler... yes checking whether x86_64-pc-mingw32msvc-gcc accepts -g... yes checking x86_64-pc-mingw32msvc-gcc option accept iso c89... none needed checking x86_64-pc-mingw32msvc-clang++... no checking x86_64-pc-mingw32msvc-g++... x86_64-pc-mingw32msvc-g++ checking whether using gnu c++ compiler... no checking whether x86_64-pc-mingw32msvc-g++ accepts -g... no checking how run c preprocessor... x86_64-pc-mingw32msvc-gcc -e checking whether gcc or clang our host compiler... unknown checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-mingw32msvc checking target system type... x86_64-pc-mingw32msvc checking type of operating system we're going host on... mingw checking type of operating system we're going target... mingw checking target architecture... x86_64 checking executable suffix on build platform... checking x86_64-linux-gnu-gcc... x86_64-linux-gnu-gcc configure: error: installation or configuration problem: compiler cannot create executables. error: couldn't configure llvm toolchain 

i read config.log generated in toolchain-llvm-out/llvm. said:

configure:4364: x86_64-linux-gnu-gcc -o conftest -o2 -i/toolchain-llvm-out/prefix/include -ddisable_futimens -l/toolchain-llvm-out/prefix/lib -static-libstdc++ -static-libgcc -static conftest.c  1>&5 /tmp/ndk-root/build/mingw64-wrapper/x86_64-linux-gnu-gcc: 3: /tmp/ndk-root/build/mingw64-wrapper/x86_64-linux-gnu-gcc: /android-ndk-r10e/../prebuilts/tools/gcc-sdk/gcc: not found configure:4367: $? = 127 configure:4376: error: installation or configuration problem: compiler cannot create executables. 

it can't find "/android-ndk-r10e/../prebuilts/tools/gcc-sdk/gcc". it? position outside of ndk itself. supposed there?

the warning bash strange because sure runs in bash.

$ echo $shell /bin/bash $ echo $bash_version 4.2.25(1)-release 

i hope can @ least build on ubuntu. please help. thanks.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -