Skip to content

gccjit does not build on s390x due to old libc dependency #109774

Description

@uweigand

Running ./x.py check on s390x fails when attempting to build rustc_codegen_gcc due to:

Checking stage0 gcc artifacts (s390x-unknown-linux-gnu)
    Updating git repository `https://github.com/antoyo/gccjit.rs`
  Downloaded libc v0.1.12
  Downloaded 1 crate (31.1 KB) in 0.42s
    Checking libc v0.1.12
    Checking smallvec v1.10.0
error[E0433]: failed to resolve: could not find `arch` in `os`
   --> /home/uweigand/.cargo/registry/src/github.com-eae4ba8cbf2ce1c7/libc-0.1.12/rust/src/liblibc/lib.rs:100:20
    |
100 | pub use types::os::arch::c95::*;
    |                    ^^^^ could not find `arch` in `os`

This seems to be caused by a dependency on libc 0.1.12 from gccjit_sys. This version is very old (from about 2015), and does not yet support the s390x architecture at all.

@antoyo could this be updated to a more recent libc version? If so, would you like me to send a patch against https://github.com/antoyo/gccjit.rs ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions