Building Android 5.1.1 from source - Compile error - Android Software Development

Hi guys, I don't know if this is the correct section for this, of not then feel free to move it.
I'm trying to build Android 5.1.1_r38 from source on a Intel i5 mechine running Ubuntu 16.04.
After about an hour running, If gives me the following errors
Code:
external/chromium_org/third_party/yasm/source/patched-yasm/tools/genmacro/genmacro.c:90: error: unsupported reloc 43
external/chromium_org/third_party/yasm/source/patched-yasm/tools/genmacro/genmacro.c:48: error: unsupported reloc 43
external/chromium_org/third_party/yasm/source/patched-yasm/tools/genmacro/genmacro.c:55: error: unsupported reloc 43
external/chromium_org/third_party/yasm/source/patched-yasm/tools/genmacro/genmacro.c:68: error: unsupported reloc 43
clang: error: linker command failed with exit code 1 (use -v to see invocation)
build/core/host_executable_internal.mk:31: recipe for target 'out/host/linux-x86/obj32/EXECUTABLES/third_party_yasm_genmacro_x86_host_gyp_intermediates/genmacro' failed
make: *** [out/host/linux-x86/obj32/EXECUTABLES/third_party_yasm_genmacro_x86_host_gyp_intermediates/genmacro] Error 1
make: *** Waiting for unfinished jobs....
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: out/host/linux-x86/obj32/EXECUTABLES/third_party_yasm_genmodule_x86_host_gyp_intermediates/third_party/yasm/source/patched-yasm/libyasm/genmodule.o: unsupported reloc 43 against global symbol stderr
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: out/host/linux-x86/obj32/EXECUTABLES/third_party_yasm_genmodule_x86_host_gyp_intermediates/third_party/yasm/source/patched-yasm/libyasm/genmodule.o: unsupported reloc 43 against global symbol stderr
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: out/host/linux-x86/obj32/EXECUTABLES/third_party_yasm_genmodule_x86_host_gyp_intermediates/third_party/yasm/source/patched-yasm/libyasm/genmodule.o: unsupported reloc 43 against global symbol stderr
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: out/host/linux-x86/obj32/EXECUTABLES/third_party_yasm_genmodule_x86_host_gyp_intermediates/third_party/yasm/source/patched-yasm/libyasm/genmodule.o: unsupported reloc 43 against global symbol stderr
external/chromium_org/third_party/yasm/source/patched-yasm/libyasm/genmodule.c:87: error: unsupported reloc 43
external/chromium_org/third_party/yasm/source/patched-yasm/libyasm/genmodule.c:63: error: unsupported reloc 43
external/chromium_org/third_party/yasm/source/patched-yasm/libyasm/genmodule.c:174: error: unsupported reloc 43
external/chromium_org/third_party/yasm/source/patched-yasm/libyasm/genmodule.c:183: error: unsupported reloc 43
host StaticLib: third_party_yasm_genperf_libs_x86_host_gyp_32 (out/host/linux-x86/obj32/STATIC_LIBRARIES/third_party_yasm_genperf_libs_x86_host_gyp_intermediates/third_party_yasm_genperf_libs_x86_host_gyp.a)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
build/core/host_executable_internal.mk:31: recipe for target 'out/host/linux-x86/obj32/EXECUTABLES/third_party_yasm_genmodule_x86_host_gyp_intermediates/genmodule' failed
make: *** [out/host/linux-x86/obj32/EXECUTABLES/third_party_yasm_genmodule_x86_host_gyp_intermediates/genmodule] Error 1
I've run apt-get update and make clobber and anything else I can think of (note: I'm quite new to ubuntu)
If you need any more info, just feel free to ask, as I'm not sure what you need to help me.
Thanks in advance.

Related

Trying to build the stock kernel from source [SOLVED]

