Forums - Build the apps processor Android HLOS images

4 posts / 0 new
Last post
Build the apps processor Android HLOS images
zhaoxizhaoxi
Join Date: 27 May 22
Posts: 4
Posted: Mon, 2022-05-30 20:49

git: https://chipmaster2.qti.qualcomm.com/home2/git/beijing-xiaoju-intelligen...

Release Tag:r00007.1

I copy build/make/envsetup.sh to build/

I copy build/make/Android.bp to ./

when i run make -j6:

 

make -j6

Restriction Checker not present, skipping..
11:44:49 ************************************************************
11:44:49 You are building on a machine with 15.4GB of RAM
11:44:49 
11:44:49 The minimum required amount of free memory is around 16GB,
11:44:49 and even with that, some configurations may not work.
11:44:49 
11:44:49 If you run into segfaults or other errors, try reducing your
11:44:49 -j value.
11:44:49 ************************************************************
device/qcom/msmnile_au/BoardConfig.mk:295: warning: #### QGKI config ####
ls: out/target/product/msmnile_au/dlkm/lib/modules/*.ko: No such file or directory
build/make/core/soong_config.mk:195: warning: BOARD_PLAT_PUBLIC_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS instead.
build/make/core/soong_config.mk:196: warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=12
TARGET_PRODUCT=msmnile_au
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
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-5.4.0-113-generic-x86_64-Ubuntu-18.04.6-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=SP1A.210812.015
OUT_DIR=out
============================================
[100% 1/1] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
FAILED: out/soong/build.ninja
cd "$(dirname "out/soong/.bootstrap/bin/soong_build")" && BUILDER="$PWD/$(basename "out/soong/.bootstrap/bin/soong_build")" && cd / && "$BUILDER"     --top "$TOP"     --out "out/soong"     -n "out"     -d "out/soong/build.ninja.d"     -t -l out/.module_paths/Android.bp.list -globFile out/soong/.bootstrap/build-globs.ninja -o out/soong/build.ninja --available_env out/soong/soong.environment.available --used_env out/soong/soong.environment.used Android.bp
Clang SA is not enabled
error: build/make/Android.bp:34:1: module "build_make_license" already defined
       Android.bp:34:1 <-- previous definition here
error: hardware/qcom/sdm845/display/Android.bp:30:1: module "display_defaults" already defined
       hardware/qcom/display/Android.bp:1:1 <-- previous definition here
error: hardware/qcom/sdm845/display/Android.bp:47:1: module "display_headers" already defined
       hardware/qcom/display/Android.bp:18:1 <-- previous definition here
error: hardware/qcom/sdm845/display/Android.bp:66:1: module "display_intf_headers" already defined
       vendor/qcom/opensource/commonsys-intf/display/Android.bp:1:1 <-- previous definition here
error: hardware/qcom/sdm845/display/libqservice/Android.bp:12:1: module "libqservice" already defined
       hardware/qcom/display/libqservice/Android.bp:1:1 <-- previous definition here
error: hardware/qcom/sdm845/display/libqdutils/Android.bp:10:1: module "libqdutils" already defined
       hardware/qcom/display/libqdutils/Android.bp:1:1 <-- previous definition here
error: hardware/qcom/sdm845/display/libqdutils/Android.bp:29:1: module "libqdMetaData" already defined
       vendor/qcom/opensource/commonsys-intf/display/libqdmetadata/Android.bp:1:1 <-- previous definition here
11:44:52 soong bootstrap failed with: exit status 1
 
#### failed to build some targets (3 seconds) ####
 
#### hidl-gen compilation failed, check above errors ####
 
 
 
what should i do to avoid those errors.
Thanks in advance.
  • Up0
  • Down0
mengdiz
Join Date: 6 Dec 21
Posts: 27
Posted: Tue, 2022-05-31 02:51

Hi 

You code is duplicate, please remove one file you don't need. if your platform is not smd845, please remove this folder.

 hardware/qcom/sdm845/display/Android.bp
       hardware/qcom/display/Android.bp
  • Up0
  • Down0
zhaoxizhaoxi
Join Date: 27 May 22
Posts: 4
Posted: Tue, 2022-05-31 18:32

i fixed above error and meet below error:

environment variables changed value:
   ALLOW_MISSING_DEPENDENCIES ("true" -> "")
[100% 3/3] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
Clang SA is not enabled
FAILED: ninja: 'out/target/product/msmnile_au/obj_arm/SHARED_LIBRARIES/[email protected]_intermediates/[email protected]', needed by 'out/target/product/msmnile_au/obj_arm/SHARED_LIBRARIES/libplatformconfig_intermediates/LINKED/libplatformconfig.so', missing and no known rule to make it
09:11:46 ninja failed with: exit status 1
 
 
what should i do?Thanks in advanced.
  • Up0
  • Down0
mengdiz
Join Date: 6 Dec 21
Posts: 27
Posted: Sun, 2023-02-05 23:23

Hi customer,

error log show your miss [email protected]

could you check your code path whether exist below path?

vendor/qcom/proprietary/configstore/CapabilityConfigStoreTestapp/

 

Android.bpH A D09-Jun-2020408

 

capabilitytest.cppH A D09-Jun-20202.5 KiB

 

capabilitytest.hH A D09-Jun-2020496

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.