[Q] Carbon build errors - Omni Q&A

I understand that this isn't a thread for CarbonRom, but there is none. Usually I've been content with just searching around the internet, and XDA to fix all of my problems, but I honestly could not find anything for this.
Code:
[email protected]:~/carbon$ make -j2 otapackage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
CARBON_VERSION=
TARGET_PRODUCT=p769
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-27-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=KVT49L
OUT_DIR=/home/seyi/carbon/out
============================================
/home/seyi/carbon/out/target/product/p769/obj/APPS/SignatureTest_intermediates
find: `omapmmlib/java': No such file or directory
find: `omapmmlib/java': No such file or directory
find: `omapmmlib/java': No such file or directory
find: `omapmmlib/java': No such file or directory
find: `src': No such file or directory
build/core/Makefile:44: warning: overriding commands for target `/home/seyi/carbon/out/target/product/p769/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/seyi/carbon/out/target/product/p769/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/Makefile:44: warning: overriding commands for target `/home/seyi/carbon/out/target/product/p769/system/lib/libril.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/seyi/carbon/out/target/product/p769/system/lib/libril.so'
build/core/Makefile:44: warning: overriding commands for target `/home/seyi/carbon/out/target/product/p769/system/lib/hw/camera.omap4.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/seyi/carbon/out/target/product/p769/system/lib/hw/camera.omap4.so'
build/core/Makefile:44: warning: overriding commands for target `/home/seyi/carbon/out/target/product/p769/system/lib/hw/nfc.default.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/seyi/carbon/out/target/product/p769/system/lib/hw/nfc.default.so'
build/core/Makefile:44: warning: overriding commands for target `/home/seyi/carbon/out/target/product/p769/system/bin/rild'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/seyi/carbon/out/target/product/p769/system/bin/rild'
build/core/Makefile:44: warning: overriding commands for target `/home/seyi/carbon/out/target/product/p769/system/lib/libmm_osal.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/seyi/carbon/out/target/product/p769/system/lib/libmm_osal.so'
build/core/Makefile:44: warning: overriding commands for target `/home/seyi/carbon/out/target/product/p769/system/lib/libOMX_Core.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/seyi/carbon/out/target/product/p769/system/lib/libOMX_Core.so'
build/core/Makefile:44: warning: overriding commands for target `/home/seyi/carbon/out/target/product/p769/system/lib/libion.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/seyi/carbon/out/target/product/p769/system/lib/libion.so'
build/core/Makefile:44: warning: overriding commands for target `/home/seyi/carbon/out/target/product/p769/system/lib/libtiutils.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/seyi/carbon/out/target/product/p769/system/lib/libtiutils.so'
build/core/Makefile:44: warning: overriding commands for target `/home/seyi/carbon/out/target/product/p769/system/lib/libdomx.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/seyi/carbon/out/target/product/p769/system/lib/libdomx.so'
build/core/Makefile:44: warning: overriding commands for target `/home/seyi/carbon/out/target/product/p769/system/lib/libOMX.TI.DUCATI1.MISC.SAMPLE.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/seyi/carbon/out/target/product/p769/system/lib/libOMX.TI.DUCATI1.MISC.SAMPLE.so'
build/core/Makefile:44: warning: overriding commands for target `/home/seyi/carbon/out/target/product/p769/system/lib/libOMX.TI.DUCATI1.VIDEO.CAMERA.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/seyi/carbon/out/target/product/p769/system/lib/libOMX.TI.DUCATI1.VIDEO.CAMERA.so'
build/core/Makefile:44: warning: overriding commands for target `/home/seyi/carbon/out/target/product/p769/system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/seyi/carbon/out/target/product/p769/system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.so'
build/core/Makefile:44: warning: overriding commands for target `/home/seyi/carbon/out/target/product/p769/system/lib/libOMX.TI.DUCATI1.VIDEO.H264E.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/seyi/carbon/out/target/product/p769/system/lib/libOMX.TI.DUCATI1.VIDEO.H264E.so'
build/core/Makefile:44: warning: overriding commands for target `/home/seyi/carbon/out/target/product/p769/system/lib/libOMX.TI.DUCATI1.VIDEO.MPEG4E.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/seyi/carbon/out/target/product/p769/system/lib/libOMX.TI.DUCATI1.VIDEO.MPEG4E.so'
build/core/Makefile:44: warning: overriding commands for target `/home/seyi/carbon/out/target/product/p769/system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.secure.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/seyi/carbon/out/target/product/p769/system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.secure.so'
build/core/Makefile:44: warning: overriding commands for target `/home/seyi/carbon/out/target/product/p769/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/seyi/carbon/out/target/product/p769/system/etc/wifi/wpa_supplicant.conf'
PRODUCT_COPY_FILES frameworks/base/data/keyboards/Generic.kl:system/usr/keylayout/Generic.kl ignored.
PRODUCT_COPY_FILES device/generic/goldfish/camera/media_profiles.xml:system/etc/media_profiles.xml ignored.
PRODUCT_COPY_FILES device/generic/goldfish/camera/media_codecs.xml:system/etc/media_codecs.xml ignored.
PRODUCT_COPY_FILES hardware/libhardware_legacy/audio/audio_policy.conf:system/etc/audio_policy.conf ignored.
No private recovery resources for TARGET_DEVICE p769
make -C kernel/lge/lge-kernel-omap4 O=/home/seyi/carbon/out/target/product/p769/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/seyi/carbon/prebuilts/misc/linux-x86/ccache/ccache /home/seyi/carbon/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cyanogenmod_p769_defconfig
make[1]: Entering directory `/home/seyi/carbon/kernel/lge/lge-kernel-omap4'
target thumb C: libbusybox <= external/busybox/libbb/lineedit.c
GEN /home/seyi/carbon/out/target/product/p769/obj/KERNEL_OBJ/Makefile
target thumb C: libbusybox <= external/busybox/procps/ps.c
target thumb C: libbusybox <= external/busybox/util-linux/volume_id/get_devname.c
Target buildinfo: /home/seyi/carbon/out/target/product/p769/system/build.prop
Target buildinfo from: device/lge/p769/system.prop
host C++: aapt <= frameworks/base/tools/aapt/AaptAssets.cpp
In file included from frameworks/base/tools/aapt/AaptAssets.h:10:0,
from frameworks/base/tools/aapt/AaptAssets.cpp:5:
frameworks/base/include/androidfw/AssetManager.h:111:9: error: invalid suffix "d8929cc8485ca896dde2493cbe3ea65eb9c197" on integer constant
In file included from frameworks/base/tools/aapt/AaptAssets.h:10:0,
from frameworks/base/tools/aapt/AaptAssets.cpp:5:
frameworks/base/include/androidfw/AssetManager.h:263:9: error: invalid suffix "d8929cc8485ca896dde2493cbe3ea65eb9c197" on integer constant
In file included from frameworks/base/tools/aapt/AaptAssets.h:10:0,
from frameworks/base/tools/aapt/AaptAssets.cpp:5:
frameworks/base/include/androidfw/AssetManager.h:107:1: error: expected identifier before '<<' token
frameworks/base/include/androidfw/AssetManager.h:107:1: error: expected ',' or '...' before '<<' token
frameworks/base/include/androidfw/AssetManager.h:109:1: error: expected unqualified-id before '==' token
frameworks/base/include/androidfw/AssetManager.h:111:1: error: expected unqualified-id before '>>' token
In file included from frameworks/base/tools/aapt/AaptAssets.h:10:0,
from frameworks/base/tools/aapt/AaptAssets.cpp:5:
frameworks/base/include/androidfw/AssetManager.h:259:1: error: expected unqualified-id before '<<' token
frameworks/base/include/androidfw/AssetManager.h:263:1: error: expected unqualified-id before '>>' token
frameworks/base/include/androidfw/AssetManager.h: In constructor 'android::AssetManager::asset_path::asset_path()':
frameworks/base/include/androidfw/AssetManager.h:262:24: error: class 'android::AssetManager::asset_path' does not have any field named 'pkgIdOverride'
In file included from frameworks/base/tools/aapt/AaptAssets.h:11:0,
from frameworks/base/tools/aapt/AaptAssets.cpp:5:
frameworks/base/include/androidfw/ResourceTypes.h: At global scope:
frameworks/base/include/androidfw/ResourceTypes.h:1604:10: error: 'bool android::ResTable::isResTypeAllowed(char const*) const' cannot be overloaded
frameworks/base/include/androidfw/ResourceTypes.h:1602:10: error: with 'bool android::ResTable::isResTypeAllowed(char const*) const'
make: *** [/home/seyi/carbon/out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/AaptAssets.o] Error 1
make: *** Waiting for unfinished jobs....
#
# configuration written to .config
#
make[1]: Leaving directory `/home/seyi/carbon/kernel/lge/lge-kernel-omap4'
Can someone please help me understand how to fix this error?

dragid10 said:
Can someone please help me understand how to fix this error?
Click to expand...
Click to collapse
You have code conflict markup garbage in frameworks/base/include/androidfw/AssetManager.h:
frameworks/base/include/androidfw/AssetManager.h:111:9: error: invalid suffix "d8929cc8485ca896dde2493cbe3ea65eb9c197" on integer constant
In file included from frameworks/base/tools/aapt/AaptAssets.h:10:0,
from frameworks/base/tools/aapt/AaptAssets.cpp:5:
frameworks/base/include/androidfw/AssetManager.h:263:9: error: invalid suffix "d8929cc8485ca896dde2493cbe3ea65eb9c197" on integer constant
In file included from frameworks/base/tools/aapt/AaptAssets.h:10:0,
from frameworks/base/tools/aapt/AaptAssets.cpp:5:
frameworks/base/include/androidfw/AssetManager.h:107:1: error: expected identifier before '<<' token
frameworks/base/include/androidfw/AssetManager.h:107:1: error: expected ',' or '...' before '<<' token
frameworks/base/include/androidfw/AssetManager.h:109:1: error: expected unqualified-id before '==' token
frameworks/base/include/androidfw/AssetManager.h:111:1: error: expected unqualified-id before '>>' token
Click to expand...
Click to collapse
You must do a code cleanup starting with line 107 (<<<<<< HEAD).
Always read your compiler output.

chasmodo said:
You have code conflict markup garbage in frameworks/base/include/androidfw/AssetManager.h:
You must do a code cleanup starting with line 107 (<<<<<< HEAD).
Always read your compiler output.
Click to expand...
Click to collapse
Alright how will i do this? And what can i use to open that file?
I actually do not know any java. Is there something i can use to help me?
EDIT: nvm opens up perfectly with gedit