edit: The stock kernel can be built following this thread.
I'm trying to build the stock kernel from source (the one from huaweidevice). I'm running Ubuntu 10.10 64-bit.
I've gotten this far:
- I've extracted config from phone /proc/config.gz and copied it to kernel/.config
- I went through this guide: source.android.com source initializing.html
- I created some symbolic links to get rid of file not found errors when compiling:
kernel-2.6.32-U8800-Froyo/kernel/net/netfilter$ ln -s xt_connmark.c xt_CONNMARK.c
kernel-2.6.32-U8800-Froyo/kernel/net/netfilter$ ln -s xt_HL.c xt_hl.c
kernel-2.6.32-U8800-Froyo/kernel/net/netfilter$ ln -s xt_MARK.c xt_mark.c
kernel-2.6.32-U8800-Froyo/kernel/net/ipv4/netfilter$ ln -s ipt_ECN.c ipt_ecn.c
kernel-2.6.32-U8800-Froyo/kernel/include/linux/netfilter$ ln -s xt_mark.h xt_MARK.h
kernel-2.6.32-U8800-Froyo/kernel/include/linux/netfilter_ipv4$ ln -s ipt_ecn.h ipt_ECN.h
kernel-2.6.32-U8800-Froyo/kernel/include/linux/netfilter$ ln -s xt_DSCP.h xt_dscp.h
kernel-2.6.32-U8800-Froyo/kernel/include/linux/netfilter_ipv4$ ln -s ipt_ttl.h ipt_TTL.h
kernel-2.6.32-U8800-Froyo/kernel/include/linux/netfilter_ipv6$ ln -s ip6t_hl.h ip6t_HL.h
Now for the cross compilation I've tried 3 different toolchains:
- The ones from developer.android.com sdk ndk index.html
- and codesourcery.com sgpp lite arm portal package8734/public/arm-none-eabi/arm-2011.03-42-arm-none-eabi-i686-pc-linux-gnu.tar.bz2
then I've tried compiling with:
make -j8 ARCH=arm CROSS_COMPILE=.../android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-
and
make -j8 ARCH=arm CROSS_COMPILE=.../android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/bin/arm-eabi-
and
make -j8 ARCH=arm CROSS_COMPILE=.../arm-2011.03/bin/arm-none-eabi-
they all give me output similar to this (this is with the 4.4.0 toolchain):
Code:
CHK include/linux/version.h
SYMLINK include/asm -> include/asm-arm
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
CC net/netfilter/xt_MARK.o
CC net/ipv4/netfilter/ipt_ecn.o
CC net/netfilter/xt_NFQUEUE.o
CC net/ipv4/netfilter/ipt_NETMAP.o
CC net/netfilter/xt_comment.o
CC net/netfilter/xt_connlimit.o
net/netfilter/xt_MARK.c: In function 'mark_tg':
net/netfilter/xt_MARK.c:32: error: dereferencing pointer to incomplete type
net/netfilter/xt_MARK.c:32: error: dereferencing pointer to incomplete type
net/netfilter/xt_MARK.c: At top level:
net/netfilter/xt_MARK.c:41: error: invalid application of 'sizeof' to incomplete type 'struct xt_mark_tginfo2'
make[2]: *** [net/netfilter/xt_MARK.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CC net/ipv4/netfilter/ipt_REDIRECT.o
CC net/ipv4/netfilter/ipt_REJECT.o
cc1: warnings being treated as errors
net/ipv4/netfilter/ipt_ecn.c:29: error: 'struct ipt_ECN_info' declared inside parameter list
net/ipv4/netfilter/ipt_ecn.c:29: error: its scope is only this definition or declaration, which is probably not what you want
net/ipv4/netfilter/ipt_ecn.c: In function 'set_ect_ip':
net/ipv4/netfilter/ipt_ecn.c:33: error: 'XT_DSCP_MASK' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c:33: error: (Each undeclared identifier is reported only once
net/ipv4/netfilter/ipt_ecn.c:33: error: for each function it appears in.)
net/ipv4/netfilter/ipt_ecn.c:33: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:40: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c: At top level:
net/ipv4/netfilter/ipt_ecn.c:48: error: 'struct ipt_ECN_info' declared inside parameter list
net/ipv4/netfilter/ipt_ecn.c: In function 'set_ect_tcp':
net/ipv4/netfilter/ipt_ecn.c:58: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:58: error: 'IPT_ECN_OP_SET_ECE' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c:59: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:60: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:60: error: 'IPT_ECN_OP_SET_CWR' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c:61: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:69: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:70: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:71: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:72: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c: In function 'ecn_tg':
net/ipv4/netfilter/ipt_ecn.c:84: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:84: error: 'IPT_ECN_OP_SET_IP' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c:85: error: passing argument 2 of 'set_ect_ip' from incompatible pointer type
net/ipv4/netfilter/ipt_ecn.c:29: note: expected 'const struct ipt_ECN_info *' but argument is of type 'const struct ipt_ECN_info *'
net/ipv4/netfilter/ipt_ecn.c:88: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:88: error: 'IPT_ECN_OP_SET_ECE' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c:88: error: 'IPT_ECN_OP_SET_CWR' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c:90: error: passing argument 2 of 'set_ect_tcp' from incompatible pointer type
net/ipv4/netfilter/ipt_ecn.c:48: note: expected 'const struct ipt_ECN_info *' but argument is of type 'const struct ipt_ECN_info *'
net/ipv4/netfilter/ipt_ecn.c: In function 'ecn_tg_check':
net/ipv4/netfilter/ipt_ecn.c:101: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:101: error: 'IPT_ECN_OP_MASK' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c:103: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:106: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:106: error: 'XT_DSCP_MASK' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c:108: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:111: error: dereferencing pointer to incomplete type
net/ipv4/netfilter/ipt_ecn.c:111: error: 'IPT_ECN_OP_SET_ECE' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c:111: error: 'IPT_ECN_OP_SET_CWR' undeclared (first use in this function)
net/ipv4/netfilter/ipt_ecn.c: At top level:
net/ipv4/netfilter/ipt_ecn.c:124: error: invalid application of 'sizeof' to incomplete type 'struct ipt_ECN_info'
make[3]: *** [net/ipv4/netfilter/ipt_ecn.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[1]: *** [net/netfilter] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** [net/ipv4/netfilter] Error 2
make[1]: *** [net/ipv4] Error 2
make: *** [net] Error 2
sorry for the messed up links, I'm not allowed to post links (yet).
Any ideas how to get forward?
The reason I'm doing this is that I want to fix the bug that the internal mic is disabled when a stereo headphone / or a 3.5mm jack - 2xrca cable is plugged in. I think I can fix it from kernel-2.6.32-U8800-Froyo/kernel/arch/arm/mach-msm/rpc_server_handset.c, but first I have to get my build environment working
copy missing files instead of link
xt_MARK.c and xt_mark.c are not the same, at least in my source
try copy the missing file from android source
http://android.git.kernel.org/?p=kernel/msm.git;a=tree
wmi543 said:
xt_MARK.c and xt_mark.c are not the same, at least in my source
try copy the missing file from android source
Click to expand...
Click to collapse
It worked I copied all the files from the git instead of ln -s.
"Kernel: arch/arm/boot/zImage is ready"
Thanks for the quick reply.
Then I had to remove comment out CONFIG_FB_MSM_MDDI_NT35582_WVGA=y line from .config and answer no to two questions when running make.
I used the 4.4.0 toolchain
Now I have the zImage but don't know how it'll work because the CONFIG_FB_MSM_MDDI_NT35582_WVGA probably has something to do with the display type.
BTW I've taken a backup with genokolar's recovery img. When I try this new kernel and if I can't boot, I should be able to get it to boot again by doing a restore from the earlier backup?
Now I'll start looking into packing the kernel to an .img (android-dls.com wiki/index.php?title=HOWTO:_Unpack,_Edit,_and_Re-Pack_Boot_Images#Structure_of_boot_and_recovery_images)..
OK. I copied the boot.img from the phone in bootloader mode, unpacked it with unpack-bootimg.pl. Then I bsdiffed (binary diff) the resulting boot.img-kernel.gz with the Image file I built, the patch file is only 389K so looks like they are quite similar. The only differences may be because of the display thing I changed in the Makefile.
Might try tomorrow to replace the unpacked kernel with the Image file and see if it works. What is the worst case scenario? I should always be able to restore from the old backup if it doesn't boot?
Maybe I'll also try to get the display thing to build right before trying it on the phone
edit: I read somewhere the .gz extension in the unpacked kernel file is a bug with the unpacking script, so "boot.img-kernel.gz" is actually the unpacked kernel file (so it should be the same as compiled Image) ?
Looks like the unpack-bootimg.pl and repack-bootimg.pl are not working right for the U8800 boot.img. I just tried to unpack the original boot.img and repack it, I got a blue screen when trying to boot. I could restore the original just by going to bootloader mode and copying back the original.
Any ideas how to unpack and repack the boot.img of the U8800?
You can repack the boot/recovery images with the following:
Code:
./mkbootfs RAMDISK DIRECTORY | ./minigzip > ramdisk-boot.img
./mkbootimg --kernel KERNEL --ramdisk ramdisk-boot.img --base 0x00200000 --pagesize 4096 --cmdline 'console=ttyDCC0 androidboot.hardware=huawei' -o boot.img
I just modified the repack perl script accordingly and added lines so that it will mount cust_backup and transfer the image across for me. Saves heaps of time.
stockwell said:
You can repack the boot/recovery images with the following:
Code:
./mkbootfs RAMDISK DIRECTORY | ./minigzip > ramdisk-boot.img
./mkbootimg --kernel KERNEL --ramdisk ramdisk-boot.img --base 0x00200000 --pagesize 4096 --cmdline 'console=ttyDCC0 androidboot.hardware=huawei' -o boot.img
I just modified the repack perl script accordingly and added lines so that it will mount cust_backup and transfer the image across for me. Saves heaps of time.
Click to expand...
Click to collapse
I used the unpack script from http://forum.xda-developers.com/showthread.php?t=891333 then modified the line "#$bootimg = substr($bootimg,2048);" to "$bootimg = substr($bootimg,4096);". There's still a difference of 215 bytes with the repacked img, but it works.
Now I can test the kernel I built myself. Thank you for the help.
edit: Looks like the built kernel doesn't work, now I can start tackling that
CONFIG_FB_MSM_MDDI_NT35582_WVGA=y
if you see only blue screen when you boot your own kernel, refer to my experience, edit .config, change 2 lines as below instead of comment out CONFIG_FB_MSM_MDDI_NT35582_WVGA=y should fix it
CONFIG_FB_MSM_MDDI_AUTO_DETECT=y
CONFIG_FB_MSM_TRY_MDDI_CATCH_LCDC_PRISM=y
BTW, there is a tool "abootimg" which is quite handy for packing the kernel
http://gitorious.org/ac100/abootimg
wmi543 said:
if you see only blue screen when you boot your own kernel, refer to my experience, edit .config, change 2 lines as below instead of comment out CONFIG_FB_MSM_MDDI_NT35582_WVGA=y should fix it
CONFIG_FB_MSM_MDDI_AUTO_DETECT=y
CONFIG_FB_MSM_TRY_MDDI_CATCH_LCDC_PRISM=y
BTW, there is a tool "abootimg" which is quite handy for packing the kernel
http://gitorious.org/ac100/abootimg
Click to expand...
Click to collapse
Works! great! Thanks for the help. Hopefully soon I can release my fixed kernel
Sorry, I'm new to Android. What advantages are there if you get the stock kernel or whatever?
"Stock" means the kernel that comes with the phone when you buy it. I just wanted to build it so I could modify it. I created a modified kernel that allows you to use the internal mic with headphones or for example when you connect the phone to your car stereo. The modified kernel is in the other thread.
Sent from my u8800 using XDA App
So with custom kernel you can achieve more functionality just like normal linux? Good. Would be awesome.

[Q] Error on compiling from source

Hi guys,
I'm trying to compile android 4.3 from AOSP. I've successfully compiled the roms like Rasbeanjelly or Martin_ro.
However when I'm trying to compile from source, it gives me the following errors:
packages/apps/Settings/res/values/strings.xml:4537: error: Error parsing XML: not well-formed (invalid token)
packages/apps/Settings/res/layout/intent_sender.xml:48: error: Error: No resource found that matches the given name (at 'text' with value '@string/intent_sender_data_label').
...... long list .....
packages/apps/Settings/res/xml/testing_wifi_settings.xml:29: error: Error: No resource found that matches the given name (at 'title' with value '@string/wifi_config_info').
packages/apps/Settings/res/xml/testing_wifi_settings.xml:37: error: Error: No resource found that matches the given name (at 'title' with value '@string/wifi_status_test').
make: *** [out/target/common/obj/APPS/Settings_intermediates/src/R.stamp] Error 1
make: *** Waiting for unfinished jobs....
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.​
What am I missing here? I've added the proprietary drivers from google, walked through all the steps from the devs website. Any help would be highly appreciated.
I'm on Ubuntu 13.04 btw

Chromium_org gives error all the time

Hello, I'm trying to compile OmniRom but after last repo sync I'm getting this error:
Code:
In file included from external/chromium_org/content/common/android/hash_set.cc:5:0:
/home/lozohcum/OmniRom/out/target/product/jlo/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:24:20: error: expected initializer before '<' token
/home/lozohcum/OmniRom/out/target/product/jlo/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:26:17: error: expected initializer before '<' token
/home/lozohcum/OmniRom/out/target/product/jlo/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:29:22: error: expected '{' before '<' token
/home/lozohcum/OmniRom/out/target/product/jlo/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:29:22: error: expected unqualified-id before '<' token
external/chromium_org/content/common/android/hash_set.cc:30:1: error: expected '}' at end of input
cc1plus: all warnings being treated as errors
I have tried with chromium_org from CM11 (which compile without any errors) and the same thing appear.
cc1plus: all warnings being treated as errors
Click to expand...
Click to collapse
So I suppose adding a flag somewhere will fix that error but I'm not sure which flag and where.
Do you have any clue how to solve it?

[HELP] Errors on Omni Compilation

Hi @Entropy512 and @XpLoDWilD , I was trying to get Omni for Falcon. I know a guy named Ashwin was trying to get it booting but in vain. I tried to get a fresh build by myself and I faced a dozen errors till now but cant get past this one though, I tried googling but couldn't really come up with something. Its probably a missing file but I dont know where i can find it. Here is the error :
Code:
hardware/qcom/media/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:53:34: fatal error: media/msm_media_info.h: No such file or directory
#include <media/msm_media_info.h>
^
compilation terminated.
Sometimes, even this error :
Code:
target Executable: vold (/home/yeshwanth/omni/out/target/product/falcon/obj/EXECUTABLES/vold_intermediates/LINKED/vold)
system/vold/cryptfs.c:3116: error: undefined reference to 'clear_hw_device_encryption_key'
collect2: error: ld returned 1 exit status
build/core/executable_internal.mk:69: recipe for target '/home/yeshwanth/omni/out/target/product/falcon/obj/EXECUTABLES/vold_intermediates/LINKED/vold' failed
make: *** [/home/yeshwanth/omni/out/target/product/falcon/obj/EXECUTABLES/vold_intermediates/LINKED/vold] Error 1
make: *** Waiting for unfinished jobs....

Varios issues porting AOSP/CyanogenMod/Any other such ROM(s)...

Hey everyone!
As the title says, but more exactly I kinda lost my mind trying to port custom firmware for Asus A500CG. And all of it end up with errors with "hardware/intel/img/psb_video/src/android/psb_android_glue.cpp".
I've used the master branch of the device tree here by quanganh2627. I'm trying to build Android M currently . I've disabled SELinux things. And to solve the psb_video error I removed the folder itself. I get a successful build but ends up with building the one for medfield. I'll post the error in the next post. And could someone guide me properly to build the ROM and for the right device.
Also I'm building it on Ubuntu 14.04.02.
I get the Medfield info because it literally gets stuck in the splash screen, so I used adb devices & I used adb logcat.
I see that most of the services fail to start & to be more precise a bootloop without boot animation.
I'd appreciate help from anyone with more experience working with custom firmware.
frameworks/native/include/binder/IInterface.h:42:22: note: template argument deduction/substitution failed:
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:124:21: error: NULL used in arithmetic [-Werror=pointer-arith]
if (imds == NULL)
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:126:12: error: 'IMultiDisplayInfoProvider' was not declared in this scope
sp<IMultiDisplayInfoProvider> mds = imds->getInfoProvider();
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:126:37: error: template argument 1 is invalid
sp<IMultiDisplayInfoProvider> mds = imds->getInfoProvider();
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:126:43: error: invalid type in declaration before '=' token
sp<IMultiDisplayInfoProvider> mds = imds->getInfoProvider();
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:126:49: error: base operand of '->' is not a pointer
sp<IMultiDisplayInfoProvider> mds = imds->getInfoProvider();
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:127:20: error: NULL used in arithmetic [-Werror=pointer-arith]
if (mds != NULL) {
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:128:22: error: base operand of '->' is not a pointer
ret = mds->getVppState();
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:130:13: error: converting to non-pointer type 'int' from NULL [-Werror=conversion-null]
mds = NULL;
^
cc1plus: all warnings being treated as errors
make: *** [/home/paletrox-z/euphoria/out/target/product/a500cg/obj/SHARED_LIBRARIES/pvr_drv_video_intermediates/android/psb_android_glue.o] Error 1
Next set of errors:
hardware/intel/img/psb_video/src/android/psb_gralloc.cpp:38:25: fatal error: ufo/gralloc.h: No such file or directory
#include <ufo/gralloc.h>
^
compilation terminated.
make: *** [/home/paletrox-z/euphoria/out/target/product/a500cg/obj/SHARED_LIBRARIES/pvr_drv_video_intermediates/android/psb_gralloc.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:45:0:
hardware/intel/img/psb_video/src/android/psb_mds.h:51:8: error: 'IMDService' was not declared in this scope
sp<IMDService> mMds;
^
hardware/intel/img/psb_video/src/android/psb_mds.h:51:18: error: template argument 1 is invalid
sp<IMDService> mMds;
^
hardware/intel/img/psb_video/src/android/psb_mds.h:52:8: error: 'IMultiDisplayInfoProvider' was not declared in this scope
sp<IMultiDisplayInfoProvider> mListener;
^
hardware/intel/img/psb_video/src/android/psb_mds.h:52:33: error: template argument 1 is invalid
sp<IMultiDisplayInfoProvider> mListener;
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp: In function 'int psb_android_get_mds_vpp_state(void*)':
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:122:12: error: 'IMDService' was not declared in this scope
sp<IMDService> imds = interface_cast<IMDService>(
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:122:22: error: template argument 1 is invalid
sp<IMDService> imds = interface_cast<IMDService>(
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:122:29: error: invalid type in declaration before '=' token
sp<IMDService> imds = interface_cast<IMDService>(
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:122:46: error: the value of 'IMDService' is not usable in a constant expression
sp<IMDService> imds = interface_cast<IMDService>(
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:122:12: note: 'IMDService' was not declared 'constexpr'
sp<IMDService> imds = interface_cast<IMDService>(
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:123:65: error: no matching function for call to 'interface_cast(android::sp<android::IBinder>)'
sm->getService(String16(INTEL_MDS_SERVICE_NAME)));
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:123:65: note: candidate is:
In file included from frameworks/native/include/binder/IServiceManager.h:21:0,
from hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:33:
frameworks/native/include/binder/IInterface.h:42:22: note: template<class INTERFACE> android::sp<T> android::interface_cast(const android::sp<android::IBinder>&)
inline sp<INTERFACE> interface_cast(const sp<IBinder>& obj)
^
frameworks/native/include/binder/IInterface.h:42:22: note: template argument deduction/substitution failed:
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:126:12: error: 'IMultiDisplayInfoProvider' was not declared in this scope
sp<IMultiDisplayInfoProvider> mds = imds->getInfoProvider();
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:126:37: error: template argument 1 is invalid
sp<IMultiDisplayInfoProvider> mds = imds->getInfoProvider();
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:126:43: error: invalid type in declaration before '=' token
sp<IMultiDisplayInfoProvider> mds = imds->getInfoProvider();
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:126:49: error: base operand of '->' is not a pointer
sp<IMultiDisplayInfoProvider> mds = imds->getInfoProvider();
^
hardware/intel/img/psb_video/src/android/psb_android_glue.cpp:128:22: error: base operand of '->' is not a pointer
ret = mds->getVppState();
^
make: *** [/home/paletrox-z/euphoria/out/target/product/a500cg/obj/SHARED_LIBRARIES/pvr_drv_video_intermediates/android/psb_android_glue.o] Error 1
#### make failed to build some targets (03:04 (mm:ss)) ####
Go to psb_video folder and delete all files here apart all folders and Android.mk file.
Open Android.mk file and comment all strings there using # symbol.
My CM12.1 is booted without this folder. You should compile Lollipop rom and only after that you should compile Marshmallow.
But mate it creates pvr_drv_video.so module. So would it be right to do so?
Just try.
I tried and it built it again for medfield mate....

Categories

Resources