Build error while building AOSP for phycore imx8m plus.

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

Build error while building AOSP for phycore imx8m plus.

3,663 Views
ducho7783
Contributor III

Hi,
I'm building Androd 11 for my Phytec Board but i'm geting this error while building AOSP.

FAILED: out/soong/.minibootstrap/minibp
out/soong/.bootstrap/build.ninja
Outputs: out/soong/.bootstrap/build.ninja


Error: exited with code: 1

Command: out/soong/.minibootstrap/minibp -t -l out/.module_paths/Android.bp.list -b out/soong -n out -d out/soong/.bootstrap/build.ninja.d -globFile out/soong/.minibootstrap/build-globs.ninja -o out/soong/.bootstrap/build.ninja Android.bp

Output:

^[[31merror:^[[0m build/tools/fs_config/Android.bp:15:1: module "soong-fs_config" already defined
build/make/tools/fs_config/Android.bp:15:1 <-- previous definition here



if someone knows this issue give your inputs here please.


Thanks

0 Kudos
Reply
5 Replies

3,642 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hello @ducho7783 ,

I hope you are doing well.

->Please check whether the ninja process is running or not when this error occurred.
->If this process is not running and killed then maybe it tries to use so much RAM at a time to fetch the data.

->Please try to make using -j2.
the whole command is given below.
./imx-make.sh -j2 or one can follow the below command sequence to achieve the same result.

# Build U-Boot/kernel with imx-make.sh first, but not to build Android images.
./imx-make.sh bootloader kernel -j2
# Start the process of building Android images with the "make" function.
make -j2

It may help!

Thanks & Regards,

Sanket Parekh

0 Kudos
Reply

3,636 Views
ducho7783
Contributor III

Hi @Sanket_Parekh ,

Even after following the steps that you have sent, the issue is not getting resolved.

Error logs are given below. 

engineer@mctl-embr243:~/Android_NXP/android_build$ make -j2
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=11
TARGET_PRODUCT=phyboard_pollux
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-5.13.0-30-generic-x86_64-Ubuntu-20.04.6-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=RQ1A.201205.003
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=device/generic/goldfish device/generic/goldfish-opengl external/mesa3d vendor/nxp-opensource/imx/power hardware/google/pixel vendor/partner_gms hardware/google/camera vendor/nxp-opensour
ce/imx/camera
============================================
[100% 1/1] out/soong/.minibootstrap/minibp out/soong/.bootstrap/build.ninja
FAILED: out/soong/.bootstrap/build.ninja
out/soong/.minibootstrap/minibp -t -l out/.module_paths/Android.bp.list -b out/soong -n out -d out/soong/.bootstrap/build.ninja.d -globFile out/soong/.minibootstrap/build-globs.ninja -o out/soong/.bootstrap/buil
d.ninja Android.bp
error: build/make/tools/fs_config/Android.bp:15:1: module "soong-fs_config" already defined
build/tools/fs_config/Android.bp:15:1 <-- previous definition here
11:30:53 soong minibootstrap failed with: exit status 1

#### failed to build some targets (20 seconds) ####

Please provide some inputs to resolve this issue.

Thanks

 

 

0 Kudos
Reply

3,622 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hello @ducho7783 ,

I hope you are doing well.

->From the logs it is seen that the soong-fs_config module is defined at build/tools/fs_config/Android.bp but before it is defined build/make/tools/fs_config/Android.bp here.
So there is a conflict of definition here.

Please try removing the definition from any of the locations and then recompile it.
It may happen due to multiple definitions in Android build dir.

Please share the observation.

Thanks & Regards,

Sanket Parekh

0 Kudos
Reply

3,616 Views
ducho7783
Contributor III

Hi @Sanket_Parekh ,

Thank you for your response,

I have tried the same thing what you have suggested, I removed this definition but it was giving some other error related to this.

Note: I tried to build the source code in different machine there it is working fine

Actually I copied whole source code from the machine where it was working fine, to the other new machine and here it is not building properly.

Can you please give some input on this.

Thanks.

0 Kudos
Reply

3,611 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hello @ducho7783 ,

I hope you are doing well.

->Please Make sure where you copied the whole source code has the required packages to build the source code.
I have mentioned them below, please check them.
sudo apt-get install uuid uuid-dev  zlib1g-dev liblz-dev  liblzo2-2 liblzo2-dev  lzop  git curl  u-boot-tools  mtd-utils  android-sdk-libsparse-utils  android-sdk-ext4-utils  device-tree-compiler  gdisk  m4  zlib1g-dev  bison  flex make  libssl-dev  gcc-multilib libghc-gnutls-dev  swig  liblz4-tool  liblz4-tool  libdw-dev  dwarves  bc cpio tar lz4 rsync  ninja-build clang

->Please also make sure to set the environment that is recommended.
I have mentioned them below, please check them.
export PATH=${PATH}:~/bin
export MY_ANDROID=`pwd`
export AARCH64_GCC_CROSS_COMPILE=/opt/gcc-arm-9.2-2019.12-x86_64-aarch64-none-elf/bin/aarch64-none-elf-
export CLANG_PATH=/opt/prebuilt-android-clang

Now try to build after setting these env variables.
Please follow the Android user guide for sequential steps.
https://www.nxp.com/docs/en/user-guide/ANDROID_USERS_GUIDE.pdf

Thanks & Regards,

Sanket Parekh

0 Kudos
Reply