Skip to content

Platform detection is wrong on x32 #4962

@mithrandi

Description

@mithrandi

if result == "linux_x86_64" and _is_running_32bit():
# 32 bit Python program (running on a 64 bit Linux): pip should only
# install and run 32 bit compiled extensions in that case.
result = "linux_i686"

This code assumes that i686 is the only way to have 32-bit pointers on x86_64, but the x32 ABI is another way for this to happen, and i686 binaries won't work on x32.

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS: linuxLinux specificstate: needs discussionThis needs some more discussiontype: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions