[PORTING]Have log when trying to port ubuntu touch... - Android Q&A, Help & Troubleshooting

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.

Related

[HELP][DEV][JB] build error while compiling Jelly Bean

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

[SOLVED][Help Request] AudioSystem.h compile errors

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.

Compile the following error CM-kernel, how to solve?

CC arch/arm/mach-msm/display/villec2-panel.o
arch/arm/mach-msm/display/villec2-panel.c:80: error: unknown field 'autobl_enable' specified in initializer
arch/arm/mach-msm/display/villec2-panel.c:80: warning: initialization from incompatible pointer type
error, forbidden warning: villec2-panel.c:80
make[2]: *** [arch/arm/mach-msm/display/villec2-panel.o] error 1
make[1]: *** [arch/arm/mach-msm/display] error 2
make: *** [arch/arm/mach-msm] error 2

Any Help?

Ok so i get this error code any ideas how to fix it?
target arm C: libm <= bionic/libm/src/s_sin.c
bootable/recovery/minui/resources.c: In function 'res_create_surface':
bootable/recovery/minui/resources.c:135:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
bootable/recovery/minui/resources.c:154:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
bootable/recovery/minui/../../../device/lge/p769/recovery-gfx.c:68:31: error: 'OVERSCAN_PERCENT' undeclared here (not in a function)
make: *** [/home/carloswii5/Ubuntu/out/target/product/p769/obj/STATIC_LIBRARIES/libminui_intermediates/../../../device/lge/p769/recovery-gfx.o] Error 1
make: *** Waiting for unfinished jobs....
carloswii5 said:
Ok so i get this error code any ideas how to fix it?
target arm C: libm <= bionic/libm/src/s_sin.c
bootable/recovery/minui/resources.c: In function 'res_create_surface':
bootable/recovery/minui/resources.c:135:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
bootable/recovery/minui/resources.c:154:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
bootable/recovery/minui/../../../device/lge/p769/recovery-gfx.c:68:31: error: 'OVERSCAN_PERCENT' undeclared here (not in a function)
make: *** [/home/carloswii5/Ubuntu/out/target/product/p769/obj/STATIC_LIBRARIES/libminui_intermediates/../../../device/lge/p769/recovery-gfx.o] Error 1
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
recovery-gfx.c line 68
change
Code:
static int overscan_percent = OVERSCAN_PERCENT;
to
Code:
static int overscan_percent = 0;
Lelus said:
recovery-gfx.c line 68
change
Code:
static int overscan_percent = OVERSCAN_PERCENT;
to
Code:
static int overscan_percent = 0;
Click to expand...
Click to collapse
I have a similar error compiling TWRP
Code:
libminui <= bootable/recovery/minui/../../../device/lge/u2-common/recovery-gfx.c
bootable/recovery/minui/../../../device/lge/u2-common/recovery-gfx.c:232:5: error: conflicting types for 'gr_text'
In file included from bootable/recovery/minui/../../../device/lge/u2-common/recovery-gfx.c:39:0:
bootable/recovery/minui/minui.h:43:5: note: previous declaration of 'gr_text' was here
make: *** [/home/eric/CyanogenMod11/out/target/product/p760/obj/STATIC_LIBRARIES/libminui_intermediates/../../../device/lge/u2-common/recovery-gfx.o] Error 1
The source is from @dhiru1602

allocsize and gralloc_module errors

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)) ####

Categories

Resources