You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I'm just creating this issue to document the current state and maybe keep everyone updated.
The definition of __res_search and other symbols has changed between glibc versions, leading to linking issues when using zig cc on glibc < 2.34 (amd64).
We agreed with @andrewrk that we will change the offending headers in upsteam zig (add ifdefs on glibc version). To my latest knowledge, @sywhang is working on that.
My goal here is to document that the issue still exists and have a place to share updates.
Thanks for the update, we are aware of this, and aware that the workaround in bazel-zig-cc does not fully resolve the issue.
The fix is known but not yet implemented; @sywhang just didn't get to that yet (the Go 1.20 upgrade has been tough). If you are inclined to do some #ifdefs for a couple of functions in Zig upstream, you are welcome.
Here are the list of functions that need special handling that Uber currently works around internally:
fcnt64
dn_expad
res_search
res_query
res_nquery
The list is exhaustive of the functions that we do have workarounds for, but it is likely there are more offenders.
Hey, I'm just creating this issue to document the current state and maybe keep everyone updated.
The definition of
__res_search
and other symbols has changed between glibc versions, leading to linking issues when usingzig cc
on glibc < 2.34 (amd64).Known functions that need special handling:
The issue is this one:
There are two attempted workarounds in
bazel-zig-cc
(7b0de33 and 8d1e1c9) that do not fully resolve this issue.@motiejus also stated
My goal here is to document that the issue still exists and have a place to share updates.
Edit: Fix PR was opened 🎉
The text was updated successfully, but these errors were encountered: