Code Monkey home page Code Monkey logo

Comments (5)

BusyJay avatar BusyJay commented on August 17, 2024

Does it work if using the master version?

from grpc-rs.

nkosi23 avatar nkosi23 commented on August 17, 2024

@BusyJay Thanks a lot for your swift reply, unfortunately I am getting the same error when using the master version

from grpc-rs.

nkosi23 avatar nkosi23 commented on August 17, 2024

I may have located the issue, maybe "freebsd" must be added to the following places:

grpc-rs/grpc-sys/build.rs:

    #[cfg(any(
        feature = "_gen-bindings",
        not(all(
            any(target_os = "linux", target_os = "macos"),
            any(target_arch = "x86_64", target_arch = "aarch64")
        ))
    ))]
    {
        // On some system (like Windows), stack size of main thread may
        // be too small.
        let f = file_path.clone();
        std::thread::Builder::new()
            .stack_size(8 * 1024 * 1024)
            .name("bindgen_grpc".to_string())
            .spawn(move || bindgen_grpc(&f))
            .unwrap()
            .join()
            .unwrap();
    }

grpc-rs/grpc-sys/Cargo.toml:

[target.'cfg(not(all(any(target_os = "linux", target_os = "macos"), any(target_arch = "x86_64", target_arch = "aarch64"))))'.build-dependencies]
bindgen = { version = "0.69.0", default-features = false, features = ["runtime"] }

A problem with the stack size would explain why a panic is triggered during the build process. If freebsd is added to the target_os array of the Cargo file, my understanding is that bindgen would not be included as a dependency on FreeBSD, and the code section in build.rs would not be compiled and executed. But I do not have enough understanding of the domain/project to understand the implications.

from grpc-rs.

BusyJay avatar BusyJay commented on August 17, 2024

No, this is an issue with old rust-bindgen and new clang. It's expected to be fixed in bindgen >= 0.61. And master has upgraded bindgen to 0.69, so I asked to check whether master can be compiled.

from grpc-rs.

nkosi23 avatar nkosi23 commented on August 17, 2024

@BusyJay You were right, I have isolated the repo and can confirm that the build completes without problem when building against master. Sorry for the confusion.

Do you plan to push a release some time or maybe create a tag to ensure that we are building against a relatively stable version?

from grpc-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.