NDK 1.6 Linux distro - minor bug in build/host-setup.sh?

54 views
Skip to first unread message

Bro' Rat McMudd

unread,
Sep 30, 2009, 5:07:45 PM9/30/09
to android-ndk
Hello Google NDK folks,

I apologize if this is a FAQ.

Just downloaded NDK 1.6 Linux distro. According to the installation
instructions, I should run:
<ndk>/build/host_setup.sh
But this step was failing with the error messages:
jminer@jminer-ubuntu-128gb:~/SWTools/android-ndk-1.6_r1$ build/host-
setup.sh --verbose
Checking host development environment.
NDK Root : /home/jminer/SWTools/android-ndk-1.6_r1
looking for GNU Make as 'make'
Found version 3.81
GNU Make : make (version 3.81)
looking for nawk/gawk as 'awk'
[: 205: Pass: unexpected operator
Check Pass
looking for nawk/gawk as 'gawk'
[: 205: Pass: unexpected operator
Check Pass
looking for nawk/gawk as 'nawk'
[: 205: Pass: unexpected operator
Check Pass
ERROR: Could not find a valid Nawk or Gawk executable.
Please ensure that either one of them is installed.
Use the --no-awk-check option to ignore this message.

Looking at the script source:
Line 119 reads:
if [ "$result" == "Pass" ] ; then

I believe it should read:
if [ "$result" = "Pass" ] ; then

I made this change and the script completed with no errors.

Thanks...Jim Miner

johnjj

unread,
Oct 1, 2009, 3:55:47 AM10/1/09
to android-ndk
Hi,
same here with me, changed line 119 and it ran through.
thanks for the hint Jim,
Johannes

David Turner

unread,
Oct 1, 2009, 6:47:55 PM10/1/09
to andro...@googlegroups.com
Thank you for the catch !

Impactdni

unread,
Oct 13, 2009, 8:35:36 PM10/13/09
to android-ndk
Helped me out, thanks :)

On Oct 1, 6:47 pm, David Turner <di...@android.com> wrote:
> Thank you for the catch !
>

pzul

unread,
Nov 18, 2009, 10:57:21 AM11/18/09
to android-ndk
Yup - that fixed me too. Thanks.

Divkis

unread,
Feb 5, 2010, 1:40:22 AM2/5/10
to andro...@googlegroups.com
Hi,
I had the same problem and fixing the line 119 solved it for me.
But I see that this message is from October last year. It is strange
that this problem has not been fixed yet in the NDK build.

Would anyone from google like to comment that is it really a big deal
to fix this issue in the NDK release package?

Thanks to people who reported and fixed this problem,
Regards,
Divick

---------- Forwarded message ----------
From: David Turner <di...@android.com>
Date: Oct 2 2009, 3:47 am
Subject: NDK 1.6 Linux distro - minor bug in build/host-setup.sh?
To: android-ndk


Thank you for the catch !

On Wed, Sep 30, 2009 at 2:07 PM, Bro' Rat McMudd <jimm...@gmail.com>

Reply all
Reply to author
Forward
0 new messages