AnsweredAssumed Answered

Problem while compiling android p for imx6dl sabresd board

Question asked by VIVEK TOL on Aug 1, 2018
Latest reply on Aug 1, 2018 by gusarambula

Hello,

           I am compiling android P source beta version for imx6dl sabresd board.

 

my kernel version is 4.9.17  (same as Oreo)

 

While doing make I am getting below error ---

 

build/make/core/Makefile was modified, regenerating...
[100% 1/1] initializing build system ...
/bin/bash: line 0: [: Q: integer expression expected
[ 62% 543/869] including system/sepolicy/Android.mk ...
system/sepolicy/Android.mk:79: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[ 98% 859/869] including vendor/nxp/fsl-codec/Android.mk ...
/bin/bash: line 0: [: Q: integer expression expected
[ 99% 868/869] finishing build rules ...
No private recovery resources for TARGET_DEVICE sabresd_6dq
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module TelecomUnitTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module TeleServiceTests
[100% 869/869] writing build rules ...
build/make/core/Makefile:34: warning: overriding commands for target `out/target/product/sabresd_6dq/root/init.rc'
build/make/core/base_rules.mk:413: warning: ignoring old commands for target `out/target/product/sabresd_6dq/root/init.rc'
[ 98% 872/884] build out/target/product/sabresd_6dq/obj/KERNEL_OBJ/.config
FAILED: out/target/product/sabresd_6dq/obj/KERNEL_OBJ/.config
/bin/bash -c "(make -j3 -C vendor/nxp-opensource/kernel_imx imx_v7_android_defconfig ARCH=arm CROSS_COMPILE=/home/ptg/Desktop/arm-linux-androideabi-4.9/bin/arm-linux-androideabi- LOADADDR=0x10008000 KCFLAGS=-mno-android ) && (install -D vendor/nxp-opensource/kernel_imx/.config out/target/product/sabresd_6dq/obj/KERNEL_OBJ/.config )"
make: Entering directory `/media/ptg/600e2f3c-f78b-42be-ab60-581dab9159ce/android_p/vendor/nxp-opensource/kernel_imx'
  HOSTCC  scripts/basic/fixdep
/bin/sh: 1: gcc: not found
make[1]: *** [scripts/basic/fixdep] Error 127
make: *** [scripts_basic] Error 2
make: Leaving directory `/media/ptg/600e2f3c-f78b-42be-ab60-581dab9159ce/android_p/vendor/nxp-opensource/kernel_imx'
17:38:33 ninja failed with: exit status 1

 

 

How to solve this problem.

Outcomes