I had the same problem and I couldn't compile Android. But when I read
this thread http://ubuntuforums.org/showthread.php?p=9559776 , it's
saying that Android will force using 64bit if Java6 is used. What I
did is I switched to java5 and it works fine with me.

On Jul 4, 5:06 am, "Louis.Peng" <luyu.p...@hotmail.com> wrote:
> Hi,
>
> While compiling the android source code , I came across a very peculiar
> problem.
> I'm using Ubuntu 10.04 32bit version and JDK6.
> I downloaded the source and complied in following way,
> 1. repo init -u git://android.git.kernel.org/platform/manifest.git
> 2. repo sync
> 3. make
> 4. the compiling error trace is pasted below,
> host C: libclearsilver-jni <= external/clearsilver/java-jni/j_neo_util.c
> In file included from /usr/include/features.h:378,
> from /usr/include/string.h:26,
> from external/clearsilver/java-jni/j_neo_util.c:1:
> /usr/include/gnu/stubs.h:9:27: error: gnu/stubs-64.h: No such file or
> directory
> make: ***
> [out/host/linux-x86/obj/SHARED_LIBRARIES/libclearsilver-jni_intermediates/j_neo_util.o]
> Error 1
>
> I checked the /usr/include/gnu/stubs.h,
> #if __WORDSIZE == 32
> # include <gnu/stubs-32.h> //this file exists
> #elif __WORDSIZE == 64
> # include <gnu/stubs-64.h> // this file doesn't exist
> #else
> # error "unexpected value for __WORDSIZE macro"
> #endif
>
> __WORDSIZE is defined in /usr/include/bits/wordsize,
> #if defined __x86_64__
> # define __WORDSIZE 64
> # define __WORDSIZE_COMPAT32 1
> #else
> # define __WORDSIZE 32
> #endif
>
> The problem is why __x86_64__ is defined in the my 32bit Ubuntu?
> Could you please help to solve this issue?
>
> Thanks in advance!
>
> --
> Louis

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to