Skip to content

Detecting native triple on RHEL 9.0 and Fedora 36 gives wrong result #12156

Open
@songdongsheng

Description

@songdongsheng

Zig Version

0.10.0-dev.3027+0e26c6149

Steps to Reproduce

podman run --rm -it registry.access.redhat.com/ubi9

dnf install -y bsdtar gcc-c++ jq && rpm -qa | grep -E "binutils|kernel-headers|glibc-devel|gcc-c++"
export PATH=/opt/zig:/usr/sbin:/usr/bin:/sbin:/bin

$ zig version
0.10.0-dev.3027+0e26c6149

zig targets | jq -r '.native.triple'

x86_64-linux.5.10.16...5.10.16-musl

Expected Behavior

zig targets | jq -r '.native.triple'

x86_64-linux.5.10.16...5.10.16-gnu.2.34

Actual Behavior

zig targets | jq -r '.native.triple'

x86_64-linux.5.10.16...5.10.16-musl

RHEL 9 is glibc distributions, not musl !

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions