Compilation error while using symlinked folders

151 views
Skip to first unread message

Srinath N

unread,
Jan 11, 2015, 11:37:21 AM1/11/15
to android-...@googlegroups.com
Hi folks,

I'm building the android-4.4.4_r2 source code on a Ubuntu 12.04 machine. I symlinked the base/ and the native/ folders under the frameworks/ folder to yet another folder (outside the tree). When I build nexus 5 image (aosp-hammerhead_eng) I face the following error (please see text in bold font).

PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
target Export Resources: framework-res (/home/srinath/android/kk-out/src-kitkat/target/common/obj/APPS/framework-res_intermediates/package-export.apk)
make: *** No rule to make target `frameworks/native/opengl/libs/../../../../device/lge/hammerhead/egl.cfg', needed by `/home/srinath/android/kk-out/src-kitkat/target/product/hammerhead/obj/ETC/egl.cfg_intermediates/egl.cfg'.  Stop.
make: *** Waiting for unfinished jobs....
target Symbolic: libinputservice (/home/srinath/android/kk-out/src-kitkat/target/product/hammerhead/symbols/system/lib/libinputservice.so)
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area
aapt: warning: string 'gsm_alphabet_default_charset' has no default translation in frameworks/base/core/res/res; found: ko.....
....

The folder device/lge/hammerhead has the egl.cfg file and the intermediates folder also has the egl.cfg file.

Can anyone let me know why I'm getting this error?

-Srinath

Srinath N

unread,
Jan 12, 2015, 9:33:16 AM1/12/15
to android-...@googlegroups.com
One more error - this is because of frameworks/base being symlinked to an external folder.

In file included from frameworks/base/core/jni/TimeUtils.h:21:0,
                 from frameworks/base/core/jni/Time.cpp:1:
system/core/include/cutils/tztime.h:21:25: fatal error: bionic_time.h: No such file or directory
compilation terminated.
frameworks/base/core/jni/com_google_android_gles_jni_GLImpl.cpp: In function 'void* getDirectBufferPointer(JNIEnv*, jobject)':
frameworks/base/core/jni/com_google_android_gles_jni_GLImpl.cpp:186:25: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
target thumb C++: libandroid_runtime <= frameworks/base/core/jni/android_opengl_GLES10.cpp
make: *** [/home/srinath/android/kk-out/src-kitkat/target/product/hammerhead/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/Time.o] Error 1

make: *** Waiting for unfinished jobs....
In file included from frameworks/base/core/jni/../../../native/opengl/libs/EGL/egldefs.h:20:0,
                 from frameworks/base/core/jni/../../../native/opengl/libs/EGL/egl_display.h:33,
                 from frameworks/base/core/jni/com_google_android_gles_jni_EGLImpl.cpp:25:
frameworks/base/core/jni/../../../native/opengl/libs/EGL/../hooks.h:48:64: fatal error: bionic_tls.h: No such file or directory
compilation terminated.
make: *** [/home/srinath/android/kk-out/src-kitkat/target/product/hammerhead/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/com_google_android_gles_jni_EGLImpl.o] Error 1
make: *** wait: No child processes.  Stop.

Any suggestions/comments/concerns?
-Srinath
Reply all
Reply to author
Forward
0 new messages