nateglims / meta-zig

A Yocto Layer to build Zig recipes
MIT License
1 stars 1 forks source link

Build seems to use target glibc version, but running uses system glibc #1

Open SpieringsAE opened 1 month ago

SpieringsAE commented 1 month ago

My system glibc is a lower version than that of my yocto target. When I try to use zig-native in bitbake it gives me an error that it cannot find the right version of glibc on my system which is correct. But why is it not searching for the glibc that it was linked against?

Is there some Cmake flag missing to set the lookup directory or whatever? I am not very familiar with that part of compiling.

I can't really find an example of another package setting this up


| zig: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.35' not found (required by /home/user/Disk2/yocto_builds/kernel_builds_mickledore/moduline-display/tmp/sysroots-uninative/x86_64-linux/lib/libgcc_s.so.1)
| zig: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /home/user/Disk2/yocto_builds/kernel_builds_mickledore/moduline-display/tmp/sysroots-uninative/x86_64-linux/lib/libgcc_s.so.1)
| zig: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_ABI_DT_RELR' not found (required by /home/user/Disk2/yocto_builds/kernel_builds_mickledore/moduline-display/tmp/sysroots-uninative/x86_64-linux/lib/librt.so.1)
nateglims commented 3 weeks ago

Thanks for the issue.

What OS are you running on? Is it supported by Yocto otherwise?

SpieringsAE commented 3 weeks ago

ubuntu 20.04 on this system, which i'm quite sure is supported

SpieringsAE commented 3 weeks ago

I have also started work on making a Scarthgap branch but it seems to get stuck on do_configure. So haven't managed to build it yet.