Hello,
I am trying to compile chromium-ozone-wayland on Yocto for IMX8MP board, but the compilation fails with the error:
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_configure
| ERROR at //.gn:150:5: Assignment had no effect.
| build_dotfile_settings.exec_script_allowlist +
| ^---------------------------------------------
| You set the variable "exec_script_allowlist" here and it was unused before it went
| out of scope.
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/admin/Dharmik/IMX8M-Plus/sources/meta-browser/meta-chromium/recipes-browser/chromium/chromium-ozone-wayland_138.0.7204.157.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2814 tasks of which 2800 didn't need to be rerun and 1 failed.
I have added CORE_IMAGE_EXTRA_INSTALL += "chromium-ozone-wayland" in conf/local.conf
Below is my yocto configuration,
Build Configuration:
BB_VERSION = "2.16.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "imx8mp-lpddr4-evk"
DISTRO = "fsl-imx-wayland"
DISTRO_VERSION = "6.18-whinlatter"
TUNE_FEATURES = "aarch64 armv8a crc crypto"
Thanks,
Dharmik
I've seen this error in the past Chromium versions, and what worked for me in that build situation was a change in this file:
\tmp\work\armv8a-mx8-poky-linux\chromium-ozone-wayland\117.0.5938.132\chromium-117.0.5938.132\media\gpu\sandbox\BUILD.gn
if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && ozone_platform_x11 &&
!is_castos) {
# For DRI_DRIVER_DIR.
configs += [ "//build/config/linux/dri" ]
}
Adding "&& ozone_platform_x11 " to the platform list at the bottom of this files fixed the issue.
Could you check whether Chromium v138 has already ozone_platform_x11 added?
Best regards,
Diana
After adding PREFERRED_VERSION_gn-native = "0+git" changes I am getting below error,
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_configure
| ERROR at //build/config/linux/dri/BUILD.gn:11:20: Script returned non-zero exit code.
| dri_driver_dir = exec_script(pkg_config_script,
| ^----------
| Current dir: /home/admin/Dharmik/IMX8M-Plus/build-imx8mp/tmp/work/armv8a-mx8mp-poky-linux/chromium-ozone-wayland/138.0.7204.157/sources/chromium-138.0.7204.157/out/Release/
| Command: python3 /home/admin/Dharmik/IMX8M-Plus/build-imx8mp/tmp/work/armv8a-mx8mp-poky-linux/chromium-ozone-wayland/138.0.7204.157/sources/chromium-138.0.7204.157/build/config/linux/pkg-config.py --dridriverdir dri
| Returned 1 and printed out:
|
| Error from pkg-config.
|
| stderr:
|
| Package dri was not found in the pkg-config search path.
| Perhaps you should add the directory containing `dri.pc'
| to the PKG_CONFIG_PATH environment variable
| No package 'dri' found
|
| See //media/gpu/sandbox/BUILD.gn:31:18: which caused the file to be included.
| configs += [ "//build/config/linux/dri" ]
| ^-------------------------
| WARNING: exit code 1 from a shell command.
Thanks,
Dharmik
Hi Dharmik,
Can you try adding to local.conf one more thing besides chromium package?
PREFERRED_VERSION_gn-native = "0+git"
Let me know if the issue still persists.
Best regards,
Diana