sql
php
ajax
mysql
database
android
ruby-on-rails
regex
objective-c
visual-studio
multithreading
perl
algorithm
facebook
cocoa
delphi
mvc
asp
jsp
dom
I also had this issue and found this Japanese site with similar problems:
http://d.hatena.ne.jp/yohpapa/20111113/1321198570
I hope I puzzled out the Google Translated stuff correctly - in any case, basically in the new NDK install, find this directory:
..../android-ndk-r7/prebuilt/linux-x86/bin
and rename the file "awk" there to something else like "awk_"
I did this and ndk_build now works for me. If I am reading the make files right there is a file called init.mk which replaces your HOST_AWK with the prebuilt value if it finds it...so renaming the awk file there defaults back to your gawk.
Hope that helps
Kibi
The problem is the executable ndk/prebuild/linux-x86/awk is compiled for x86_64, it's not run in a 32 bit kernel
This should resolve the problem.
I was having a problem with different versions of awk on windows. This change uses the cygwin version of awk from a cygwin console and the prebuilt version from a dos console.
Add to init.mk:
ifeq ($(HOST_OS),cygwin) HOST_AWK := /bin/awk endif
Go to your <ndk_dir>\build\core\ and open init.mk in a text editor, e.g. notepad
<ndk_dir>\build\core\
init.mk
Replace the following line
HOST_AWK := $(wildcard $(HOST_PREBUILT)/awk$(HOST_EXEEXT))
with
ifeq ($(HOST_OS),cygwin) HOST_AWK := $(wildcard $(HOST_PREBUILT)/gawk$(HOST_EXEEXT)) else HOST_AWK := $(wildcard $(HOST_PREBUILT)/awk$(HOST_EXEEXT)) endif
@Tod : Thanks, I used your hint here
That works.