Sunday, July 4, 2010

[android-developers] File missing error while compiling Android source code

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"

No comments:

Post a Comment