building the binaries

815 views
Skip to first unread message

AdrianH

unread,
Apr 19, 2012, 4:40:01 PM4/19/12
to andro...@googlegroups.com
Ok, so now I'm trying to build the binaries but it is causing me some grief.

3.b/ Build the binaries:

        Use the following command to rebuild the binaries from the source
        tarball that was created in the previous section with the --package
        option:

            $NDK/build/tools/rebuild-all-prebuilt.sh --toolchain-pkg=<file>

        Where <file> points to the package generated by the
        download-toolchain-sources.sh script.

        In the case where you downloaded the sources to a directory instead,
        use the --toolchain-src-dir option instead, as with:

            $NDK/build/tools/rebuild-all-prebuilt.sh --toolchain-src-dir=<path>

However, there is no such switch as --toolchain-pkg.  The help states this:

Valid options (defaults are in brackets):

  --help                      Print this help.
  --verbose                   Enable verbose mode.
  --ndk-dir=<path>            Put binaries into NDK install directory [/home/adrian/workdir/ndk]
  --build-dir=<path>          Specify temporary build directory [/tmp/ndk-adrian/build]
  --arch=<arch>               Specify target architectures [arm x86 mips]
  --systems=<list>            Specify host systems
  --package-dir=<path>        Put prebuilt tarballs into <path>. [/tmp/ndk-adrian/prebuilt-20120419]
  --darwin-ssh=<hostname>     Specify Darwin hostname for remote build.
  --try-64                    Generate 64-bit binaries.

So am I supposed to untar the tarball and point at it?  Is there no one else having these problems?  Or are these new problems with the latest NDK?  Everyone else I've seen seems to have gotten way past this point.


A


David Turner

unread,
Apr 20, 2012, 6:00:44 AM4/20/12
to andro...@googlegroups.com
I just checked the scripts in the release. They won't work for various reasons, sorry about that, we'll try to fix it later.

You can still generate the binaries with the following instructions (I tested them with NDK r7c):

   cd $NDK
   SRCDIR=<toolchain-src-dir>
   ARM=arm-linux-androideabi-4.4.3
   X86=x86-4.4.3

   build/tools/build-gcc.sh $SRCDIR $NDK $ARM
   build/tools/build-gcc.sh $SRCDIR $NDK $X86

   build/tools/build-gdbserver.sh $SRCDIR $NDK $ARM
   build/tools/build-gdbserver.sh $SRCDIR $NDK $X86

   build/tools/build/build-gabi++.sh
   build/tools/build/build-stlport.sh
   build/tools/build/build-gnu-libstdc++.sh $SRCDIR

The scripts don't work from a release directory because they're currently designed to work from a checkout of the git NDK directories (ndk.git and development.git/ndk).
I'll probably fix this later.

The sources of the host tools like ndk-stack are not part of an NDK release so you won't be able to build them, unless you get the git repositories.

I hope this will be enough for your needs. Otherwise, I can only recommend you checking out the git repositories and working from them to rebuild whatever you need.

- David




A


--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/04cdLzeTb78J.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.

AdrianH

unread,
Apr 20, 2012, 9:42:38 AM4/20/12
to andro...@googlegroups.com
Ok, so what is <toolchain-src-dir>?  Do I untar the android-ndk-toolchain-20110225.tar.bz2 that I just made and point at it?  Well, I tried that and it barfed. This is the tail of the config.log

...
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 gcc -m32 -Wno-error ... no
configure: error: could not find a working compiler, see config.log for details
make: *** [stmp-config-host-gmp] Error 1

It looks like it needs the 32 bit libs, so installing them now.  Is there a way of getting this to build under 64bit?


A


On Friday, April 20, 2012 6:00:44 AM UTC-4, Digit wrote:
I just checked the scripts in the release. They won't work for various reasons, sorry about that, we'll try to fix it later.

You can still generate the binaries with the following instructions (I tested them with NDK r7c):

   cd $NDK
   SRCDIR=<toolchain-src-dir>
   ARM=arm-linux-androideabi-4.4.3
   X86=x86-4.4.3

   build/tools/build-gcc.sh $SRCDIR $NDK $ARM
   build/tools/build-gcc.sh $SRCDIR $NDK $X86

   build/tools/build-gdbserver.sh $SRCDIR $NDK $ARM
   build/tools/build-gdbserver.sh $SRCDIR $NDK $X86

   build/tools/build/build-gabi++.sh
   build/tools/build/build-stlport.sh
   build/tools/build/build-gnu-libstdc++.sh $SRCDIR

The scripts don't work from a release directory because they're currently designed to work from a checkout of the git NDK directories (ndk.git and development.git/ndk).
I'll probably fix this later.

The sources of the host tools like ndk-stack are not part of an NDK release so you won't be able to build them, unless you get the git repositories.

I hope this will be enough for your needs. Otherwise, I can only recommend you checking out the git repositories and working from them to rebuild whatever you need.

- David

To unsubscribe from this group, send email to android-ndk+unsubscribe@googlegroups.com.

David Turner

unread,
Apr 20, 2012, 9:46:44 AM4/20/12
to andro...@googlegroups.com
On Fri, Apr 20, 2012 at 3:42 PM, AdrianH <adrian....@gmail.com> wrote:
Ok, so what is <toolchain-src-dir>?  Do I untar the android-ndk-toolchain-20110225.tar.bz2 that I just made and point at it?  Well, I tried that and it barfed. This is the tail of the config.log

Yes, exactly, you untar it in a working directory that you point to with SRCDIR as decribed above.
 
...
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 gcc -m32 -Wno-error ... no
configure: error: could not find a working compiler, see config.log for details
make: *** [stmp-config-host-gmp] Error 1

It looks like it needs the 32 bit libs, so installing them now.  Is there a way of getting this to build under 64bit?


You dont have gcc installed apparently. Make sure you have gcc + make + a few other development tools installed before trying this.

 
To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/Spkieo-PVtoJ.

To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.

David Turner

unread,
Apr 20, 2012, 9:48:09 AM4/20/12
to andro...@googlegroups.com
On Fri, Apr 20, 2012 at 3:42 PM, AdrianH <adrian....@gmail.com> wrote:

It looks like it needs the 32 bit libs, so installing them now.  Is there a way of getting this to build under 64bit?

Yes, that should work. You can also build 64-bit toolchain binaries  by using the --try-64 flag in build-gcc.sh, but I'm not sure the other scripts will pick the result to build the target binaries.

To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/Spkieo-PVtoJ.

To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.

AdrianH

unread,
Apr 20, 2012, 10:21:15 AM4/20/12
to andro...@googlegroups.com
Ok, well, I've installed the ia32-libs, gcc was already installed.  I'm running Ubuntu 11.10 64bit.

*sigh* This shouldn't be this complex. :(


A

On Friday, April 20, 2012 9:48:09 AM UTC-4, Digit wrote:
On Friday, April 20, 2012 9:48:09 AM UTC-4, Digit wrote:

David Turner

unread,
Apr 20, 2012, 10:51:20 AM4/20/12
to andro...@googlegroups.com
On Fri, Apr 20, 2012 at 4:21 PM, AdrianH <adrian....@gmail.com> wrote:
Ok, well, I've installed the ia32-libs, gcc was already installed.  I'm running Ubuntu 11.10 64bit.

*sigh* This shouldn't be this complex. :(

Look at the log file created by the script, it should have more information about what's going wrong. It may point you to another config.log that you'll have to hunt down, but this is all doable.

For the record, I did rebuild all the binaries on 10.10 from the NDK r7c linux package, so there is probably something with your setup.
The log files should tell you more about that. 

Generally speaking, toolchain generation is hell. The configure scripts do all kind of stupid / crazy / awesome tricks to guess what you want, and they sometimes fail spectacularly with incorrect / undecypherable error messages.

Good luck though.


To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/rYZT6FpvutAJ.

To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.

AdrianH

unread,
Apr 20, 2012, 3:22:02 PM4/20/12
to andro...@googlegroups.com
Well, here is the output of the config.log file:

cat /tmp/ndk-adrian/build/toolchain/config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by android-tools configure 2.0, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ /home/adrian/workdir/ndk/../android-ndk-toolchain/build/configure --target=arm-linux-androideabi --enable-initfini-array --host=x86_64-linux-gnu --build=x86_64-linux-gnu --disable-nls --prefix=/home/adrian/workdir/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86 --with-sysroot=/home/adrian/workdir/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/sysroot --with-binutils-version=2.19 --with-mpfr-version=2.4.1 --with-mpc-version=0.8.1 --with-gmp-version=4.2.4 --with-gcc-version=4.4.3 --with-gdb-version=6.6 --disable-bootstrap --disable-libquadmath --disable-plugin --with-arch=armv5te

## --------- ##
## Platform. ##
## --------- ##

hostname = dimensional-anomaly
uname -m = x86_64
uname -r = 3.0.0-17-generic
uname -s = Linux
uname -v = #30-Ubuntu SMP Thu Mar 8 20:45:39 UTC 2012

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/lib/lightdm/lightdm
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1297: checking build system type
configure:1315: result: x86_64-pc-linux-gnu
configure:1323: checking host system type
configure:1337: result: x86_64-pc-linux-gnu
configure:1345: checking target system type
configure:1359: result: arm-unknown-linux-androideabi
configure:1585: checking target binutils version to build
configure:1597: result: 2.19
configure:1628: checking target gold binutils version to build
configure:1638: result: 2.19
configure:1671: checking target gcc version to build
configure:1683: result: 4.4.3
configure:1784: checking gmp version
configure:1796: result: 4.2.4
configure:1825: checking mpfr version
configure:1837: result: 2.4.1
configure:1913: checking target gdb version to build
configure:1925: result: 6.6
configure:2108: creating ./config.status
configure: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by android-tools config.status 2.0, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  CONFIG_FILES    =
  CONFIG_HEADERS  =
  CONFIG_LINKS    =
  CONFIG_COMMANDS =
  $ ./config.status

on dimensional-anomaly

