Skip to content

cargo build gives: "cannot find function pthread_atfork in crate libc " #2

Open

Description

@shrsulav

I am trying to use this for generating and analyzing ASTs for Rust programs.
However, on first cargo build, it's giving me this error.

I am running this in Ubuntu VM with Windows as host.
What steps should I perform to build this?

Activity

  1. sandeep-gh commented on Jun 15, 2022

    @sandeep-gh

    Bump version of lib in Cargo.toml.
    Use this

    [dependencies]
    pad = "0.1.6"
    libc="0.2.126"
    syntex_syntax = "0.59.1"
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions