qemu build of WAM fails

Description

On master, I activate feature agl-html5-framework for qemu and build it in the docker environment.

It fails because it can not compile for host.

The first time it said that it can not find the include "#include <string>". It cames because my version of g++ is 4.9 and the version of yocto is 7 and it has the option --sysroot set.

So I dropped the line 93 of chromium68_git.bb to remove the definition of sysroot in host compiling environment.

--- a/meta-html5-framework/recipes-wam/chromium/chromium68_git.bb +++ b/meta-html5-framework/recipes-wam/chromium/chromium68_git.bb @@ -90,7 +90,6 @@ GN_ARGS = "\ ozone_auto_platforms=false\ proprietary_codecs=true\ target_os=\"linux\"\ - target_sysroot=\"${STAGING_DIR_HOST}\"\ treat_warnings_as_errors=false\ is_agl=true\ use_cbe=true\

It worked to achieve the correct "not setting sysroot" behaviour. But it then failed because it wasn't allowed to find include files from nss and nspr that are in recipe-sysroot-native.

I stop here. The solution is probably to build host tools in a separate step using "native" features and then to use the produced artifacts when build chromium.

Environment

None

Activity

Show:

Lorenzo 
October 2, 2019 at 8:41 AM

I could verify that the build is not failing now, and the image can be normally booted.

Jacobo Aragunde Pérez 
October 1, 2019 at 9:50 PM

The recipe received important changes in: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl-devel/+/21685

Among them, we stopped using the target_sysroot build configuration flag. We need to confirm if this bug was collaterally fixed.

jose bollo 
January 18, 2019 at 5:37 PM
(edited)

Also, after removing the line for sysroot, when compiling for m3, I have the following error:

| [13783/23382] ACTION //net/http:generate_transport_security_state(//build/toolchain/cros:target) | FAILED: gen/net/http/transport_security_state_static.h | python ../../git/src/build/gn_run_binary.py clang_yocto_native/transport_security_state_generator ../../git/src/net/http/transport_security_state_static.json ../../git/src/net/http/transport_security_state_static.pins ../../git/src/net/http/transport_security_state_static.template gen/net/http/transport_security_state_static.h | ./clang_yocto_native/transport_security_state_generator: /home/devel/mirror/docker/m3/tmp/sysroots-uninative/x86_64-linux/lib/libc.so.6: version `GLIBC_2.28' not found (required by ./clang_yocto_native/transport_security_state_generator) | clang_yocto_native/transport_security_state_generator failed with exit code 1

When restoring the line for sysroot, it fails the same way.

Fixed

Details

Assignee

Reporter

Fix versions

Labels

Components

Affects versions

Priority

Created January 18, 2019 at 4:28 PM
Updated October 4, 2019 at 8:08 PM
Resolved October 2, 2019 at 8:41 AM

Flag notifications