Getting error while building the IMX8M Mini android 10 source code

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

Getting error while building the IMX8M Mini android 10 source code

10,293 Views
shamiullah
Contributor III

Hi

I am getting the following error while building android 10 for imx8m mini evk board. I have followed Android_User's_Guide.pdf and downloaded the toolchain but the toolchain gcc-arm-8.3-2019.03-x86_64-aarch64-elf.tar.xz and followed the procedure mentioned in the document. But the toolchain is not exporting.

#!/bin/sh
export PATH=$PATH:/opt/toolchain/gcc-arm-8.3-2019.03-x86_64-aarch64-elf/bin
export ARCH=aarch64
export CROSS_COMPILE=aarch64-elf-

Is there anything to do further? I am assuming the error is because of toolchain.

The log for the following command is attached in build_log3.txt

$ ./imx-make.sh bootimage 2>&1 | tee build_log3.txt

 

0 Kudos
Reply
16 Replies

10,212 Views
shamiullah
Contributor III

$ ./imx-make.sh -j2

[W][2021-03-09T17:00:10+0530][13357] void cmdline::logParams(nsjconf_t *)():250 Process will be UID/EUID=0 in the global user namespace, and will have user root-level access to files
[W][2021-03-09T17:00:10+0530][13357] void cmdline::logParams(nsjconf_t *)():260 Process will be GID/EGID=0 in the global user namespace, and will have group root-level access to files
build/make/core/dex_preopt_config.mk:162: error: fopen failed.
17:00:12 dumpvars failed with: exit status 1

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

 

I am getting the above error when i am compiling source for android 10 .

0 Kudos
Reply

10,225 Views
shamiullah
Contributor III

Hi

I used the above-mentioned command but I am facing the same issue. Please find the attachment

0 Kudos
Reply

10,241 Views
shamiullah
Contributor III

Please go through the attachment for error logs

0 Kudos
Reply

10,288 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

 

Please put export into ~/.bashrc and the source ~/.bashrc :

export PATH=$PATH:/opt/toolchain/gcc-arm-8.3-2019.03-x86_64-aarch64-elf/bin
export ARCH=aarch64
export CROSS_COMPILE=aarch64-elf-

0 Kudos
Reply

10,285 Views
shamiullah
Contributor III

hi,

I have done the procedure which you have suggested to me but again I am getting the same error.

Please go through the attached file for logs

Tags (2)
0 Kudos
Reply

10,243 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

 

Correct command in ~/.bashrc:

export AARCH64_GCC_CROSS_COMPILE=/opt/gcc-arm-8.3-2019.03-x86_64-aarch64-elf/bin/aarch64-elf-

0 Kudos
Reply

10,230 Views
shamiullah
Contributor III

Hi

I used the above-mentioned command but I am facing the same issue. Please find the attachment

Thanks & Regards,

Shamiullah.

0 Kudos
Reply

10,221 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

 

This is your system issue,not bsp issue.

0 Kudos
Reply

10,209 Views
shamiullah
Contributor III

Hi ,

Thanks for your response.

I got resolved that error and now I am facing some new issue regarding the vendor. Please find the attachment for error logs

0 Kudos
Reply

9,560 Views
danielenderle
Contributor II

Hi Shamiullah,

could you please share how you have overcome this problem:

[W][2021-03-09T17:00:10+0530][13357] void cmdline::logParams(nsjconf_t *)():260 Process will be GID/EGID=0 in the global user namespace, and will have group root-level access to files

 

Thanks in advance,

Daniel

0 Kudos
Reply

10,204 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

This is correct android_build folder

0 Kudos
Reply

10,197 Views
shamiullah
Contributor III

Hi nxf65025,

Thanks for your response. I am not getting the point that you mentioned in the picture. Can you please explain to me in detail.

Please let me know if any.....

Thanks & Regards,

shammi

0 Kudos
Reply

10,193 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

The android_buiid folder should not in imx-android-11.0.0_1.0.0

0 Kudos
Reply

10,188 Views
shamiullah
Contributor III

Hi nxf65025,

Thanks for your response. Is that the cause of the error? I am running a script that automatically creates a build directory and syncs the source in that folder.  I am getting an error regarding the files which are already defined. I am getting an error regarding the soong minibootstrap.

 

Thanks & Regards

Shami

 

0 Kudos
Reply

10,168 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Some files in android_buid are copied from imx_android_11,so if you put the android_build in imx_android_11,it must get  files which are already defined

0 Kudos
Reply

10,160 Views
shamiullah
Contributor III

Hi nxf65025,

I am having space of around 25GB in my PC. But I am getting the heap space error.

Please find the attached document for error logs

Thanks & Regards

Shamiullah

0 Kudos
Reply