Skip to content

Undefined reference to `memfd_create' #62

@wangeguo

Description

@wangeguo

Hello, My workflow is not working properly for the last 3 days, it is reporting the following error on Linux aarch64 platform:

linking with `aarch64-linux-gnu-gcc` failed: exit status: 1
...
= note: /target/aarch64-unknown-linux-gnu/release/deps/libnix-523dc21357cd5d32.rlib(nix-523dc21357cd5d32.nix.8194b51de9eb2c73-cgu.11.rcgu.o): In function `nix::sys::memfd::memfd_create::h06992278f46e2685':
        nix.8194b51de9eb2c73-cgu.11:(.text._ZN3nix3sys5memfd12memfd_create17h06992278f46e2685E+0x8): undefined reference to `memfd_create'
        collect2: error: ld returned 1 exit status
        
= note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
= note: use the `-l` flag to specify native libraries to link
= note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname)

error: could not compile `desktop` (bin "amphitheatre-desktop") due to previous error
Error: Process completed with exit code 101.

Instance link: https://github.com/amphitheatre-app/desktop/actions/runs/7343335491/job/19995843592

I'm not sure what's wrong, can you help me out? Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions