build imx8m image failed.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

build imx8m image failed.

Jump to solution
2,774 Views
chris4
Contributor II

Hi I using ubuntu 18.04 version. follow android user guide.pdf. build android image for imx8. It's failed. The result below:

source build/envsetup.sh
including device/asus/fugu/vendorsetup.sh
including device/fsl/imx6/vendorsetup.sh
including device/fsl/imx7/vendorsetup.sh
including device/fsl/imx8/vendorsetup.sh
including device/generic/car/vendorsetup.sh
including device/generic/mini-emulator-arm64/vendorsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/generic/mini-emulator-mips/vendorsetup.sh
including device/generic/mini-emulator-mips64/vendorsetup.sh
including device/generic/mini-emulator-x86/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/generic/uml/vendorsetup.sh
including device/google/dragon/vendorsetup.sh
including device/google/marlin/vendorsetup.sh
including device/google/muskie/vendorsetup.sh
including device/google/taimen/vendorsetup.sh
including device/huawei/angler/vendorsetup.sh
including device/lge/bullhead/vendorsetup.sh
including device/linaro/hikey/vendorsetup.sh
including sdk/bash_completion/adb.bash
chris@chris-MS-7B24:~/android_build$ lunch evk_8mq-userdebug

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=evk_8mq
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_PLATFORM_VERSION=OPM1
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a9
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-29-generic-x86_64-with-Ubuntu-18.04-bionic
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=1.3.0-rfp-rc3
OUT_DIR=out
AUX_OS_VARIANT_LIST=
============================================
chris@chris-MS-7B24:~/android_build$ make –j16
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=evk_8mq
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a9
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-29-generic-x86_64-with-Ubuntu-18.04-bionic
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=1.3.0-rfp-rc3
OUT_DIR=out
============================================
[44/44] bootstrap out/soong/.minibootstrap/build.ninja.in
[4/4] out/soong/.bootstrap/bin/minibp out/soong/.bootstrap/build.ninja
[860/861] glob vendor/*/*/Android.bp
[54/54] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
out/build-evk_8mq.ninja is missing, regenerating...
[231/1031] including ./external/libdrm/Android.mk ...
external/libdrm/libkms/Android.mk:23: warning: invalid GPU drivers: vivante
[249/1031] including ./external/mesa3d/Android.mk ...
./external/mesa3d/Android.mk:52: warning: invalid GPU drivers: vivante
[683/1031] including ./system/sepolicy/Android.mk ...
./system/sepolicy/Android.mk:111: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[690/1031] including ./system/update_engine/Android.mk ...
./system/update_engine/Android.mk:504: warning: No PRODUCT_STATIC_BOOT_CONTROL_HAL configured but AB_OTA_UPDATER is true, no update sideload support.
[1031/1031] including ./vendor/nxp/linux-firmware-imx/firmware/Android.mk ...
PRODUCT_COPY_FILES external/linux-firmware/ath10k/QCA6174/hw3.0/board.bin:vendor/firmware/ath10k/QCA6174/hw3.0/board.bin ignored.
No private recovery resources for TARGET_DEVICE evk_8mq
platform_testing/build/tasks/tests/instrumentation_metric_test_list.mk: warning: continuous_instrumentation_metric_tests: Unknown installed file for module perf-setup.sh
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module RecyclerViewTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module SettingsFunctionalTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module LauncherFunctionalTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module EmergencyInfoTests
platform_testing/build/tasks/tests/native_metric_test_list.mk: warning: continuous_native_metric_tests: Unknown installed file for module perf-setup.sh
build/core/Makefile:34: warning: overriding commands for target `out/target/product/evk_8mq/root/init.rc'
build/core/base_rules.mk:390: warning: ignoring old commands for target `out/target/product/evk_8mq/root/init.rc'
[ 99% 1438/1439] glob vendor/*/*/Android.bp
ninja: error: unknown target '–j16'
16:33:24 ninja failed with: exit status 1

Have any suggestion ?

Labels (1)
1 Solution
2,019 Views
chris4
Contributor II

Hi gusarambula: This problem already fixed. thanks you guidline.

View solution in original post

0 Kudos
Reply
2 Replies
2,020 Views
chris4
Contributor II

Hi gusarambula: This problem already fixed. thanks you guidline.

0 Kudos
Reply
2,019 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Chris Lin,

Is this problem still present? The setup looks okay. It could be that the -j16 is using the long dash instead of the sort and that that is the problem. I would try running make and if this problem is not present trying with the -j16 instruction with the short (regular) dash.

I hope this helps!

Regards,