[Android Q&A, Help & Troubleshooting] rob54321:
Hi I have been trying to build full-eng from aosp. I am using oracle java6 u45 and have followed all the insttructions but the build fails with compile errors.

Here is the output:

cc1plus: all warnings being treated as errors

make: *** [/home/robert/out/master/target/product/generic/obj/STATIC_LIBRARIES/libbccExecutionEngine_intermediates/BCCRuntimeSymbolResolver.o] Error 1

make: *** Waiting for unfinished jobs....

In file included from /usr/include/bits/posix1_lim.h:160:0,

from /usr/include/../include/limits.h:144,

from external/stlport/stlport/limits.h:30,

from external/stlport/stlport/climits:40,

from external/stlport/stlport/stl/_algobase.h:42,

from external/stlport/stlport/stl/_algo.h:34,

from external/stlport/stlport/algorithm:41,

from frameworks/compile/libbcc/bcinfo/Wrap/../../../../../external/llvm/include/llvm/ADT/StringRef.h:15,

from frameworks/compile/libbcc/bcinfo/Wrap/../../../../../external/llvm/include/llvm/Support/raw_ostream.h:17,

from frameworks/compile/linkloader/include/ELFTypes.h:23,

from frameworks/compile/linkloader/include/ELFObject.h:20,

from frameworks/compile/libbcc/lib/ExecutionEngine/ELFObjectLoaderImpl.cpp:22:

/usr/include/bits/local_lim.h:69:0: error: "PTHREAD_DESTRUCTOR_ITERATIONS" redefined [-Werror]

In file included from bionic/libc/include/limits.h:86:0,

from /usr/include/../include/limits.h:124,

from external/stlport/stlport/limits.h:30,

from external/stlport/stlport/climits:40,

from external/stlport/stlport/stl/_algobase.h:42,

from external/stlport/stlport/stl/_algo.h:34,

from external/stlport/stlport/algorithm:41,

from frameworks/compile/libbcc/bcinfo/Wrap/../../../../../external/llvm/include/llvm/ADT/StringRef.h:15,

from frameworks/compile/libbcc/bcinfo/Wrap/../../../../../external/llvm/include/llvm/Support/raw_ostream.h:17,

from frameworks/compile/linkloader/include/ELFTypes.h:23,

from frameworks/compile/linkloader/include/ELFObject.h:20,

from frameworks/compile/libbcc/lib/ExecutionEngine/ELFObjectLoaderImpl.cpp:22:

bionic/libc/include/sys/limits.h:179:0: note: this is the location of the previous definition

In file included from /usr/include/../include/wchar.h:884:0,

from external/stlport/stlport/stl/_cwchar.h:68,

from external/stlport/stlport/stl/_limits.h:36,

from external/stlport/stlport/limits:29,

from frameworks/compile/libbcc/bcinfo/Wrap/../../../../../external/llvm/include/llvm/ADT/StringRef.h:18,

from frameworks/compile/libbcc/bcinfo/Wrap/../../../../../external/llvm/include/llvm/Support/raw_ostream.h:17,

from frameworks/compile/linkloader/include/ELFTypes.h:23,

from frameworks/compile/linkloader/include/ELFObject.h:20,

from frameworks/compile/libbcc/lib/ExecutionEngine/ELFObjectLoaderImpl.cpp:22:

/usr/include/bits/wchar2.h:448:3: error: #error "Assumed value of MB_LEN_MAX wrong"

In file included from external/stlport/stlport/stl/_cwchar.h:68:0,

from external/stlport/stlport/stl/_limits.h:36,

from external/stlport/stlport/limits:29,

from frameworks/compile/libbcc/bcinfo/Wrap/../../../../../external/llvm/include/llvm/ADT/StringRef.h:18,

from frameworks/compile/libbcc/bcinfo/Wrap/../../../../../external/llvm/include/llvm/Support/raw_ostream.h:17,

from frameworks/compile/linkloader/include/ELFTypes.h:23,

from frameworks/compile/linkloader/include/ELFObject.h:20,

from frameworks/compile/libbcc/lib/ExecutionEngine/ELFObjectLoaderImpl.cpp:22:

/usr/include/../include/wchar.h: In function 'int wctob(wint_t)':

/usr/include/../include/wchar.h:395:50: error: comparison of unsigned expression >= 0 is always true [-Werror=type-limits]

cc1plus: all warnings being treated as errors

make: *** [/home/robert/out/master/target/product/generic/obj/STATIC_LIBRARIES/libbccExecutionEngine_intermediates/ELFObjectLoaderImpl.o] Error 1

I have regularly updated with repo sync.

Any help would be appreciated.

Rob

---------- Post added at 04:24 PM ---------- Previous post was at 04:10 PM ----------

Hi I have also tried to build AOKP. The build goes for quite a long time the compile errors come up.

The output:

/usr/include/gnu/stubs-32.h:7:3: error: #error Applications may not define the macro _LIBC

bionic/libdl/libdl.c:22:13: error: conflicting types for 'dlerror'

/usr/include/dlfcn.h:83:14: note: previous declaration of 'dlerror' was here

bionic/libdl/libdl.c:24:30: error: unknown type name 'Dl_info'

In file included from /usr/include/stdio.h:74:0,

from bionic/libc/bionic/ssp.c:28:

/usr/include/libio.h:329:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'attribute_hidden'

/usr/include/libio.h:330:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'attribute_hidden'

/usr/include/libio.h:331:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'attribute_hidden'

make: *** [/home/robert/out/aokp/target/product/grouper/obj/SHARED_LIBRARIES/libdl_intermediates/libdl.o] Error 1

make: *** Waiting for unfinished jobs....

bionic/libc/bionic/ssp.c: In function '__stack_chk_fail':

bionic/libc/bionic/ssp.c:70:15: error: 'PATH_MAX' undeclared (first use in this function)

bionic/libc/bionic/ssp.c:70:15: note: each undeclared identifier is reported only once for each function it appears in

bionic/libc/bionic/ssp.c:81:9: warning: implicit declaration of function 'strlcpy' [-Wimplicit-function-declaration]

make: *** [/home/robert/out/aokp/target/product/grouper/obj/STATIC_LIBRARIES/libbionic_ssp_intermediates/bionic/ssp.o] Error 1

In file included from bionic/libc/private/bionic_atomic_inline.h:53:0,

from bionic/libstdc++/src/one_time_construction.cpp:15:

bionic/libc/private/bionic_atomic_arm.h:145:18: error: '__bionic_cmpxchg' declared as an 'inline' variable

bionic/libc/private/bionic_atomic_arm.h:145:18: warning: 'always_inline' attribute ignored [-Wattributes]

bionic/libc/private/bionic_atomic_arm.h:145:18: error: 'int32_t' was not declared in this scope

bionic/libc/private/bionic_atomic_arm.h:145:37: error: 'int32_t' was not declared in this scope

bionic/libc/private/bionic_atomic_arm.h:145:56: error: expected primary-expression before 'volatile'

bionic/libc/private/bionic_atomic_arm.h:145:77: error: expression list treated as compound expression in initializer [-fpermissive]

bionic/libc/private/bionic_atomic_arm.h:146:1: error: expected ',' or ';' before '{' token

bionic/libstdc++/src/one_time_construction.cpp:111:1: error: expected '}' at end of input

make: *** [/home/robert/out/aokp/target/product/grouper/obj/SHARED_LIBRARIES/libstdc++_intermediates/src/one_time_construction.o] Error 1

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

I am using oracle java 6 u45 and followed the instructions.

I cannot get aosp or aokp or cyanogenMOD to build correctly!

Any help would be appreciated.

Thanks,

Rob