Android Oreo compilation Problem

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

Android Oreo compilation Problem

6,918 Views
pavandornadula7
Contributor I

PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.0.0
TARGET_PRODUCT=aosp_arm
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-131-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPD1.170816.018
OUT_DIR=out
============================================
[1/2] out/soong/.bootstrap/bin/minibp out/soong/.minibootstrap/build.ninja.in
[2/2] bootstrap out/soong/.minibootstrap/build.ninja.in
[1/2] out/soong/.bootstrap/bin/minibp out/soong/.minibootstrap/build.ninja.in
ninja: no work to do.
ninja: no work to do.
build/core/main.mk:21: recipe for target 'run_soong_ui' failed

Labels (1)
0 Kudos
8 Replies

2,668 Views
marouene_boubakri
NXP Employee
NXP Employee

Dear Pavan,

A quick and dirty working solution:

$ cp -r vendor/nxp/* android_build/vendor/nxp‍‍‍‍‍

Then run make again

Regards

Maro

2,668 Views
nilson_oliveira
Contributor I

Hi, I've tried to do quick&dirty solution but it still gives me 'run_soong_ui' error on my var_mx6

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.0.0
TARGET_PRODUCT=var_mx6
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_PLATFORM_VERSION=OPD1
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-47-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=1.0.0-ga
OUT_DIR=out
AUX_OS_VARIANT_LIST=
============================================

---

COPY u-boot.bin
MKIMAGE u-boot.img
LD spl/fs/ext4/built-in.o
LD spl/fs/built-in.o
LD spl/u-boot-spl
OBJCOPY spl/u-boot-spl-nodtb.bin
COPY spl/u-boot-spl.bin
CFGS arch/arm/imx-common/spl_sd.cfg.cfgtmp
MKIMAGE SPL
CFGCHK u-boot.cfg
make[1]: Leaving directory '/media/nilson/69716c8f-0359-4303-a1aa-481e72f885ae1/imx6-variscite/imx-o8.0.0_1.0.0_ga/android_build/out/target/product/var_mx6/obj/BOOTLOADER_OBJ'
make: Leaving directory '/media/nilson/69716c8f-0359-4303-a1aa-481e72f885ae1/imx6-variscite/imx-o8.0.0_1.0.0_ga/android_build/vendor/variscite/uboot-imx'
/bin/bash: line 0: [: =: unary operator expected
ninja: build stopped: subcommand failed.
19:08:48 ninja failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1

Is there any alternative solution to get run_soong_ui target working?

0 Kudos

2,668 Views
nilson_oliveira
Contributor I

Just to let register the solution:

In my environment, I had an older version of make_ext4fs at /usr/bin which was confusing the build - as it was not using the properly binary on out/host/linux-x86/bin - so, make sure you're using the properly version of the tools in order to get the build done.

I figure it out looking at build log and right after reducing the build to only one job (make -j1) - when I could see that the make_ext4fs was failing.

0 Kudos

2,668 Views
ilanganor
Contributor I

I am having the exact same issue, can you specify exactly how did you resolve the issue?

I have completely deleted /usr/bin/make_ext4fs

0 Kudos

2,668 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Pavan Kumar,

I see that this thread was duplicated so I will delete the duplicated thread and you can follow up in this thread, if that’s okay with you.

From the log you shared it looks like you are not building for an i.MX board. Would you please let us know which i.MX board you want to build for? You would need to set the board to use using the lunch command and it should apprar in “TARGET_PRODUCT”.

As of right now your settings are for the aosp_arm, which, if I’m correct is a simple android build for development meant to be used with emulators. We do not support builds different than those listed on the i.MX Android BSP documentation.

I will be looking forward to hearing back from you!

Regards,

0 Kudos

2,668 Views
shreejith_nekka
Contributor I

Hello gusarambula,

Even I'm getting the similar issue for sabresd_6dq target board while compiling the fresh code.

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.0.0
TARGET_PRODUCT=sabresd_6dq
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-31-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=1.0.0-rfp-rc4
OUT_DIR=out
============================================

                  ------

                  ------

LD drivers/video/built-in.o
LD drivers/built-in.o
CC lib/efi_loader/helloworld.o
LD drivers/usb/gadget/built-in.o
LD lib/efi_loader/helloworld.so
OBJCOPY lib/efi_loader/helloworld.efi
CC lib/smbios.o
CC lib/display_options.o
LD lib/built-in.o
LD u-boot
OBJCOPY u-boot-nodtb.bin
OBJCOPY u-boot.srec
SYM u-boot.sym
CAT u-boot-dtb.bin
COPY u-boot.bin
MKIMAGE u-boot-dtb.imx
CFGCHK u-boot.cfg
make[1]: Leaving directory '/home/shreejith/android_build/out/target/product/sabresd_6dq/obj/BOOTLOADER_OBJ'
make: Leaving directory '/home/shreejith/android_build/vendor/nxp-opensource/uboot-imx'
/bin/bash: line 0: [: =: unary operator expected
ninja: build stopped: subcommand failed.
11:18:25 ninja failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1

Please help me out to solve the problem.

Regards,

Shreejith

0 Kudos

2,668 Views
pavandornadula7
Contributor I

dornadula.pavankumar@sysadmin-Vostro-470:~$ make
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.0.0
TARGET_PRODUCT=aosp_arm
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-131-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPD1.170816.018
OUT_DIR=out
============================================
[2/2] bootstrap out/soong/.minibootstrap/build.ninja.in
[2/2] bootstrap out/soong/.minibootstrap/build.ninja.in
ninja: no work to do.
[1/1] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
FAILED: out/soong/build.ninja
out/soong/.bootstrap/bin/soong_build -t -b out/soong -d out/soong/build.ninja.d -o out/soong/build.ninja Android.bp
error: frameworks/av/media/libstagefright/Android.bp:7:1: module "libstagefright" variant "android_arm_armv7-a_shared_core": source path vendor/nxp/fsl-codec/ghdr/common does not exist
ninja: build stopped: subcommand failed.
09:28:16 soong failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1

Steps : $ source build/envsetup.sh

              $ lunch sabresd_6dq-userdebug

             $ make 

Regards

Pavan

0 Kudos

2,668 Views
pavandornadula7
Contributor I

Where is thread and where i need to start to build oreo for my sabresd board . i am following android oreo user guide .

Regards

Pavan

0 Kudos