Hi Hannes,

On 7/14/24 6:06 PM, diersen-hannes via lists.yoctoproject.org wrote:
You don't often get email from diersen-hannes=web...@lists.yoctoproject.org. 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:


/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
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#63492): https://lists.yoctoproject.org/g/yocto/message/63492
Mute This Topic: https://lists.yoctoproject.org/mt/107215980/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to