config.status:654: creating Makefile
config.status: creating Makefile

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-pc-linux-gnu
ac_cv_build_alias=x86_64-linux-gnu
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=x86_64-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=x86_64-linux-gnu
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=arm-linux-androideabi
ac_cv_host=x86_64-pc-linux-gnu
ac_cv_host_alias=x86_64-linux-gnu
ac_cv_target=arm-unknown-linux-androideabi
ac_cv_target_alias=arm-linux-androideabi

## ----------------- ##
## Output variables. ##
## ----------------- ##

BINUTILS_VERSION='2.19'
BUILD_ANDROID_GCC='yes'
DEFS='-DPACKAGE_NAME=\"android-tools\" -DPACKAGE_TARNAME=\"android-tools\" -DPACKAGE_VERSION=\"2.0\" -DPACKAGE_STRING=\"android-tools\ 2.0\" -DPACKAGE_BUGREPORT=\"\" '
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
GCC_MIN_VERSION_4_3_0='yes'
GCC_MIN_VERSION_4_5_0='no'
GCC_VERSION='4.4.3'
GDB_TARGET='arm-elf-linux'
GDB_VERSION='6.6'
GMP_VERSION='4.2.4'
GOLD_VERSION='2.19'
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MPC_VERSION=''
MPFR_VERSION='2.4.1'
NEWLIB_VERSION=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME='android-tools'
PACKAGE_STRING='android-tools 2.0'
PACKAGE_TARNAME='android-tools'
PACKAGE_VERSION='2.0'
PATH_SEPARATOR=':'
SHELL='/bin/bash'
TOPLEVEL_CONFIGURE_ARGUMENTS='--target=arm-linux-androideabi --enable-initfini-array --host=x86_64-linux-gnu --build=x86_64-linux-gnu --disable-nls --prefix=/home/adrian/workdir/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86 --with-sysroot=/home/adrian/workdir/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/sysroot --with-binutils-version=2.19 --with-mpfr-version=2.4.1 --with-mpc-version=0.8.1 --with-gmp-version=4.2.4 --with-gcc-version=4.4.3 --with-gdb-version=6.6 --disable-bootstrap --disable-libquadmath --disable-plugin --with-arch=armv5te'
baseargs=''--enable-initfini-array' '--disable-nls' '--prefix=/home/adrian/workdir/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86' '--with-sysroot=/home/adrian/workdir/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/sysroot' '--with-binutils-version=2.19' '--with-mpfr-version=2.4.1' '--with-mpc-version=0.8.1' '--with-gmp-version=4.2.4' '--with-gcc-version=4.4.3' '--with-gdb-version=6.6' '--disable-bootstrap' '--disable-libquadmath' '--disable-plugin' '--with-arch=armv5te' --program-transform-name='s,^,arm-linux-androideabi-,''
bindir='${exec_prefix}/bin'
build='x86_64-pc-linux-gnu'
build_alias='x86_64-linux-gnu'
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='pc'
datadir='${prefix}/share'
exec_prefix='${prefix}'
gold_baseargs=' '--enable-initfini-array' '--disable-nls' '--prefix=/home/adrian/workdir/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86' '--with-sysroot=/home/adrian/workdir/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/sysroot' '--with-binutils-version=2.19' '--with-mpfr-version=2.4.1' '--with-mpc-version=0.8.1' '--with-gmp-version=4.2.4' '--with-gcc-version=4.4.3' '--with-gdb-version=6.6' '--disable-bootstrap' '--disable-libquadmath' '--disable-plugin' '--with-arch=armv5te' --program-transform-name='s,^,arm-linux-androideabi-,''
host='x86_64-pc-linux-gnu'
host_alias='x86_64-linux-gnu'
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='pc'
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
package_to_srcdir='/home/adrian/workdir/ndk/../android-ndk-toolchain/build'
prefix='/home/adrian/workdir/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86'
program_transform_name='s,^,arm-linux-androideabi-,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
sysroot='/home/adrian/workdir/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/sysroot'
target='arm-unknown-linux-androideabi'
target_alias='arm-linux-androideabi'
target_cpu='arm'
target_os='linux-androideabi'
target_vendor='unknown'

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "android-tools"
#define PACKAGE_STRING "android-tools 2.0"
#define PACKAGE_TARNAME "android-tools"
#define PACKAGE_VERSION "2.0"

configure: exit 0
Building : arm-linux-androideabi-4.4.3 toolchain [this can take a long time].
## COMMAND: make -j6
([ -d binutils-2.19 ] || \
      mkdir binutils-2.19) && \
    ( \
     cd binutils-2.19 ; \
     /home/adrian/workdir/ndk/../android-ndk-toolchain/build/../binutils/binutils-2.19/configure \
      --prefix=/home/adrian/workdir/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86 --target=arm-linux-androideabi --host=x86_64-linux-gnu --build=x86_64-linux-gnu '--enable-initfini-array' '--disable-nls' '--prefix=/home/adrian/workdir/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86' '--with-sysroot=/home/adrian/workdir/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/sysroot' '--with-binutils-version=2.19' '--with-mpfr-version=2.4.1' '--with-mpc-version=0.8.1' '--with-gmp-version=4.2.4' '--with-gcc-version=4.4.3' '--with-gdb-version=6.6' '--disable-bootstrap' '--disable-libquadmath' '--disable-plugin' '--with-arch=armv5te' --program-transform-name='s,^,arm-linux-androideabi-,' --disable-shared) && \
    touch stmp-config-target-binutils
([ -d gmp-4.2.4 ] || \
      mkdir gmp-4.2.4) && \
    ( \
     cd gmp-4.2.4 ; \
     /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/configure \
      '--enable-initfini-array' '--disable-nls' '--prefix=/home/adrian/workdir/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86' '--with-sysroot=/home/adrian/workdir/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/sysroot' '--with-binutils-version=2.19' '--with-mpfr-version=2.4.1' '--with-mpc-version=0.8.1' '--with-gmp-version=4.2.4' '--with-gcc-version=4.4.3' '--with-gdb-version=6.6' '--disable-bootstrap' '--disable-libquadmath' '--disable-plugin' '--with-arch=armv5te' --program-transform-name='s,^,arm-linux-androideabi-,' --prefix=/tmp/ndk-adrian/build/toolchain/temp-install --disable-shared --host=x86_64-linux-gnu --build=x86_64-linux-gnu) && \
    touch stmp-config-host-gmp
([ -d gdb-6.6 ] || \
      mkdir gdb-6.6) && \
    ( \
     cd gdb-6.6 ; \
     /home/adrian/workdir/ndk/../android-ndk-toolchain/build/../gdb/gdb-6.6/configure \
      '--enable-initfini-array' '--disable-nls' '--prefix=/home/adrian/workdir/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86' '--with-sysroot=/home/adrian/workdir/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/sysroot' '--with-binutils-version=2.19' '--with-mpfr-version=2.4.1' '--with-mpc-version=0.8.1' '--with-gmp-version=4.2.4' '--with-gcc-version=4.4.3' '--with-gdb-version=6.6' '--disable-bootstrap' '--disable-libquadmath' '--disable-plugin' '--with-arch=armv5te' --program-transform-name='s,^,arm-linux-androideabi-,' --prefix=/home/adrian/workdir/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86 --target=arm-elf-linux --host=x86_64-linux-gnu --build=x86_64-linux-gnu --disable-nls) && \
    touch stmp-config-target-gdb
