sdk-ng icon indicating copy to clipboard operation
sdk-ng copied to clipboard

pokysdk provides an older Verison of GLIBC than required by system

Open HannesD1 opened this issue 1 year ago • 2 comments
trafficstars

Hi there,

i have installed Zepyhr and the SDK according to the zephyr website. When i tried to build an example i got the following error message. /home/hannes/zephyr-sdk-0.16.5/sysroots/x86_64-pokysdk-linux/usr/bin/dtc: /home/hannes/zephyr-sdk-0.16.5/sysroots/x86_64-pokysdk-linux/lib/libc.so.6: version GLIBC_2.38' not found (required by /lib64/libstdc++.so.6) ` Changing the symlink in pokysdk to my local glibc installation in /lib4 did not helped. Shouldnt pokysdk provide the full environment to build an application since its using my local /lib64/libstdc++ or did i got this wrong ? I think this is somehow similar to this issue https://github.com/zephyrproject-rtos/sdk-ng/issues/584 but just inverted.

Zephyr SDK Version 16.5 I am running Fedora 39

HannesD1 avatar Feb 28 '24 20:02 HannesD1

You might have relocated the Zephyr SDK installation after running setup.sh. Please run setup.sh again to fix RPATHs.

stephanosio avatar Feb 28 '24 23:02 stephanosio

Running setup.sh did not fix the problem. The installation is located in ~/zephyr-sdk-0.16.5 As described on the zephyr website

HannesD1 avatar Feb 29 '24 17:02 HannesD1

I am still encountering this problem. I was able to fix it by creating a hard reference to use the installed DTC application from the computer and not the one from Poky. But this obviously doesn't feel right. Is it the intended behavior that west should use the Poky DTC or the DTC installed on the computer? Since we have to install DTC anyway according to the installation guide, the DTC provided by Poky seems somewhat redundant oder does this one serves a special purpose ?

HannesD1 avatar Jul 14 '24 18:07 HannesD1

Due to multiple error based on that wrong GLIBC version I have just created a Symlink to my system /lib64 dir in the pokysdk folder. This seems to work for me

HannesD1 avatar Jul 15 '24 19:07 HannesD1