[Android Q&A, Help & Troubleshooting] rebelviversel:
hey i need help compiling kernel for my device, i keep stumbling on this vdso error and i dont know how to fix it, any suggestions?

..

..

..

..

..

../drivers/misc/mediatek/ccu/src/Makefile:27: CCU_MAKE_FILE_CALLED

************ drivers/trusty/mtee-kree mk ************

MTK_GPU_VERSION 1 =

TCORE_UT_TESTS_SUPPORT = n

TCORE_PROFILING_SUPPORT = n

TCORE_PROFILING_AUTO_DUMP = n

TCORE_MEMORY_LEAK_DETECTION_SUPPORT = n

..

..

..

..

..

../drivers/misc/mediatek/ccu/src/Makefile:27: CCU_MAKE_FILE_CALLED

************ drivers/trusty/mtee-kree mk ************

MTK_GPU_VERSION 1 =

TCORE_UT_TESTS_SUPPORT = n

TCORE_PROFILING_SUPPORT = n

TCORE_PROFILING_AUTO_DUMP = n

TCORE_MEMORY_LEAK_DETECTION_SUPPORT = n

CLEAN scripts/basic

CLEAN scripts/kconfig

CLEAN include/config include/generated

CLEAN .config

grep: .config: No such file or directory

grep: .config: No such file or directory

grep: .config: No such file or directory

grep: .config: No such file or directory

grep: .config: No such file or directory

grep: .config: No such file or directory

grep: .config: No such file or directory

grep: .config: No such file or directory

..

..

..

..

..

../drivers/misc/mediatek/ccu/src/Makefile:27: CCU_MAKE_FILE_CALLED

************ drivers/trusty/mtee-kree mk ************

MTK_GPU_VERSION 1 =

TCORE_UT_TESTS_SUPPORT = n

TCORE_PROFILING_SUPPORT = n

TCORE_PROFILING_AUTO_DUMP = n

TCORE_MEMORY_LEAK_DETECTION_SUPPORT = n

make[1]: Entering directory '/root/Power-Armor-13/kernel-4.14/out'

HOSTCC scripts/basic/fixdep

GEN ./Makefile

HOSTCC scripts/kconfig/conf.o

SHIPPED scripts/kconfig/zconf.tab.c

SHIPPED scripts/kconfig/zconf.lex.c

HOSTCC scripts/kconfig/zconf.tab.o

HOSTLD scripts/kconfig/conf

drivers/misc/mediatek/prize/aw2028_led/Kconfig:1:warning: ignoring un'upported character '

drivers/misc/mediatek/prize/aw2028_led/Kconfig:2:warning: ignoring un'upported character '

drivers/misc/mediatek/prize/aw2028_led/Kconfig:3:warning: ignoring un'upported character '

drivers/misc/mediatek/prize/aw2028_led/Kconfig:4:warning: ignoring un'upported character '

drivers/misc/mediatek/prize/aw2015/Kconfig:1:warning: ignoring unsupp'rted character '

drivers/misc/mediatek/prize/aw2015/Kconfig:2:warning: ignoring unsupp'rted character '

drivers/misc/mediatek/prize/aw2015/Kconfig:3:warning: ignoring unsupp'rted character '

drivers/misc/mediatek/prize/aw2015/Kconfig:4:warning: ignoring unsupp'rted character '

drivers/misc/mediatek/prize/aw2016a/Kconfig:1:warning: ignoring unsup'orted character '

drivers/misc/mediatek/prize/aw2016a/Kconfig:2:warning: ignoring unsup'orted character '

drivers/misc/mediatek/prize/aw2016a/Kconfig:3:warning: ignoring unsup'orted character '

drivers/misc/mediatek/prize/ir_camera_motor/Kconfig:1:warning: ignori'g unsupported character '

drivers/misc/mediatek/prize/ir_camera_motor/Kconfig:2:warning: ignori'g unsupported character '

drivers/misc/mediatek/prize/ir_camera_motor/Kconfig:3:warning: ignori'g unsupported character '

drivers/misc/mediatek/prize/ir_camera_motor/Kconfig:4:warning: ignori'g unsupported character '

drivers/misc/mediatek/prize/laser_light_gpio/Kconfig:1:warning: ignor'ng unsupported character '

drivers/misc/mediatek/prize/laser_light_gpio/Kconfig:2:warning: ignor'ng unsupported character '

drivers/misc/mediatek/prize/laser_light_gpio/Kconfig:3:warning: ignor'ng unsupported character '

drivers/misc/mediatek/prize/laser_light_gpio/Kconfig:4:warning: ignor'ng unsupported character '

drivers/input/touchscreen/mediatek/HX83112/Kconfig:5:warning: ignoring type redefinition of 'TOUCHSCREEN_HIMAX_I2C' from 'boolean' to 'tristate'

drivers/input/touchscreen/mediatek/HX83112/Kconfig:11:warning: ignoring type redefinition of 'TOUCHSCREEN_HIMAX_DEBUG' from 'boolean' to 'tristate'

drivers/input/touchscreen/mediatek/HX83112/Kconfig:23:warning: ignoring type redefinition of 'HMX_DB' from 'boolean' to 'tristate'

drivers/input/touchscreen/touch_8789p1_8185p3/8185p3_8789p1/Kconfig:13:warning: ignoring type redefinition of 'TOUCHSCREEN_HIMAX_COMMON' from 'tristate' to 'boolean'

drivers/input/touchscreen/hxchipset_spi/Kconfig:17:warning: choice value used outside its choice group

drivers/input/touchscreen/touch_8789p1_8185p3/8185p3_8789p1/Kconfig:22:warning: choice value used outside its choice group

drivers/input/touchscreen/hxchipset_spi/Kconfig:23:warning: choice value used outside its choice group

#

# configuration written to .config

#

make[1]: Leaving directory '/root/Power-Armor-13/kernel-4.14/out'

make[1]: Entering directory '/root/Power-Armor-13/kernel-4.14/out'

GEN ./Makefile

scripts/kconfig/conf --silentoldconfig Kconfig

drivers/misc/mediatek/prize/aw2028_led/Kconfig:1:warning: ignoring un'upported character '

drivers/misc/mediatek/prize/aw2028_led/Kconfig:2:warning: ignoring un'upported character '

drivers/misc/mediatek/prize/aw2028_led/Kconfig:3:warning: ignoring un'upported character '

drivers/misc/mediatek/prize/aw2028_led/Kconfig:4:warning: ignoring un'upported character '

drivers/misc/mediatek/prize/aw2015/Kconfig:1:warning: ignoring unsupp'rted character '

drivers/misc/mediatek/prize/aw2015/Kconfig:2:warning: ignoring unsupp'rted character '

drivers/misc/mediatek/prize/aw2015/Kconfig:3:warning: ignoring unsupp'rted character '

drivers/misc/mediatek/prize/aw2015/Kconfig:4:warning: ignoring unsupp'rted character '

drivers/misc/mediatek/prize/aw2016a/Kconfig:1:warning: ignoring unsup'orted character '

drivers/misc/mediatek/prize/aw2016a/Kconfig:2:warning: ignoring unsup'orted character '

drivers/misc/mediatek/prize/aw2016a/Kconfig:3:warning: ignoring unsup'orted character '

drivers/misc/mediatek/prize/ir_camera_motor/Kconfig:1:warning: ignori'g unsupported character '

drivers/misc/mediatek/prize/ir_camera_motor/Kconfig:2:warning: ignori'g unsupported character '

drivers/misc/mediatek/prize/ir_camera_motor/Kconfig:3:warning: ignori'g unsupported character '

drivers/misc/mediatek/prize/ir_camera_motor/Kconfig:4:warning: ignori'g unsupported character '

drivers/misc/mediatek/prize/laser_light_gpio/Kconfig:1:warning: ignor'ng unsupported character '

drivers/misc/mediatek/prize/laser_light_gpio/Kconfig:2:warning: ignor'ng unsupported character '

drivers/misc/mediatek/prize/laser_light_gpio/Kconfig:3:warning: ignor'ng unsupported character '

drivers/misc/mediatek/prize/laser_light_gpio/Kconfig:4:warning: ignor'ng unsupported character '

drivers/input/touchscreen/mediatek/HX83112/Kconfig:5:warning: ignoring type redefinition of 'TOUCHSCREEN_HIMAX_I2C' from 'boolean' to 'tristate'

drivers/input/touchscreen/mediatek/HX83112/Kconfig:11:warning: ignoring type redefinition of 'TOUCHSCREEN_HIMAX_DEBUG' from 'boolean' to 'tristate'

drivers/input/touchscreen/mediatek/HX83112/Kconfig:23:warning: ignoring type redefinition of 'HMX_DB' from 'boolean' to 'tristate'

drivers/input/touchscreen/touch_8789p1_8185p3/8185p3_8789p1/Kconfig:13:warning: ignoring type redefinition of 'TOUCHSCREEN_HIMAX_COMMON' from 'tristate' to 'boolean'

drivers/input/touchscreen/hxchipset_spi/Kconfig:17:warning: choice value used outside its choice group

drivers/input/touchscreen/touch_8789p1_8185p3/8185p3_8789p1/Kconfig:22:warning: choice value used outside its choice group

drivers/input/touchscreen/hxchipset_spi/Kconfig:23:warning: choice value used outside its choice group

arch/arm64/Makefile:57: Detected assembler with broken .inst; disassembly will be unreliable

CHK include/config/kernel.release

UPD include/config/kernel.release

GEN ./Makefile

WRAP arch/arm64/include/generated/uapi/asm/errno.h

WRAP arch/arm64/include/generated/uapi/asm/ioctl.h

WRAP arch/arm64/include/generated/uapi/asm/ioctls.h

WRAP arch/arm64/include/generated/uapi/asm/ipcbuf.h

WRAP arch/arm64/include/generated/uapi/asm/kvm_para.h

WRAP arch/arm64/include/generated/uapi/asm/mman.h

WRAP arch/arm64/include/generated/uapi/asm/msgbuf.h

WRAP arch/arm64/include/generated/uapi/asm/poll.h

WRAP arch/arm64/include/generated/uapi/asm/resource.h

WRAP arch/arm64/include/generated/uapi/asm/sembuf.h

WRAP arch/arm64/include/generated/uapi/asm/shmbuf.h

WRAP arch/arm64/include/generated/uapi/asm/socket.h

WRAP arch/arm64/include/generated/uapi/asm/sockios.h

WRAP arch/arm64/include/generated/uapi/asm/swab.h

CHK include/generated/uapi/linux/version.h

WRAP arch/arm64/include/generated/uapi/asm/termbits.h

WRAP arch/arm64/include/generated/uapi/asm/termios.h

UPD include/generated/uapi/linux/version.h

WRAP arch/arm64/include/generated/uapi/asm/types.h

CHK include/generated/utsrelease.h

UPD include/generated/utsrelease.h

HOSTCC scripts/basic/fixdep

HOSTCC scripts/basic/bin2c

..

..

FDVT: Drv use 5.0 folder

..

..

..

..

*GPU CONFIG_MTK_FREQ_HOPPING = Y

*GPU MT_GPUFREQ_BRINGUP = 0

*GPU MT_GPUFREQ_GED_READY = 1

*GPU MT_GPUFREQ_KICKER_PBM_READY = 1

*GPU MT_GPUFREQ_STATIC_PWR_READY2USE = 1

*GPU MT_GPUFREQ_LOW_BATT_VOLT_PROTECT = 1

*GPU MT_GPUFREQ_BATT_PERCENT_PROTECT = 1

*GPU MT_GPUFREQ_BATT_OC_PROTECT = 1

