Im trying to build cm13 for my device (msm8974) and I couldn't solve this error. The solitions that I found on the internet didin't fix this errors. Especially allocSize.
Any reply would be appreciated.
Code:
target thumb C++: gralloc.msm8974 <= hardware/qcom/display-caf/msm8974/libgralloc/framebuffer.cpp
hardware/qcom/display-caf/msm8974/libgralloc/gpu.cpp: In constructor 'gralloc::gpu_context_t::gpu_context_t(const private_module_t*,gralloc::IAllocController*)':
hardware/qcom/display-caf/msm8974/libgralloc/gpu.cpp:48:5: error: 'allocSize' was not declared in this scope
allocSize = gralloc_alloc_size;
^
build/core/binary.mk:706: recipe for target '/home/burak/cm13/out/target/product/e7/obj/SHARED_LIBRARIES/gralloc.msm8974_intermediates/gpu.o' failed
make: *** [/home/burak/cm13/out/target/product/e7/obj/SHARED_LIBRARIES/gralloc.msm8974_intermediates/gpu.o] Error 1
make: *** Waiting for unfinished jobs....
target thumb C++: gralloc.msm8974 <= hardware/qcom/display-caf/msm8974/libgralloc/mapper.cpp
hardware/qcom/display-caf/msm8974/libgralloc/mapper.cpp: In function 'int gralloc_perform(const gralloc_module_t*, int, ...)':
hardware/qcom/display-caf/msm8974/libgralloc/mapper.cpp:367:14: error: 'GRALLOC_MODULE_PERFORM_UPDATE_BUFFER_GEOMETRY' was not declared in this scope
case GRALLOC_MODULE_PERFORM_UPDATE_BUFFER_GEOMETRY:
^
build/core/binary.mk:706: recipe for target '/home/burak/cm13/out/target/product/e7/obj/SHARED_LIBRARIES/gralloc.msm8974_intermediates/mapper.o' failed
make: *** [/home/burak/cm13/out/target/product/e7/obj/SHARED_LIBRARIES/gralloc.msm8974_intermediates/mapper.o] Error 1
#### make failed to build some targets (12:28 (mm:ss)) ####
Related
Hi All,
I am trying to build Android ICS from source.I succssfully downloaded and repo sync was also complete.When i do make it gives following error
frameworks/base/media/libmedia/AudioRecord.cpp: In member function 'android::status_t android::AudioRecord::set(int, uint32_t, int, uint32_t, int, uint32_t, android::AudioRecord::callback_t, void*, int, bool, int)':
frameworks/base/media/libmedia/AudioRecord.cpp:237:25: error: 'AUDIO_FORMAT_EVRC' was not declared in this scope
frameworks/base/media/libmedia/AudioRecord.cpp:239:25: error: 'AUDIO_FORMAT_QCELP' was not declared in this scope
frameworks/base/media/libmedia/AudioRecord.cpp: In member function 'int android::AudioRecord::frameSize() const':
frameworks/base/media/libmedia/AudioRecord.cpp:338:28: error: 'AUDIO_FORMAT_EVRC' was not declared in this scope
frameworks/base/media/libmedia/AudioRecord.cpp:340:28: error: 'AUDIO_FORMAT_QCELP' was not declared in this scope
target thumb C++: libmedia <= frameworks/base/media/libmedia/mediaplayer.cpp
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libmedia_intermediates/AudioRecord.o] Error 1
make: *** Waiting for unfinished jobs....
Please provide your suggestions and solution
venkat rao
[email protected]
I have been having issues building Jelly Bean, and I can't find the answers anyway
I know people have had similar issues, but the topic has always just suddenly been dropped
Here are the errors, please help me fix them
http://pastebin.com/LXmRxUPm
Code:
target thumb C++: libSR_AudioIn <= external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp: In function 'int AudioSetVolume(int, int)':
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp:155:61: error: invalid conversion from 'int' to 'audio_stream_type_t' [-fpermissive]
frameworks/av/include/media/AudioSystem.h:58:21: error: initializing argument 1 of 'static android::status_t android::AudioSystem::setStreamVolume(audio_stream_type_t, float, audio_io_handle_t)' [-fpermissive]
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp: In function 'int AudioGetVolume(int)':
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp:165:50: error: invalid conversion from 'int' to 'audio_stream_type_t' [-fpermissive]
frameworks/av/include/media/AudioSystem.h:60:21: error: initializing argument 1 of 'static android::status_t android::AudioSystem::getStreamVolume(audio_stream_type_t, float*, audio_io_handle_t)' [-fpermissive]
make: *** [out/target/product/p350/obj/SHARED_LIBRARIES/libSR_AudioIn_intermediates/audioinwrapper.o] Error 1
make: *** Waiting for unfinished jobs....
true
and this one
http://pastebin.com/jf7G1iR2
Code:
target thumb C++: audio.primary.goldfish <= device/generic/goldfish/audio/AudioHardwareGeneric.cpp
device/generic/goldfish/audio/AudioHardwareGeneric.cpp: In function 'android_audio_legacy::AudioHardwareInterface* android_audio_legacy::createAudioHardware()':
device/generic/goldfish/audio/AudioHardwareGeneric.cpp:411:37: error: cannot allocate an object of abstract type 'android_audio_legacy::AudioHardwareGeneric'
device/generic/goldfish/audio/AudioHardwareGeneric.h:105:7: note: because the following virtual functions are pure within 'android_audio_legacy::AudioHardwareGeneric':
hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareInterface.h:342:29: note: virtual android_audio_legacy::AudioStreamOut* android_audio_legacy::AudioHardwareInterface::openOutputStream(uint32_t, audio_output_flags_t, int*, uint32_t*, uint32_t*, android::status_t*)
make: *** [out/target/product/p350/obj/SHARED_LIBRARIES/audio.primary.goldfish_intermediates/AudioHardwareGeneric.o] Error 1
make: *** Waiting for unfinished jobs....
Is there anyone that can help, or does anyone know about anyone that can help?
edit:
forgot to give links to device folders
https://github.com/Team-Pecan/cm_device_lge_p350/tree/jellybean
https://github.com/lgics/cm_device_lge_msm7x27-common
I had this too,use srec from CM.
Bytecode said:
I had this too,use srec from CM.
Click to expand...
Click to collapse
Can you explain to me please? This is my first build that I have set up myself
I've fixed about 5 errors so far but this following error seems to be confusing for me.
PHP:
target thumb C++: libandroid <= frameworks/base/native/android/looper.cpp
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp: In function 'int AudioSetVolume(int, int)':
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp:155:61: error: invalid conversion from 'int' to 'audio_stream_type_t' [-fpermissive]
frameworks/av/include/media/AudioSystem.h:58:21: error: initializing argument 1 of 'static android::status_t android::AudioSystem::setStreamVolume(audio_stream_type_t, float, audio_io_handle_t)' [-fpermissive]
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp: In function 'int AudioGetVolume(int)':
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp:165:50: error: invalid conversion from 'int' to 'audio_stream_type_t' [-fpermissive]
frameworks/av/include/media/AudioSystem.h:60:21: error: initializing argument 1 of 'static android::status_t android::AudioSystem::getStreamVolume(audio_stream_type_t, float*, audio_io_handle_t)' [-fpermissive]
make: *** [out/target/product/chacha/obj/SHARED_LIBRARIES/libSR_AudioIn_intermediates/audioinwrapper.o] Error 1
make: *** Waiting for unfinished jobs....
Fix:
Use audio srec from cyanogenmod git.
I'm just going to bump this for a final time. Much appreciated if anyone has any suggestions or comments.
Hello guys, I have never ported something like this, or used this method. I have a log with a couple errors, probably something as easy as a typo, but I cannot seem to fix this. anyone like to assist?
Code:
In file included from external/gpg/g10/options.h:25:0,
from external/gpg/g10/passphrase.c:47:
external/gpg/g10/main.h:126:7: note: expected 'const unsigned char *' but argument is of type 'const char *'
external/gpg/g10/passphrase.c: In function 'hash_passphrase':
external/gpg/g10/passphrase.c:1033:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/gpg/g10/passphrase.c:1056:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/gpg/g10/passphrase.c:1060:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/gpg/g10/passphrase.c:1062:3: warning: pointer targets in passing argument 2 of 'md_write' differ in signedness [-Wpointer-sign]
In file included from external/gpg/g10/main.h:25:0,
from external/gpg/g10/options.h:25,
from external/gpg/g10/passphrase.c:47:
external/gpg/g10/../include/cipher.h:139:6: note: expected 'const byte *' but argument is of type 'char *'
external/gpg/g10/passphrase.c:1070:17: warning: pointer targets in passing argument 2 of 'md_write' differ in signedness [-Wpointer-sign]
In file included from external/gpg/g10/main.h:25:0,
from external/gpg/g10/options.h:25,
from external/gpg/g10/passphrase.c:47:
external/gpg/g10/../include/cipher.h:139:6: note: expected 'const byte *' but argument is of type 'char *'
external/gpg/g10/passphrase.c:1074:6: warning: pointer targets in passing argument 2 of 'md_write' differ in signedness [-Wpointer-sign]
In file included from external/gpg/g10/main.h:25:0,
from external/gpg/g10/options.h:25,
from external/gpg/g10/passphrase.c:47:
external/gpg/g10/../include/cipher.h:139:6: note: expected 'const byte *' but argument is of type 'char *'
Downloading ubuntu-touch-generic-initrd version 0.16
make: *** No rule to make target `/home/mitchell/out/target/common/obj/APPS/framework-res_intermediates/src/R.stamp', needed by `/home/mitchell/out/target/common/obj/APPS/GalaxyS3Settings_intermediates/src/R.stamp'. Stop.
make: *** Waiting for unfinished jobs....
drivers/media/video/msm/Kconfig:123:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:128:warning: choice value used outside its choice group
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_VARIANT((null))
***
*** You must specify VARIANT_DEFCONFIG !
***
make[3]: *** [cyanogen_d2_defconfig] Error 1
make[2]: *** [cyanogen_d2_defconfig] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/mitchell/kernel/samsung/d2'
make: *** [/home/mitchell/out/target/product/d2usc/obj/KERNEL_OBJ/.config] Error 2
Couple questions:
1. This part:
Code:
Downloading ubuntu-touch-generic-initrd version 0.16
make: *** No rule to make target `/home/mitchell/out/target/common/obj/APPS/framework-res_intermediates/src/R.stamp', needed by `/home/mitchell/out/target/common/obj/APPS/GalaxyS3Settings_intermediates/src/R.stamp'. Stop.
This is the first error I can see, I have no idea how to fix it, and ideas?
============================================================
2. This:
Code:
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_VARIANT((null))
***
*** You must specify VARIANT_DEFCONFIG !
***
make[3]: *** [cyanogen_d2_defconfig] Error 1
make[2]: *** [cyanogen_d2_defconfig] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/mitchell/kernel/samsung/d2'
make: *** [/home/mitchell/out/target/product/d2usc/obj/KERNEL_OBJ/.config] Error 2
What does this even mean?
Any type of help is appriciated. Thank you.
error 1
sandix said:
Hello guys, I have never ported something like this, or used this method. I have a log with a couple errors, probably something as easy as a typo, but I cannot seem to fix this. anyone like to assist?
Code:
In file included from external/gpg/g10/options.h:25:0,
from external/gpg/g10/passphrase.c:47:
external/gpg/g10/main.h:126:7: note: expected 'const unsigned char *' but argument is of type 'const char *'
external/gpg/g10/passphrase.c: In function 'hash_passphrase':
external/gpg/g10/passphrase.c:1033:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/gpg/g10/passphrase.c:1056:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/gpg/g10/passphrase.c:1060:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/gpg/g10/passphrase.c:1062:3: warning: pointer targets in passing argument 2 of 'md_write' differ in signedness [-Wpointer-sign]
In file included from external/gpg/g10/main.h:25:0,
from external/gpg/g10/options.h:25,
from external/gpg/g10/passphrase.c:47:
external/gpg/g10/../include/cipher.h:139:6: note: expected 'const byte *' but argument is of type 'char *'
external/gpg/g10/passphrase.c:1070:17: warning: pointer targets in passing argument 2 of 'md_write' differ in signedness [-Wpointer-sign]
In file included from external/gpg/g10/main.h:25:0,
from external/gpg/g10/options.h:25,
from external/gpg/g10/passphrase.c:47:
external/gpg/g10/../include/cipher.h:139:6: note: expected 'const byte *' but argument is of type 'char *'
external/gpg/g10/passphrase.c:1074:6: warning: pointer targets in passing argument 2 of 'md_write' differ in signedness [-Wpointer-sign]
In file included from external/gpg/g10/main.h:25:0,
from external/gpg/g10/options.h:25,
from external/gpg/g10/passphrase.c:47:
external/gpg/g10/../include/cipher.h:139:6: note: expected 'const byte *' but argument is of type 'char *'
Downloading ubuntu-touch-generic-initrd version 0.16
make: *** No rule to make target `/home/mitchell/out/target/common/obj/APPS/framework-res_intermediates/src/R.stamp', needed by `/home/mitchell/out/target/common/obj/APPS/GalaxyS3Settings_intermediates/src/R.stamp'. Stop.
make: *** Waiting for unfinished jobs....
drivers/media/video/msm/Kconfig:123:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:128:warning: choice value used outside its choice group
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_VARIANT((null))
***
*** You must specify VARIANT_DEFCONFIG !
***
make[3]: *** [cyanogen_d2_defconfig] Error 1
make[2]: *** [cyanogen_d2_defconfig] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/mitchell/kernel/samsung/d2'
make: *** [/home/mitchell/out/target/product/d2usc/obj/KERNEL_OBJ/.config] Error 2
Couple questions:
1. This part:
Code:
Downloading ubuntu-touch-generic-initrd version 0.16
make: *** No rule to make target `/home/mitchell/out/target/common/obj/APPS/framework-res_intermediates/src/R.stamp', needed by `/home/mitchell/out/target/common/obj/APPS/GalaxyS3Settings_intermediates/src/R.stamp'. Stop.
This is the first error I can see, I have no idea how to fix it, and ideas?
============================================================
2. This:
Code:
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_VARIANT((null))
***
*** You must specify VARIANT_DEFCONFIG !
***
make[3]: *** [cyanogen_d2_defconfig] Error 1
make[2]: *** [cyanogen_d2_defconfig] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/mitchell/kernel/samsung/d2'
make: *** [/home/mitchell/out/target/product/d2usc/obj/KERNEL_OBJ/.config] Error 2
What does this even mean?
Any type of help is appriciated. Thank you.
Click to expand...
Click to collapse
You can fix error number one by removing the sgs3setting section in "{}{}your directory{}{}/device/samsung/msm8960-common/msm8960.mk"
Or device specific alternative of this file.
So, I was trying to do the command:
Code:
make recoveryimage -j5
And got this error:
Code:
CC arch/arm/mach-msm/hotplug.o
CC arch/arm/mach-msm/board-8916.o
CC arch/arm/mach-msm/ext-buck-control.o
CC arch/arm/mach-msm/msm_mem_hole.o
LD arch/arm/mach-msm/built-in.o
Makefile:130: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/home/tanuj/android/cyanogenmod/kernel/xolo/black'
build/core/tasks/kernel.mk:286: recipe for target 'TARGET_KERNEL_BINARIES' failed
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: *** Waiting for unfinished jobs....
target thumb C++: recovery <= bootable/recovery/adb_install.cpp
make: *** wait: No child processes. Stop.
#### make failed to build some targets (06:35 (mm:ss)) ####
Can somebody tell me how to get rid of this?