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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to