*GPU MT_GPUFREQ_DYNAMIC_POWER_TABLE_UPDATE = 1

*GPU MT_GPUFREQ_SETTLE_TIME_PROFILE = 0

MTK_GPU_VERSION 1 = mali

************ drivers/trusty/mtee-kree mk ************

imgsensor drv by common ../common/v1_1/s5k4h7yx_mipi_raw/ ../common/v1_1/imx582_mipi_raw/ ../common/v1_1/s5k3p3sx_mipi_raw/ ../common/v1_1/gc02m2_mipi_raw/ ../common/v1_1/s5kgm1st_mipi_raw/ ../common/v1_1/s5kgm1stgms_mipi_raw/ ../common/v1_1/s5k3p3sxgms_mipi_raw/

imgsensor drv by platform

*MTK_GPU_VERSION 2 = bifrost

*MTK_GPU_VERSION 3 = r25p0

mali MTK evironment, building r19p0 DDK

mtk-Kbuild CONFIG_MALI_PLATFORM_THIRDPARTY := y

mtk-Kbuild CONFIG_MALI_PLATFORM_THIRDPARTY_NAME := "mt6785"

*GPU defined GPU BM QoS 2.0

mali MTK evironment, building r19p0 DDK

mtk-Kbuild CONFIG_MALI_PLATFORM_THIRDPARTY := y

mtk-Kbuild CONFIG_MALI_PLATFORM_THIRDPARTY_NAME := "mt6785"

*GPU defined GPU BM QoS 2.0

mali MTK evironment, building r19p0 DDK

mtk-Kbuild CONFIG_MALI_PLATFORM_THIRDPARTY := y

mtk-Kbuild CONFIG_MALI_PLATFORM_THIRDPARTY_NAME := "mt6785"

*GPU defined GPU BM QoS 2.0

Using .. as source for kernel

WRAP arch/arm64/include/generated/asm/bugs.h

WRAP arch/arm64/include/generated/asm/clkdev.h

WRAP arch/arm64/include/generated/asm/delay.h

WRAP arch/arm64/include/generated/asm/div64.h

WRAP arch/arm64/include/generated/asm/dma.h

WRAP arch/arm64/include/generated/asm/dma-contiguous.h

WRAP arch/arm64/include/generated/asm/early_ioremap.h

WRAP arch/arm64/include/generated/asm/emergency-restart.h

WRAP arch/arm64/include/generated/asm/hw_irq.h

WRAP arch/arm64/include/generated/asm/irq_regs.h

WRAP arch/arm64/include/generated/asm/kdebug.h

WRAP arch/arm64/include/generated/asm/kmap_types.h

WRAP arch/arm64/include/generated/asm/local.h

WRAP arch/arm64/include/generated/asm/local64.h

WRAP arch/arm64/include/generated/asm/mcs_spinlock.h

WRAP arch/arm64/include/generated/asm/mm-arch-hooks.h

WRAP arch/arm64/include/generated/asm/msi.h

WRAP arch/arm64/include/generated/asm/preempt.h

WRAP arch/arm64/include/generated/asm/rwsem.h

WRAP arch/arm64/include/generated/asm/segment.h

WRAP arch/arm64/include/generated/asm/serial.h

WRAP arch/arm64/include/generated/asm/set_memory.h

WRAP arch/arm64/include/generated/asm/sizes.h

WRAP arch/arm64/include/generated/asm/switch_to.h

WRAP arch/arm64/include/generated/asm/trace_clock.h

WRAP arch/arm64/include/generated/asm/unaligned.h

WRAP arch/arm64/include/generated/asm/user.h

WRAP arch/arm64/include/generated/asm/vga.h

WRAP arch/arm64/include/generated/asm/xor.h

"CONFIG_MICROTRUST_TEE_VERSION="300""

"CONFIG_MICROTRUST_TEE_SUPPORT=y"

"CONFIG_MICROTRUST_TZ_DRIVER=Y"

