-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Bad logic in generating glibc stubs #8714
Copy link
Copy link
Closed
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorfrontendTokenization, parsing, AstGen, Sema, and Liveness.Tokenization, parsing, AstGen, Sema, and Liveness.os-linuxLinuxLinux
Milestone
Description
#8705 is currently failing with this error: symbol lseek64 version GLIBC_2.2 not defined in file libc.so.6 with link time reference.
Digging in glibc abilist files you can see that lseek64 is currently defined in libc with version 2.1 but also in libpthread with version 2.2! This is an historical wart that's being addressed and helped uncover a hole in tools/update_glibc.zig logic:
at the moment it's handling this case by picking libc as library (since libc is the first abilist file being scanned) but adds both the version found in libc and the one in libpthread, leading to this error.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorfrontendTokenization, parsing, AstGen, Sema, and Liveness.Tokenization, parsing, AstGen, Sema, and Liveness.os-linuxLinuxLinux