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]
I am trying to compile Omni for Ville but I am not able to over come the following hurdle. Can some one suggest me where I missed something. This is what I get.
target thumb C: mkexfatfs <= bootable/recovery/exfat/mkfs/uctc.c
target thumb C: mkexfatfs <= bootable/recovery/exfat/mkfs/vbr.c
make: *** No rule to make target '/home/ace/android/omni/out/target/product/ville/system/lib/libcryptfslollipop.so', needed by '/home/ace/android/omni/out/target/product/ville/obj/SHARED_LIBRARIES/libbmlutils_intermediates/teamwin'. Stop.
make: *** Waiting for unfinished jobs....
target StaticLib: libfusetwrp (/home/ace/android/omni/out/target/product/ville/obj/STATIC_LIBRARIES/libfusetwrp_intermediates/libfusetwrp.a)
real 2m23.315s
user 2m48.614s
sys 2m2.250s
[email protected]:~/android/omni$
Click to expand...
Click to collapse
letsurock said:
I am trying to compile Omni for Ville but I am not able to over come the following hurdle. Can some one suggest me where I missed something. This is what I get.
Click to expand...
Click to collapse
Set TW_INCLUDE_CRYPTO := false for now, Dees-Troy added a commit to use that .so but did not include it in the prebuilts. I have not found the file anywhere on the net.
ktoonsez said:
Set TW_INCLUDE_CRYPTO := false for now, Dees-Troy added a commit to use that .so but did not include it in the prebuilts. I have not found the file anywhere on the net.
Click to expand...
Click to collapse
Thanks:good: it did the trick, but now I have this problem.
Notice file: external/scrypt/NOTICE -- /home/ace/android/omni/out/target/product/ville/obj/NOTICE_FILES/src//system/lib/libscrypt_static.a.txt
make: *** No rule to make target '/home/ace/android/omni/out/target/product/ville/obj/SHARED_LIBRARIES/libqcci_legacy_intermediates/export_includes', needed by '/home/ace/android/omni/out/target/product/ville/obj/EXECUTABLES/wcnss_service_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
Notice file: system/extras/f2fs_utils/NOTICE -- /home/ace/android/omni/out/target/product/ville/obj/NOTICE_FILES/src//system/lib/libf2fs_sparseblock.so.txt
real 4m51.854s
user 4m14.897s
Click to expand...
Click to collapse
Tried to recompile and that error disappreared. Now, this problem.
target thumb C: amix <= hardware/qcom/audio/legacy/libalsa-intf/amix.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.
build/core/binary.mk:698: recipe for target '/home/ace/android/omni/out/target/product/ville/obj/SHARED_LIBRARIES/libalsa-intf_intermediates/alsa_mixer.o' failed
make: *** [/home/ace/android/omni/out/target/product/ville/obj/SHARED_LIBRARIES/libalsa-intf_intermediates/alsa_mixer.o] Error 1
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
letsurock said:
Tried to recompile and that error disappreared. Now, this problem.
Click to expand...
Click to collapse
You got some problems in your device tree, as the error says you missing a header file, nothing to do with recovery though
ktoonsez said:
You got some problems in your device tree, as the error says you missing a header file, nothing to do with recovery though
Click to expand...
Click to collapse
Will look at it at this weekend. Thanks for your advices.
Ok, dug deeper on the crypto part and found that there is a config that needs changing:
Change this:
TW_INCLUDE_CRYPTO
To this:
TW_INCLUDE_L_CRYPTO
Something with Wifi?
Can some one guide me to overcome this error?
Import includes file: /home/ace/android/omni/out/target/product/ville/obj/EXECUTABLES/dumpstate_intermediates/import_includes
target thumb C: libdumpstate.default <= frameworks/native/cmds/dumpstate/libdumpstate_default.c
target thumb C++: dumpsys <= frameworks/native/cmds/dumpsys/dumpsys.cpp
target thumb C: mount.exfat <= external/exfat/main.c
target thumb C: gzip <= external/zlib/src/test/minigzip.c
make: *** No rule to make target '/home/ace/android/omni/out/target/product/ville/obj/STATIC_LIBRARIES/lib_driver_cmd_qcwcn_intermediates/export_includes', needed by '/home/ace/android/omni/out/target/product/ville/obj/EXECUTABLES/hostapd_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
real 25m14.641s
user 65m59.889s
sys 18m12.959s
Click to expand...
Click to collapse
Thank you.
letsurock said:
Thanks:good: it did the trick, but now I have this problem.
Click to expand...
Click to collapse
Quote:
Notice file: external/scrypt/NOTICE -- /home/ace/android/omni/out/target/product/ville/obj/NOTICE_FILES/src//system/lib/libscrypt_static.a.txt
make: *** No rule to make target '/home/ace/android/omni/out/target/product/ville/obj/SHARED_LIBRARIES/libqcci_legacy_intermediates/export_includes', needed by '/home/ace/android/omni/out/target/product/ville/obj/EXECUTABLES/wcnss_service_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
Notice file: system/extras/f2fs_utils/NOTICE -- /home/ace/android/omni/out/target/product/ville/obj/NOTICE_FILES/src//system/lib/libf2fs_sparseblock.so.txt
got the same error , someone fix it ????
i build for lg msm8226 device.
Thx in advance..............
shoxxy said:
Quote:
Notice file: external/scrypt/NOTICE -- /home/ace/android/omni/out/target/product/ville/obj/NOTICE_FILES/src//system/lib/libscrypt_static.a.txt
make: *** No rule to make target '/home/ace/android/omni/out/target/product/ville/obj/SHARED_LIBRARIES/libqcci_legacy_intermediates/export_includes', needed by '/home/ace/android/omni/out/target/product/ville/obj/EXECUTABLES/wcnss_service_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
Notice file: system/extras/f2fs_utils/NOTICE -- /home/ace/android/omni/out/target/product/ville/obj/NOTICE_FILES/src//system/lib/libf2fs_sparseblock.so.txt
got the same error , someone fix it ????
i build for lg msm8226 device.
Thx in advance..............
Click to expand...
Click to collapse
No, not yet fixed.
letsurock said:
No, not yet fixed.
Click to expand...
Click to collapse
Thx for reply.................
set
TARGET_USES_QCOM_WCNSS_QMI := true
to false or remove it , works for me but i dont know if its used by your device. saw this ijn a opo repo, and tryed it out
shoxxy said:
Thx for reply.................
set
TARGET_USES_QCOM_WCNSS_QMI := true
to false or remove it , works for me but i dont know if its used by your device. saw this ijn a opo repo, and tryed it out
Click to expand...
Click to collapse
Thanks it worked.
But now I have this problem
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);
^
target thumb C++: libandroid_runtime <= frameworks/base/core/jni/android_view_InputChannel.cpp
build/core/binary.mk:618: recipe for target '/home/ace/android/omni/out/target/product/ville/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/android_view_Surface.o' failed
make: *** [/home/ace/android/omni/out/target/product/ville/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/android_view_Surface.o] Error 1
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
It wants CAF code not yet implimented in OmniROM it seems, you're building for 5.0?
Edit: You're for sure using CM12 as a base, dirtyrect is a hallmark of 'MSM8960', Repo sync CM12 or just the surface.cpp file and diff it against Omni to add the needed support.
As someone who built for moto_MSM8960 which is basically the same thing; expect to have to change a LOT in Omni source in order to achieve that compatibility
Edit: You could also try to specify 'legacy' instead of 'caf' in your configurations too..
Thanks:good:
ktoonsez said:
You got some problems in your device tree, as the error says you missing a header file, nothing to do with recovery though
Click to expand...
Click to collapse
Hey @ktoonsez,
I'm currently working through the the same set of issues trying to build Lollipop Omni on the motorola mb886, which is also msm8960 based in this thread
and I'm kinda stuck.
I initially got the Surface.cpp errors outlined later in this thread. Just tweaked that one file to match the Cyanogenmod source (commit here) based on what @Tqr said.
Now I'm also dealing with the sound/tlv.h fatal error. I'm not really sure where exactly I could go in the device tree to start debugging this? My device source that I'm working with is here.
A tlv.h header file exists in my ~/omni2/kernel/motorola/msm8960-common/include/sound directory, which is the same place it did for cm12 which built fine.
ssuds said:
Hey @ktoonsez,
I'm currently working through the the same set of issues trying to build Lollipop Omni on the motorola mb886, which is also msm8960 based in this thread
and I'm kinda stuck.
I initially got the Surface.cpp errors outlined later in this thread. Just tweaked that one file to match the Cyanogenmod source (commit here) based on what @Tqr said.
Now I'm also dealing with the sound/tlv.h fatal error. I'm not really sure where exactly I could go in the device tree to start debugging this? My device source that I'm working with is here.
A tlv.h header file exists in my ~/omni2/kernel/motorola/msm8960-common/include/sound directory, which is the same place it did for cm12 which built fine.
Click to expand...
Click to collapse
Please give me your full error log, off-hand I want to say this is an issue in GCCprebuilts where two lines of code must be removed for some reason
Edit: You have a MSM8960 based device, It's most likely an error in prebuilts
Tqr said:
Please give me your full error log, off-hand I want to say this is an issue in GCCprebuilts where two lines of code must be removed for some reason
Edit: You have a MSM8960 based device, It's most likely an error in prebuilts
Click to expand...
Click to collapse
Gotcha, below is the error, hopefully this is what you wanted. Also, was I on the right track with that change in the android_view_Surface.cpp?
Thanks!
ssuds said:
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$
Click to expand...
Click to collapse
ssuds said:
Gotcha, below is the error, hopefully this is what you wanted. Also, was I on the right track with that change in the android_view_Surface.cpp?
Thanks!
Click to expand...
Click to collapse
sound/tlv.h may be specified in more than one location; you only need a single tlv.h make sure there is not another one causing conflict
Edit: Yes you were on the right track chanigng surface.cpp
It's exactly like smali editing in some regards, and you're really close to building it
Tqr said:
sound/tlv.h may be specified in more than one location; you only need a single tlv.h make sure there is not another one causing conflict
Edit: Yes you were on the right track chanigng surface.cpp
It's exactly like smali editing in some regards, and you're really close to building it
Click to expand...
Click to collapse
Awesome, thanks and that's great to hear that I'm getting close.
So if I'm understanding you correctly, I would be safe in just removing the 'include tlv.h' line in alsa_mixer.c? It's kinda curious that it didn't cause any conflicts while compiling CM12 vs Omni, but I guess the source might be different enough to cause conflicts?
EDIT: It initially looked like removing the 'include tlv.h' line let me get past that, I then ran into
Code:
DumpPublicKey: /home/shreyas/omni2/out/target/product/mb886/obj/PACKAGING/ota_keys_intermediates/keys <= build/target/product/security/testkey.x509.pem
java -jar /home/shreyas/omni2/out/host/linux-x86/framework/dumpkey.jar build/target/product/security/testkey.x509.pem > /home/shreyas/omni2/out/target/product/mb886/obj/PACKAGING/ota_keys_intermediates/keys
device/motorola/msm8960_jbbl-common/sepolicy/sysinit.te:2:ERROR 'unknown type userinit_exec' at token ';' on line 18238:
#line 1 "device/motorola/msm8960_jbbl-common/sepolicy/sysinit.te"
allow sysinit userinit_exec:file { getattr execute read open execute_no_trans };
checkpolicy: error(s) encountered while parsing configuration
make: *** [/home/shreyas/omni2/out/target/product/mb886/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery] Error 1
make: *** Waiting for unfinished jobs....
target StaticLib: libc (/home/shreyas/omni2/out/target/product/mb886/obj/STATIC_LIBRARIES/libc_intermediates/libc.a)
target StaticLib: libc_nomalloc (/home/shreyas/omni2/out/target/product/mb886/obj/STATIC_LIBRARIES/libc_nomalloc_intermediates/libc_nomalloc.a)
real 3m19.468s
user 1m34.553s
sys 1m0.526s
[email protected]:~/omni2$
The code in sysinit.te is:
Code:
allow sysinit userinit_exec:file { getattr execute read open execute_no_trans };
allow sysinit property_socket:sock_file write;
allow sysinit system_data_file:file { open };
allow sysinit init:unix_stream_socket connectto;
allow sysinit sysfs:file write;
I just deleted out the first line referring to sysinit userinit_exec
Tried the build again, at which point seems like everything broke on the libalsa-intf stuff:
Code:
Install: /home/shreyas/omni2/out/target/product/mb886/system/bin/am
Import includes file: /home/shreyas/omni2/out/target/product/mb886/obj/EXECUTABLES/amix_intermediates/import_includes
target thumb C: aplay <= hardware/qcom/audio/legacy/libalsa-intf/aplay.c
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_dump':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:240:9: warning: pointer targets in passing argument 1 of 'is_volume' differ in signedness [-Wpointer-sign]
ALOGV("%4d %5s %3d %3d %3d %3d %c%c%c%c%c%c%c%c%c %-6s %8d %s",
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:78:12: note: expected 'const char *' but argument is of type 'unsigned char *'
static int is_volume(const char *name, enum ctl_type *type)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_ctl_read_tlv':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:345:14: error: 'SNDRV_CTL_TLVT_DB_SCALE' undeclared (first use in this function)
case SNDRV_CTL_TLVT_DB_SCALE: {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:345:14: note: each undeclared identifier is reported only once for each function it appears in
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:368:14: error: 'SNDRV_CTL_TLVT_DB_LINEAR' undeclared (first use in this function)
case SNDRV_CTL_TLVT_DB_LINEAR: {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_ctl_get':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:403:5: warning: pointer targets in passing argument 1 of 'is_volume' differ in signedness [-Wpointer-sign]
if (is_volume(ctl->info->id.name, &type)) {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:78:12: note: expected 'const char *' but argument is of type 'unsigned char *'
static int is_volume(const char *name, enum ctl_type *type)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:409:5: warning: passing argument 5 of 'mixer_ctl_read_tlv' from incompatible pointer type [enabled by default]
mixer_ctl_read_tlv(ctl, tlv, &min, &max, &tlv_type);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:311:5: note: expected 'unsigned int *' but argument is of type 'unsigned int **'
int mixer_ctl_read_tlv(struct mixer_ctl *ctl,
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_ctl_mulvalues':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:488:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (count < ctl->info->count || count > ctl->info->count)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:488:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (count < ctl->info->count || count > ctl->info->count)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_ctl_set':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:537:5: warning: pointer targets in passing argument 1 of 'is_volume' differ in signedness [-Wpointer-sign]
if (is_volume(ctl->info->id.name, &type)) {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:78:12: note: expected 'const char *' but argument is of type 'unsigned char *'
static int is_volume(const char *name, enum ctl_type *type)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:544:18: error: 'SNDRV_CTL_TLVT_DB_LINEAR' undeclared (first use in this function)
case SNDRV_CTL_TLVT_DB_LINEAR:
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:551:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:551:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:53: warning: signed and unsigned type in conditional expression [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:551:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:31: warning: signed and unsigned type in conditional expression [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:551:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:552:17: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long int' [-Wformat=]
ALOGV("tlv db linear: %d %d %d\n", percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:552:17: warning: format '%d' expects argument of type 'int', but argument 6 has type 'long int' [-Wformat=]
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:557:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:557:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:53: warning: signed and unsigned type in conditional expression [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:557:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:31: warning: signed and unsigned type in conditional expression [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:557:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'set_volume_simple':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:645:5: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long int' [-Wformat=]
ALOGV("val = %x", val);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:651:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (count < ctl->info->count || count > ctl->info->count)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:651:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (count < ctl->info->count || count > ctl->info->count)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_ctl_set_value':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:701:5: warning: pointer targets in passing argument 1 of 'is_volume' differ in signedness [-Wpointer-sign]
if (is_volume(ctl->info->id.name, &type)) {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:78:12: note: expected 'const char *' but argument is of type 'unsigned char *'
static int is_volume(const char *name, enum ctl_type *type)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:707:13: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long int' [-Wformat=]
ALOGV("min = %x max = %x", min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:707:13: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long int' [-Wformat=]
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/aplay.c:44:8: warning: type defaults to 'int' in declaration of 'pcm_flag' [-Wimplicit-int]
static pcm_flag = 1;
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:45:8: warning: type defaults to 'int' in declaration of 'debug' [-Wimplicit-int]
static debug = 0;
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c: In function 'play_file':
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:196:5: warning: passing argument 2 of 'pcm_open' discards 'const' qualifier from pointer target type [enabled by default]
pcm = pcm_open(flags, device);
^
In file included from hardware/qcom/audio/legacy/libalsa-intf/aplay.c:30:0:
hardware/qcom/audio/legacy/libalsa-intf/alsa_audio.h:137:13: note: expected 'char *' but argument is of type 'const char *'
struct pcm *pcm_open(unsigned flags, char *device);
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:197:13: warning: ordered comparison of pointer with integer zero [-Wextra]
if (pcm < 0)
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:198:9: warning: return makes integer from pointer without a cast [enabled by default]
return pcm;
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:312:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (avail < pcm->sw_p->avail_min) {
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:324:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'u_int8_t *' [-Wformat=]
fprintf(stderr, "dst_addr = 0x%08x\n", dst_addr);
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:325:18: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
fprintf(stderr, "Aplay:avail = %d frames = %d\n",avail, frames);
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:325:18: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=]
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:339:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (remainingData < bufsize) {
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:444:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (remainingData < bufsize)
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:461:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (remainingData < bufsize)
^
real 6m36.672s
user 15m25.977s
sys 2m42.391s
[email protected]:~/omni2$
I'm not really sure where to go from here... So far I've just deleted out those two lines (one in tlv.h and one in sysinit.te), but with so much stuff seemingly broken here I don't even know where to start
ssuds said:
Awesome, thanks and that's great to hear that I'm getting close.
So if I'm understanding you correctly, I would be safe in just removing the 'include tlv.h' line in alsa_mixer.c? It's kinda curious that it didn't cause any conflicts while compiling CM12 vs Omni, but I guess the source might be different enough to cause conflicts?
EDIT: It initially looked like removing the 'include tlv.h' line let me get past that, I then ran into
Code:
DumpPublicKey: /home/shreyas/omni2/out/target/product/mb886/obj/PACKAGING/ota_keys_intermediates/keys <= build/target/product/security/testkey.x509.pem
java -jar /home/shreyas/omni2/out/host/linux-x86/framework/dumpkey.jar build/target/product/security/testkey.x509.pem > /home/shreyas/omni2/out/target/product/mb886/obj/PACKAGING/ota_keys_intermediates/keys
device/motorola/msm8960_jbbl-common/sepolicy/sysinit.te:2:ERROR 'unknown type userinit_exec' at token ';' on line 18238:
#line 1 "device/motorola/msm8960_jbbl-common/sepolicy/sysinit.te"
allow sysinit userinit_exec:file { getattr execute read open execute_no_trans };
checkpolicy: error(s) encountered while parsing configuration
make: *** [/home/shreyas/omni2/out/target/product/mb886/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery] Error 1
make: *** Waiting for unfinished jobs....
target StaticLib: libc (/home/shreyas/omni2/out/target/product/mb886/obj/STATIC_LIBRARIES/libc_intermediates/libc.a)
target StaticLib: libc_nomalloc (/home/shreyas/omni2/out/target/product/mb886/obj/STATIC_LIBRARIES/libc_nomalloc_intermediates/libc_nomalloc.a)
real 3m19.468s
user 1m34.553s
sys 1m0.526s
[email protected]:~/omni2$
The code in sysinit.te is:
Code:
allow sysinit userinit_exec:file { getattr execute read open execute_no_trans };
allow sysinit property_socket:sock_file write;
allow sysinit system_data_file:file { open };
allow sysinit init:unix_stream_socket connectto;
allow sysinit sysfs:file write;
I just deleted out the first line referring to sysinit userinit_exec
Tried the build again, at which point seems like everything broke on the libalsa-intf stuff:
Code:
Install: /home/shreyas/omni2/out/target/product/mb886/system/bin/am
Import includes file: /home/shreyas/omni2/out/target/product/mb886/obj/EXECUTABLES/amix_intermediates/import_includes
target thumb C: aplay <= hardware/qcom/audio/legacy/libalsa-intf/aplay.c
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_dump':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:240:9: warning: pointer targets in passing argument 1 of 'is_volume' differ in signedness [-Wpointer-sign]
ALOGV("%4d %5s %3d %3d %3d %3d %c%c%c%c%c%c%c%c%c %-6s %8d %s",
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:78:12: note: expected 'const char *' but argument is of type 'unsigned char *'
static int is_volume(const char *name, enum ctl_type *type)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_ctl_read_tlv':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:345:14: error: 'SNDRV_CTL_TLVT_DB_SCALE' undeclared (first use in this function)
case SNDRV_CTL_TLVT_DB_SCALE: {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:345:14: note: each undeclared identifier is reported only once for each function it appears in
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:368:14: error: 'SNDRV_CTL_TLVT_DB_LINEAR' undeclared (first use in this function)
case SNDRV_CTL_TLVT_DB_LINEAR: {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_ctl_get':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:403:5: warning: pointer targets in passing argument 1 of 'is_volume' differ in signedness [-Wpointer-sign]
if (is_volume(ctl->info->id.name, &type)) {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:78:12: note: expected 'const char *' but argument is of type 'unsigned char *'
static int is_volume(const char *name, enum ctl_type *type)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:409:5: warning: passing argument 5 of 'mixer_ctl_read_tlv' from incompatible pointer type [enabled by default]
mixer_ctl_read_tlv(ctl, tlv, &min, &max, &tlv_type);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:311:5: note: expected 'unsigned int *' but argument is of type 'unsigned int **'
int mixer_ctl_read_tlv(struct mixer_ctl *ctl,
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_ctl_mulvalues':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:488:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (count < ctl->info->count || count > ctl->info->count)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:488:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (count < ctl->info->count || count > ctl->info->count)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_ctl_set':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:537:5: warning: pointer targets in passing argument 1 of 'is_volume' differ in signedness [-Wpointer-sign]
if (is_volume(ctl->info->id.name, &type)) {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:78:12: note: expected 'const char *' but argument is of type 'unsigned char *'
static int is_volume(const char *name, enum ctl_type *type)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:544:18: error: 'SNDRV_CTL_TLVT_DB_LINEAR' undeclared (first use in this function)
case SNDRV_CTL_TLVT_DB_LINEAR:
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:551:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:551:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:53: warning: signed and unsigned type in conditional expression [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:551:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:31: warning: signed and unsigned type in conditional expression [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:551:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:552:17: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long int' [-Wformat=]
ALOGV("tlv db linear: %d %d %d\n", percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:552:17: warning: format '%d' expects argument of type 'int', but argument 6 has type 'long int' [-Wformat=]
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:557:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:557:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:53: warning: signed and unsigned type in conditional expression [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:557:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:51:31: warning: signed and unsigned type in conditional expression [-Wsign-compare]
(((val < min) ? (min) : (val > max) ? (max) : (val)))
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:557:27: note: in expansion of macro 'check_range'
percent = check_range(percent, min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'set_volume_simple':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:645:5: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long int' [-Wformat=]
ALOGV("val = %x", val);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:651:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (count < ctl->info->count || count > ctl->info->count)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:651:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (count < ctl->info->count || count > ctl->info->count)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c: In function 'mixer_ctl_set_value':
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:701:5: warning: pointer targets in passing argument 1 of 'is_volume' differ in signedness [-Wpointer-sign]
if (is_volume(ctl->info->id.name, &type)) {
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:78:12: note: expected 'const char *' but argument is of type 'unsigned char *'
static int is_volume(const char *name, enum ctl_type *type)
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:707:13: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long int' [-Wformat=]
ALOGV("min = %x max = %x", min, max);
^
hardware/qcom/audio/legacy/libalsa-intf/alsa_mixer.c:707:13: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long int' [-Wformat=]
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/aplay.c:44:8: warning: type defaults to 'int' in declaration of 'pcm_flag' [-Wimplicit-int]
static pcm_flag = 1;
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:45:8: warning: type defaults to 'int' in declaration of 'debug' [-Wimplicit-int]
static debug = 0;
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c: In function 'play_file':
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:196:5: warning: passing argument 2 of 'pcm_open' discards 'const' qualifier from pointer target type [enabled by default]
pcm = pcm_open(flags, device);
^
In file included from hardware/qcom/audio/legacy/libalsa-intf/aplay.c:30:0:
hardware/qcom/audio/legacy/libalsa-intf/alsa_audio.h:137:13: note: expected 'char *' but argument is of type 'const char *'
struct pcm *pcm_open(unsigned flags, char *device);
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:197:13: warning: ordered comparison of pointer with integer zero [-Wextra]
if (pcm < 0)
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:198:9: warning: return makes integer from pointer without a cast [enabled by default]
return pcm;
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:312:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (avail < pcm->sw_p->avail_min) {
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:324:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'u_int8_t *' [-Wformat=]
fprintf(stderr, "dst_addr = 0x%08x\n", dst_addr);
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:325:18: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
fprintf(stderr, "Aplay:avail = %d frames = %d\n",avail, frames);
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:325:18: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=]
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:339:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (remainingData < bufsize) {
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:444:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (remainingData < bufsize)
^
hardware/qcom/audio/legacy/libalsa-intf/aplay.c:461:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (remainingData < bufsize)
^
real 6m36.672s
user 15m25.977s
sys 2m42.391s
[email protected]:~/omni2$
I'm not really sure where to go from here... So far I've just deleted out those two lines (one in tlv.h and one in sysinit.te), but with so much stuff seemingly broken here I don't even know where to start
Click to expand...
Click to collapse
Hey man, Do you remeber how do you get that problem solved? Iam currently trying to build SimpleAosp for the HTC One S (ville), also a msm8960 device
I got the exact same error after removing the 'include tlv.h' line in alsa_mixer.c..
I want to build cm12 on samsung jfltexx (S4) by Ubuntu 14.04,but it can not.
i follow this to build CM12 http://wiki.cyanogenmod.org/w/Build_for_jfltexx
That is my setp
1.repo sync cm12 codes (it takes me 3 days...):crying:
2.download samsung codes
https://github.com/CyanogenMod/android_device_samsung_jfltexx ---rename jfltexx and copy to device/samsung/
https://github.com/broodplank/samsung-kernel-jfltexx ---rename kernel and copy to out/target/product/jfltexx/
https://github.com/CyanogenMod/android_device_samsung_jf-common ---remane jf-common and copy to device/samsung/
https://github.com/CyanogenMod/android_device_samsung_qcom-common ---remane and copy to device/samsung/
3.
$ source build/envsetup.sh
$ breakfast jfltexx
$ cd device/samsung/jfltexx
--connect my phone to computer
$ ./extract-files.sh
--(but no files found)
--copy the system folder from "cm12-plus-5.0-Beta5.1-jfltexx.zip" to vendor/samsung/jfltexx/
--copy jf-common to vendor/samsung/jfltexx
$ croot
$ brunch jfltexx
--now build is start
but a few minutes later, it show that code and stop to build
i am new here and my english is bad sorry.
and i am new to build android source code,please help me to fix it,thank you!
--------------------------------------------------------------------------------------------------------------------------------------------------------
target arm C: libunz <= external/zlib/src/inftrees.c
target arm C: libunz <= external/zlib/src/inffast.c
target arm C: libunz <= external/zlib/src/trees.c
target arm C: libunz <= external/zlib/src/uncompr.c
target arm C: libunz <= external/zlib/src/zutil.c
Import includes file: /home/qwejay/android/cm/out/target/product/jfltexx/obj/EXECUTABLES/alsaucm_test_intermediates/import_includes
target thumb C: libalsa-intf <= hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_mixer.c
target thumb C: libalsa-intf <= hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c
target thumb C: libalsa-intf <= hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c
hardware/qcom/audio-caf/msm8960/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/qwejay/android/cm/out/target/product/jfltexx/obj/SHARED_LIBRARIES/libalsa-intf_intermediates/alsa_mixer.o] error 1
make: *** Waiting for the unfinished task....
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:139:31: error: 'SND_AUDIOCODEC_AC3_PASS_THROUGH' undeclared here (not in a function)
FORMAT_AC3_PASS_THROUGH = SND_AUDIOCODEC_AC3_PASS_THROUGH,
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:141:31: error: 'SND_AUDIOCODEC_WMA_PRO' undeclared here (not in a function)
FORMAT_WMA_PRO = SND_AUDIOCODEC_WMA_PRO,
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:142:31: error: 'SND_AUDIOCODEC_DTS' undeclared here (not in a function)
FORMAT_DTS = SND_AUDIOCODEC_DTS,
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:143:31: error: 'SND_AUDIOCODEC_DTS_LBR' undeclared here (not in a function)
FORMAT_DTS_LBR = SND_AUDIOCODEC_DTS_LBR,
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:144:31: error: 'SND_AUDIOCODEC_DTS_PASS_THROUGH' undeclared here (not in a function)
FORMAT_DTS_PASS_THROUGH = SND_AUDIOCODEC_DTS_PASS_THROUGH,
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c: In function 'pcm_avail':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:443: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-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:443:9: warning: format '%d' expects argument of type 'int', but argument 6 has type 'snd_pcm_uframes_t' [-Wformat=]
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c: In function 'appl_pt_forward':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:483:3: warning: too many arguments for format [-Wformat-extra-args]
ALOGE("appl_ptr %ld set to ld",
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c: In function 'dst_address':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:561:22: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
return pcm->addr + pcm_offset;
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c: In function 'mmap_transfer':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:565:57: warning: unused parameter 'offset' [-Wunused-parameter]
int mmap_transfer(struct pcm *pcm, void *data, unsigned offset,
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c: In function 'mmap_transfer_capture':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:620:26: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
src_addr = pcm->addr + pcm_offset;
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:596:65: warning: unused parameter 'offset' [-Wunused-parameter]
int mmap_transfer_capture(struct pcm *pcm, void *data, unsigned offset,
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c: In function 'pcm_write_mmap':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:682:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ((bytes_written >= pcm->sw_p->start_threshold) && (!pcm->start)) {
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:643:50: warning: unused parameter 'data' [-Wunused-parameter]
static int pcm_write_mmap(struct pcm *pcm, void *data, unsigned count)
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c: In function 'enable_timer':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:825:8: warning: return makes integer from pointer without a cast [enabled by default]
return &bad_pcm;
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:854:11: warning: return makes integer from pointer without a cast [enabled by default]
return &bad_pcm;
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c: In function 'pcm_open':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_pcm.c:939:9: warning: return makes pointer from integer without a cast [enabled by default]
return -EINVAL;
^
make: *** [/home/qwejay/android/cm/out/target/product/jfltexx/obj/SHARED_LIBRARIES/libalsa-intf_intermediates/alsa_pcm.o] error 1
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c: In function 'snd_use_case_identifier':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:78:43: warning: unused parameter 'fmt' [-Wunused-parameter]
char *snd_use_case_identifier(const char *fmt, ...)
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c: In function 'snd_use_case_free_list':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:90: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-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:90:52: warning: unused parameter 'items' [-Wunused-parameter]
int snd_use_case_free_list(const char *list[], int items)
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c: In function 'snd_use_case_get_list':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:133:15: warning: assignment from incompatible pointer type [enabled by default]
*list = (char ***)uc_mgr->card_ctxt_ptr->verb_list;
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:157:15: warning: assignment from incompatible pointer type [enabled by default]
*list = verb_list[verb_index].device_list;
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:181:15: warning: assignment from incompatible pointer type [enabled by default]
*list = verb_list[verb_index].modifier_list;
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c: In function 'snd_use_case_apply_mixer_controls':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:936:65: warning: comparison between pointer and integer [enabled by default]
(check_devices_for_voice_call(uc_mgr, use_case) != NULL))
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c: In function 'snd_use_case_mgr_reload':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:2207:49: warning: unused parameter 'uc_mgr' [-Wunused-parameter]
int snd_use_case_mgr_reload(snd_use_case_mgr_t *uc_mgr) {
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c: In function 'print_list':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:3324:47: warning: unused parameter 'verb_index' [-Wunused-parameter]
static int print_list(card_mctrl_t *list, int verb_index, int count)
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c: In function 'free_list':
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:3884:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
mindex < list[case_index].ena_mixer_list[index].value;
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:3902:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
mindex < list[case_index].dis_mixer_list[index].value;
^
hardware/qcom/audio-caf/msm8960/legacy/libalsa-intf/alsa_ucm.c:3870:40: warning: unused parameter 'verb_index' [-Wunused-parameter]
void free_list(card_mctrl_t *list, int verb_index, int count)
^
--------------------------------------------------------------------------------------------------------------------------------------------------------
who can hellp me x(
QweJay said:
who can hellp me x(
Click to expand...
Click to collapse
@AntaresOne @frapeti can only help you
thinks! wen i download msm8960-common it can finish my build,but,i can not phone to everyone! because i can not find the base band.....