"CONFIG_MICROTRUST_VFS_DRIVER=Y"

"CONFIG_MICROTRUST_FP_DRIVER=Y"

"CONFIG_MICROTRUST_DEBUG="

"CONFIG_MICROTRUST_TEST_DRIVERS="

TCORE_UT_TESTS_SUPPORT = n

TCORE_PROFILING_SUPPORT = n

TCORE_PROFILING_AUTO_DUMP = n

TCORE_MEMORY_LEAK_DETECTION_SUPPORT = n

HOSTCC scripts/kallsyms

HOSTCC scripts/pnmtologo

HOSTCC scripts/dtc/dtc.o

HOSTCC scripts/dtc/flattree.o

HOSTCC scripts/genksyms/genksyms.o

CC scripts/mod/empty.o

HOSTCC scripts/selinux/genheaders/genheaders

/usr/bin/as: unrecognized option '-EL'

clang: error: assembler command failed with exit code 1 (use -v to see invocation)

make[3]: *** [../scripts/Makefile.build:357: scripts/mod/empty.o] Error 1

make[2]: *** [../scripts/Makefile.build:671: scripts/mod] Error 2

make[2]: *** Waiting for unfinished jobs....

HOSTCC scripts/selinux/mdp/mdp

CC kernel/bounds.s

HOSTCC scripts/dtc/fstree.o

HOSTCC scripts/dtc/data.o

CHK include/generated/timeconst.h

UPD include/generated/timeconst.h

CHK include/generated/bounds.h

HOSTCC scripts/dtc/livetree.o

UPD include/generated/bounds.h

CC arch/arm64/kernel/asm-offsets.s

HOSTCC scripts/dtc/treesource.o

HOSTCC scripts/dtc/srcpos.o

HOSTCC scripts/dtc/checks.o

SHIPPED scripts/genksyms/parse.tab.c

SHIPPED scripts/genksyms/lex.lex.c

SHIPPED scripts/genksyms/parse.tab.h

HOSTCC scripts/genksyms/parse.tab.o

HOSTCC scripts/dtc/util.o

SHIPPED scripts/dtc/dtc-lexer.lex.c

SHIPPED scripts/dtc/dtc-parser.tab.h

SHIPPED scripts/dtc/dtc-parser.tab.c

HOSTCC scripts/dtc/dtc-lexer.lex.o

HOSTCC scripts/dtc/dtc-parser.tab.o

HOSTCC scripts/genksyms/lex.lex.o

HOSTLD scripts/dtc/dtc

In file included from ../arch/arm64/kernel/asm-offsets.c:24:

In file included from ../include/linux/kvm_host.h:38:

In file included from ../arch/arm64/include/asm/kvm_host.h:39:

In file included from ../include/kvm/arm_pmu.h:21:

In file included from ../include/linux/perf_event.h:56:

In file included from ../include/linux/cgroup.h:27:

../include/linux/cgroup-defs.h:404:16: warning: field 'cgrp' with variable sized type 'struct cgroup' not at the end of a struct or class is a GNU extension [-Wgnu-variable-sized-type-not-at-end]

struct cgroup cgrp;

^

1 warning generated.

CHK include/generated/asm-offsets.h

UPD include/generated/asm-offsets.h

CALL ../scripts/checksyscalls.sh

make[2]: *** No rule to make target 'arch/arm64/kernel/vdso/vdso.lds', needed by 'arch/arm64/kernel/vdso/vdso.so.dbg'. Stop.

make[1]: *** [arch/arm64/Makefile:223: vdso_prepare] Error 2

make[1]: *** Waiting for unfinished jobs....

HOSTLD scripts/genksyms/genksyms

make[1]: *** [/root/Power-Armor-13/kernel-4.14/Makefile:580: scripts] Error 2

make[1]: Leaving directory '/root/Power-Armor-13/kernel-4.14/out'

make: *** [Makefile:146: sub-make] Error 2