Cant Compile inbuild kernel for Cm13 - Nexus 5 Developer Discussion [Developers Only]

Hello guys i just set up build environment for cm13 the non caf version,cant build kernel from that getting error
this is the error
HTML:
target thumb C++: libbase <= system/core/base/logging.cpp
target thumb C++: liblog <= system/core/liblog/log_time.cpp
target thumb C: liblog <= system/core/liblog/logd_write.c
target thumb C: liblog <= system/core/liblog/log_event_write.c
target thumb C: liblog <= system/core/liblog/event_tag_map.c
In file included from bionic/libc/include/stdatomic.h:156:0,
from system/core/liblog/logd_write.c:25:
bionic/libc/include/uchar.h:40:35: error: unknown type name 'char16_t'
size_t c16rtomb(char* __restrict, char16_t, mbstate_t* __restrict);
^
bionic/libc/include/uchar.h:41:35: error: unknown type name 'char32_t'
size_t c32rtomb(char* __restrict, char32_t, mbstate_t* __restrict);
^
bionic/libc/include/uchar.h:42:17: error: unknown type name 'char16_t'
size_t mbrtoc16(char16_t* __restrict,
^
bionic/libc/include/uchar.h:46:17: error: unknown type name 'char32_t'
size_t mbrtoc32(char32_t* __restrict,
^
In file included from system/core/liblog/logd_write.c:25:0:
bionic/libc/include/stdatomic.h:367:11: error: expected specifier-qualifier-list before 'char16_t'
typedef _Atomic(char16_t) atomic_char16_t;
^
bionic/libc/include/stdatomic.h:368:11: error: expected specifier-qualifier-list before 'char32_t'
typedef _Atomic(char32_t) atomic_char32_t;
^
build/core/binary.mk:816: recipe for target '/home/preshot2989/android/out/target/product/hammerhead/obj/STATIC_LIBRARIES/liblog_intermediates/logd_write.o' failed
make: *** [/home/preshot2989/android/out/target/product/hammerhead/obj/STATIC_LIBRARIES/liblog_intermediates/logd_write.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** wait: No child processes. Stop.
#### make failed to build some targets (04:45 (mm:ss)) ####
Using default toolchain for kernel GCC 4.8

Related

[Q] LinuxMint 13 CM9 compiling issue

I've been compiling on ubuntu fine for quite a while, I recently moved to LinuxMint for stability, cinnamon desktop seems a lot more stable on my hardware unlike Unity which seems to have lack of gfx support (I think) my card is a gtx 460 if anyone has any tips to get ubuntu working well that would be great. But back to comping issue
Code:
entCommand.cpp
target thumb C++: libwebcore <= external/webkit/Source/WebCore/editing/SplitTextNodeCommand.cpp
target thumb C++: libwebcore <= external/webkit/Source/WebCore/editing/SplitTextNodeContainingElementCommand.cpp
target thumb C++: libwebcore <= external/webkit/Source/WebCore/editing/TextCheckingHelper.cpp
target thumb C++: libwebcore <= external/webkit/Source/WebCore/editing/TextIterator.cpp
target thumb C++: libwebcore <= external/webkit/Source/WebCore/editing/TypingCommand.cpp
target thumb C++: libwebcore <= external/webkit/Source/WebCore/editing/UnlinkCommand.cpp
target thumb C++: libwebcore <= external/webkit/Source/WebCore/editing/VisiblePosition.cpp
target thumb C++: libwebcore <= external/webkit/Source/WebCore/editing/VisibleSelection.cpp
target thumb C++: libwebcore <= external/webkit/Source/WebCore/editing/WrapContentsInDummySpanCommand.cpp
target thumb C++: libwebcore <= external/webkit/Source/WebCore/editing/android/EditorAndroid.cpp
target thumb C++: libwebcore <= external/webkit/Source/WebCore/editing/htmlediting.cpp
target thumb C++: libwebcore <= external/webkit/Source/WebCore/editing/markup.cpp
target thumb C++: libwebcore <= external/webkit/Source/WebCore/editing/visible_units.cpp
target thumb C++: libwebcore <= external/webkit/Source/WebCore/fileapi/Blob.cpp
target thumb C++: libwebcore <= external/webkit/Source/WebCore/fileapi/BlobURL.cpp
target thumb C++: libwebcore <= external/webkit/Source/WebCore/fileapi/DOMFileSystemBase.cpp
arm-linux-androideabi-g++: Internal error: Segmentation fault (program cc1plus)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [out/target/product/galaxysmtd/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/editing/SelectionController.o] Error 1
make: *** Waiting for unfinished jobs....
[email protected] ~/android/system $
This happens about 5mins though build. I've tryed reinstalling jdk 6.
My java version:
java version "1.6.0_32"
Java(TM) SE Runtime Environment (build 1.6.0_32-b05)
Java HotSpot(TM) 64-Bit Server VM (build 20.7-b02, mixed mode)
I'm building CM9 from source for galaxysmtd (Galaxy S I9000)
Any tips would be great
Since this has nothing to do with mobile devices, moved to Off-Topic.
Q&A "For all of your questions relating to the Android platform" I thought compiling Cyanogenmod would be related lol, I never seem to post in the right section
Sorry

[Q] Error compiling CM-10.1

Hello all. I'm trying to compile the latest CM-10.1 according to Hashcode's instructions found in http://forum.xda-developers.com/showthread.php?t=2245335 I keep getting the following error messages:
Code:
target thumb C++: libstagefright <= frameworks/av/media/libstagefright/AMRExtractor.cpp
frameworks/av/media/libstagefright/ACodec.cpp: In member function 'android::status_t android::ACodec::setSupportedOutputFormat()':
frameworks/av/media/libstagefright/ACodec.cpp:1584:5: warning: comparison between 'OMX_COLOR_FORMATTYPE {aka enum OMX_COLOR_FORMATTYPE}' and 'enum OMX_TI_COLOR_FORMATTYPE' [-Wenum-compare]
frameworks/av/media/libstagefright/ACodec.cpp:1584:5: error: 'OMX_QCOM_COLOR_FormatYUV420PackedSemiPlanar32m' was not declared in this scope
frameworks/av/media/libstagefright/AMRExtractor.cpp: In member function 'virtual android::status_t android::AMRSource::read(android::MediaBuffer**, const android::MediaSource::ReadOptions*)':
frameworks/av/media/libstagefright/AMRExtractor.cpp:262:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
target thumb C++: libstagefright <= frameworks/av/media/libstagefright/AMRWriter.cpp
target thumb C++: libstagefright <= frameworks/av/media/libstagefright/AudioPlayer.cpp
make: *** [/android/kfhd7/cm10.1/out/target/product/tate/obj/SHARED_LIBRARIES/libstagefright_intermediates/ACodec.o] Error 1
make: *** Waiting for unfinished jobs....
Anyone else having problems compiling? I tried to add various includes to ACodec.cpp without avail. Any pointers would be much appreciated!
csosbee said:
Hello all. I'm trying to compile the latest CM-10.1 according to Hashcode's instructions found in http://forum.xda-developers.com/showthread.php?t=2245335 I keep getting the following error messages:
Code:
target thumb C++: libstagefright <= frameworks/av/media/libstagefright/AMRExtractor.cpp
frameworks/av/media/libstagefright/ACodec.cpp: In member function 'android::status_t android::ACodec::setSupportedOutputFormat()':
frameworks/av/media/libstagefright/ACodec.cpp:1584:5: warning: comparison between 'OMX_COLOR_FORMATTYPE {aka enum OMX_COLOR_FORMATTYPE}' and 'enum OMX_TI_COLOR_FORMATTYPE' [-Wenum-compare]
frameworks/av/media/libstagefright/ACodec.cpp:1584:5: error: 'OMX_QCOM_COLOR_FormatYUV420PackedSemiPlanar32m' was not declared in this scope
frameworks/av/media/libstagefright/AMRExtractor.cpp: In member function 'virtual android::status_t android::AMRSource::read(android::MediaBuffer**, const android::MediaSource::ReadOptions*)':
frameworks/av/media/libstagefright/AMRExtractor.cpp:262:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
target thumb C++: libstagefright <= frameworks/av/media/libstagefright/AMRWriter.cpp
target thumb C++: libstagefright <= frameworks/av/media/libstagefright/AudioPlayer.cpp
make: *** [/android/kfhd7/cm10.1/out/target/product/tate/obj/SHARED_LIBRARIES/libstagefright_intermediates/ACodec.o] Error 1
make: *** Waiting for unfinished jobs....
Anyone else having problems compiling? I tried to add various includes to ACodec.cpp without avail. Any pointers would be much appreciated!
Click to expand...
Click to collapse
Hello,
I fixed it
Here: https://github.com/Ntemis/android_device_bn_acclaim/commit/d89cf35ab6d139e27cd131e9fda971f92a66ff43
Thank you for the patch! :good:

[Q] build errors

Hi Everyone,
I thought someone will be able to help. I'm getting those build errors when building cm11 from source. This is just at the end when building apks. Is it me or cm source?
Code:
In file included from external/chromium_org/content/common/android/hash_set.cc:5:0:
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:10:26: error: extra tokens at end of #ifndef directive [-Werror]
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:11:26: error: missing whitespace after the macro name [-Werror]
target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/browser_rendering_stats.cc
target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/cc_messages.cc
target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/child_process_host_impl.cc
In file included from external/chromium_org/content/common/android/hash_set.cc:5:0:
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:24:20: error: expected initializer before '<' token
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:26:17: error: expected initializer before '<' token
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:29:22: error: expected '{' before '<' token
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:29:22: error: expected unqualified-id before '<' token
external/chromium_org/content/common/android/hash_set.cc:30:1: error: expected '}' at end of input
cc1plus: all warnings being treated as errors
make: *** [/root/cm/out/target/product/m7ul/obj/STATIC_LIBRARIES/content_content_common_gyp_intermediates/content/common/android/hash_set.o] Error 1
make: *** Waiting for unfinished jobs....
golcheck said:
Hi Everyone,
I thought someone will be able to help. I'm getting those build errors when building cm11 from source. This is just at the end when building apks. Is it me or cm source?
Code:
In file included from external/chromium_org/content/common/android/hash_set.cc:5:0:
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:10:26: error: extra tokens at end of #ifndef directive [-Werror]
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:11:26: error: missing whitespace after the macro name [-Werror]
target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/browser_rendering_stats.cc
target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/cc_messages.cc
target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/child_process_host_impl.cc
In file included from external/chromium_org/content/common/android/hash_set.cc:5:0:
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:24:20: error: expected initializer before '<' token
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:26:17: error: expected initializer before '<' token
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:29:22: error: expected '{' before '<' token
/root/cm/out/target/product/m7ul/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:29:22: error: expected unqualified-id before '<' token
external/chromium_org/content/common/android/hash_set.cc:30:1: error: expected '}' at end of input
cc1plus: all warnings being treated as errors
make: *** [/root/cm/out/target/product/m7ul/obj/STATIC_LIBRARIES/content_content_common_gyp_intermediates/content/common/android/hash_set.o] Error 1
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
Try this
http://www.playfuldroidz.com/wiki/How_to_Fix_HashSet_Issues_Building_Android
crt60 said:
Try this
http://www.playfuldroidz.com/wiki/How_to_Fix_HashSet_Issues_Building_Android
Click to expand...
Click to collapse
It was actually my fault. Was building with Java 7. Switched back to Java 6 and all good now. Thanks anyway
Build issues with openjdk-6-jdk_6b30
Hi,
just wanted to mention that I got the very same issue, introduced by a system update which also did update the jdk to 6b30. Took me some time to figure out that this was the actual issue, and it could only be resolved by switching back to 6b27 (which I had installed before)
Just in case someone comes across the same issue on Ubuntu precise, go back instantly and don't lose that much time as I did looking for the root cause somewhere else.
Interestingly, the newer raring, swarty releases are still on 6b27

[Q] Headers location missing during the build process

Hi Team,
I am trying to build the ROM from AOSP Source based on 5.1.1.
Till now the build was going fine but now I am facing issue with compilation errors.
The QCOM stuff creating these error because each files in the folder hardware/qcom/display/msm8974 missing the reference to compiler header file/location.
So I don't want to amend each reference to point specifically. I know where the files are located but compiler not picking it up.
E.G: #include <media/msm_media_info.h>
All the stuff available on >> hardware/qcom/msm8x74
Can someone please guide me like which ENV variable I need to check?? or which .mk file I need to amend ??
*********************************
target thumb C++: libmemalloc <= hardware/qcom/display/msm8974/libgralloc/ionalloc.cpp
target thumb C++: libmemalloc <= hardware/qcom/display/msm8974/libgralloc/alloc_controller.cpp
hardware/qcom/display/msm8974/libgralloc/alloc_controller.cpp:41:34: fatal error: media/msm_media_info.h: No such file or directory
#include <media/msm_media_info.h>
^
compilation terminated.
build/core/binary.mk:620: recipe for target 'out/target/product/cancro/obj/SHARED_LIBRARIES/libmemalloc_intermediates/alloc_controller.o' failed
make: *** [out/target/product/cancro/obj/SHARED_LIBRARIES/libmemalloc_intermediates/alloc_controller.o] Error 1
make: *** Waiting for unfinished jobs....
*********************************

How to build LineageOS For Gemini

I try to build the LineageOS,but the system fails to compile
how to fix it?
Reference documentation
http://wiki.lineageos.org/gemini_build.html#start-the-build
build/core/base_rules.mk:316: warning: overriding commands for target `/mnt/media/system/out/target/product/gemini/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/mnt/media/system/out/target/product/gemini/root/res/images/charger/battery_fail.png'
build/core/Makefile:34: warning: overriding commands for target `/mnt/media/system/out/target/product/gemini/system/etc/libnfc-brcm.conf'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/mnt/media/system/out/target/product/gemini/system/etc/libnfc-brcm.conf'
build/core/Makefile:34: warning: overriding commands for target `/mnt/media/system/out/target/product/gemini/system/etc/libnfc-nxp.conf'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/mnt/media/system/out/target/product/gemini/system/etc/libnfc-nxp.conf'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/mnt/media/system/out/target/product/gemini/obj/SHARED_LIBRARIES/libqminvapi_intermediates/export_includes', needed by '/mnt/media/system/out/target/product/gemini/obj/EXECUTABLES/readmac_intermediates/import_includes', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/mnt/media/system'
if i run <code> mmm wifi </code>
Running kati to generate build-lineage_gemini-mmm-device_xiaomi_gemini_wifi_Android.mk.ninja...
No need to regenerate ninja file
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/mnt/media/system/out/target/product/gemini/obj/SHARED_LIBRARIES/libutils_intermediates/export_includes', needed by '/mnt/media/system/out/target/product/gemini/obj/EXECUTABLES/readmac_intermediates/import_includes', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/mnt/media/system'

Categories

Resources