New Problem
Alright i fixed my last problem by replacing the frameworks folder. But now i have a new problem. I keep getting error 41
Code:
Copying: /home/seyi/carbon/out/target/common/obj/JAVA_LIBRARIES/mms-common_intermediates/classes.jar
ProGuard, version 4.4
Reading program jar [/home/seyi/carbon/out/target/common/obj/APPS/WAPPushManager_intermediates/classes.jar]
Reading library jar [/home/seyi/carbon/out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes.jar]
[COLOR="Red"]packages/apps/Settings/src/com/android/settings/profiles/ProfileAirplaneModePreference.java:42: error: cannot find symbol
private ProfileConfig.AirplaneModeItem mAirplaneModeItem;
^
symbol: class AirplaneModeItem
location: class ProfileConfig
packages/apps/Settings/src/com/android/settings/profiles/ProfileAirplaneModePreference.java:105: error: cannot find symbol
public void setAirplaneModeItem(ProfileConfig.AirplaneModeItem airplaneModeItem) {
^
symbol: class AirplaneModeItem
location: class ProfileConfig
packages/apps/Settings/src/com/android/settings/profiles/ProfileAirplaneModePreference.java:155: error: cannot find symbol
public ProfileConfig.AirplaneModeItem getAirplaneModeItem() {
^
symbol: class AirplaneModeItem
location: class ProfileConfig
packages/apps/Settings/src/com/android/settings/profiles/ProfileRingModePreference.java:42: error: cannot find symbol
private ProfileConfig.RingModeItem mRingModeItem;
^
symbol: class RingModeItem
location: class ProfileConfig
packages/apps/Settings/src/com/android/settings/profiles/ProfileRingModePreference.java:105: error: cannot find symbol
public void setRingModeItem(ProfileConfig.RingModeItem ringModeItem) {
^
symbol: class RingModeItem
location: class ProfileConfig
packages/apps/Settings/src/com/android/settings/profiles/ProfileRingModePreference.java:159: error: cannot find symbol
public ProfileConfig.RingModeItem getRingModeItem() {
^
symbol: class RingModeItem
location: class ProfileConfig
packages/apps/Settings/../CarbonFibers/src/com/carbon/fibers/fragments/sb/CarrierLabel.java:82: error: cannot find symbol
Settings.System.NOTIFICATION_SHORTCUTS_HIDE_CARRIER, 0, UserHandle.USER_CURRENT_OR_SELF) == 1);
^
symbol: variable NOTIFICATION_SHORTCUTS_HIDE_CARRIER
location: class System
packages/apps/Settings/../CarbonFibers/src/com/carbon/fibers/fragments/sb/CarrierLabel.java:87: error: cannot find symbol
Settings.System.putInt(mCr, Settings.System.NOTIFICATION_SHORTCUTS_HIDE_CARRIER, (Boolean) newValue ? 1 : 0);
^
symbol: variable NOTIFICATION_SHORTCUTS_HIDE_CARRIER
location: class System
packages/apps/Settings/../CarbonFibers/src/com/carbon/fibers/fragments/sb/CarrierLabel.java:96: error: cannot find symbol
Settings.System.CUSTOM_CARRIER_LABEL);
^
symbol: variable CUSTOM_CARRIER_LABEL
location: class System
packages/apps/Settings/../CarbonFibers/src/com/carbon/fibers/fragments/sb/CarrierLabel.java:121: error: cannot find symbol
Settings.System.CUSTOM_CARRIER_LABEL, value);
^
symbol: variable CUSTOM_CARRIER_LABEL
location: class System
packages/apps/Settings/../CarbonFibers/src/com/carbon/fibers/fragments/sb/CarrierLabel.java:141: error: cannot find symbol
Settings.System.putInt(getActivity().getContentResolver(), Settings.System.NOTIFICATION_SHOW_WIFI_SSID,
^
symbol: variable NOTIFICATION_SHOW_WIFI_SSID
location: class System
packages/apps/Settings/src/com/android/settings/profiles/ProfileConnectionPreference.java:126: error: cannot find symbol
final String[] connectionNames = getContext().getResources().getStringArray(mConnectionItem.mChoices);
^
symbol: variable mChoices
location: variable mConnectionItem of type ConnectionItem
packages/apps/Settings/src/com/android/settings/profiles/ProfileConnectionPreference.java:131: error: cannot find symbol
builder.setSingleChoiceItems(mConnectionItem.mChoices, currentChoice, new DialogInterface.OnClickListener() {
^
symbol: variable mChoices
location: variable mConnectionItem of type ConnectionItem
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.
13 errors[/COLOR]
make: *** [/home/seyi/carbon/out/target/common/obj/APPS/Settings_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....
Reading library jar [/home/seyi/carbon/out/target/common/obj/JAVA_LIBRARIES/core-junit_intermediates/classes.jar]
Reading library jar [/home/seyi/carbon/out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jar]
Reading library jar [/home/seyi/carbon/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar]
Reading library jar [/home/seyi/carbon/out/target/common/obj/JAVA_LIBRARIES/framework2_intermediates/classes.jar]
Reading library jar [/home/seyi/carbon/out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes.jar]
Note: the configuration refers to the unknown class 'android.app.ContextImpl$SharedPreferencesImpl$EditorImpl'
Note: there were 1 references to unknown classes.
You should check your configuration for typos.
Preparing output jar [/home/seyi/carbon/out/target/common/obj/APPS/WAPPushManager_intermediates/proguard.classes.jar]
Copying resources from program jar [/home/seyi/carbon/out/target/common/obj/APPS/WAPPushManager_intermediates/classes.jar]

Related

Building ICS AOSP!

So i have synced the sources n device related files from github.
All is good here!
now when i make -j1 otapackage it shows me this.
Code:
build/core/Makefile:25: warning: overriding commands for target `out/target/product/p500/obj/lib/libril.so'
build/core/dynamic_binary.mk:112: warning: ignoring old commands for target `out/target/product/p500/obj/lib/libril.so'
build/core/Makefile:25: warning: overriding commands for target `out/target/product/p500/system/lib/libril.so'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/p500/system/lib/libril.so'
No private recovery resources for TARGET_DEVICE p500
Header: out/target/product/p500/obj/include/libloc_api-rpc/inc/loc_api_cb.h
Header: out/target/product/p500/obj/include/libloc_api-rpc/inc/loc_api_common.h
Header: out/target/product/p500/obj/include/libloc_api-rpc/inc/loc_api.h
Header: out/target/product/p500/obj/include/libloc_api-rpc/inc/loc_api_fixup.h
Header: out/target/product/p500/obj/include/libloc_api-rpc/inc/loc_apicb_appinit.h
Header: out/target/product/p500/obj/include/libloc_api-rpc/inc/debug.h
Header: out/target/product/p500/obj/include/libloc_api-rpc/inc/loc_api_rpc_glue.h
Header: out/target/product/p500/obj/include/libloc_api-rpc/inc/loc_api_sync_call.h
target thumb C++: audio.primary.msm7x27 <= device/lge/msm7x27-common/libaudio/AudioHardware.cpp
In file included from device/lge/msm7x27-common/libaudio/AudioHardware.cpp:39:
device/lge/msm7x27-common/libaudio/AudioHardware.h:31:39: error: linux/msm_audio_voicememo.h: No such file or directory
device/lge/msm7x27-common/libaudio/AudioHardware.cpp: In constructor 'android_audio_legacy::AudioHardware::AudioHardware()':
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:186: error: 'SND_AVC_CTL' was not declared in this scope
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:187: error: 'SND_AGC_CTL' was not declared in this scope
device/lge/msm7x27-common/libaudio/AudioHardware.cpp: In function 'int android_audio_legacy::msm72xx_enable_postproc(bool)':
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:908: warning: comparison between signed and unsigned integer expressions
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:913: warning: comparison between signed and unsigned integer expressions
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:918: warning: comparison between signed and unsigned integer expressions
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:943: error: 'AUDIO_SET_MBADRC' was not declared in this scope
device/lge/msm7x27-common/libaudio/AudioHardware.cpp: In member function 'virtual android::status_t android_audio_legacy::AudioHardware::setVoiceVolume(float)':
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:1121: warning: comparison between signed and unsigned integer expressions
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:1121: warning: comparison between signed and unsigned integer expressions
device/lge/msm7x27-common/libaudio/AudioHardware.cpp: In member function 'android::status_t android_audio_legacy::AudioHardware::doRouting(android_audio_legacy::AudioHardware::AudioStreamInMSM72xx*)':
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:1314: warning: comparison between signed and unsigned integer expressions
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:1317: warning: comparison between signed and unsigned integer expressions
device/lge/msm7x27-common/libaudio/AudioHardware.cpp: In member function 'android::status_t android_audio_legacy::AudioHardware::AudioStreamInMSM72xx::set(android_audio_legacy::AudioHardware*, uint32_t, int*, uint32_t*, uint32_t*, android_audio_legacy::AudioSystem::audio_in_acoustics)':
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:1675: error: aggregate 'android_audio_legacy::msm_audio_voicememo_config gcfg' has incomplete type and cannot be defined
device/lge/msm7x27-common/libaudio/AudioHardware.cpp: In member function 'virtual ssize_t android_audio_legacy::AudioHardware::AudioStreamInMSM72xx::read(void*, ssize_t)':
device/lge/msm7x27-common/libaudio/AudioHardware.cpp:1954: warning: format '%d' expects type 'int', but argument 4 has type 'ssize_t'
make: *** [out/target/product/p500/obj/SHARED_LIBRARIES/audio.primary.msm7x27_intermediates/AudioHardware.o] Error 1
What is the prob n how to fix it?
Thnx

Error while build CM10

Hey guys!
No, I still haven't gotten my CM10 to boot, because I am having a lot of build errors. Now, I need help with the following error while building:
Code:
Import includes file: /home/zeeshan/cm10/out/target/product/u8800/obj/SHARED_LIBRARIES/copybit.msm7x30_intermediates/import_includes
Import includes file: /home/zeeshan/cm10/out/target/product/u8800/obj/SHARED_LIBRARIES/libmemalloc_intermediates/import_includes
target thumb C++: libgenlock <= hardware/qcom/display/libgenlock/genlock.cpp
target thumb C: gps.goldfish <= sdk/emulator/gps/gps_qemu.c
sdk/emulator/gps/gps_qemu.c:47:0: warning: "D" redefined [enabled by default]
hardware/libhardware/include/hardware/qemu_pipe.h:29:0: note: this is the location of the previous definition
sdk/emulator/gps/gps_qemu.c:903:5: warning: initialization from incompatible pointer type [enabled by default]
sdk/emulator/gps/gps_qemu.c:903:5: warning: (near initialization for 'qemuGpsInterface.set_position_mode') [enabled by default]
target thumb C++: gralloc.default <= hardware/libhardware/modules/gralloc/gralloc.cpp
hardware/libhardware/modules/gralloc/gralloc.cpp:100:1: warning: missing initializer for member 'hw_module_t::dso' [-Wmissing-field-initializers]
hardware/libhardware/modules/gralloc/gralloc.cpp:100:1: warning: missing initializer for member 'hw_module_t::reserved' [-Wmissing-field-initializers]
hardware/libhardware/modules/gralloc/gralloc.cpp:100:1: warning: missing initializer for member 'gralloc_module_t::perform' [-Wmissing-field-initializers]
hardware/libhardware/modules/gralloc/gralloc.cpp:100:1: warning: missing initializer for member 'gralloc_module_t::reserved_proc' [-Wmissing-field-initializers]
hardware/libhardware/modules/gralloc/gralloc.cpp:100:1: warning: missing initializer for member 'private_module_t::pmem_master' [-Wmissing-field-initializers]
hardware/libhardware/modules/gralloc/gralloc.cpp:100:1: warning: missing initializer for member 'private_module_t::pmem_master_base' [-Wmissing-field-initializers]
hardware/libhardware/modules/gralloc/gralloc.cpp:100:1: warning: missing initializer for member 'private_module_t::info' [-Wmissing-field-initializers]
hardware/libhardware/modules/gralloc/gralloc.cpp:100:1: warning: missing initializer for member 'private_module_t::finfo' [-Wmissing-field-initializers]
hardware/libhardware/modules/gralloc/gralloc.cpp:100:1: warning: missing initializer for member 'private_module_t::xdpi' [-Wmissing-field-initializers]
hardware/libhardware/modules/gralloc/gralloc.cpp:100:1: warning: missing initializer for member 'private_module_t::ydpi' [-Wmissing-field-initializers]
hardware/libhardware/modules/gralloc/gralloc.cpp:100:1: warning: missing initializer for member 'private_module_t::fps' [-Wmissing-field-initializers]
target thumb C++: gralloc.default <= hardware/libhardware/modules/gralloc/framebuffer.cpp
target thumb C++: gralloc.default <= hardware/libhardware/modules/gralloc/mapper.cpp
hardware/qcom/display/libgenlock/genlock.cpp: In function 'int (anonymous namespace)::get_kernel_lock_type(genlock_lock_type)':
hardware/qcom/display/libgenlock/genlock.cpp:53:25: error: 'GENLOCK_WRLOCK' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:55:25: error: 'GENLOCK_RDLOCK' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp: In function 'genlock_status_t (anonymous namespace)::perform_lock_unlock_operation(native_handle_t*, int, int, int)':
hardware/qcom/display/libgenlock/genlock.cpp:83:13: error: 'genlock_lock' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:83:26: error: expected ';' before 'lock'
hardware/qcom/display/libgenlock/genlock.cpp:84:13: error: 'lock' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:101:43: error: 'GENLOCK_IOC_LOCK' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp: In function 'genlock_status_t genlock_create_lock(native_handle_t*)':
hardware/qcom/display/libgenlock/genlock.cpp:156:9: error: 'genlock_lock' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:156:22: error: expected ';' before 'lock'
hardware/qcom/display/libgenlock/genlock.cpp:157:23: error: 'GENLOCK_IOC_NEW' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:160:45: error: 'lock' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:166:27: error: 'GENLOCK_IOC_EXPORT' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:166:48: error: 'lock' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:176:30: error: 'lock' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp: In function 'genlock_status_t genlock_attach_lock(native_handle_t*)':
hardware/qcom/display/libgenlock/genlock.cpp:243:9: error: 'genlock_lock' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:243:22: error: expected ';' before 'lock'
hardware/qcom/display/libgenlock/genlock.cpp:244:9: error: 'lock' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:245:23: error: 'GENLOCK_IOC_ATTACH' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp: In function 'genlock_status_t genlock_unlock_buffer(native_handle_t*)':
hardware/qcom/display/libgenlock/genlock.cpp:306:56: error: 'GENLOCK_UNLOCK' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp: In function 'genlock_status_t genlock_wait(native_handle_t*, int)':
hardware/qcom/display/libgenlock/genlock.cpp:335:9: error: 'genlock_lock' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:335:22: error: expected ';' before 'lock'
hardware/qcom/display/libgenlock/genlock.cpp:336:9: error: 'lock' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp:338:39: error: 'GENLOCK_IOC_WAIT' was not declared in this scope
hardware/qcom/display/libgenlock/genlock.cpp: In function 'genlock_status_t genlock_write_to_read(native_handle_t*, int)':
hardware/qcom/display/libgenlock/genlock.cpp:368:56: error: 'GENLOCK_RDLOCK' was not declared in this scope
make: *** [/home/zeeshan/cm10/out/target/product/u8800/obj/SHARED_LIBRARIES/libgenlock_intermediates/genlock.o] Error 1
make: *** Waiting for unfinished jobs....
[email protected]:~/cm10$
Ok, so I can see that genlock (and probably gralloc), but I don't know what is wrong and how to fix it.
Please, I need someone to help me with this!
Thanks.
Which dece source are you using?

Making a kernel....NEED HELP>>>>

ok i have decided to make my own kernel.....but i dont know what is wrong everything is just good but at the end i dont get anything...
The guides i am using :-
http://forum.xda-developers.com/showthread.php?t=1748297
http://forum.xda-developers.com/showthread.php?t=2021202
I am using a prebuild ubuntu build it contains all the packages....
Using matrix kernel source :-https://github.com/mathkid95/linux_lg_kitkat
And google toolchain.
This is what i get:-
[email protected]:~/android/kernel/kitkat$ export ARCH=arm
[email protected]:~/android/kernel/kitkat$ export CROSS_COMPILE=/home/android/android/toolchain/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-
[email protected]:~/android/kernel/kitkat$ make mako_defconfig
init/Kconfig:1265:warning: defaults for choice values not supported
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
#
# configuration written to .config
#
[email protected]:~/android/kernel/kitkat$ make -j4
scripts/kconfig/conf --silentoldconfig Kconfig
init/Kconfig:1265:warning: defaults for choice values not supported
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CC arch/arm/mach-msm/cpufreq.o
arch/arm/mach-msm/cpufreq.c: In function 'msm_cpufreq_target':
arch/arm/mach-msm/cpufreq.c:103:2: error: implicit declaration of function 'cpufreq_frequency_get_table' [-Werror=implicit-function-declaration]
table = cpufreq_frequency_get_table(policy->cpu);
^
arch/arm/mach-msm/cpufreq.c:103:8: warning: assignment makes pointer from integer without a cast [enabled by default]
table = cpufreq_frequency_get_table(policy->cpu);
^
arch/arm/mach-msm/cpufreq.c:104:2: error: implicit declaration of function 'cpufreq_frequency_table_target' [-Werror=implicit-function-declaration]
if (cpufreq_frequency_table_target(policy, table, target_freq, relation,
^
arch/arm/mach-msm/cpufreq.c:111:2: error: invalid use of undefined type 'struct cpufreq_frequency_table'
pr_debug("CPU[%d] target %d relation %d (%d-%d) selected %d\n",
^
In file included from include/linux/kernel.h:22:0,
from include/linux/cache.h:4,
from include/linux/time.h:7,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from arch/arm/mach-msm/cpufreq.c:22:
arch/arm/mach-msm/cpufreq.c:113:34: error: dereferencing pointer to incomplete type
policy->min, policy->max, table[index].frequency);
^
include/linux/printk.h:202:38: note: in definition of macro 'pr_debug'
no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
^
arch/arm/mach-msm/cpufreq.c:115:2: error: invalid use of undefined type 'struct cpufreq_frequency_table'
ret = set_cpu_freq(policy, table[index].frequency);
^
arch/arm/mach-msm/cpufreq.c:115:34: error: dereferencing pointer to incomplete type
ret = set_cpu_freq(policy, table[index].frequency);
^
arch/arm/mach-msm/cpufreq.c: In function 'msm_cpufreq_limits_init':
arch/arm/mach-msm/cpufreq.c:145:9: warning: assignment makes pointer from integer without a cast [enabled by default]
table = cpufreq_frequency_get_table(cpu);
^
arch/arm/mach-msm/cpufreq.c:151:3: error: invalid use of undefined type 'struct cpufreq_frequency_table'
for (i = 0; (table.frequency != CPUFREQ_TABLE_END); i++) {
^
arch/arm/mach-msm/cpufreq.c:151:21: error: dereferencing pointer to incomplete type
for (i = 0; (table.frequency != CPUFREQ_TABLE_END); i++) {
^
arch/arm/mach-msm/cpufreq.c:151:38: error: 'CPUFREQ_TABLE_END' undeclared (first use in this function)
for (i = 0; (table.frequency != CPUFREQ_TABLE_END); i++) {
^
arch/arm/mach-msm/cpufreq.c:151:38: note: each undeclared identifier is reported only once for each function it appears in
arch/arm/mach-msm/cpufreq.c:152:4: error: invalid use of undefined type 'struct cpufreq_frequency_table'
if (table.frequency > max)
^
arch/arm/mach-msm/cpufreq.c:152:13: error: dereferencing pointer to incomplete type
if (table.frequency > max)
^
arch/arm/mach-msm/cpufreq.c:153:5: error: invalid use of undefined type 'struct cpufreq_frequency_table'
max = table.frequency;
^
arch/arm/mach-msm/cpufreq.c:153:16: error: dereferencing pointer to incomplete type
max = table.frequency;
^
arch/arm/mach-msm/cpufreq.c:154:4: error: invalid use of undefined type 'struct cpufreq_frequency_table'
if (table.frequency < min)
^
arch/arm/mach-msm/cpufreq.c:154:13: error: dereferencing pointer to incomplete type
if (table.frequency < min)
^
arch/arm/mach-msm/cpufreq.c:155:5: error: invalid use of undefined type 'struct cpufreq_frequency_table'
min = table.frequency;
^
arch/arm/mach-msm/cpufreq.c:155:16: error: dereferencing pointer to incomplete type
min = table.frequency;
^
arch/arm/mach-msm/cpufreq.c: In function 'msm_cpufreq_init':
arch/arm/mach-msm/cpufreq.c:201:8: warning: assignment makes pointer from integer without a cast [enabled by default]
table = cpufreq_frequency_get_table(policy->cpu);
^
arch/arm/mach-msm/cpufreq.c:212:2: error: implicit declaration of function 'cpufreq_frequency_table_cpuinfo' [-Werror=implicit-function-declaration]
if (cpufreq_frequency_table_cpuinfo(policy, table)) {
^
arch/arm/mach-msm/cpufreq.c:233:2: error: invalid use of undefined type 'struct cpufreq_frequency_table'
if (cur_freq != table[index].frequency) {
^
arch/arm/mach-msm/cpufreq.c:233:23: error: dereferencing pointer to incomplete type
if (cur_freq != table[index].frequency) {
^
arch/arm/mach-msm/cpufreq.c:235:3: error: invalid use of undefined type 'struct cpufreq_frequency_table'
ret = acpuclk_set_rate(policy->cpu, table[index].frequency,
^
arch/arm/mach-msm/cpufreq.c:235:44: error: dereferencing pointer to incomplete type
ret = acpuclk_set_rate(policy->cpu, table[index].frequency,
^
arch/arm/mach-msm/cpufreq.c:239:3: error: invalid use of undefined type 'struct cpufreq_frequency_table'
pr_info("cpufreq: cpu%d init at %d switching to %d\n",
^
In file included from include/linux/kernel.h:22:0,
from include/linux/cache.h:4,
from include/linux/time.h:7,
from include/linux/stat.h:60,
from include/linux/module.h:10,
from arch/arm/mach-msm/cpufreq.c:22:
arch/arm/mach-msm/cpufreq.c:240:33: error: dereferencing pointer to incomplete type
policy->cpu, cur_freq, table[index].frequency);
^
include/linux/printk.h:179:34: note: in definition of macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^
arch/arm/mach-msm/cpufreq.c:241:3: error: invalid use of undefined type 'struct cpufreq_frequency_table'
cur_freq = table[index].frequency;
^
arch/arm/mach-msm/cpufreq.c:241:19: error: dereferencing pointer to incomplete type
cur_freq = table[index].frequency;
^
arch/arm/mach-msm/cpufreq.c: At top level:
arch/arm/mach-msm/cpufreq.c:310:3: error: 'cpufreq_freq_attr_scaling_available_freqs' undeclared here (not in a function)
&cpufreq_freq_attr_scaling_available_freqs,
^
cc1: some warnings being treated as errors
make[1]: *** [arch/arm/mach-msm/cpufreq.o] Error 1
make: *** [arch/arm/mach-msm] Error 2
make: *** Waiting for unfinished jobs....
GZIP kernel/config_data.gz
CHK kernel/config_data.h
[email protected]:~/android/kernel/kitkat$
Click to expand...
Click to collapse
help me guys...im doing this for the first time.......
What should i do...
Also tell me how can i add other kernel features like faux sound...thank you..

Trying to port to MB886 - Struggling with build setup

Hello,
I've successfully built CM12 in the past for the Motorola Atrix HD (mb886), and was looking to try porting omni 5.0 to the device.
I've set up the device at https://github.com/ssuds/android_device_motorola_mb886 following the steps at http://docs.omnirom.org/Porting_Omni_To_Your_Device. I believe I've set up the omni_mb886.mk and omni.dependencies files correctly, but please feel free to refer to my github source to confirm.
To accommodate the external references to common CM modules I added:
Code:
<remote name="cm"
review="review.cyanogenmod.org"
fetch="https://github.com/CyanogenMod" />
to manifest XML. I also added:
Code:
<remote name="tm"
fetch="https://github.com/TheMuppets" />
to account for proprietary blobs.
When I try building, I get the below error:
Code:
[email protected]:~/android/omni$ brunch mb886
build/core/product_config.mk:227: *** _nic.PRODUCTS.[[device/motorola/mb886/omni_mb886.mk]]: "frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk" does not exist. Stop.
WARNING: Trying to fetch a device that's already there
build/core/product_config.mk:227: *** _nic.PRODUCTS.[[device/motorola/mb886/omni_mb886.mk]]: "frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk" does not exist. Stop.
** Don't have a product spec for: 'omni_mb886'
** Do you have the right repo manifest?
No such item in brunch menu. Try 'breakfast'
And If I enter the lunch menu, I get:
Code:
[email protected]:~/android/omni/.repo$ lunch
You're building on Linux
Lunch menu... pick a combo:
1. full-eng
Which would you like? [aosp_arm-eng]
I'm stumped and not really sure where to go from here... Thank you in advance for your assistance.
Also, am getting a bunch of errors when I try to repo sync
Code:
error: Cannot fetch platform/external/markdown
warn: --force-broken, continuing to sync
Fetching projects: 26% (126/481) Fetching project android_hardware_qcom_media
error: Cannot fetch platform/packages/wallpapers/MusicVisualization
warn: --force-broken, continuing to sync
Fetching project platform/frameworks/opt/photoviewer
error: Cannot fetch platform/external/mp4parser
warn: --force-broken, continuing to sync
Fetching project platform/external/compiler-rt
Fetching project platform/external/chromium_org/third_party/sfntly/cpp/src
error: Cannot fetch device/generic/mini-emulator-arm64
warn: --force-broken, continuing to sync
also
Code:
Traceback (most recent call last):
File "/home/shreyas/android/omni/.repo/repo/main.py", line 506, in <module>
_Main(sys.argv[1:])
File "/home/shreyas/android/omni/.repo/repo/main.py", line 482, in _Main
result = repo._Run(argv) or 0
File "/home/shreyas/android/omni/.repo/repo/main.py", line 161, in _Run
result = cmd.Execute(copts, cargs)
File "/home/shreyas/android/omni/.repo/repo/subcmds/sync.py", line 641, in Execute
fetched = self._Fetch(to_fetch, opt)
File "/home/shreyas/android/omni/.repo/repo/subcmds/sync.py", line 356, in _Fetch
self._GCProjects(projects)
File "/home/shreyas/android/omni/.repo/repo/subcmds/sync.py", line 374, in _GCProjects
bare_git.gc('--auto')
File "/home/shreyas/android/omni/.repo/repo/project.py", line 2549, in runner
p.stderr))
error.GitError: platform/external/eclipse-windowbuilder gc: fatal: Not a git repository: '/home/shreyas/android/omni/.repo/projects/external/eclipse-windowbuilder.git'
The repo sync command I'm using is
repo sync -j1 -f --no-clone-bundle
Getting closer, I hope...
Now am able to get the mb886 in the lunch menu... With a catch.
If I do a breakfast command, it shows the lunch menu with only the "full-eng" option. After that, if I do the lunch command it only shows "full-eng".
However, if I setup my build environment again ( . build/envsetup.sh) and then lunch, omni_mb886-userdebug shows up... But the build breaks with that error.
Code:
[email protected]:~/android/omni$ . build/envsetup.sh
including device/motorola/mb886/vendorsetup.sh
[email protected]:~/android/omni$ breakfast
You're building on Linux
Lunch menu... pick a combo:
1. full-eng
Which would you like? [aosp_arm-eng] ^C
[email protected]:~/android/omni$ lunch
You're building on Linux
Lunch menu... pick a combo:
1. full-eng
Which would you like? [aosp_arm-eng] ^C
[email protected]:~/android/omni$ . build/envsetup.sh
including device/motorola/mb886/vendorsetup.sh
[email protected]:~/android/omni$ lunch
You're building on Linux
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_arm64-eng
3. aosp_mips-eng
4. aosp_mips64-eng
5. aosp_x86-eng
6. aosp_x86_64-eng
7. omni_mb886-userdebug
Which would you like? [aosp_arm-eng] 7
build/core/product_config.mk:227: *** _nic.PRODUCTS.[[device/motorola/mb886/omni_mb886.mk]]: "frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk" does not exist. Stop.
WARNING: Trying to fetch a device that's already there
build/core/product_config.mk:227: *** _nic.PRODUCTS.[[device/motorola/mb886/omni_mb886.mk]]: "frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk" does not exist. Stop.
** Don't have a product spec for: 'omni_mb886'
** Do you have the right repo manifest?
[email protected]:~/android/omni$
Same thing happens if I try to brunch
Code:
[email protected]:~/android/omni$ brunch mb886
build/core/product_config.mk:227: *** _nic.PRODUCTS.[[device/motorola/mb886/omni_mb886.mk]]: "frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk" does not exist. Stop.
WARNING: Trying to fetch a device that's already there
build/core/product_config.mk:227: *** _nic.PRODUCTS.[[device/motorola/mb886/omni_mb886.mk]]: "frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk" does not exist. Stop.
** Don't have a product spec for: 'omni_mb886'
** Do you have the right repo manifest?
So it looks like I'm actually missing a bunch of build directories, which totally explains why this isn't working out...
My CM directory:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
My Omni directory:
Clearly this is linked to my issues with repo... So I guess the real question is, what is wrong with my repo setup that is causing these issues?
Edit: My omni directory is a mere 676 MB... I should have realized this much sooner.
Edit2: I think I'm on the right track. Starting from scratch using the repo reference flag linked to my already downloaded source. 60% of the source is downloaded so far, we will see where it goes.
Update:
It builds! Finally got all my references and source synced properly. Omni is building for the MB886 currently.
Hit a new snag while building.
The build starts out fine. However, it only lasts about 5 minutes and then ends with:
Code:
make: *** No rule to make target `/home/shreyas/omni2/out/target/common/obj/JAVA_LIBRARIES/qcmediaplayer_intermediates/classes.jar', needed by `/home/shreyas/omni2/out/target/common/obj/PACKAGING/boot-jars-package-check_intermediates/stamp'. Stop.
make: *** Waiting for unfinished jobs....
logtags: /home/shreyas/omni2/out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/src/src/java/com/android/internal/telephony/EventLogTags.java <= frameworks/opt/telephony/src/java/com/android/internal/telephony/EventLogTags.logtags
[email protected]:~/omni2$
There's no ZIP in the Out>Target>Product>mb886 directory.
Same thing happens whether I use brunch mb886 or lunch mb886 and then mka...
Anyone have any ideas? @TecknoFreak maybe?
Edit:Think I might have got it, my javac version was on 1.7 and i switched it back to 1.6... we shall see.
Edit2: now it builds further but breaks on an audio blob
Code:
target thumb C: libalsa-intf <= hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:33:23: fatal error: sound/tlv.h: No such file or directory
#include <sound/tlv.h>
^
compilation terminated.
make: *** [/home/shreyas/omni2/out/target/product/mb886/obj/SHARED_LIBRARIES/libalsa-intf_intermediates/alsa_mixer.o] Error 1
make: *** Waiting for unfinished jobs....
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c: In function 'pcm_avail':
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c:401:9: warning: format '%d' expects argument of type 'int', but argument 4 has type 'snd_pcm_uframes_t' [-Wformat=]
ALOGV("hw_ptr = %d buf_size = %d appl_ptr = %d\n",
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c:401:9: warning: format '%d' expects argument of type 'int', but argument 6 has type 'snd_pcm_uframes_t' [-Wformat=]
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c: In function 'dst_address':
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c:467:22: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
return pcm->addr + pcm_offset;
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c: In function 'mmap_transfer':
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c:471:57: warning: unused parameter 'offset' [-Wunused-parameter]
int mmap_transfer(struct pcm *pcm, void *data, unsigned offset,
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c: In function 'mmap_transfer_capture':
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c:505:26: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
src_addr = pcm->addr + pcm_offset;
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c:492:65: warning: unused parameter 'offset' [-Wunused-parameter]
int mmap_transfer_capture(struct pcm *pcm, void *data, unsigned offset,
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c: In function 'pcm_write_mmap':
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c:555:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ((bytes_written >= pcm->sw_p->start_threshold) && (!pcm->start)) {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c:526:50: warning: unused parameter 'data' [-Wunused-parameter]
static int pcm_write_mmap(struct pcm *pcm, void *data, unsigned count)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c: In function 'enable_timer':
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c:668:8: warning: return makes integer from pointer without a cast [enabled by default]
return &bad_pcm;
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c:697:11: warning: return makes integer from pointer without a cast [enabled by default]
return &bad_pcm;
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c: In function 'pcm_open':
hardware/qcom/audio/legacy/libalsa-intf/alsa_pcm.c:780:9: warning: return makes pointer from integer without a cast [enabled by default]
return -EINVAL;
^
real 25m34.029s
user 66m21.505s
sys 16m39.325s
[email protected]:~/omni2$
tlv.h exists in my ~/omni2/kernel/motorola/msm8960-common/include/sound directory, same place it did for cm12 which built fine.
Edit3: Think I'm getting closer... Now I'm getting this
Code:
target thumb C++: libandroid_runtime <= frameworks/base/core/jni/android_view_TextureView.cpp
frameworks/base/core/jni/android_view_Surface.cpp: In function 'void android::nativeSetDirtyRect(JNIEnv*, jclass, jlong, jobject)':
frameworks/base/core/jni/android_view_Surface.cpp:206:14: error: 'class android::Surface' has no member named 'setDirtyRect'
surface->setDirtyRect(&rect);
^
make: *** [/home/shreyas/omni2/out/target/product/mb886/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/android_view_Surface.o] Error 1
make: *** Waiting for unfinished jobs....
real 4m8.158s
user 4m55.351s
sys 2m13.800s
[email protected]:~/omni2$
Edit4: Found some very relevant stuff in this thread: http://forum.xda-developers.com/omni/general/help-regarding-compiling-omnirom-cm-t2964759/page2
Edit5: Tweaked the surface.cpp as that thread recommended, see https://github.com/ssuds/android_frameworks_base/commit/84c26243dcfcba9aee824dfddd11b2a3405c006b
Now the tlv.h: No such file or directory error is back:
Code:
target thumb C: libalsa-intf <= hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c
target Prebuilt: am (/home/shreyas/omni2/out/target/product/mb886/obj/EXECUTABLES/am_intermediates/am)
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:33:23: fatal error: sound/tlv.h: No such file or directory
#include <sound/tlv.h>
^
compilation terminated.
make: *** [/home/shreyas/omni2/out/target/product/mb886/obj/SHARED_LIBRARIES/libalsa-intf_intermediates/alsa_mixer.o] Error 1
make: *** Waiting for unfinished jobs....
Notice file: frameworks/base/cmds/am/NOTICE -- /home/shreyas/omni2/out/target/product/mb886/obj/NOTICE_FILES/src//system/bin/am.txt
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c: In function 'snd_use_case_identifier':
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:77:43: warning: unused parameter 'fmt' [-Wunused-parameter]
char *snd_use_case_identifier(const char *fmt, ...)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c: In function 'snd_use_case_free_list':
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:89:40: warning: parameter 'list' set but not used [-Wunused-but-set-parameter]
int snd_use_case_free_list(const char *list[], int items)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:89:52: warning: unused parameter 'items' [-Wunused-parameter]
int snd_use_case_free_list(const char *list[], int items)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c: In function 'snd_use_case_get_list':
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:132:15: warning: assignment from incompatible pointer type [enabled by default]
*list = (char ***)uc_mgr->card_ctxt_ptr->verb_list;
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:156:15: warning: assignment from incompatible pointer type [enabled by default]
*list = verb_list[verb_index].device_list;
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:180:15: warning: assignment from incompatible pointer type [enabled by default]
*list = verb_list[verb_index].modifier_list;
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c: In function 'snd_use_case_apply_mixer_controls':
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:792:65: warning: comparison between pointer and integer [enabled by default]
(check_devices_for_voice_call(uc_mgr, use_case) != NULL))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c: In function 'snd_use_case_mgr_reload':
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:1986:49: warning: unused parameter 'uc_mgr' [-Wunused-parameter]
int snd_use_case_mgr_reload(snd_use_case_mgr_t *uc_mgr) {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c: In function 'print_list':
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:3102:47: warning: unused parameter 'verb_index' [-Wunused-parameter]
static int print_list(card_mctrl_t *list, int verb_index, int count)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c: In function 'snd_ucm_parse_section':
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:3303:13: warning: format '%d' expects a matching 'int' argument [-Wformat=]
ALOGV("Effects mixer ctl: %s: %d\n", list->effects_mixer_ctl);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c: In function 'free_list':
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:3597:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
mindex < list[case_index].ena_mixer_list[index].value;
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:3615:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
mindex < list[case_index].dis_mixer_list[index].value;
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_ucm.c:3583:40: warning: unused parameter 'verb_index' [-Wunused-parameter]
void free_list(card_mctrl_t *list, int verb_index, int count)
^
real 12m37.998s
user 27m33.618s
sys 6m41.232s
[email protected]:~/omni2$
Any luck on this? I get the exact same error, except I'm building AOSP.
I somehow missed this thread.
Some of the issues I saw there look like they may have been CAF-related. With 5.0, we never completed the process of merging the CAF branches of frameworks/av and frameworks/native so they coexisted. (To make a long story short, that was primarily my task and I was catastrophically burned out and pretty much gone for 3-4 months... Then 5.1 dropped.)
As of today, working on a CAF device requires syncing the android-5.1-caf branches of frameworks/native and frameworks/av - Also, we use a different naming method for determining which QCOM CAF variant of display/audio/media HALs to use. You might want to try finding a device with a similar CPU to get ideas of how that was brought up. I remember when bringing up falcon in 4.4, I also had to add some oddball Moto-specific patches that aren't in our 5.x branches because I never had the time to resurrect that device. (I have more time now, but I've got a LOT of catching up to do...)
Right now:
CAF "b-family" (8226, 8974, etc) devices are current focus, especially 8974s, I'm going to be working this weekend on getting the CAF branches of av/native to coexist in our tree without syncing funky branches
CAF "a-family" devices (8960, 8064, etc.) are "here be dragons" - The Sony guys have them semi-working I believe, but the a-fam stuff needs a LOT of work. Getting a bootable device is feasible, but getting a usable device (especially media/AV stuff) requires us to fix a bunch of stuff
Entropy512 said:
I somehow missed this thread.
Some of the issues I saw there look like they may have been CAF-related.
Click to expand...
Click to collapse
Awesome, thank you for the direction @Entropy512! I've been kinda busy with other stuff recently, but when I get the chance I'll definitely try again to spin this up using that set up!
ssuds said:
Also, am getting a bunch of errors when I try to repo sync
Code:
error: Cannot fetch platform/external/markdown
warn: --force-broken, continuing to sync
Fetching projects: 26% (126/481) Fetching project android_hardware_qcom_media
error: Cannot fetch platform/packages/wallpapers/MusicVisualization
warn: --force-broken, continuing to sync
Fetching project platform/frameworks/opt/photoviewer
error: Cannot fetch platform/external/mp4parser
warn: --force-broken, continuing to sync
Fetching project platform/external/compiler-rt
Fetching project platform/external/chromium_org/third_party/sfntly/cpp/src
error: Cannot fetch device/generic/mini-emulator-arm64
warn: --force-broken, continuing to sync
also
Code:
Traceback (most recent call last):
File "/home/shreyas/android/omni/.repo/repo/main.py", line 506, in <module>
_Main(sys.argv[1:])
File "/home/shreyas/android/omni/.repo/repo/main.py", line 482, in _Main
result = repo._Run(argv) or 0
File "/home/shreyas/android/omni/.repo/repo/main.py", line 161, in _Run
result = cmd.Execute(copts, cargs)
File "/home/shreyas/android/omni/.repo/repo/subcmds/sync.py", line 641, in Execute
fetched = self._Fetch(to_fetch, opt)
File "/home/shreyas/android/omni/.repo/repo/subcmds/sync.py", line 356, in _Fetch
self._GCProjects(projects)
File "/home/shreyas/android/omni/.repo/repo/subcmds/sync.py", line 374, in _GCProjects
bare_git.gc('--auto')
File "/home/shreyas/android/omni/.repo/repo/project.py", line 2549, in runner
p.stderr))
error.GitError: platform/external/eclipse-windowbuilder gc: fatal: Not a git repository: '/home/shreyas/android/omni/.repo/projects/external/eclipse-windowbuilder.git'
The repo sync command I'm using is
repo sync -j1 -f --no-clone-bundle
Click to expand...
Click to collapse
Hi there,
How did you get rid of these errors?
I use these commands but get the above errors all the time:
repo init -u https://github.com/omnirom/android.git -b android-4.4
repo sync -j4 -f --no-clone-bundle
I am just a beginner so help will be appreciated...
Thanks!
ssuds, Did you ever solve this problem?
No... I gave up.
jhelp
same with me:silly:
HTML:
[ 99% 1587/1588] glob vendor/slim/build/soong/Android.bp
ninja: error: '/home/ubuntu/slim/out/target/common/obj/JAVA_LIBRARIES/telephony-ext_intermediates/classes.jar', needed by '/home/ubuntu/slim/out/target/common/obj/PACKAGING/boot-jars-package-check_intermediates/stamp', missing and no known rule to make it
11:30:29 ninja failed with: exit status 1

No private recovery resources for TARGET_DEVICE tissot & ninja error

I'm just working on AOSP with the device trees that are out there, and when I run make -j8 I am getting this below, and not sure;
No private recovery resources for TARGET_DEVICE tissot
build/core/Makefile:34: warning: overriding commands for target `out/target/product/tissot/system/bin/fingerprintd'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/tissot/system/bin/fingerprintd'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/tissot/system/lib/hw/fingerprint.default.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/tissot/system/lib/hw/fingerprint.default.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/tissot/system/lib/libcamera_client.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/tissot/system/lib/libcamera_client.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/tissot/system/lib/libcamera_metadata.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/tissot/system/lib/libcamera_metadata.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/tissot/system/lib/libcameraservice.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/tissot/system/lib/libcameraservice.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/tissot/system/lib/libminui.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/tissot/system/lib/libminui.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/tissot/system/lib64/hw/consumerir.default.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/tissot/system/lib64/hw/consumerir.default.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/tissot/system/lib64/hw/fingerprint.default.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/tissot/system/lib64/hw/fingerprint.default.so'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: 'out/target/product/tissot/obj/STATIC_LIBRARIES/bootctrl.msm8953_intermediates/export_includes', needed by 'out/target/product/tissot/obj/EXECUTABLES/update_engine_sideload_intermediates/import_includes', missing and no known rule to make it
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
DoR3M3 said:
I'm just working on AOSP with the device trees that are out there, and when I run make -j8 I am getting this below, and not sure;
No private recovery resources for TARGET_DEVICE tissot
build/core/Makefile:34: warning: overriding commands for target `out/target/product/tissot/system/bin/fingerprintd'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/tissot/system/bin/fingerprintd'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/tissot/system/lib/hw/fingerprint.default.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/tissot/system/lib/hw/fingerprint.default.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/tissot/system/lib/libcamera_client.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/tissot/system/lib/libcamera_client.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/tissot/system/lib/libcamera_metadata.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/tissot/system/lib/libcamera_metadata.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/tissot/system/lib/libcameraservice.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/tissot/system/lib/libcameraservice.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/tissot/system/lib/libminui.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/tissot/system/lib/libminui.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/tissot/system/lib64/hw/consumerir.default.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/tissot/system/lib64/hw/consumerir.default.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/tissot/system/lib64/hw/fingerprint.default.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/tissot/system/lib64/hw/fingerprint.default.so'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: 'out/target/product/tissot/obj/STATIC_LIBRARIES/bootctrl.msm8953_intermediates/export_includes', needed by 'out/target/product/tissot/obj/EXECUTABLES/update_engine_sideload_intermediates/import_includes', missing and no known rule to make it
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
Click to expand...
Click to collapse
I told already its error because of A/B partition so try this go to hardware/qcom/bootctrl and Edit android.mk & add msm8953 to filter
arunassain said:
I told already its error because of A/B partition so try this go to hardware/qcom/bootctrl and Edit android.mk & add msm8953 to filter
Click to expand...
Click to collapse
@arunassain
Now it's another error, maybe best to move on to Oreo as you mentioned...
ninja: Entering directory `.'
ninja: error: 'out/target/product/tissot/obj/KERNEL_OBJ/usr', needed by 'out/target/product/tissot/obj/STATIC_LIBRARIES/librecovery_updater_msm8953_intermediates/gpt-utils.o', missing and no known rule to make it
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
Thanks
DoR3M3 said:
@arunassain
Now it's another error, maybe best to move on to Oreo as you mentioned...
ninja: Entering directory `.'
ninja: error: 'out/target/product/tissot/obj/KERNEL_OBJ/usr', needed by 'out/target/product/tissot/obj/STATIC_LIBRARIES/librecovery_updater_msm8953_intermediates/gpt-utils.o', missing and no known rule to make it
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
Thanks
Click to expand...
Click to collapse
Yes better move on to Oreo hope u won't get any error in Oreo wait for stable tree and start ur built over AOSP
arunassain said:
Yes better move on to Oreo hope u won't get any error in Oreo wait for stable tree and start ur built over AOSP
Click to expand...
Click to collapse
@arunassain I'm looking around trying to figure what Trees you mentioned to me...

Categories

Resources