Building BSP 2.8.7 using openssl 1.1.1d

I am trying to build a BSP 2.8.7 image using openssl 1.1.1d by setting the variable PREFERRED_VERSION_openssl = “1.1.1%” and while building the bitbake shows the error below:

ERROR: Multiple versions of openssl are due to be built (/home/vbalestero/df63ng/df63ng-imx6-bsp-287/build/../layers/meta-toradex-bsp-common/recipes-connectivity/openssl/ /home/vbalestero/df63ng/df63ng-imx6-bsp-287/build/../layers/openembedded-core/meta/recipes-connectivity/openssl/ Only one version of a given PN should be built in any given build. You likely need to set PREFERRED_VERSION_openssl to select the correct version or don't depend on multiple versions.

Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Help will be appreciated.

Hi @vbalestero,

I saw a similar issue like yours in a Xilinx Forum.

There, based on their proposal, you shall adjust your settings to be as:

  • PREFERRED_VERSION_openssl_forcevariable = “1.1.1%”
  • PREFERRED_VERSION_openssl-native_forcevariable = “1.1.1%”
  • PREFERRED_VERSION_nativesdk-openssl_forcevariable = “1.1.1%”

Please try that and let me know if that worked.

Best regards,
André Curvello

Thanks André, using your tips works fine now.

Perfect. Thanks for the feedback.