Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7127911
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T11:04:58+00:00 2026-05-28T11:04:58+00:00

This starts off as an Android question but I think becomes a linux/cygwin question.

  • 0

This starts off as an Android question but I think becomes a linux/cygwin question.

The Android ndk is shipped with an unsuitable version of awk – definitive report here – so I’m trying to get cygwin to accept that I don’t want to use the ndk awk, but to use nawk or gawk instead.

Bearing in mind I know nothing about linux/cygwin, these are my discoveries:

The first part of the question has already been answered here so I know I need to rename the existing awk as awk_ so it isn’t picked up (done). And I need to set the cygwin environment variable HOST_AWk to gawk (or nawk – both of which are supplied with cygwin). The easy way to do this (for me) is to set that environment variable in Windows – then when cygwin runs it imports all the environment stuff from Windows.

So I think I know what to do, but the value of HOST_AWK doesn’t seem to be picked up when I try to do a build either directly in eclipse (build all) or in cygwin from bash:

Barry@BARRY /cygdrive/c/data/eclipse/camfeeda/jni
$ ndk-build
make: awk: Command not found
Android NDK: Host 'awk' tool is outdated. Please define HOST_AWK to point to Gawk or Nawk !
/cygdrive/c/DATA/eclipse/android/android-ndk-r7/build/core/init.mk:258: *** Android NDK: Aborting.    .  Stop.

Barry@BARRY /cygdrive/c/data/eclipse/camfeeda/jni
$ printenv HOST_AWK
c:\cygwin\bin\gawk.exe

As you see I have set HOST_AWK to gawk.exe in the correct location, but I’ve tried:

HOST_AWK=c:\cygwin\bin\gawk.exe
HOST_AWK=c:\cygwin\bin\gawk
HOST_AWK=c:\cygwin\bin\nawk.exe
HOST_AWK=c:\cygwin\bin\nawk

And I’ve tried using forward slashes in case that was the problem, but I still get the same error 🙁

I feel as if I am so close, but I can’t make the last step. Why won’t ndk-build read the environment variable HOST_AWK and do the dratted job?! Can anyone put me out of my misery?

Many thanks

Barry

Edit: I also tried:

HOST_AWK=/cygdrive/c/cygwin/bin/gawk.exe

etc, but no joy.

B.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T11:04:59+00:00Added an answer on May 28, 2026 at 11:04 am

    For me it’s just deleting/renaming awk.exe that is shipped with ndk-r7. And they everything works. No need for setting HOST_AWK env variable.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question kind of starts where this question ends up. MATLAB has a powerful
There is this example code, but then it starts talking about millisecond / nanosecond
I know similar questions have been asked before but i think this is slightly
This may sound very simple and off the track, but any help will be
This program starts off in the FleetInterface class by asking the user for a
I am learning android but I can't get past the InputStream.read(). This is just
Let me start off with a bit of background. This morning one of our
Array starts like this: Array ( [SMART Board] => Array ( [0] => sb1
My ASP.NET always starts like this with the internal server: http://localhost:50793/Website/ I use FckEditor
I have an XML file that starts like this: <Elements name=Entities xmlns=XS-GenerationToolElements> I'll have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.