Build failed while compiling chromium-ozone-wayland

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

Build failed while compiling chromium-ozone-wayland

202 Views
Dharmik_Vaghasana
Contributor I

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

0 Kudos
Reply
3 Replies

194 Views
dianapredescu
NXP Employee
NXP Employee

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

0 Kudos
Reply

192 Views
Dharmik_Vaghasana
Contributor I

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

0 Kudos
Reply

189 Views
dianapredescu
NXP Employee
NXP Employee

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

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2385802%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EBuild%20failed%20while%20compiling%20chromium-ozone-wayland%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2385802%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EHello%2C%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EI%20am%20trying%20to%20compile%20chromium-ozone-wayland%20on%20Yocto%20for%20IMX8MP%20board%2C%20but%20the%20compilation%20fails%20with%20the%20error%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%7C%20DEBUG%3A%20Python%20function%20extend_recipe_sysroot%20finished%3CBR%20%2F%3E%7C%20DEBUG%3A%20Executing%20shell%20function%20do_configure%3CBR%20%2F%3E%7C%20ERROR%20at%20%2F%2F.gn%3A150%3A5%3A%20Assignment%20had%20no%20effect.%3CBR%20%2F%3E%7C%20build_dotfile_settings.exec_script_allowlist%20%2B%3CBR%20%2F%3E%7C%20%5E---------------------------------------------%3CBR%20%2F%3E%7C%20You%20set%20the%20variable%20%22exec_script_allowlist%22%20here%20and%20it%20was%20unused%20before%20it%20went%3CBR%20%2F%3E%7C%20out%20of%20scope.%3CBR%20%2F%3E%7C%20WARNING%3A%20exit%20code%201%20from%20a%20shell%20command.%3CBR%20%2F%3EERROR%3A%20Task%20(%2Fhome%2Fadmin%2FDharmik%2FIMX8M-Plus%2Fsources%2Fmeta-browser%2Fmeta-chromium%2Frecipes-browser%2Fchromium%2Fchromium-ozone-wayland_138.0.7204.157.bb%3Ado_configure)%20failed%20with%20exit%20code%20'1'%3CBR%20%2F%3ENOTE%3A%20Tasks%20Summary%3A%20Attempted%202814%20tasks%20of%20which%202800%20didn't%20need%20to%20be%20rerun%20and%201%20failed.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EI%20have%20added%26nbsp%3BCORE_IMAGE_EXTRA_INSTALL%20%2B%3D%20%22chromium-ozone-wayland%22%20in%20conf%2Flocal.conf%3C%2FP%3E%3CP%3EBelow%20is%20my%20yocto%20configuration%2C%3C%2FP%3E%3CP%3EBuild%20Configuration%3A%3CBR%20%2F%3EBB_VERSION%20%3D%20%222.16.0%22%3CBR%20%2F%3EBUILD_SYS%20%3D%20%22x86_64-linux%22%3CBR%20%2F%3ENATIVELSBSTRING%20%3D%20%22universal%22%3CBR%20%2F%3ETARGET_SYS%20%3D%20%22aarch64-poky-linux%22%3CBR%20%2F%3EMACHINE%20%3D%20%22imx8mp-lpddr4-evk%22%3CBR%20%2F%3EDISTRO%20%3D%20%22fsl-imx-wayland%22%3CBR%20%2F%3EDISTRO_VERSION%20%3D%20%226.18-whinlatter%22%3CBR%20%2F%3ETUNE_FEATURES%20%3D%20%22aarch64%20armv8a%20crc%20crypto%22%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EDharmik%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2385813%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Build%20failed%20while%20compiling%20chromium-ozone-wayland%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2385813%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI've%20seen%20this%20error%20in%20the%20past%20Chromium%20versions%2C%20and%20what%20worked%20for%20me%20in%20that%20build%20situation%20was%20a%20change%20in%20this%20file%3A%3C%2FP%3E%0A%3CP%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%20size%3D%223%22%3E%5Ctmp%5Cwork%5Carmv8a-mx8-poky-linux%5Cchromium-ozone-wayland%5C117.0.5938.132%5Cchromium-117.0.5938.132%5Cmedia%5Cgpu%5Csandbox%5CBUILD.gn%3C%2FFONT%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20%20language-markup%22%3E%3CCODE%3Eif%20(current_cpu%20!%3D%20%22s390x%22%20%26amp%3B%26amp%3B%20current_cpu%20!%3D%20%22ppc64%22%20%26amp%3B%26amp%3B%20is_linux%20%26amp%3B%26amp%3B%20ozone_platform_x11%20%26amp%3B%26amp%3B%0A%20%20%20%20%20%20!is_castos)%20%7B%0A%20%20%20%20%23%20For%20DRI_DRIVER_DIR.%0A%20%20%20%20configs%20%2B%3D%20%5B%20%22%2F%2Fbuild%2Fconfig%2Flinux%2Fdri%22%20%5D%0A%7D%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CBR%20%2F%3E%0A%3CP%3EAdding%20%22%3CEM%3E%3CSTRONG%3E%26amp%3B%26amp%3B%20ozone_platform_x11%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FEM%3E%22%20to%20the%20platform%20list%20at%20the%20bottom%20of%20this%20files%20fixed%20the%20issue.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ECould%20you%20check%20whether%20Chromium%20v138%20has%20already%20ozone_platform_x11%20added%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EDiana%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2385812%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Build%20failed%20while%20compiling%20chromium-ozone-wayland%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2385812%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EAfter%20adding%26nbsp%3B%3CSPAN%3EPREFERRED_VERSION_gn-native%20%3D%20%220%2Bgit%22%20changes%20I%20am%20getting%20below%20error%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%7C%20DEBUG%3A%20Python%20function%20extend_recipe_sysroot%20finished%3CBR%20%2F%3E%7C%20DEBUG%3A%20Executing%20shell%20function%20do_configure%3CBR%20%2F%3E%7C%20ERROR%20at%20%2F%2Fbuild%2Fconfig%2Flinux%2Fdri%2FBUILD.gn%3A11%3A20%3A%20Script%20returned%20non-zero%20exit%20code.%3CBR%20%2F%3E%7C%20dri_driver_dir%20%3D%20exec_script(pkg_config_script%2C%3CBR%20%2F%3E%7C%20%5E----------%3CBR%20%2F%3E%7C%20Current%20dir%3A%20%2Fhome%2Fadmin%2FDharmik%2FIMX8M-Plus%2Fbuild-imx8mp%2Ftmp%2Fwork%2Farmv8a-mx8mp-poky-linux%2Fchromium-ozone-wayland%2F138.0.7204.157%2Fsources%2Fchromium-138.0.7204.157%2Fout%2FRelease%2F%3CBR%20%2F%3E%7C%20Command%3A%20python3%20%2Fhome%2Fadmin%2FDharmik%2FIMX8M-Plus%2Fbuild-imx8mp%2Ftmp%2Fwork%2Farmv8a-mx8mp-poky-linux%2Fchromium-ozone-wayland%2F138.0.7204.157%2Fsources%2Fchromium-138.0.7204.157%2Fbuild%2Fconfig%2Flinux%2Fpkg-config.py%20--dridriverdir%20dri%3CBR%20%2F%3E%7C%20Returned%201%20and%20printed%20out%3A%3CBR%20%2F%3E%7C%3CBR%20%2F%3E%7C%20Error%20from%20pkg-config.%3CBR%20%2F%3E%7C%3CBR%20%2F%3E%7C%20stderr%3A%3CBR%20%2F%3E%7C%3CBR%20%2F%3E%7C%20Package%20dri%20was%20not%20found%20in%20the%20pkg-config%20search%20path.%3CBR%20%2F%3E%7C%20Perhaps%20you%20should%20add%20the%20directory%20containing%20%60dri.pc'%3CBR%20%2F%3E%7C%20to%20the%20PKG_CONFIG_PATH%20environment%20variable%3CBR%20%2F%3E%7C%20No%20package%20'dri'%20found%3CBR%20%2F%3E%7C%3CBR%20%2F%3E%7C%20See%20%2F%2Fmedia%2Fgpu%2Fsandbox%2FBUILD.gn%3A31%3A18%3A%20which%20caused%20the%20file%20to%20be%20included.%3CBR%20%2F%3E%7C%20configs%20%2B%3D%20%5B%20%22%2F%2Fbuild%2Fconfig%2Flinux%2Fdri%22%20%5D%3CBR%20%2F%3E%7C%20%5E-------------------------%3CBR%20%2F%3E%7C%20WARNING%3A%20exit%20code%201%20from%20a%20shell%20command.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThanks%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EDharmik%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2385806%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Build%20failed%20while%20compiling%20chromium-ozone-wayland%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2385806%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CSPAN%3EDharmik%2C%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ECan%20you%20try%20adding%20to%26nbsp%3B%3CSPAN%3E%3CSTRONG%3Elocal.conf%26nbsp%3B%3C%2FSTRONG%3Eone%20more%20thing%20besides%20chromium%20package%3F%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBLOCKQUOTE%3E%0A%3CP%3E%3CSPAN%3EPREFERRED_VERSION_gn-native%20%3D%20%220%2Bgit%22%3C%2FSPAN%3E%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CP%3E%3CSPAN%3ELet%20me%20know%20if%20the%20issue%20still%20persists.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%3EBest%20regards%2C%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EDiana%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E