Skip to contentSkip to conversation

Pokysdk-linux libc cannot find a version of GLIBC

DISCUSSION [email protected] 2 participants 2 messages Jul 14, 2024 – Jul 15, 2024

lore
Share & tools
lore
#0 lore raw

Hello,

I am using ZephyrSDK to develop some embedded software. I have tried to install it on my "new" laptop, which is now running Fedora 40. From my understanding, Zephyr uses PokySDK to create the build environment for cross-compilation. However, I cannot get it working.

As I mentioned in this issue on the Zephyr project page ( https://github.com/zephyrproject-rtos/sdk-ng/issues/741 ), I encounter an error when trying to build. The error message is as follows:

/home/hannes/zephyr-sdk-0.16.8/sysroots/x86_64-pokysdk-linux/usr/bin/dtc: /home/hannes/zephyr-sdk-0.16.8/sysroots/x86_64-pokysdk-linux/lib/libc.so.6: version `GLIBC_2.38 ' not found (required by /lib64/libstdc++.so.6) /home/hannes/zephyr-sdk-0.16.8/sysroots/x86_64-pokysdk-linux/usr/bin/dtc: /home/hannes/zephyr-sdk-0.16.8/sysroots/x86_64-pokysdk-linux/lib/libc.so.6: version `GLIBC_2.33' not found (required by /lib64/libstdc++.so.6) /home/hannes/zephyr-sdk-0.16.8/sysroots/x86_64-pokysdk-linux/usr/bin/dtc: /home/hannes/zephyr-sdk-0.16.8/sysroots/x86_64-pokysdk-linux/lib/libc.so.6: version `GLIBC_2.32 ' not found (required by /lib64/libstdc++.so.6) /home/hannes/zephyr-sdk-0.16.8/sysroots/x86_64-pokysdk-linux/usr/bin/dtc: /home/hannes/zephyr-sdk-0.16.8/sysroots/x86_64-pokysdk-linux/lib/libc.so.6: version `GLIBC_2.36' not found (required by /lib64/libstdc++.so.6) /home/hannes/zephyr-sdk-0.16.8/sysroots/x86_64-pokysdk-linux/usr/bin/dtc: /home/hannes/zephyr-sdk-0.16.8/sysroots/x86_64-pokysdk-linux/lib/libc.so.6: version `GLIBC_2.34 ' not found (required by /lib64/libstdc++.so.6)

Unfortunately, my issue has received only a small number of replies. Running ldd --version shows that I have GLIBC 2.38 installed on my PC. I tried to create a symlink to my local GLIBC installation, but it didn’t help.

In any case, this shouldn’t be necessary since PokySDK should provide all the necessary libraries needed for cross-compiling, or am I misunderstanding something?

I hope this is the right place to ask, as I am unsure how to resolve this issue.

Best regards, Hannes

#1 lore raw

Hi Hannes,

Quoted 9 lines · diersen-hannes via lists.yoctoproject.org

You don't often get email from [email protected]. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification>

Hello,

I am using ZephyrSDK to develop some embedded software. I have tried to install it on my "new" laptop, which is now running Fedora 40. From my understanding, Zephyr uses PokySDK to create the build environment for cross-compilation. However, I cannot get it working.

As I mentioned in this issue on the Zephyr project page (https://github.com/zephyrproject-rtos/sdk-ng/issues/741), I encounter an error when trying to build. The error message is as follows:

Quoted 8 lines

/home/hannes/zephyr-sdk-0.16.8/sysroots/x86_64-pokysdk-linux/usr/bin/dtc: /home/hannes/zephyr-sdk-0.16.8/sysroots/x86_64-pokysdk-linux/lib/libc.so.6: version `GLIBC_2.38' not found (required by /lib64/libstdc++.so.6) /home/hannes/zephyr-sdk-0.16.8/sysroots/x86_64-pokysdk-linux/usr/bin/dtc: /home/hannes/zephyr-sdk-0.16.8/sysroots/x86_64-pokysdk-linux/lib/libc.so.6: version `GLIBC_2.33' not found (required by /lib64/libstdc++.so.6) /home/hannes/zephyr-sdk-0.16.8/sysroots/x86_64-pokysdk-linux/usr/bin/dtc: /home/hannes/zephyr-sdk-0.16.8/sysroots/x86_64-pokysdk-linux/lib/libc.so.6: version `GLIBC_2.32' not found (required by /lib64/libstdc++.so.6) /home/hannes/zephyr-sdk-0.16.8/sysroots/x86_64-pokysdk-linux/usr/bin/dtc: /home/hannes/zephyr-sdk-0.16.8/sysroots/x86_64-pokysdk-linux/lib/libc.so.6: version `GLIBC_2.36' not found (required by /lib64/libstdc++.so.6) /home/hannes/zephyr-sdk-0.16.8/sysroots/x86_64-pokysdk-linux/usr/bin/dtc: /home/hannes/zephyr-sdk-0.16.8/sysroots/x86_64-pokysdk-linux/lib/libc.so.6: version `GLIBC_2.34' not found (required by /lib64/libstdc++.so.6)

Unfortunately, my issue has received only a small number of replies. Running ldd --version shows that I have GLIBC 2.38 installed on my PC. I tried to create a symlink to my local GLIBC installation, but it didn’t help.

In any case, this shouldn’t be necessary since PokySDK should provide all the necessary libraries needed for cross-compiling, or am I misunderstanding something?

I hope this is the right place to ask, as I am unsure how to resolve this issue.

Zephyr SDK seems to be using a patched poky from 3.2.3.

1) It is **VERY** outdated (like hasn't seen an update in three years), c.f. https://wiki.yoctoproject.org/wiki/Releases
2) Fedora 40 isn't among the support distros, c.f. https://docs.yoctoproject.org/3.2.3/ref-manual/ref-system-requirements.html#supported-linux-distributions

Therefore:
3) Try to figure out if there isn't a newer version of the Zephyr SDK that uses something newer than this and hopefully without patched layers,
4) Do not use Fedora 40 for building it, you can use containers instead. CROPS comes to mind though I haven't used it or kas-container (no clue how to use it outside of a kas setup). I don't even know if we support Fedora 40 on the master branch yet (there was some issues related with GCC being too recent and breaking yet unpatched package recipes (which is common every time GCC has a major version bumped, someone just have to do the work of fixing or silencing warnings))).

Otherwise there may be something to do with disabling uninative also, but I also have no experience with it.

Cheers,
Quentin