Skip to content

Bad logic in generating glibc stubs #8714

@LemonBoy

Description

@LemonBoy

#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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behaviorfrontendTokenization, parsing, AstGen, Sema, and Liveness.os-linuxLinux

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions