Build failing due to libz version mismatch

24 views
Skip to first unread message

positive attitude

unread,
Jan 24, 2011, 5:40:57 PM1/24/11
to Android Building
Any idea why this is failing? Seems like I have wrong version of libz
but I followed the process of setting up the machine:

$ make
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.1
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GRH78
============================================
find: `frameworks/base/frameworks/base/docs/html': No such file or
directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or
directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or
directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or
directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or
directory
find: `out/target/common/docs/gen': No such file or directory
host Executable: aapt (out/host/linux-x86/obj/EXECUTABLES/
aapt_intermediates/aapt)
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/
4.4.3/../../../libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/
4.4.3/../../../libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for
-lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -
lz
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/aapt]
Error 1

Here is my ubuntu version:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.1 LTS"

Thanks

Jean-Baptiste Queru

unread,
Jan 24, 2011, 5:46:39 PM1/24/11
to android-...@googlegroups.com
My best guess is that you need to install a 32-bit version of that
library in order to build the 32-bit binaries that are used by the
Android build system. 64-bit systems don't typically come with those.

JBQ

> --
> You received this message because you are subscribed to the "Android Building" mailing list.
> To post to this group, send email to android-...@googlegroups.com
> To unsubscribe from this group, send email to
> android-buildi...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>

--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

positive attitude

unread,
Jan 24, 2011, 8:40:41 PM1/24/11
to Android Building
Thank JBQ!
From your reply, I got hint that there could be something wrong with
the configuration for either the build environment or the machine.
After running "uname -m" to get the machine architecture, I got
"x86_64". Seems Windows installer for Ubuntu installed 64 bit version
on 32 bit machine.
The I installed additional tools needed for 64 bit version and
initiated the make again.
Seems the issue for libz is gone.

Thanks for your help!
Reply all
Reply to author
Forward
0 new messages