Android 11 buid: media_codecs_c2_temp.xml missing

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

Android 11 buid: media_codecs_c2_temp.xml missing

1,100 Views
danielenderle
Contributor II

Hello

I'm trying to build Android 11 for i.MX8M Mini.

 

My build environment looks as follows:

Ubuntu 18.04 (running in a docker container)

Installed depencies given by Google

git-core gnupg flex bison build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev libgl1-mesa-dev libxml2-utils xsltproc unzip fontconfig

Installed depencies given by NXP guide

uuid uuid-dev zlib1g-dev liblz-dev liblzo2-2 liblzo2-dev lzop git-core curl u-boot-tools mtd-utils android-tools-fsutils device-tree-compiler gdisk m4 libz-dev bison flex libssl-dev gcc-multilib

Installed depencies given by my own to avoid other build errors

xz-utils bc cpio rsync

 

Currently I'm running into following build error:

...
-Werror -fexceptions -D'OVXLIB_API=__attribute__((visibility("default")))' -Wno-unused-parameter -Wno-implicit-fallthrough -frtti -DANDROID_SDK_VERSION=30 -DGIT_STRING='d2bc4dd'
[ 97% 441/452] including vendor/nxp/fsl-codec/Android.mk ...
[ 97% 442/452] including vendor/nxp/fsl-proprietary/apks/Android.mk ...
[ 98% 443/452] including vendor/nxp/fsl-proprietary/bcm/Android.mk ...
[ 98% 444/452] including vendor/nxp/fsl-proprietary/fsl-dpu/Android.mk ...
[ 98% 445/452] including vendor/nxp/fsl-proprietary/gpu-viv/Android.mk ...
[ 98% 446/452] including vendor/nxp/fsl-proprietary/test/Android.mk ...
[ 98% 447/452] including vendor/nxp/imx_android_mm/CactusPlayer/Android.mk ...
[ 99% 448/452] including vendor/nxp/imx_android_mm/codec2/store/registry/Android.mk ...
[ 99% 449/452] including vendor/nxp/linux-firmware-imx/firmware/Android.mk ...
[ 99% 450/452] including out/soong/late-trizeps8mini.mk ...
[ 99% 451/452] finishing build rules ...
[100% 452/452] writing build rules ...
[W][2021-07-27T07:14:30+0000][399818] 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-07-27T07:14:30+0000][399818] 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
out/build-trizeps8mini-package.ninja is missing, regenerating...
[ 99% 453/455] initializing packaging system ...
[ 99% 454/455] including distdir.mk ...
[100% 455/455] writing packaging rules ...
Starting ninja...
[W][2021-07-27T07:14:30+0000][399852] 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-07-27T07:14:30+0000][399852] 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
FAILED: ninja: 'vendor/nxp/imx_android_mm/mediacodec-profile/imx8mm/media_codecs_c2_temp.xml', needed by 'out/target/product/trizeps8mini/obj/ETC/media_codecs_c2.xml_intermediates/media_codecs_c2.xml', missing and no known rule to make it
07:14:31 ninja failed with: exit status 1

It seems to me that media_codecs_c2_temp.xml should normaly gets temporarily autogenerated during build and get deleted afterwards again.

 

Is there someone who can help me out?

 

Thank you in advance,

Daniel

0 Kudos
5 Replies

870 Views
SixFlag
Contributor I

i meet the same error,and i found the docker state Block IO going bigger。

my env is also docker,i have no idea about this,i suspect that is the problem about ulimit 。Do you solved it?,or give me some suggestions 

0 Kudos

863 Views
danielenderle
Contributor II

On our first setup we wanted to keep the sources outside the docker, that means on the host machine, and only do the build necessary jobs inside the docker, getting the AOSP from a mounted folder.

We found out, that our problems came because of some access right problems from the user inside the docker during the build, which tries to create temporary files in the AOSP code directory.

Having the AOSP code inside the docker works for us.

0 Kudos

1,079 Views
danielenderle
Contributor II

Attended to the build setup described above, i started the build setup as follows:

 

source build/envsetup.sh
lunch evk_8mm-userdebug
./imx-make.sh -j4 2>&1 | tee build-log.txt

 

One more hint, as i found out in my docker container, it looks like some sub build process in the build runs as user "nobody".

It looks like this user is unable to create the temporary file "media_codecs_c2_temp.xml", which is needed later during build process.

0 Kudos

1,070 Views
jimmychan
NXP TechSupport
NXP TechSupport

I tried to build again. There is still no error.

Here are the steps of mine.

1. I download the Install Source Package​​. Then "source ~/imx-android-11.0.0_2.2.0/imx_android_setup.sh"

2. I use the gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu.tar.xz.

3. export the "AARCH64_GCC_CROSS_COMPILE" and "CLANG_PATH"

4. cd android_build

5. source build/envsetup.s

6. lunch evk_8mm-userdebug

7. ./imx-make.sh -j4 2>&1 | tee build-log.txt

 

My host is Ubuntu 18.04.3 LTS.

0 Kudos

1,083 Views
jimmychan
NXP TechSupport
NXP TechSupport

I tried to build it without this error.

Could you tell me the steps you used to the build? so I can try to reproduce the issue on my side.

0 Kudos