checking build system type... x86_64-pc-linux-gnu
checking host system type... checking build system type... x86_64-pc-linux-gnu
x86_64-pc-linux-gnu
checking host system type... checking for a BSD-compatible install... checking build system type... x86_64-pc-linux-gnu
checking target system type... /usr/bin/install -c
checking whether build environment is sane... x86_64-pc-linux-gnu
arm-elf-linux-gnu
checking host system type... checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
x86_64-pc-linux-gnu
checking target system type... checking for x86_64-linux-gnu-gcc... gcc -m32
arm-unknown-linux-androideabi
checking for a BSD-compatible install... checking for C compiler default output file name... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for x86_64-linux-gnu-gcc... gcc -m32
checking for C compiler default output file name...
configure: error: in `/tmp/ndk-adrian/build/toolchain/binutils-2.19':
configure: error: C compiler cannot create executables
See `config.log' for more details.
configure: error: C compiler cannot create executables
See `config.log' for more details.
make: *** [stmp-config-target-gdb] Error 77
make: *** Waiting for unfinished jobs....
make: *** [stmp-config-target-binutils] Error 77
yes

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 gcc -m32 -Wno-error ... no
configure: error: could not find a working compiler, see config.log for details
make: *** [stmp-config-host-gmp] Error 1

Looking at it suggests that the "C compiler cannot create executables" and I'm not sure why it would say that.

I wrote a simple HelloWorld file to see if it will compile one with success.  So I'm not sure what sort of test it is doing to come up with a failure.

Any ideas?


A

On Friday, April 20, 2012 10:51:20 AM UTC-4, Digit wrote:

David Turner

unread,
Apr 20, 2012, 4:17:21 PM4/20/12
to andro...@googlegroups.com
there should be more information inside /tmp/ndk-adrian/build/binutils-2.19/config.log (there are plenty of config.log files during the build).

In a nutshell, it looks like "gcc -m32" doesn't work correctly on your machine. You may be missing some development packages. Did you try installing all  the stuff listed on this page: http://source.android.com/source/initializing.html (probably overkill, but should be at least sufficient).


To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/_miYJ5nFDlgJ.

To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.

AdrianH

unread,
Apr 20, 2012, 5:41:03 PM4/20/12
to andro...@googlegroups.com
Well that helped a bit.  I think I did some of this before but my virtual os died so I had to reinstall.

One thing I noted when installing this stuff is that a package was replaced automagicly and another was not found and something else was suggested.

$ sudo apt-get install git-core gnupg flex bison gperf build-essential \
>   zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
>   x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \
>   libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \
>   libxml2-utils xsltproc
[sudo] password for adrian:
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Note, selecting 'lib32z1-dev' instead of 'lib32z-dev'
Package lib32readline5-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However, the following packages replace it:
  lib32readline-gplv2-dev

So I used the suggested one.  Here is the new log given the new dependencies installed.

$ cat /tmp/ndk-adrian/build/toolchain/config.log

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by android-tools configure 2.0, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ /home/adrian/workdir/android-ndk-toolchain/build/configure --target=arm-linux-androideabi --enable-initfini-array --host=x86_64-linux-gnu --build=x86_64-linux-gnu --disable-nls --prefix=/home/adrian/workdir/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86 --with-sysroot=/home/adrian/workdir/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/sysroot --with-binutils-version=2.19 --with-mpfr-version=2.4.1 --with-mpc-version=0.8.1 --with-gmp-version=4.2.4 --with-gcc-version=4.4.3 --with-gdb-version=6.6 --disable-bootstrap --disable-libquadmath --disable-plugin --with-arch=armv5te
package_to_srcdir='/home/adrian/workdir/android-ndk-toolchain/build'
     /home/adrian/workdir/android-ndk-toolchain/build/../binutils/binutils-2.19/configure \

      --prefix=/home/adrian/workdir/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86 --target=arm-linux-androideabi --host=x86_64-linux-gnu --build=x86_64-linux-gnu '--enable-initfini-array' '--disable-nls' '--prefix=/home/adrian/workdir/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86' '--with-sysroot=/home/adrian/workdir/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/sysroot' '--with-binutils-version=2.19' '--with-mpfr-version=2.4.1' '--with-mpc-version=0.8.1' '--with-gmp-version=4.2.4' '--with-gcc-version=4.4.3' '--with-gdb-version=6.6' '--disable-bootstrap' '--disable-libquadmath' '--disable-plugin' '--with-arch=armv5te' --program-transform-name='s,^,arm-linux-androideabi-,' --disable-shared) && \
    touch stmp-config-target-binutils
([ -d gmp-4.2.4 ] || \
      mkdir gmp-4.2.4) && \
    ( \
     cd gmp-4.2.4 ; \
     /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/configure \
      '--enable-initfini-array' '--disable-nls' '--prefix=/home/adrian/workdir/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86' '--with-sysroot=/home/adrian/workdir/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/sysroot' '--with-binutils-version=2.19' '--with-mpfr-version=2.4.1' '--with-mpc-version=0.8.1' '--with-gmp-version=4.2.4' '--with-gcc-version=4.4.3' '--with-gdb-version=6.6' '--disable-bootstrap' '--disable-libquadmath' '--disable-plugin' '--with-arch=armv5te' --program-transform-name='s,^,arm-linux-androideabi-,' --prefix=/tmp/ndk-adrian/build/toolchain/temp-install --disable-shared --host=x86_64-linux-gnu --build=x86_64-linux-gnu) && \
    touch stmp-config-host-gmp
([ -d gdb-6.6 ] || \
      mkdir gdb-6.6) && \
    ( \
     cd gdb-6.6 ; \
     /home/adrian/workdir/android-ndk-toolchain/build/../gdb/gdb-6.6/configure \

      '--enable-initfini-array' '--disable-nls' '--prefix=/home/adrian/workdir/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86' '--with-sysroot=/home/adrian/workdir/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/sysroot' '--with-binutils-version=2.19' '--with-mpfr-version=2.4.1' '--with-mpc-version=0.8.1' '--with-gmp-version=4.2.4' '--with-gcc-version=4.4.3' '--with-gdb-version=6.6' '--disable-bootstrap' '--disable-libquadmath' '--disable-plugin' '--with-arch=armv5te' --program-transform-name='s,^,arm-linux-androideabi-,' --prefix=/home/adrian/workdir/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86 --target=arm-elf-linux --host=x86_64-linux-gnu --build=x86_64-linux-gnu --disable-nls) && \
    touch stmp-config-target-gdb
checking build system type... checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
x86_64-pc-linux-gnu
checking target system type... checking host system type... arm-elf-linux-gnu

checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... x86_64-pc-linux-gnu

yes
checking whether ln -s works... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... arm-unknown-linux-androideabi
checking for a BSD-compatible install... /usr/bin/install -c

checking whether ln works... yes
checking whether ln -s works... yes
checking for x86_64-linux-gnu-gcc... gcc -m32
checking for C compiler default output file name... checking for x86_64-linux-gnu-gcc... gcc -m32
checking for C compiler default output file name... a.out
checking whether the C compiler works... a.out
checking whether the C compiler works... yes
yes
checking whether we are cross compiling... no
checking for suffix of executables... checking whether we are cross compiling... no
checking for suffix of executables...

checking for suffix of object files... checking for suffix of object files... o
checking whether we are using the GNU C compiler... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -m32 accepts -g... yes
checking whether gcc -m32 accepts -g... yes
checking for gcc -m32 option to accept ANSI C... yes
checking for gcc -m32 option to accept ISO C89... yes

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 gcc -m32 -Wno-error ... none needed
none needed
checking for x86_64-linux-gnu-gnatbind... no
checking for gnatbind... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for correct version of gmp.h... checking for x86_64-linux-gnu-g++... g++ -m32
checking whether we are using the GNU C++ compiler... no
yes
checking compiler gcc -m32 -Wno-error has sizeof(long)==4... yes

checking for x86_64-linux-gnu-gcc... gcc -m32
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -m32 accepts -g... yes
checking for gcc -m32 option to accept ANSI C... none needed
checking how to run the C preprocessor... checking for bison... bison -y
checking for bison... bison
checking for gm4... no
checking for gnum4... no
checking for m4... m4
checking for flex... flex
checking for flex... flex
checking for makeinfo... no
yes
checking whether g++ -m32 accepts -g... checking for expect... no
checking for runtest... no
checking for x86_64-linux-gnu-ar... no
checking for ar... ar
checking for x86_64-linux-gnu-as... no
checking for as... as
checking for x86_64-linux-gnu-dlltool... no
checking for dlltool... no
checking for x86_64-linux-gnu-ld... no
checking for ld... ld
checking for x86_64-linux-gnu-lipo... no
checking for lipo... no
checking for x86_64-linux-gnu-nm... no
checking for nm... nm
checking for x86_64-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for x86_64-linux-gnu-strip... no
checking for strip... strip
checking for x86_64-linux-gnu-windres... no
checking for windres... no
checking for x86_64-linux-gnu-objcopy... no
checking for objcopy... objcopy
checking for x86_64-linux-gnu-objdump... no
checking for objdump... objdump
checking for arm-elf-linux-cc... no
checking for arm-elf-linux-gcc... no
checking for arm-elf-linux-c++... no
checking for arm-elf-linux-g++... no
checking for arm-elf-linux-cxx... no
checking for arm-elf-linux-gxx... no
checking for arm-elf-linux-gcc... no
checking for arm-elf-linux-gcj... no
checking for arm-elf-linux-gfortran... no
yes
checking for ar... no
checking for arm-elf-linux-ar... no
checking for as... no
checking for arm-elf-linux-as... no
checking for dlltool... no
checking for arm-elf-linux-dlltool... no
checking for ld... no
checking for arm-elf-linux-ld... no
checking for lipo... no
checking for arm-elf-linux-lipo... no
checking for nm... no
checking for arm-elf-linux-nm... no
checking for objdump... no
checking for arm-elf-linux-objdump... no
checking for ranlib... no
checking for arm-elf-linux-ranlib... no
checking for strip... no
checking for arm-elf-linux-strip... no
checking for windres... no
checking for arm-elf-linux-windres... no
checking where to find the target ar... pre-installed
checking where to find the target as... pre-installed
checking where to find the target cc... pre-installed
checking where to find the target c++... pre-installed
checking where to find the target c++ for libstdc++... pre-installed
checking where to find the target dlltool... pre-installed
checking where to find the target gcc... pre-installed
checking where to find the target gcj... pre-installed
checking where to find the target gfortran... pre-installed
checking where to find the target ld... pre-installed
checking where to find the target lipo... pre-installed
checking where to find the target nm... pre-installed
checking where to find the target objdump... pre-installed
checking where to find the target ranlib... pre-installed
checking where to find the target strip... gcc -m32 -E
pre-installed
checking where to find the target windres... pre-installed

checking whether to enable maintainer-specific portions of Makefiles... no
checking whether -fkeep-inline-functions is supported... yes
configure: creating ./config.status
checking build system compiler gcc -m32... yes
checking for build system preprocessor... gcc -m32 -E
checking for build system executable suffix... config.status: creating Makefile
checking for x86_64-linux-gnu-gnatbind... no
checking for gnatbind... no
checking for x86_64-linux-gnu-gnatmake... no
checking for gnatmake... no
checking whether compiler driver understands Ada...
checking whether build system compiler is ANSI... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
yes
checking for build system compiler math library... -lm
checking for egrep... grep -E
using ABI="32"
      CC="gcc -m32"
      CFLAGS="-Wno-error"
      CPPFLAGS=""
      MPN_PATH=" x86 generic"
checking for function prototypes... yes
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... ( \
     make -C gdb-6.6) && touch stmp-build-target-gdb
yes
checking for stdlib.h... make[1]: Entering directory `/tmp/ndk-adrian/build/toolchain/gdb-6.6'
yes
checking for string.h... make[2]: Entering directory `/tmp/ndk-adrian/build/toolchain/gdb-6.6'
make[2]: Nothing to be done for `all-target'.
yes
mkdir -p -- ./etc
mkdir -p -- ./readline
mkdir -p -- ./intl
mkdir -p -- ./libiberty
Configuring in ./etc
Configuring in ./readline
Configuring in ./intl
Configuring in ./libiberty
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking whether assembler supports --noexecstack option... yes
checking for x86_64-linux-gnu-ar... no
checking for ar... ar
checking for BSD-compatible nm... configure: creating cache ./config.cache

checking for a BSD-compatible install... /usr/bin/install -c
/usr/bin/nm -B
checking for a sed that does not truncate output... /bin/sed
updating cache ./config.cache
checking for ld used by gcc -m32... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... configure: creating ./config.status
yes
checking for /usr/bin/ld option to reload object files... -r

checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
configure: creating cache ./config.cache
configure: creating cache ./config.cache
checking whether make sets $(MAKE)... checking dlfcn.h usability... checking build system type... yes

checking for a BSD-compatible install... /usr/bin/install -c
checking whether NLS is requested... no
checking for msgfmt... no
checking for gmsgfmt... :
configure: creating cache ./config.cache
x86_64-pc-linux-gnu
checking for xgettext... no
checking host system type... checking for msgmerge... no

checking for x86_64-linux-gnu-gcc... gcc -m32
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... /home/adrian/workdir/android-ndk-toolchain/gdb/gdb-6.6/missing makeinfo --split-size=5000000
configure: WARNING:
*** Makeinfo is missing. Info documentation will not be built.
checking for perl... perl
checking build system type... checking for bison... bison -y
checking for bison... bison
checking for gm4... no
checking for gnum4... no
checking for m4... m4
checking for flex... flex
checking for flex... flex
checking for makeinfo... no
x86_64-pc-linux-gnu
checking for C compiler default output file name... x86_64-pc-linux-gnu

Beginning configuration for readline-5.1 for x86_64-pc-linux-gnu


checking whether make sets $(MAKE)... yes
checking dlfcn.h presence... checking host system type... checking for expect... no
checking for runtest... no
checking for x86_64-linux-gnu-ar... no
checking for ar... ar
checking for x86_64-linux-gnu-as... no
checking for as... as
checking for x86_64-linux-gnu-dlltool... no
checking for dlltool... no
checking for x86_64-linux-gnu-ld... no
checking for ld... ld
checking for x86_64-linux-gnu-lipo... no
checking for lipo... no
checking for x86_64-linux-gnu-nm... yes
no
checking for x86_64-linux-gnu-gcc... checking for nm... gcc -m32
nm
checking for x86_64-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for x86_64-linux-gnu-strip... no
checking for strip... strip
checking for x86_64-linux-gnu-windres... no
checking for windres... no
checking for x86_64-linux-gnu-windmc... no
checking for windmc... no
checking for x86_64-linux-gnu-objcopy... no
checking for objcopy... objcopy
checking for x86_64-linux-gnu-objdump... no
checking for objdump... objdump
checking for arm-linux-androideabi-cc... no
checking for arm-linux-androideabi-gcc... no
x86_64-pc-linux-gnu
checking for arm-linux-androideabi-c++... no
checking for arm-linux-androideabi-g++... no
checking for arm-linux-androideabi-cxx... no
checking for arm-linux-androideabi-gxx... no
checking for arm-linux-androideabi-gcc... no
checking for arm-linux-androideabi-gcj... no
checking for arm-linux-androideabi-gfortran... no
yes
checking for dlfcn.h... a.out
checking whether the C compiler works... yes
checking for x86_64-linux-gnu-ar... ar
checking for x86_64-linux-gnu-ranlib... ranlib
checking for arm-linux-androideabi-ar... checking for x86_64-linux-gnu-gcc... no
gcc -m32
checking for arm-linux-androideabi-as... no
checking for arm-linux-androideabi-dlltool... yes
no
checking for arm-linux-androideabi-ld... no
checking whether we are cross compiling... no
checking for arm-linux-androideabi-lipo... checking for suffix of executables... no
checking for arm-linux-androideabi-nm... no
checking how to run the C++ preprocessor... checking for arm-linux-androideabi-objdump... no
checking for arm-linux-androideabi-ranlib... no
config.status: creating Makefile
checking for arm-linux-androideabi-strip... no
checking for arm-linux-androideabi-windres... no
checking for arm-linux-androideabi-windmc... no
checking where to find the target ar... just compiled
checking where to find the target as... just compiled
checking where to find the target cc... pre-installed
checking where to find the target c++... checking for C compiler default output file name... pre-installed
checking where to find the target c++ for libstdc++... pre-installed
checking where to find the target dlltool... just compiled
checking where to find the target gcc... pre-installed
checking where to find the target gcj... pre-installed
checking where to find the target gfortran... pre-installed
checking where to find the target ld... just compiled
checking where to find the target lipo... pre-installed
checking where to find the target nm... just compiled
checking where to find the target objdump... just compiled
checking where to find the target ranlib... just compiled
checking where to find the target strip... just compiled
checking where to find the target windres... just compiled
checking where to find the target windmc... just compiled

checking whether to enable maintainer-specific portions of Makefiles... no

checking whether -fkeep-inline-functions is supported... checking for suffix of object files... g++ -m32 -E
a.out
checking whether the C compiler works... yes
o
checking whether we are using the GNU C compiler... checking whether we are cross compiling... no
checking for suffix of executables... checking for C compiler default output file name... yes
checking the maximum length of command line arguments... a.out

checking whether the C compiler works... checking for suffix of object files... yes
checking whether we are cross compiling... no
checking for suffix of executables... 3458764513820540925
checking command to parse /usr/bin/nm -B output from gcc -m32 object... make[3]: Entering directory `/tmp/ndk-adrian/build/toolchain/gdb-6.6/etc'
for f in standards.info configure.info; do \
      if test -f /home/adrian/workdir/android-ndk-toolchain/build/../gdb/gdb-6.6/etc/`echo $f | sed -e 's/.info$/.texi/'`; then \
        if make "MAKEINFO=/home/adrian/workdir/android-ndk-toolchain/gdb/gdb-6.6/missing makeinfo --split-size=5000000 --split-size=5000000" $f; then \
          true; \
        else \
          exit 1; \
        fi; \
      fi; \
    done
yes
checking whether gcc -m32 accepts -g... configure: creating ./config.status
make[4]: Entering directory `/tmp/ndk-adrian/build/toolchain/gdb-6.6/etc'
/home/adrian/workdir/android-ndk-toolchain/gdb/gdb-6.6/missing makeinfo --split-size=5000000 --split-size=5000000 --no-split -I/home/adrian/workdir/android-ndk-toolchain/build/../gdb/gdb-6.6/etc -o standards.info /home/adrian/workdir/android-ndk-toolchain/build/../gdb/gdb-6.6/etc/standards.texi
WARNING: `makeinfo' is missing on your system.  You should only need it if
         you modified a `.texi' or `.texinfo' file, or any other file
         indirectly affecting the aspect of the manual.  The spurious
         call might also be the consequence of using a buggy `make' (AIX,
         DU, IRIX).  You might want to install the `Texinfo' package or
         the `GNU make' package.  Grab either from any GNU archive site.
o
checking whether we are using the GNU C compiler... make[4]: *** [standards.info] Error 1
make[4]: Leaving directory `/tmp/ndk-adrian/build/toolchain/gdb-6.6/etc'
make[3]: *** [info] Error 1
make[3]: Leaving directory `/tmp/ndk-adrian/build/toolchain/gdb-6.6/etc'
make[2]: *** [all-etc] Error 2
make[2]: *** Waiting for unfinished jobs....

checking for suffix of object files... yes
checking for gcc -m32 option to accept ANSI C... yes
checking whether gcc -m32 accepts -g... o
checking whether we are using the GNU C compiler... none needed
yes
checking whether gcc -m32 accepts -g... checking build system type... yes
checking for gcc -m32 option to accept ANSI C... x86_64-pc-linux-gnu
ok
checking for objdir... checking host system type... yes
checking for gcc -m32 option to accept ANSI C... .libs
x86_64-pc-linux-gnu
checking for x86_64-linux-gnu-ar... ar
checking for x86_64-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for x86_64-linux-gnu-strip... no
checking for strip... strip
checking for x86_64-linux-gnu-ranlib... ranlib
checking for library containing strerror... none needed
config.status: creating Makefile
none needed
checking how to run the C preprocessor... none required
checking how to run the C preprocessor... checking how to run the C preprocessor... checking if gcc -m32 supports -fno-rtti -fno-exceptions... gcc -m32 -E
gcc -m32 -E
no
checking for gcc -m32 option to produce PIC... -fPIC
checking if gcc -m32 PIC flag -fPIC works... gcc -m32 -E
yes
checking if gcc -m32 static flag -static works... checking for egrep... grep -E
checking for ANSI C header files... checking whether gcc -m32 accepts -Wc++-compat... checking for egrep... grep -E
checking for ANSI C header files... yes
checking whether gcc -m32 and cc understand -c and -o together... yes
checking for sys/types.h... yes
checking for an ANSI C-conforming const... yes
checking for an ANSI C-conforming const... yes
checking for inline... yes
checking for sys/stat.h... yes
checking for inline... inline
checking whether byte ordering is bigendian... inline
checking for sys/types.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for sys/stat.h... yes
checking for memory.h... yes
checking for stdlib.h... yes
checking for strings.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for memory.h... yes
checking if gcc -m32 supports -c -o file.o... no

checking for a BSD-compatible install... /usr/bin/install -c
yes
checking for sys/file.h... checking for stdint.h... yes
yes
checking whether the gcc -m32 linker (/usr/bin/ld -m elf_i386) supports shared libraries... checking for strings.h... yes
yes
checking dynamic linker characteristics... checking for sys/param.h... yes
yes
checking for unistd.h... checking for inttypes.h... yes
checking for limits.h... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
yes
yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for stdlib.h... checking for stdint.h... yes
checking minix/config.h usability... yes
checking for malloc.h... yes
checking for unistd.h... yes
checking for string.h... no
checking minix/config.h presence... ( \
     make -C binutils-2.19) && touch stmp-build-target-binutils
yes
checking for unistd.h... yes
no
checking for minix/config.h... no
checking whether gcc -m32 needs -traditional... checking for off_t... yes
checking for strings.h... make[1]: Entering directory `/tmp/ndk-adrian/build/toolchain/binutils-2.19'
yes
checking for size_t... yes
checking for sys/time.h... yes
yes
checking for working alloca.h... configure: creating libtool
make[2]: Entering directory `/tmp/ndk-adrian/build/toolchain/binutils-2.19'
checking for time.h... yes
checking for alloca... yes
checking for ANSI C header files... (cached) yes
checking for sys/resource.h... checking whether time.h and sys/time.h may both be included... yes
checking fcntl.h usability... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... mkdir -p -- ./intl
mkdir -p -- ./libiberty
Configuring in ./intl
Configuring in ./libiberty
yes
checking fcntl.h presence... yes
checking for sys/stat.h... yes
checking for fcntl.h... yes
no

checking for a BSD-compatible install... /usr/bin/install -c
checking for ar... ar
checking for x86_64-linux-gnu-ranlib... ranlib
checking for an ANSI C-conforming const... yes
checking float.h usability... checking for sys/mman.h... yes
yes
checking for function prototypes... yes
checking whether char is unsigned... checking for working mmap... yes
checking float.h presence... yes
checking for float.h... yes
checking invent.h usability... no
checking return type of signal handlers... yes
checking for fcntl.h... yes
checking for alloca.h... yes
checking whether we are using the GNU C Library 2.1 or newer... void
yes
checking whether integer division by zero raises SIGFPE... checking for size_t... yes
checking for sys/pstat.h... no
checking invent.h presence... yes
checking for ssize_t... yes
checking for inttypes.h... no
no
checking for invent.h... checking for sys/sysmp.h... no
checking langinfo.h usability... no
yes
checking for stdint.h... checking for sys/sysinfo.h... yes
checking for ANSI C header files... (cached) yes
checking whether stat file-mode macros are broken... no
checking for dirent.h that defines DIR... yes
checking for unsigned long long... yes
checking langinfo.h presence... yes
checking for machine/hal_sysinfo.h... yes
checking for langinfo.h... yes
no
configure: creating cache ./config.cache
checking for sys/table.h... checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... /home/adrian/workdir/android-ndk-toolchain/binutils/binutils-2.19/missing makeinfo --split-size=5000000
configure: WARNING:
*** Makeinfo is missing. Info documentation will not be built.
checking for perl... perl
checking locale.h usability... no
checking build system type... configure: creating cache ./config.cache
checking for sys/sysctl.h... yes
checking for library containing opendir... checking whether make sets $(MAKE)... x86_64-pc-linux-gnu
yes

checking for a BSD-compatible install... /usr/bin/install -c
checking host system type... checking whether NLS is requested... no
checking for msgfmt... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
x86_64-pc-linux-gnu

checking for x86_64-linux-gnu-gcc... gcc -m32
checking for x86_64-linux-gnu-ar... ar
checking for x86_64-linux-gnu-ranlib... ranlib

checking for x86_64-linux-gnu-gcc... gcc -m32
checking for C compiler default output file name... yes
checking locale.h presence... none required
checking for fcntl... a.out
checking whether the C compiler works... yes
yes
yes
checking whether we are cross compiling... no
checking for suffix of executables... checking for inttypes.h... yes
checking for locale.h... yes
checking for sys/systemcfg.h... no
checking for C compiler default output file name... checking nl_types.h usability... checking for stdint.h... yes

checking whether the inttypes.h PRIxNN macros are broken... checking for suffix of object files... yes
yes
checking for kill... a.out
checking whether the C compiler works... no
checking for ld used by GCC... ld
checking if the linker (ld) is GNU ld... yes
checking whether we are cross compiling... no
checking for suffix of executables... checking for stdio_ext.h... yes
checking for shared library run path origin... yes
checking nl_types.h presence... o
checking whether we are using the GNU C compiler... yes
checking for nl_types.h... yes
yes

yes
checking for suffix of object files... done
checking for lstat... checking for sys/wait.h that is POSIX.1 compatible... checking sys/attributes.h usability... yes
checking whether gcc -m32 accepts -g... checking argz.h usability... o
checking whether we are using the GNU C compiler... yes
yes
checking for gcc -m32 option to accept ANSI C... yes
checking whether gcc -m32 accepts -g... checking for memmove... yes
checking whether time.h and sys/time.h may both be included... no
checking sys/attributes.h presence... none needed
yes
checking whether errno must be declared... yes
checking argz.h presence... yes
checking for gcc -m32 option to accept ANSI C... no
checking for sys/attributes.h... no
yes
checking sys/iograph.h usability... yes
checking for argz.h... checking for putenv... yes
no
checking for egrep... grep -E
checking for ANSI C header files... checking limits.h usability... none needed
checking build system type... checking how to run the C preprocessor... x86_64-pc-linux-gnu
yes
yes
checking limits.h presence... checking host system type... checking for select... no
checking sys/iograph.h presence... x86_64-pc-linux-gnu
yes
checking for limits.h... yes
checking locale.h usability... gcc -m32 -E
checking for x86_64-linux-gnu-ranlib... ranlib
checking for library containing strerror... no
checking for sys/iograph.h... no
yes
yes
checking locale.h presence... checking sys/mman.h usability... checking whether gcc -m32 supports -W... checking for setenv... yes
none required
checking how to run the C preprocessor... yes
checking for locale.h... checking for sys/types.h... yes
checking nl_types.h usability... yes
checking sys/mman.h presence... yes
checking whether gcc -m32 supports -Wall... yes
gcc -m32 -E
yes
checking for sys/mman.h... yes
yes
checking for sys/stat.h... (cached) yes
checking for setlocale... checking sys/param.h usability... checking for stdlib.h... (cached) yes
yes
checking nl_types.h presence... checking for string.h... (cached) yes
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for nl_types.h... yes
checking for memory.h... yes
checking whether gcc -m32 supports -Wwrite-strings... yes
checking malloc.h usability... checking for strcasecmp... yes
checking sys/param.h presence... yes
yes
checking for strings.h... (cached) yes
checking whether gcc -m32 supports -Wc++-compat... yes
checking for sys/param.h... yes
checking for inttypes.h... yes
checking malloc.h presence... checking sys/processor.h usability... yes
yes
checking for strpbrk... yes
checking whether gcc -m32 supports -Wstrict-prototypes... yes
checking for malloc.h... yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) checking stddef.h usability... yes
yes
checking for an ANSI C-conforming const... checking for int... yes
yes
checking whether gcc -m32 supports -pedantic ... checking for tcgetattr... no
checking sys/processor.h presence... yes
checking for inline... yes
checking stddef.h presence... no
checking for sys/processor.h... yes
checking whether gcc -m32 and cc understand -c and -o together... no
yes
checking for stddef.h... checking sys/pstat.h usability... yes
yes
checking size of int... inline
checking for sys/types.h... checking for stdlib.h... (cached) yes
yes
checking for string.h... (cached) checking for vsnprintf... yes
checking for unistd.h... (cached) yes
yes
checking sys/param.h usability... checking for sys/stat.h... yes
4
yes
checking for uintptr_t... yes
checking sys/param.h presence... yes
checking for isascii... no
checking sys/pstat.h presence... checking for an ANSI C-conforming const... checking for stdlib.h... yes
checking for sys/param.h... no
checking for sys/pstat.h... no
yes
checking sys/sysinfo.h usability... checking for feof_unlocked... yes
checking for inline... yes
checking for a 64-bit type... yes
checking for string.h... inline
checking whether byte ordering is bigendian... yes
yes
yes
checking sys/sysinfo.h presence... checking for isxdigit... uint64_t
checking for pid_t... checking for fgets_unlocked... yes
checking for sys/sysinfo.h... yes
yes
checking for memory.h... checking sys/syssgi.h usability... no

checking for a BSD-compatible install... /usr/bin/install -c
yes
yes
checking for sys/file.h... checking for library containing strerror... checking for getpwent... yes
yes
checking for strings.h... yes
checking for getc_unlocked... checking for sys/param.h... yes
yes
no
checking sys/syssgi.h presence... checking for getpwnam... none required
checking for inttypes.h... yes
checking for asprintf... checking for limits.h... no
checking for sys/syssgi.h... no
checking sys/systemcfg.h usability... yes
yes
yes
yes
checking for getcwd... checking for stdint.h... checking for getpwuid... yes
checking for stdlib.h... checking for atexit... yes
checking for malloc.h... yes
yes
yes
yes
no
checking sys/systemcfg.h presence... yes
checking for working strcoll... checking for getegid... checking for basename... checking for unistd.h... checking for string.h... no
checking for sys/systemcfg.h... no
checking sys/time.h usability... yes
checking for unistd.h... yes
checking for off_t... yes
checking sys/time.h presence... yes
yes
yes
checking for strings.h... checking for geteuid... checking for bcmp... yes
yes
checking for sys/time.h... yes
checking fcntl.h usability... checking sys/times.h usability... yes
checking for sys/time.h... yes
checking for size_t... yes
yes
yes
checking fcntl.h presence... checking for time.h... checking for getgid... yes
yes
checking for fcntl.h... yes
checking for bcopy... yes
yes
checking sys/times.h presence... checking for working alloca.h... yes
checking for unistd.h... (cached) checking for sys/resource.h... yes
checking for stdlib.h... (cached) yes
checking for sys/times.h... yes
yes
yes
yes
checking varargs.h usability... checking for getuid... checking for sys/resource.h... checking for sys/stat.h... yes
yes
checking for alloca... yes
checking for bsearch... checking for sys/mman.h... yes
no
checking varargs.h presence... yes
yes
checking for sys/sysctl.h... no
checking for varargs.h... checking for mempcpy... checking for fcntl.h... no
checking stdarg.h usability... yes
yes
yes
checking for bzero... yes
checking for stdlib.h... (cached) checking for alloca.h... yes
checking for unistd.h... (cached) yes
yes
checking stdarg.h presence... yes
checking for machine/hal_sysinfo.h... yes
checking for munmap... checking for getpagesize... yes
checking for stdarg.h... yes
checking for sys/pstat.h... checking for string.h... (cached) yes
yes
no
checking for calloc... checking for strings.h... (cached) yes
checking for sys/sysmp.h... no
checking whether fgetc is declared... checking limits.h usability... yes
yes
no
checking for putenv... checking for sys/sysinfo.h... checking for working mmap... yes
yes
checking for machine/hal_sysinfo.h... checking for clock... yes
yes
checking limits.h presence... checking whether fscanf is declared... yes
no
yes
checking for limits.h... yes
checking locale.h usability... checking for setenv... checking for sys/table.h... yes
checking whether we are using the GNU C Library 2.1 or newer... yes
yes
yes
checking whether integer division by zero raises SIGFPE... checking whether optarg is declared... checking for ffs... no
checking for sys/sysctl.h... yes
checking locale.h presence... yes
yes
checking for locale.h... yes
yes
checking for setlocale... yes
yes
checking for inttypes.h... checking for sys/systemcfg.h... checking whether ungetc is declared... yes
checking pwd.h usability... checking for getcwd... no
yes
checking for stdint.h... checking for stdint.h... yes
checking for stpcpy... yes
yes
checking for unsigned long long... yes
checking whether vfprintf is declared... yes
checking for stdio_ext.h... yes
checking pwd.h presence... checking for getpagesize... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for pwd.h... yes
yes
checking for memory.h... (cached) yes
checking for inttypes.h... yes
yes
checking whether sys_errlist is declared... checking termcap.h usability... checking for strcasecmp... yes
yes
checking whether time.h and sys/time.h may both be included... checking for gettimeofday... yes
yes
checking whether sys_nerr is declared... checking whether the inttypes.h PRIxNN macros are broken... yes
yes
checking termcap.h presence... yes
checking for strdup... checking whether errno must be declared... no
checking for ld used by GCC... ld
checking if the linker (ld) is GNU ld... yes
checking for termcap.h... yes
checking for shared library run path origin... yes
yes
checking for index... yes
no
checking for egrep... checking return type of signal handlers... checking termios.h usability... grep -E
checking for ANSI C header files... done
yes
checking argz.h usability... checking for strtoul... void
checking for intmax_t... yes
yes
checking termios.h presence... checking for insque... yes
checking argz.h presence... yes
checking for termios.h... yes
yes
yes
checking for long double... yes
checking for argz.h... yes
checking termio.h usability... checking for tsearch... checking limits.h usability... yes
yes
checking for sys/types.h... checking for memchr... yes
checking termio.h presence... yes
checking for long long... yes
checking limits.h presence... yes
yes
checking for limits.h... yes
yes
yes
checking for termio.h... yes
checking for sys/stat.h... (cached) yes
checking for ptrdiff_t... yes
checking sys/pte.h usability... checking for __argz_count... checking locale.h usability... yes
checking for stdlib.h... (cached) yes
checking for memcmp... checking for string.h... (cached) yes
checking for memory.h... yes
checking locale.h presence... yes
yes
checking for quad_t... checking for __argz_stringify... yes
checking for locale.h... yes
yes
checking for strings.h... (cached) no
checking sys/pte.h presence... yes
yes
checking nl_types.h usability... checking for memcpy... checking for inttypes.h... no
checking for sys/pte.h... yes
checking for uint_least32_t... no
yes
yes
checking sys/stream.h usability... checking for stdint.h... (cached) checking for __argz_next... yes
yes
checking nl_types.h presence... checking for unistd.h... (cached) yes
yes
yes
checking for nl_types.h... yes
yes
checking for preprocessor stringizing operator... checking for int... checking for memmove... checking malloc.h usability... yes
yes
checking for working volatile... checking for __fsetlocking... no
checking sys/stream.h presence... yes
checking size of int... no
checking for sys/stream.h... no
yes
checking whether <stdarg.h> exists and works... yes
checking sys/select.h usability... yes
checking malloc.h presence... checking for mempcpy... yes
yes
checking for malloc.h... 4
checking for uintptr_t... yes
checking for iconv... checking stddef.h usability... yes
checking whether gcc __attribute__ ((const)) works... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
yes
checking stddef.h presence... yes
checking for a 64-bit type... checking sys/file.h usability... yes
yes
checking whether gcc __attribute__ ((malloc)) works... yes
checking for stddef.h... yes
checking for memset... checking for stdlib.h... (cached) yes
yes
checking for iconv declaration... yes
checking whether gcc __attribute__ ((mode (XX))) works... uint64_t
checking for pid_t... checking for string.h... (cached) yes
yes
checking sys/file.h presence... checking for unistd.h... (cached) yes
yes
checking sys/param.h usability... yes
checking for sys/file.h... yes
yes
checking whether gcc __attribute__ ((noreturn)) works...
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... checking for sys/ptem.h... checking for mkstemps... yes
checking for library containing strerror... yes
checking for inline... yes
checking sys/param.h presence... yes
checking for LC_MESSAGES... no
checking for type of signal functions... yes
checking for sys/param.h... yes
inline
checking for feof_unlocked... yes
none required
checking for asprintf... checking for putenv... yes
checking for bison... bison
checking version of bison... posix
checking if signal handlers must be reinstalled when invoked... checking for cos in -lm... yes
2.4.1, ok
checking whether NLS is requested... no
checking whether to use NLS... no
yes
checking for fgets_unlocked... checking for aclocal... no
checking for autoconf... no
checking for autoheader... no
yes
checking for working alloca.h... yes
no
checking for presence of POSIX-style sigsetjmp/siglongjmp... checking for atexit... updating cache ./config.cache
checking for random... configure: creating ./config.status
yes
yes
checking for alloca (via gmp-impl.h)... checking for getc_unlocked... yes
present
checking for lstat... checking for rename... yes
checking for basename... yes
yes
checking whether or not strcoll and strcmp differ... checking for getcwd... yes
checking how to allocate temporary memory... alloca
yes
checking for rindex... yes
no
checking whether the ctype macros accept non-ascii characters... checking for bcmp... checking whether byte ordering is bigendian... config.status: creating Makefile
yes
checking for getegid... yes
yes
checking for bcopy... yes
checking for setenv... yes
checking for bsearch... config.status: creating config.intl
checking for geteuid... no
checking whether getpw functions are declared in pwd.h... config.status: creating config.h
yes
checking whether termios.h defines TIOCGWINSZ... no
checking format of `double' floating point... no
checking whether sys/ioctl.h defines TIOCGWINSZ... yes
checking for snprintf... yes
yes
checking whether signal handlers are of type void... checking for bzero... IEEE little endian
checking for alarm... yes
config.status: executing default-1 commands
checking for getgid... yes
checking for TIOCSTAT in sys/ioctl.h... no
checking for FIONREAD in sys/ioctl.h... yes
yes
yes
yes
checking for sigsetmask... checking for getuid... checking for attr_get... checking for calloc... yes
checking for speed_t in sys/types.h... yes
no
checking for struct winsize in sys/ioctl.h and termios.h... yes
yes
checking for mempcpy... no
checking for clock... checking for stpcpy... checking for clock... sys/ioctl.h
make[2]: Nothing to be done for `all-target'.
checking for struct dirent.d_ino... mkdir -p -- ./etc
Configuring in ./etc
yes
checking for munmap... yes
checking for struct dirent.d_fileno... yes
yes
yes
checking for stpncpy... checking for clock_gettime... checking for ffs... yes
checking for putenv... yes
checking for tgetent... no
yes
yes
checking for cputime... checking for getcwd... checking for strcasecmp... no
checking for tgetent in -ltermcap... yes
checking for setenv... no
checking for getpagesize... yes
yes
checking for strchr... checking for getpagesize... yes
checking which library has the termcap functions... using libtermcap
checking wctype.h usability... yes
yes
checking for setlocale... checking for getrusage... yes
checking for gettimeofday... yes
yes
checking wctype.h presence... checking for strdup... yes
checking for wctype.h... yes
yes
checking for stpcpy... checking wchar.h usability... yes
yes
checking for gettimeofday... checking for index... yes
checking wchar.h presence... yes
yes
checking for strcasecmp... yes
checking for wchar.h... checking for strncasecmp... yes
checking langinfo.h usability... yes
configure: creating cache ./config.cache

checking for a BSD-compatible install... /usr/bin/install -c
checking for getsysinfo... yes
yes
updating cache ./config.cache
checking for strndup... yes
checking langinfo.h presence... configure: creating ./config.status
checking for insque... yes
yes
checking for langinfo.h... yes
checking for strdup... checking for mbsrtowcs... no
checking for localeconv... yes
yes
checking for memchr... checking for strrchr... yes
checking for mbrtowc... yes
checking for strtoul... yes
yes
checking for strstr... config.status: creating Makefile
checking for memcmp... yes
yes
checking for mbrlen... checking for memset... yes
yes
checking for tsearch... checking for memcpy... yes
yes
checking for wctomb... checking for strtod... yes
yes
checking for __argz_count... checking for mmap... yes
checking for memmem... yes
make[3]: Entering directory `/tmp/ndk-adrian/build/toolchain/binutils-2.19/etc'
for f in standards.info configure.info; do \
      if test -f /home/adrian/workdir/android-ndk-toolchain/build/../binutils/binutils-2.19/etc/`echo $f | sed -e 's/.info$/.texi/'`; then \
        if make "MAKEINFO=/home/adrian/workdir/android-ndk-toolchain/binutils/binutils-2.19/missing makeinfo --split-size=5000000 --split-size=5000000" $f; then \
          true; \
        else \
          exit 1; \
        fi; \
      fi; \
    done
checking for wcwidth... yes
make[4]: Entering directory `/tmp/ndk-adrian/build/toolchain/binutils-2.19/etc'
/home/adrian/workdir/android-ndk-toolchain/binutils/binutils-2.19/missing makeinfo --split-size=5000000 --split-size=5000000 --no-split -I/home/adrian/workdir/android-ndk-toolchain/build/../binutils/binutils-2.19/etc -o standards.info /home/adrian/workdir/android-ndk-toolchain/build/../binutils/binutils-2.19/etc/standards.texi
WARNING: `makeinfo' is missing on your system.  You should only need it if
         you modified a `.texi' or `.texinfo' file, or any other file
         indirectly affecting the aspect of the manual.  The spurious
         call might also be the consequence of using a buggy `make' (AIX,
         DU, IRIX).  You might want to install the `Texinfo' package or
         the `GNU make' package.  Grab either from any GNU archive site.
make[4]: *** [standards.info] Error 1
make[4]: Leaving directory `/tmp/ndk-adrian/build/toolchain/binutils-2.19/etc'
make[3]: *** [info] Error 1
make[3]: Leaving directory `/tmp/ndk-adrian/build/toolchain/binutils-2.19/etc'
make[2]: *** [all-etc] Error 2
make[2]: *** Waiting for unfinished jobs....
checking for strtol... yes
yes
checking for __argz_stringify... yes
checking for mprotect... checking for memmove... yes
checking for wcsdup... yes
checking for strtoul... yes
yes
checking for mbstate_t... yes
checking for __argz_next... checking for nl_langinfo... yes
checking for mempcpy... yes
yes
checking for nl_langinfo and CODESET... checking for strverscmp... yes
yes
yes
checking for obstack_vprintf... checking for memset... checking for __fsetlocking... yes
checking configuration for building shared libraries... yes
checking for tmpnam... yes
supported
yes
checking for iconv... checking for mkstemps... updating cache ./config.cache
configure: creating ./config.status
yes
checking for vasprintf... yes
checking for putenv... yes
checking for popen... yes
checking for iconv declaration... yes
checking for vfprintf... yes
checking for random...
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... yes
yes
checking for vprintf... checking for processor_info... yes
checking for rename... yes
checking for LC_MESSAGES... config.status: creating Makefile
yes
no
checking for pstat_getprocessor... checking for vsnprintf... yes
checking for bison... bison
checking version of bison... 2.4.1, ok
checking whether NLS is requested... no
checking whether to use NLS... no
yes
config.status: creating doc/Makefile
checking for rindex... no
config.status: creating examples/Makefile
checking for aclocal... no
checking for autoconf... no
checking for autoheader... no
checking for raise... yes
updating cache ./config.cache
configure: creating ./config.status
checking for vsprintf... yes
config.status: creating shlib/Makefile
checking for setenv... config.status: creating config.h
yes
yes
yes
checking for waitpid... checking for read_real_time... checking for snprintf... config.status: executing default commands
no
yes
yes
checking for sigaction... checking whether alloca needs Cray hooks... checking for sigsetmask... no
checking stack direction for C alloca... yes
yes
checking for stpcpy... checking for sigaltstack... config.status: creating Makefile
-1
config.status: creating config.intl
checking for unistd.h... (cached) yes
config.status: creating config.h
yes
checking for vfork.h... checking for stpncpy... yes
no
checking for sigstack... checking for fork... config.status: executing default-1 commands
yes
checking for strcasecmp... yes
checking for syssgi... yes
checking for vfork... yes
checking for strchr... no
checking for strchr... yes
checking for working fork... yes
checking for strdup... yes
checking for strerror... yes
checking for working vfork... (cached) yes
checking for _doprnt... yes
checking for strncasecmp... yes
checking for strnlen... no
checking for sys_errlist... yes
yes
checking for strndup... yes
checking for sys_nerr... checking for strtol... yes
yes
yes
checking for sys_siglist... checking for strtoul... checking for strrchr... yes
yes
checking for external symbol _system_configuration... checking for strstr... yes
checking for sysconf... no
checking for getrusage... yes
checking for strtod... yes
checking for sysctl... yes
checking for on_exit... yes
checking for strtol... yes
yes
checking for psignal... checking for sysctlbyname... yes
checking for strtoul... yes
no
checking for times... checking for strerror... yes
checking for strverscmp... yes
yes
checking for vsnprintf... checking for strsignal... yes
checking for tmpnam... yes
checking whether vsnprintf works... yes
checking for sysconf... yes
checking for vasprintf... yes
checking for times... yes
yes
checking whether sscanf needs writable input... no
checking for struct pst_processor.psp_iticksperclktick... checking for vfprintf... yes
yes
checking for sbrk... checking for vprintf... no
yes
yes
checking for vsnprintf... checking for gettimeofday... (cached) yes
checking for realpath... yes
checking for vsprintf... yes
checking for canonicalize_file_name... yes
checking for waitpid... yes
checking for pstat_getstatic... yes
checking whether alloca needs Cray hooks... no
checking stack direction for C alloca... no
checking for pstat_getdynamic... -1
checking for unistd.h... (cached) no
yes
checking for sysmp... checking for vfork.h... no
checking for fork... no
checking for getsysinfo... yes
checking for vfork... no
checking for table... yes
checking for working fork... no
checking for sysctl... yes
checking for working vfork... (cached) yes
checking for _doprnt... yes
checking for wait3... no
checking for sys_errlist... yes
yes
checking for wait4... checking for sys_nerr... yes
checking for __fsetlocking... yes
checking for sys_siglist... checking for suitable m4... yes
yes
checking for external symbol _system_configuration... checking whether basename is declared... m4
checking if m4wrap produces spurious output... no
checking how to switch to text section... no
.text
checking for getrusage... checking how to switch to data section... .data
checking for assembler label suffix... no
checking whether ffs is declared... :
checking for assembler global directive... .globl
checking for assembler global directive attribute...
checking if globals are prefixed by underscore... no
checking how to switch to read-only data section... yes
checking whether asprintf is declared...     .section    .rodata
checking for assembler .type directive... yes
checking for on_exit... .type    $1,@$2
checking for assembler .size directive... no
checking whether vasprintf is declared... .size    $1,$2
checking for assembler local label prefix... no
checking whether snprintf is declared... .L
checking for assembler byte directive... yes
checking for psignal... .byte
checking how to define a 32-bit word... .long
checking if .align assembly directive is logarithmic... yes
checking whether vsnprintf is declared... no
checking if the .align directive accepts an 0x90 fill in .text... yes
yes
checking for assembler COFF type directives... checking for strerror... yes
checking whether calloc is declared... no
checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore... no
checking if the assembler takes cl with shldl... yes
checking for unsigned short... yes
yes
checking whether getenv is declared... checking for strsignal... yes
checking size of unsigned short... yes
yes
checking whether getopt is declared... checking for sysconf... 2
checking for unsigned... yes
checking whether malloc is declared... yes
checking for times... yes
checking size of unsigned... yes
checking whether realloc is declared... yes
checking for sbrk... yes
checking whether sbrk is declared... 4
checking for unsigned long... yes
yes
checking whether strverscmp is declared... yes
checking size of unsigned long... checking for gettimeofday... (cached) yes
checking for realpath... no
checking whether canonicalize_file_name must be declared... yes
4
checking for mp_limb_t... checking for canonicalize_file_name... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
yes
checking size of mp_limb_t... checking for getpagesize... (cached) yes
checking for working mmap... yes
checking for pstat_getstatic... 4
yes
checking for stack_t... checking for working strncmp... no
checking for pstat_getdynamic... yes
checking for tputs in -lncurses... yes
updating cache ./config.cache
configure: creating ./config.status
no
checking for sysmp... yes
checking for readline in -lreadline... no
checking for getsysinfo... yes
checking readline/readline.h usability... no
checking for table... no
checking for sysctl... config.status: creating Makefile
no
checking readline/readline.h presence... no
checking for readline/readline.h... no
checking readline detected... no
checking for bison... bison -y
checking for flex... flex
checking for yywrap in -lfl... yes
config.status: creating testsuite/Makefile
checking for wait3... no
checking for yywrap in -ll... yes
checking for wait4... config.status: creating config.h
no
checking lex output file root... yes
checking for __fsetlocking... lex.yy
checking whether yytext is a pointer... yes
checking whether basename is declared... config.status: executing default commands
no
checking whether ffs is declared... make[2]: Leaving directory `/tmp/ndk-adrian/build/toolchain/gdb-6.6'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/ndk-adrian/build/toolchain/gdb-6.6'
make: *** [stmp-build-target-gdb] Error 2

make: *** Waiting for unfinished jobs....
no
yes
checking for x86_64-linux-gnu-ranlib... ranlib
creating config.m4
checking whether asprintf is declared... configure: creating ./config.status
no
checking whether vasprintf is declared... no
checking whether snprintf is declared... yes
checking whether vsnprintf is declared... yes
checking whether calloc is declared... yes
checking whether getenv is declared... config.status: creating demos/pexpr-config.h
config.status: creating demos/calc/calc-config.h
config.status: creating Makefile
yes
checking whether getopt is declared... yes
checking whether malloc is declared... config.status: creating mpbsd/Makefile
config.status: creating mpf/Makefile
yes
checking whether realloc is declared... config.status: creating mpn/Makefile
config.status: creating mpq/Makefile
yes
checking whether sbrk is declared... config.status: creating mpz/Makefile
config.status: creating printf/Makefile
yes
checking whether strverscmp is declared... config.status: creating scanf/Makefile
no
checking whether canonicalize_file_name must be declared... config.status: creating cxx/Makefile
yes
config.status: creating tests/Makefile
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
config.status: creating tests/devel/Makefile
checking for getpagesize... (cached) yes
checking for working mmap... config.status: creating tests/mpbsd/Makefile
config.status: creating tests/mpf/Makefile
yes
checking for working strncmp... config.status: creating tests/mpn/Makefile
config.status: creating tests/mpq/Makefile
yes
config.status: creating tests/mpz/Makefile
updating cache ./config.cache
configure: creating ./config.status
config.status: creating tests/rand/Makefile
config.status: creating tests/misc/Makefile
config.status: creating tests/cxx/Makefile
config.status: creating doc/Makefile
config.status: creating tune/Makefile
config.status: creating demos/Makefile
config.status: creating demos/calc/Makefile
config.status: creating demos/expr/Makefile
config.status: creating Makefile
config.status: creating gmp.h
config.status: creating testsuite/Makefile
config.status: creating mp.h
config.status: creating config.h
config.status: creating config.h
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/add.c to mpn/add.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/add_1.c to mpn/add_1.c
config.status: executing default commands
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/x86/aors_n.asm to mpn/add_n.asm
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/sub.c to mpn/sub.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/sub_1.c to mpn/sub_1.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/x86/aors_n.asm to mpn/sub_n.asm
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/x86/mul_1.asm to mpn/mul_1.asm
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/x86/aorsmul_1.asm to mpn/addmul_1.asm
make[2]: Leaving directory `/tmp/ndk-adrian/build/toolchain/binutils-2.19'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/ndk-adrian/build/toolchain/binutils-2.19'
make: *** [stmp-build-target-binutils] Error 2
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/x86/aorsmul_1.asm to mpn/submul_1.asm
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/x86/lshift.asm to mpn/lshift.asm
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/x86/rshift.asm to mpn/rshift.asm
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/x86/dive_1.asm to mpn/dive_1.asm
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/x86/diveby3.asm to mpn/diveby3.asm
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/divis.c to mpn/divis.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/divrem.c to mpn/divrem.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/x86/divrem_1.asm to mpn/divrem_1.asm
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/divrem_2.c to mpn/divrem_2.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/fib2_ui.c to mpn/fib2_ui.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/x86/mod_1.asm to mpn/mod_1.asm
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/x86/mod_34lsub1.asm to mpn/mod_34lsub1.asm
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/mode1o.c to mpn/mode1o.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/pre_divrem_1.c to mpn/pre_divrem_1.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/pre_mod_1.c to mpn/pre_mod_1.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/dump.c to mpn/dump.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/mul.c to mpn/mul.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/mul_fft.c to mpn/mul_fft.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/mul_n.c to mpn/mul_n.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/x86/mul_basecase.asm to mpn/mul_basecase.asm
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/x86/sqr_basecase.asm to mpn/sqr_basecase.asm
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/random.c to mpn/random.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/random2.c to mpn/random2.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/pow_1.c to mpn/pow_1.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/rootrem.c to mpn/rootrem.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/sqrtrem.c to mpn/sqrtrem.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/get_str.c to mpn/get_str.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/set_str.c to mpn/set_str.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/scan0.c to mpn/scan0.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/scan1.c to mpn/scan1.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/popham.c to mpn/popcount.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/popham.c to mpn/hamdist.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/cmp.c to mpn/cmp.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/perfsqr.c to mpn/perfsqr.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/bdivmod.c to mpn/bdivmod.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/gcd_1.c to mpn/gcd_1.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/gcd.c to mpn/gcd.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/gcdext.c to mpn/gcdext.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/tdiv_qr.c to mpn/tdiv_qr.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/dc_divrem_n.c to mpn/dc_divrem_n.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/sb_divrem_mn.c to mpn/sb_divrem_mn.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/jacbase.c to mpn/jacbase.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/get_d.c to mpn/get_d.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/mullow_n.c to mpn/mullow_n.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/mullow_basecase.c to mpn/mullow_basecase.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/x86/umul.asm to mpn/umul.asm
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/x86/udiv.asm to mpn/udiv.asm
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/x86/copyi.asm to mpn/copyi.asm
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/x86/copyd.asm to mpn/copyd.asm
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/generic/addsub_n.c to mpn/addsub_n.c
config.status: linking /tmp/ndk-adrian/build/toolchain/temp-src/gmp-4.2.4/mpn/x86/gmp-mparam.h to gmp-mparam.h

Also, it hasn't gotten to building the binutils yet, so there is no log.  The only error I could see was more of a warning that was regarding makeinfo not being available.  I'm installing it now, but I don't think it will make a difference.


A


On Friday, April 20, 2012 4:17:21 PM UTC-4, Digit wrote:
there should be more information inside /tmp/ndk-adrian/build/binutils-2.19/config.log (there are plenty of config.log files during the build).

In a nutshell, it looks like "gcc -m32" doesn't work correctly on your machine. You may be missing some development packages. Did you try installing all  the stuff listed on this page: http://source.android.com/source/initializing.html (probably overkill, but should be at least sufficient).

David Turner

unread,
Apr 20, 2012, 6:54:31 PM4/20/12
to andro...@googlegroups.com
the log says you're missing the makeinfo program. try installing the "texinfo" package, which should contain it.

To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/YNw0raHAiFgJ.

To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.

AdrianH

unread,
Apr 21, 2012, 2:09:58 AM4/21/12
to andro...@googlegroups.com
Yeah, I wasn't hopeful before because it said it was a warning even though it later said it was an error.

So the first build instruction worked.   build/tools/build-gcc.sh $SRCDIR $NDK $X86

The 2nd isn't build/tools/build-gcc.sh $SRCDIR $NDK $X86.  Message is:

To follow build in another terminal, please use: tail -F /tmp/ndk-adrian/build/toolchain/config.log
Using C compiler: gcc -m32
Using C++ compiler: g++ -m32
Sysroot  : Copying: /home/adrian/workdir/ndk/platforms/android-9/arch-arm --> /home/adrian/workdir/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/sysroot
Configure: arm-linux-androideabi-4.4.3 toolchain build

Building : arm-linux-androideabi-4.4.3 toolchain [this can take a long time].
Install  : arm-linux-androideabi-4.4.3 toolchain binaries.
Done.
adrian@dimensional-anomaly:~/workdir/ndk$  build/tools/build-gcc.sh $SRCDIR $NDK $X86
To follow build in another terminal, please use: tail -F /tmp/ndk-adrian/build/toolchain/config.log
ERROR: Invalid sysroot path: /home/adrian/workdir/development/ndk/platforms/android-9/arch-x86
       Use --sysroot=<path> to indicate a valid one.

The config.log was this:

$ cat /tmp/ndk-adrian/build/toolchain/config.log
Using source directory: /home/adrian/workdir/android-ndk-toolchain
Using NDK directory: /home/adrian/workdir/ndk
Checking whether the compiler generates 32-bit binaries...gcc -c -o /tmp/ndk-adrian/tmp/tests/test-752.o /tmp/ndk-adrian/tmp/tests/test-752.c
no
Forcing generation of 32-bit host binaries on x86_64
HOST_ARCH=x86
HOST_TAG=linux-x86
Targetting CPU: x86
Using GCC version: 4.4.3
Probing directory for sysroot: /home/adrian/workdir/ndk/platforms/android-9/arch-x86
Probing directory for sysroot: /home/adrian/workdir/ndk/platforms/android-9/arch-x86
Probing directory for sysroot: /home/adrian/workdir/development/ndk/platforms/android-9/arch-x86

What is sysroot supposed to be?


A


On Friday, April 20, 2012 6:54:31 PM UTC-4, Digit wrote:
the log says you're missing the makeinfo program. try installing the "texinfo" package, which should contain it.

AdrianH

unread,
Apr 21, 2012, 2:12:20 AM4/21/12
to andro...@googlegroups.com
Er, the first was supposed to be build/tools/build-gcc.sh $SRCDIR $NDK $ARM.


A

David Turner

unread,
Jul 10, 2012, 11:44:51 AM7/10/12
to andro...@googlegroups.com
Yes, the x86 platform files only exist since API level 9. Do you have development/ndk/platforms/android-9/arch-x86 at all?

On Tue, Jul 10, 2012 at 8:11 AM, Oyin Oluwatimi <david.e...@gmail.com> wrote:
Hi,

I followed your instructions. I ran the first and it worked, but then the second

damola@damola-laptop:~/WORKING_DIRECTORY/ndk$ build/tools/build-gcc.sh $SRCDIR $NDK $X86
To follow build in another terminal, please use: tail -F /tmp/ndk-damola/build/toolchain/config.log
ERROR: Invalid sysroot path: /home/damola/WORKING_DIRECTORY/development/ndk/platforms/android-9/arch-x86
       Use --sysroot=<path> to indicate a valid one.

I realized that all my platform do not have x86: 

arch-arm
damola@damola-laptop:~/WORKING_DIRECTORY/ndk/platforms$ ls android-3
arch-arm
damola@damola-laptop:~/WORKING_DIRECTORY/ndk/platforms$ ls android-4
arch-arm
damola@damola-laptop:~/WORKING_DIRECTORY/ndk/platforms$ ls android-5
arch-arm
damola@damola-laptop:~/WORKING_DIRECTORY/ndk/platforms$ android-8
android-8: command not found
damola@damola-laptop:~/WORKING_DIRECTORY/ndk/platforms$ ls android-8
arch-arm
damola@damola-laptop:~/WORKING_DIRECTORY/ndk/platforms$ 

Is that supposed to be right, and I should continue on with your instructions?

Ubuntu 10.04 64bit. VM on Mac osx 10.7 virtual box

Thanks
To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/wjxofVpixJ0J.

To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.

Oyin Oluwatimi

unread,
Jul 12, 2012, 2:19:59 AM7/12/12
to andro...@googlegroups.com
Hi

Thanks for responding. Yes I do.

damola@damola-laptop:~/WORKING_DIRECTORY/development/ndk/platforms/android-9$ cd arch-x86/
damola@damola-laptop:~/WORKING_DIRECTORY/development/ndk/platforms/android-9/arch-x86$ ls
include  lib  src  symbols

From the looks of it is not empty.  

Another problem: I tried skip that and  continue with the process by issuing the command:
 build/tools/build-gdbserver.sh $SRCDIR $NDK $ARM 

but then the last part of the logs says this:

I searched that directory and found it:
damola@damola-laptop:~/WORKING_DIRECTORY/ndk$ ls toolsource/gdb/gdb-6.6/gdb/gdbserver/configure
configure      configure.ac   configure.srv  

In the log file, I am thinking its the double slash in "toolsource//gdb/gdb-6.6/gdb/gdbserver/configure: not found", so I 
echo $SRCDIR
toolsource   <-- has no slash.  so im not sure whats wrong.

Would be grateful to help me solve the two above problems.

-Damola 

Oyin Oluwatimi

unread,
Jul 12, 2012, 3:08:08 AM7/12/12
to andro...@googlegroups.com
It might actually be better to state my overall goal.

I am attempting use ARMs TrustZone technology on the Android emulator. I'm not sure if I am even going in the right direction.  I use grep to find any documents under NDK that has the word "trustzone" in it, but everything was under the toolsource/binutils directory.  Am I able to use the TZ extensions?

Damola
Reply all
Reply to author
Forward
0 new messages