Re: aosp build on ubuntu 12.04 clang issues

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Re: aosp build on ubuntu 12.04 clang issues

Michael Moussa
Nevermind, my issue went away after a rebuild.

On Friday, November 30, 2012 12:28:50 PM UTC-5, Michael Moussa wrote:
I also have issues building AOSP on my 64 bit Ubuntu 12.04 machine. I ran into errors when building clang. Form what i understand clang is an alternative compiler to gcc and it is experimental and optional in the latest version of the Android NDK. So maybe we can just skip it to get past the error.

On Thursday, April 19, 2012 3:25:29 AM UTC-4, Andy Myers wrote:
Has anyone successfully built on ubuntu 12.04?  After following the development environment setup page on the AOSP site I seem to get build errors.  Specifically it seems to have a lot of trouble with clang.

Updating Clang version info.
Updating Clang version info.
/bin/bash: -c: line 4: unexpected EOF while looking for matching `"'
/bin/bash: -c: line 6: syntax error: unexpected end of file
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libclangDriver_intermediates/include/clang/Basic/] Error 1
make: *** Waiting for unfinished jobs....

The bug seems to be related to how external/clang/ builds up the version info.  The resulting input to sed ends up looking like this:

sed -e "s#@CLANG_VERSION@##define PACKAGE_VERSION "2.8"#g" \
-e "s#@CLANG_VERSION_MAJOR@##define#g" \
external/clang/include/clang/Basic/ > out/host/linux-x86/obj/STATIC_LIBRARIES/libclangDriver_intermediates/include/clang/Basic/

After hardcoding that to produce a valid, I'm running into missing symbols in the clang .so's (which may be a result of my hardcoding).  I understand 12.04 builds are experimental but am I the only one with these issues? 

You received this message because you are subscribed to the Google Groups "android-platform" group.
To view this discussion on the web visit
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at