Imx8qxp - populate_sdk issue

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

Imx8qxp - populate_sdk issue

1,315 Views
Ram2
Contributor III

Hi Team, 
we are facing problem with sdk creation.

BSP Version : 6.6 (nanbield)

 Step 1 : bitbake -c populate_sdk_ext imx-image-full 

ERROR: imx-image-full-1.0-r0 do_sdk_depends: The file /usr/include/llvm-c/OrcEE.h is installed by both llvm-native and clang-native, aborting
ERROR: Logfile of failure stored in: /home/sairam/yocto-bsp/N600/build-wayland/tmp/work/imx8qxpc0mek-poky-linux/imx-image-full/1.0/temp/log.do_sdk_depends.208512
ERROR: Task (/home/sairam/yocto-bsp/N600/sources/meta-imx/meta-imx-sdk/dynamic-layers/qt6-layer/recipes-fsl/images/imx-image-full.bb:do_sdk_depends) failed with exit code '1'
NOTE: Tasks Summary: Attempted 11877 tasks of which 11865 didn't need to be rerun and 1 failed.

Please find the logs attached.

Please support us to resolve this issue.

0 Kudos
Reply
3 Replies

222 Views
guepy
Contributor I

Hello,

This is due to a clash between clang and llvm. you're distincly installing clang from meta-clang and llvm from poky/meta/recipe-devtools/llvm. However in this version of yocto, clang recipe in meta-clang install both clang and llvm, giving that clang is implemented on the top of llvm. 

Consequently, llvm binaries and libraries are shipped twice to the sdk  by both clang and llvm leading yocto to complain about the same object or path being provided by 2 distincts packages.
To solve that, the brut force would be to delete the llvm recipe in poky/meta/recipe-devtools/llvm and create a clang_%.bbappend file with the following content:
PROVIDES += "llvm"
This inform yocto the llvm is now provided by clang in case other packages depends on llvm whichone you've just deleted the recipe.
Next, bitbake -ccleanallimx-image-full and bitbake -cpopulate_sdk_ext imx-image-full
Hope it'll be helpful. Let me know if you're still facing the issue after modifications.
Regards

0 Kudos
Reply

1,261 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

No such issue in official release.

Best Regards
Zhiming

0 Kudos
Reply

1,276 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

Need time to reproduce this issue.


Best Regards
Zhiming

0 Kudos
Reply