[Q] Kernel Compilation Error - Android Q&A, Help & Troubleshooting

Can anybody help me to deal with these errors? I don't really understand what's going on
Code:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
arm-cortex_a8-linux-gnueabi-gcc -Wp,-MD,kernel/.bounds.s.d -nostdinc -isystem arm-cortex_a8-linux-gnueabi-gcc -print-file-name=include [Errno 8] Exec format error -I/home/caesar/Downloads/SebastianFM-kernel-master/arch/arm/include -Iarch/arm/include/generated -Iinclude -include /home/caesar/Downloads/SebastianFM-kernel-master/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-msm/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -D__LINUX_ARM_ARCH__=7 -march=armv5t -Wa,-march=armv7-a -msoft-float -Uarm -fomit-frame-pointer -g -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(bounds) -DKBUILD_MODNAME=KBUILD_STR(bounds) -fverbose-asm -S -o kernel/bounds.s kernel/bounds.c [Errno 8] Exec format error
make[1]: *** [kernel/bounds.s] Error 8
make: *** [prepare0] Error 2

Related

[Q] cant build a Boot.img

[email protected]:~/android$ make -j4 bootimage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.2.2
CM_VERSION=
TARGET_PRODUCT=full_asanti_c
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.2.0-39-generic-x86_64-with-Ubuntu-12.10-quantal
HOST_BUILD_TYPE=release
BUILD_ID=JDQ39
OUT_DIR=/home/harry/android/out
============================================
external/bluetooth/bluedroid/Android.mk:8: NO BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR, using only generic configuration
No private recovery resources for TARGET_DEVICE asanti_c
make -C kernel/moto/asanti_c O=/home/harry/android/out/target/product/asanti_c/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/harry/android/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-" msm8960_mmi_defconfig
make[1]: Enter '/home/harry/android/kernel/moto/asanti_c'
GEN /home/harry/android/out/target/product/asanti_c/obj/KERNEL_OBJ/Makefile
drivers/usb/gadget/Kconfig:968:warning: defaults for choice values not supported
#
# configuration written to .config
#
make[1]: Leave '/home/harry/android/kernel/moto/asanti_c'
make -C kernel/moto/asanti_c O=/home/harry/android/out/target/product/asanti_c/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/harry/android/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-" headers_install
make[1]: Enter '/home/harry/android/kernel/moto/asanti_c'
CHK include/linux/version.h
make[1]: Leave '/home/harry/android/kernel/moto/asanti_c'
make -C kernel/moto/asanti_c O=/home/harry/android/out/target/product/asanti_c/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/harry/android/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-" zImage
make[1]: Enter '/home/harry/android/kernel/moto/asanti_c'
GEN /home/harry/android/out/target/product/asanti_c/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/gadget/Kconfig:968:warning: defaults for choice values not supported
GEN /home/harry/android/out/target/product/asanti_c/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
Using /home/harry/android/kernel/moto/asanti_c as source for kernel
CHK include/generated/utsrelease.h
make[3]: »include/generated/mach-types.h« ist bereits aktualisiert.
CALL /home/harry/android/kernel/moto/asanti_c/scripts/checksyscalls.sh
CHK include/generated/compile.h
GZIP kernel/config_data.gz
CHK kernel/config_data.h
Kernel: arch/arm/boot/Image is ready
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
make[1]: Leave '/home/harry/android/kernel/moto/asanti_c'
make -C kernel/moto/asanti_c O=/home/harry/android/out/target/product/asanti_c/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/harry/android/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-" modules
make[1]: Enter '/home/harry/android/kernel/moto/asanti_c'
GEN /home/harry/android/out/target/product/asanti_c/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
Using /home/harry/android/kernel/moto/asanti_c as source for kernel
CHK include/generated/utsrelease.h
make[3]: »include/generated/mach-types.h« ist bereits aktualisiert.
CALL /home/harry/android/kernel/moto/asanti_c/scripts/checksyscalls.sh
Building modules, stage 2.
MODPOST 23 modules
make[1]: Leave '/home/harry/android/kernel/moto/asanti_c'
make -C kernel/moto/asanti_c O=/home/harry/android/out/target/product/asanti_c/obj/KERNEL_OBJ INSTALL_MOD_PATH=../../system ARCH=arm CROSS_COMPILE=" /home/harry/android/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-" modules_install
make[1]: Enter '/home/harry/android/kernel/moto/asanti_c'
INSTALL arch/arm/mach-msm/dma_test.ko
INSTALL arch/arm/mach-msm/msm-buspm-dev.ko
INSTALL arch/arm/mach-msm/reset_modem.ko
INSTALL crypto/ansi_cprng.ko
INSTALL drivers/bluetooth/bluetooth-power.ko
INSTALL drivers/crypto/msm/qcedev.ko
INSTALL drivers/crypto/msm/qce40.ko
INSTALL drivers/crypto/msm/qcrypto.ko
INSTALL drivers/input/evbug.ko
INSTALL drivers/input/evfwd.ko
INSTALL drivers/media/radio/radio-iris-transport.ko
INSTALL drivers/media/video/gspca/gspca_main.ko
INSTALL drivers/misc/config/config.ko
INSTALL drivers/misc/eeprom/eeprom_93cx6.ko
INSTALL drivers/net/ks8851.ko
INSTALL drivers/scsi/scsi_wait_scan.ko
INSTALL drivers/spi/spidev.ko
INSTALL drivers/staging/prima/wlan.ko
INSTALL drivers/staging/zram/zram.ko
INSTALL drivers/video/backlight/lcd.ko
INSTALL net/ipv4/tcp_htcp.ko
INSTALL net/ipv4/tcp_westwood.ko
INSTALL net/wireless/cfg80211.ko
DEPMOD 3.0.72-cm
make[1]: Leave '/home/harry/android/kernel/moto/asanti_c'
mdpath=`find /home/harry/android/out/target/product/asanti_c/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; ko=`find $mpath/kernel -type f -name *.ko`; for i in $ko; do /home/harry/android/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-strip --strip-unneeded $i; mv $i /home/harry/android/out/target/product/asanti_c/system/lib/modules/; done; fi
mdpath=`find /home/harry/android/out/target/product/asanti_c/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; rm -rf $mpath; fi
mdpath=`find /home/harry/android/out/target/product/asanti_c/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; ko=`find $mpath/kernel -type f -name *.ko`; for i in $ko; do /home/harry/android/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-strip --strip-unneeded $i; mv $i /home/harry/android/out/target/product/asanti_c/system/lib/modules/; done; fi
mdpath=`find /home/harry/android/out/target/product/asanti_c/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; rm -rf $mpath; fi
target Prebuilt: (/home/harry/android/out/target/product/asanti_c/kernel)
Target boot image: /home/harry/android/out/target/product/asanti_c/boot.img
usage: mkbootimg
--kernel <filename>
--ramdisk <filename>
[ --second <2ndbootloader-filename> ]
[ --cmdline <kernel-commandline> ]
[ --board <boardname> ]
[ --base <address> ]
[ --pagesize <pagesize> ]
[ --ramdisk_offset <address> ]
-o|--output <filename>
make: *** [/home/harry/android/out/target/product/asanti_c/boot.img] Error 1
[email protected]:~/android$
Click to expand...
Click to collapse
what is the problem
Don't know, somehow arguments to mkbootimg are not well passed.

Problem compiling kernel for lww

Hi guys,today I was trying to compile a kernel for my lww but when I type 'make' it shows some errors.
This my errors
[email protected]:~/android/kernel/kernel$ make
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CALL scripts/checksyscalls.sh
CC init/main.o
In file included from include/linux/mempolicy.h:62:0,
from init/main.c:52:
include/linux/pagemap.h: In function 'fault_in_pages_readable':
include/linux/pagemap.h:415:16: error: variable 'c' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[1]: *** [init/main.o] Error 1
make: *** [init] Error 2
[email protected]:~/android/kernel/kernel$
I tried with make -j2 too but nothing
its not an actual error, its a warning. default kernel Makefile treat warning as dangerous thus force stopping compile process.
Code:
cc1: all warnings being treated as errors
just surpress the warning in Makefile, from
Code:
KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
-Werror \
-fno-strict-aliasing -fno-common \
-Werror-implicit-function-declaration \
-Wno-format-security \
-fno-delete-null-pointer-checks
to
Code:
KBUILD_CFLAGS := -Wundef -Wstrict-prototypes -Wno-trigraphs \
-Werror \
-fno-strict-aliasing -fno-common \
-Werror-implicit-function-declaration \
-Wno-format-security \
-Wno-unused-but-set-variable \
-fno-delete-null-pointer-checks
an0nym0us_ said:
its not an actual error, its a warning. default kernel Makefile treat warning as dangerous thus force stopping compile process.
Code:
cc1: all warnings being treated as errors
just surpress the warning in Makefile, from
Code:
KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
-Werror \
-fno-strict-aliasing -fno-common \
-Werror-implicit-function-declaration \
-Wno-format-security \
-fno-delete-null-pointer-checks
to
Code:
KBUILD_CFLAGS := -Wundef -Wstrict-prototypes -Wno-trigraphs \
-Werror \
-fno-strict-aliasing -fno-common \
-Werror-implicit-function-declaration \
-Wno-format-security \
-Wno-unused-but-set-variable \
-fno-delete-null-pointer-checks
Click to expand...
Click to collapse
Thanks but now I get this:
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
CC scripts/mod/empty.o
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/sumversion.o
HOSTCC scripts/mod/modpost.o
scripts/mod/modpost.c: In function ‘get_markers’:
scripts/mod/modpost.c:1562:12: προειδοποίηση: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
scripts/mod/modpost.c: In function ‘add_marker’:
scripts/mod/modpost.c:1982:10: προειδοποίηση: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
HOSTLD scripts/mod/modpost
CC kernel/bounds.s
GEN include/linux/bounds.h
CC arch/arm/kernel/asm-offsets.s
GEN include/asm/asm-offsets.h
CALL scripts/checksyscalls.sh
CC init/main.o
CHK include/linux/compile.h
CC init/do_mounts.o
CC arch/arm/kernel/compat.o
CC arch/arm/kernel/elf.o
CC init/do_mounts_rd.o
CC init/do_mounts_initrd.o
CC init/do_mounts_md.o
AS arch/arm/kernel/entry-armv.o
AS arch/arm/kernel/entry-common.o
CC arch/arm/kernel/irq.o
CC init/initramfs.o
CC init/calibrate.o
CC init/version.o
CC arch/arm/kernel/process.o
LD init/mounts.o
LD init/built-in.o
CC arch/arm/mm/dma-mapping.o
CC arch/arm/kernel/ptrace.o
arch/arm/mm/dma-mapping.c: In function 'dma_free_coherent':
arch/arm/mm/dma-mapping.c:448:25: error: array subscript is above array bounds [-Werror=array-bounds]
arch/arm/mm/dma-mapping.c: In function '__dma_alloc':
arch/arm/mm/dma-mapping.c:260:25: error: array subscript is above array bounds [-Werror=array-bounds]
cc1: all warnings being treated as errors
make[1]: *** [arch/arm/mm/dma-mapping.o] Error 1
make: *** [arch/arm/mm] Error 2
make: *** Waiting for unfinished jobs....
CC arch/arm/kernel/return_address.o
CC arch/arm/kernel/setup.o
CC arch/arm/kernel/signal.o
CC arch/arm/kernel/sys_arm.o
CC arch/arm/kernel/stacktrace.o
CC arch/arm/kernel/time.o
CC arch/arm/kernel/traps.o
CC arch/arm/kernel/armksyms.o
CC arch/arm/kernel/module.o
CC arch/arm/kernel/bios32.o
CC arch/arm/kernel/isa.o
CC arch/arm/kernel/machine_kexec.o
AS arch/arm/kernel/relocate_kernel.o
arch/arm/kernel/relocate_kernel.S: Assembler messages:
arch/arm/kernel/relocate_kernel.S:20: Error: backward ref to unknown label "0:"
arch/arm/kernel/relocate_kernel.S:26: Error: backward ref to unknown label "0:"
arch/arm/kernel/relocate_kernel.S:37: Error: backward ref to unknown label "0:"
arch/arm/kernel/relocate_kernel.S:45: Error: backward ref to unknown label "0:"
make[1]: *** [arch/arm/kernel/relocate_kernel.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [arch/arm/kernel] Error 2
sakisosf said:
Thanks but now I get this:
Click to expand...
Click to collapse
Please use code blocks for terminal output/codes. Type
Code:
code
So [code.] and [/code.] and remove the . behind the e
mihahn said:
Please use code blocks for terminal output/codes. Type
Code:
code
So [code.] and [/code.] and remove the . behind the e
Click to expand...
Click to collapse
Done
Finally I got boot.img but I didnt try yet.The size of the boot.img is 20mb,is it normal?
Sent from my WT19i using xda app-developers app

[Q] /bin/sh: -c: line 0: syntax error near unexpected token `('

Hey guys i'm so close to getting a complete build on a build but it fails to build the kernel :/. The error:
Code:
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `set -e; echo ' CC scripts/mod/empty.o'; /home/zohaib/android/kernel/htc/msm8660/scripts/gcc-wrapper.py /home/zohaib/android/prebuilts/misc/linux-x86/ccache/ccache /home/zohaib/android/prebuilt/linux-x86/toolchain/linaro-arm-cortex-a8/bin/arm-eabi-gcc -Wp,-MD,scripts/mod/.empty.o.d -nostdinc -isystem ccache: FATAL: /home/zohaib/android/prebuilt/linux-x86/toolchain/linaro-arm-cortex-a8/bin/arm-eabi-gcc: execv returned (No such file or directory) -I/home/zohaib/android/kernel/htc/msm8660/arch/arm/include -Iarch/arm/include/generated -Iinclude -I/home/zohaib/android/kernel/htc/msm8660/include -include include/generated/autoconf.h -I/home/zohaib/android/kernel/htc/msm8660/scripts/mod -Iscripts/mod -D__KERNEL__ -mlittle-endian -I/home/zohaib/android/kernel/htc/msm8660/arch/arm/mach-msm/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Wno-unused-variable -O3 -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -D__LINUX_ARM_ARCH__=7 -march=armv5t -Wa,-march=armv7-a -msoft-float -Uarm -fomit-frame-pointer -fgcse-lm -fgcse-sm -fsched-spec-load -fforce-addr -ffast-math -fsingle-precision-constant -mtune=cortex-a8 -march=armv7-a -mfpu=neon -ftree-vectorize -funswitch-loops -fgcse-lm -fgcse-sm -fsched-spec-load -fforce-addr -ffast-math -fsingle-precision-constant -mtune=cortex-a8 -marm -march=armv7-a -mfpu=neon -ftree-vectorize -mvectorize-with-neon-quad -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(empty)" -D"KBUILD_MODNAME=KBUILD_STR(empty)" -c -o scripts/mod/empty.o /home/zohaib/android/kernel/htc/msm8660/scripts/mod/empty.c; scripts/basic/fixdep scripts/mod/.empty.o.d scripts/mod/empty.o '/home/zohaib/android/kernel/htc/msm8660/scripts/gcc-wrapper.py /home/zohaib/android/prebuilts/misc/linux-x86/ccache/ccache /home/zohaib/android/prebuilt/linux-x86/toolchain/linaro-arm-cortex-a8/bin/arm-eabi-gcc -Wp,-MD,scripts/mod/.empty.o.d -nostdinc -isystem ccache: FATAL: /home/zohaib/android/prebuilt/linux-x86/toolchain/linaro-arm-cortex-a8/bin/arm-eabi-gcc: execv returned (No such file or directory) -I/home/zohaib/android/kernel/htc/msm8660/arch/arm/include -Iarch/arm/include/generated -Iinclude -I/home/zohaib/android/kernel/htc/msm8660/include -include include/generated/autoconf.h -I/home/zohaib/android/kernel/htc/msm8660/scripts/mod -Iscripts/mod -D__KERNEL__ -mlittle-endian -I/home/zohaib/android/kernel/htc/msm8660/arch/arm/mach-msm/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Wno-unused-variable -O3 -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -D__LINUX_ARM_ARCH__=7 -march=armv5t -Wa,-march=armv7-a -msoft-float -Uarm -fomit-frame-pointer -fgcse-lm -fgcse-sm -fsched-spec-load -fforce-addr -ffast-math -fsingle-precision-constant -mtune=cortex-a8 -march=armv7-a -mfpu=neon -ftree-vectorize -funswitch-loops -fgcse-lm -fgcse-sm -fsched-spec-load -fforce-addr -ffast-math -fsingle-precision-constant -mtune=cortex-a8 -marm -march=armv7-a -mfpu=neon -ftree-vectorize -mvectorize-with-neon-quad -D"KBUILD_STR(s)=\#s" -D"KBUILD_BASENAME=KBUILD_STR(empty)" -D"KBUILD_MODNAME=KBUILD_STR(empty)" -c -o scripts/mod/empty.o /home/zohaib/android/kernel/htc/msm8660/scripts/mod/empty.c' > scripts/mod/.empty.o.tmp; rm -f scripts/mod/.empty.o.d; mv -f scripts/mod/.empty.o.tmp scripts/mod/.empty.o.cmd'
make[4]: *** [scripts/mod/empty.o] Error 1
make[3]: *** [scripts/mod] Error 2
make[2]: *** [scripts] Error 2
make[2]: *** Waiting for unfinished jobs....
target thumb C++: libv8 <= external/v8/src/contexts.cc
target thumb C++: libv8 <= external/v8/src/conversions.cc
target thumb C++: libv8 <= external/v8/src/counters.cc
target thumb C++: libv8 <= external/v8/src/cpu-profiler.cc
target thumb C++: libv8 <= external/v8/src/data-flow.cc
target thumb C++: libv8 <= external/v8/src/date.cc
target thumb C++: libv8 <= external/v8/src/dateparser.cc
target thumb C++: libv8 <= external/v8/src/debug.cc
target thumb C++: libv8 <= external/v8/src/debug-agent.cc
target thumb C++: libv8 <= external/v8/src/deoptimizer.cc
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/zohaib/android/kernel/htc/msm8660'
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: *** Waiting for unfinished jobs....
[email protected]:~/android#
Any help is greatly appreciated

Error on compiling kernel for arm devices : scripts/Makefile.clean:17:

Error on commanding make clean && make mrproper
Code:
[email protected]:~/android/kernel/hx_wt88047$ make clean && make mrproper
CLEAN .
CLEAN crypto/asymmetric_keys
scripts/Makefile.clean:17: /home/abhi/android/kernel/hx_wt88047/drivers/target/Makefile: File name too long
make[2]: stat: /home/abhi/android/kernel/hx_wt88047/drivers/target/Makefile: File name too long
make[2]: *** No rule to make target `/home/abhi/android/kernel/hx_wt88047/drivers/target/Makefile'. Stop.
make[1]: *** [drivers/target] Error 2
make: *** [_clean_drivers] Error 2
PS : No problem in compiling Kernel
Code:
LINK vmlinux
LD vmlinux.o
MODPOST vmlinux.o
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
KSYM .tmp_kallsyms1.o
KSYM .tmp_kallsyms2.o
LD vmlinux
SORTEX vmlinux
SYSMAP System.map
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
AS arch/arm/boot/compressed/head.o
GZIP arch/arm/boot/compressed/piggy.gzip
AS arch/arm/boot/compressed/hyp-stub.o
AS arch/arm/boot/compressed/lib1funcs.o
AS arch/arm/boot/compressed/piggy.gzip.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
This is how i am building :
Code:
PATH=${PATH}:/home/abhi/android/kernel/toolchains/google/arm-eabi-4.8/bin/
export ARCH=arm
make cyanogenmod_wt88047_defconfig ARCH=arm CROSS_COMPILE=arm-eabi-
make -j4 ARCH=arm CROSS_COMPILE=arm-eabi-
Help needed urgently..

android oreo 8.0.0_r34 build error

Hi,
I am trying to build android oreo aosp for the target car_emu_x86_64-userdebug and i am getting build error.
Steps followed:
1. repo init -u <android source url> -b android-8.0.0_r34 --depth=1
2. repo sync
3. source build/envsetup.sh
4. lunch car_emu_x86_64-userdebug
5. make -j8
error:
[ 0% 9/15494] target C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/DisplayHardware/FramebufferSurface.cpp
FAILED: out/target/product/car-x86_64/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/DisplayHardware/FramebufferSurface.o
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++ -I frameworks/native/vulkan/include -I external/vulkan-validation-layers/libs/vkjson -I system/libhwbinder/fast_msgq/include -I frameworks/native/services/surfaceflinger -I out/target/product/car-x86_64/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates -I out/target/product/car-x86_64/gen/SHARED_LIBRARIES/libsurfaceflinger_intermediates -I libnativehelper/include/nativehelper \$(cat out/target/product/car-x86_64/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include -isystem out/target/product/car-x86_64/obj/include -isystem bionic/libc/arch-x86_64/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-x86 -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -c -fno-exceptions -Wno-multichar -O2 -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -ffunction-sections -fno-short-enums -fstrict-aliasing -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Werror=pointer-to-int-cast -Werror=int-to-pointer-cast -Werror=implicit-function-declaration -O2 -g -fno-strict-aliasing -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -nostdlibinc -m64 -march=x86-64 -DUSE_SSSE3 -mssse3 -msse4 -msse4.1 -msse4.2 -mpopcnt -target x86_64-linux-android -Bprebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/x86_64-linux-android/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -std=gnu++14 -fno-rtti -DLOG_TAG="SurfaceFlinger" -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES -fvisibility=hidden -Werror=format -Wall -Werror -Wunused -Wunreachable-code -std=c++1z -fPIC -D_USING_LIBCXX -DANDROID_STRICT -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF out/target/product/car-x86_64/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/DisplayHardware/FramebufferSurface.d -o out/target/product/car-x86_64/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/DisplayHardware/FramebufferSurface.o frameworks/native/services/surfaceflinger/DisplayHardware/FramebufferSurface.cpp"
frameworks/native/services/surfaceflinger/DisplayHardware/FramebufferSurface.cpp:180:18: error: no member named 'setClientTarget' in 'android::HWComposer'
mHwc.setClientTarget(mDisplayType, outSlot, outFence, outBuffer, outDataspace);
~~~~ ^
frameworks/native/services/surfaceflinger/DisplayHardware/FramebufferSurface.cpp:180:48: error: use of undeclared identifier 'outSlot'
mHwc.setClientTarget(mDisplayType, outSlot, outFence, outBuffer, outDataspace);
^
frameworks/native/services/surfaceflinger/DisplayHardware/FramebufferSurface.cpp:180:78: error: use of undeclared identifier 'outDataspace'
mHwc.setClientTarget(mDisplayType, outSlot, outFence, outBuffer, outDataspace);
^
3 errors generated.
[ 0% 15/15494] Ensuring Jack server is installed and started
Jack server already installed in "/home/abdul/.jack-server"
Launching Jack server java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=/tmp -Dfile.encoding=UTF-8 -XX:+TieredCompilation -cp /home/abdul/.jack-server/launcher.jar com.android.jack.launcher.ServerLauncher
[ 0% 16/15494] target C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/SurfaceFlinger_hwc1.cpp
ninja: build stopped: subcommand failed.
12:08:48 ninja failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
#### make failed to build some targets (05:44 (mm:ss)) ####
Facing similar issue. Got any fix?

Categories

Resources