Fail to build execution file at Android 2.3 - Gingerbread

93 views
Skip to first unread message

bluestar

unread,
Dec 27, 2010, 5:26:11 AM12/27/10
to Android Building
I use my execution program and HAL code to build successfully under
source code of Android 2.2
But I put my source code of execution program and HAL code under
source code of Android 2.3 - Gingerbread to build, but it failed to
show below message. Someone told me that it needs to install java6-
jdk(sudo apt-get install sun-java6-jdk) in my Ubuntu server, so I
install it,
but still failed to build

Can anyone tell me how to fix this issue?

Thank you!

//--------------------------------------------------------------------------------------------------------------------------------//
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.1
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GINGERBREAD
============================================
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: /lib/tls/
i686/cmov/libc.so.6: version `GLIBC_2.11' not found (required by
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc)
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: /lib/tls/
i686/cmov/libc.so.6: version `GLIBC_2.11' not found (required by
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc)
Checking build tools versions...
build/core/main.mk:76:
************************************************************
build/core/main.mk:77: You are attempting to build on a 32-bit system.
build/core/main.mk:78: Only 64-bit build environments are supported
beyond froyo/2.2.
build/core/main.mk:79:
************************************************************
build/core/main.mk:80: *** stop. Stop.

Jean-Baptiste Queru

unread,
Dec 28, 2010, 10:39:04 AM12/28/10
to android-...@googlegroups.com
You need the 64-bit version of the JDK (which implies that you need a
64-bit host and OS).

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.

bluestar

unread,
Dec 28, 2010, 10:16:28 PM12/28/10
to Android Building
Dear Sir:

Could I build files at 32-bit OS and host for Gingerbread?
There is little difficult to change our server from 32-bit to
64-bit

BTW, could we use old HAL of Android-2.2 Froyo to make new so
file?
Or MUST change to new framework of Android-2.3?

For us, I had source cod of sensor HAL for Android-2.2 and
work well,
but it failed to build at Android-2.3. I can't find new sensor
HAL sample
code to refer. Could you help me how to start to change old to
new?

Thank you!

Best Regards,
Alan

On 12月28日, 下午11時39分, Jean-Baptiste Queru <j...@android.com> wrote:
> You need the 64-bit version of the JDK (which implies that you need a
> 64-bit host and OS).
>
> JBQ
>
>
>
>
>
> On Mon, Dec 27, 2010 at 2:26 AM, bluestar <bluestar8...@gmail.com> wrote:
> > I use my execution program and HAL code to build successfully under
> > source code of Android 2.2
> > But I put my source code of execution program and HAL code under
> > source code of Android 2.3 - Gingerbread to build, but it failed to
> > show below message. Someone told me that it needs to install java6-
> > jdk(sudo apt-get install sun-java6-jdk) in my Ubuntu server, so I
> > install it,
> > but still failed to build
>
> > Can anyone tell me how to fix this issue?
>
> > Thank you!
>
> > //---------------------------------------------------------------------------------------------------------------------------------//
> warning.- 隱藏被引用文字 -
>
> - 顯示被引用文字 -

Jean-Baptiste Queru

unread,
Dec 29, 2010, 10:17:43 AM12/29/10
to android-...@googlegroups.com
The only Java toolchain Google has tested Gingerbread with is the
64-bit Sun JDK (on Ubuntu 10.04 if you want to get as close to our
environments as possible). Using another toolchain might result in
unexpected results, i.e. you're on your own.

The best place to ask your other questions is the android-porting
group, as they're off-topic here.

Thanks,
JBQ

2010/12/28 bluestar <bluest...@gmail.com>:

srinidhi

unread,
Dec 29, 2010, 10:20:14 AM12/29/10
to android-...@googlegroups.com
Hi bluestar,
There is a patch available which will enable you to build android 2.3 on 32 bit machine. I am sure you can find it in archives of this group's mails. If not ping me i ll send you but it ll take a day's time.

Srinidhi
Sent from Nokia Phone

bluestar

unread,
Jan 4, 2011, 2:27:47 AM1/4/11
to Android Building
Dear Srinidhi:

I tried to search and found some article to solve, but after
following steps to solve, it also has below
message, I have no idea how to fix it. Do you have any idea to solve
it?

I modify these files: build/core/main.mk, external/clearsilver/
cgi/Android.mk, external/clearsilver/cs/Android.mk,
external/clearsilver/java-jni/Android.mk, external/clearsilver/util/
Android.mk and also install java6

but it still shows below message

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.1
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GINGERBREAD
============================================
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: /lib/tls/
i686/cmov /libc.so.6: version `GLIBC_2.11' not
found (required by prebuilt/linux-x86/toolc hain/
arm-eabi-4.4.3/bin/arm-eabi-gcc)
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: /lib/tls/
i686/cmov /libc.so.6: version `GLIBC_2.11' not
found (required by prebuilt/linux-x86/toolc hain/
arm-eabi-4.4.3/bin/arm-eabi-gcc)
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
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc -mthumb-
interwork - Ibionic/libc/private -o out/target/
product/generic/obj/lib/crtbegin_dynamic.o -c
bionic/libc/arch-arm/bionic/crtbegin_dynamic.S
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: /lib/tls/
i686/cmov /libc.so.6: version `GLIBC_2.11' not
found (required by prebuilt/linux-x86/toolc hain/
arm-eabi-4.4.3/bin/arm-eabi-gcc)
make: *** [out/target/product/generic/obj/lib/crtbegin_dynamic.o]
Error 1
root@prolific:~/android_src/2.3# vim build/core/main.mk
root@prolific:~/android_src/2.3# cd external/clearsilver/
root@prolific:~/android_src/2.3/external/clearsilver# cd cgi
root@prolific:~/android_src/2.3/external/clearsilver/cgi# vim
Android.mk
root@prolific:~/android_src/2.3/external/clearsilver/cgi# cd ..
root@prolific:~/android_src/2.3/external/clearsilver# cd ..
root@prolific:~/android_src/2.3/external# cd ..
root@prolific:~/android_src/2.3# ldd -v /bin/sh
linux-gate.so.1 => (0xb7ffb000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e84000)
/lib/ld-linux.so.2 (0xb7ffc000)

Version information:
/bin/sh:
libc.so.6 (GLIBC_2.4) => /lib/tls/i686/cmov/libc.so.6
libc.so.6 (GLIBC_2.3) => /lib/tls/i686/cmov/libc.so.6
libc.so.6 (GLIBC_2.3.4) => /lib/tls/i686/cmov/libc.so.
6
libc.so.6 (GLIBC_2.2) => /lib/tls/i686/cmov/libc.so.6
libc.so.6 (GLIBC_2.1) => /lib/tls/i686/cmov/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/tls/i686/cmov/libc.so.6
libc.so.6 (GLIBC_2.1.1) => /lib/tls/i686/cmov/libc.so.
6
/lib/tls/i686/cmov/libc.so.6:
ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_2.3) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_2.1) => /lib/ld-linux.so.2
root@prolific:~/android_src/2.3#

Jean-Baptiste Queru

unread,
Jan 4, 2011, 12:38:19 PM1/4/11
to android-...@googlegroups.com
I've heard of similar issues in the past. It looks like the gcc
toolchain in the Android tree was built in an environment that has
glibc 2.11, but that your host that doesn't have that version.

JBQ

Reply all
Reply to author
Forward
0 new messages