-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails to compile protobuf-src = "1.1.0+21.5" #20
Comments
Created a gist with the config.log that was output. I am wondering if this is the issue:
Why would stddef.h not be found? 🤔 |
Might also be related to tpoechtrager/osxcross#211 🤔 |
Okay! So I worked out what was going on, and made a workaround. So.... what the But the compiler that is set in So my workaround is to have this
...and have a feature that is enabled by default to vendor (which I turn off), so that my system will use this local protoc, rather than the vendored library when cross compiling to a mac. I'm not 100% sure if it makes sense to have protoc built into I'll leave this here and see if other people run into this fun issue. |
Sorry for the late response. Great that you sorted out the protobuf-src issue. Since I mean, open to receiving a feature PR introducing |
Yeah, I'm not sure. Let's see who else has the issue? That was what I figured.
The good thing is, protoc just generates rust code, so there isn't any compilation to worry about 😄 |
Not 100% sure if this is an issue with rust-linux-darwin-builder, but I also figure now that https://github.com/tokio-rs/prost 0.11 requires a local protoc, this is likely going to come up in the near future for a few people.
So we're attempting to use https://crates.io/crates/protobuf-src to vendor protoc locally as a
build-dependency
in our Cargo.toml, which generally works fine, except when we're trying to cross compile to a mac build, the following happens when it tries to compile:I'm sorta at a loss, so figured I'd ask here, since I'm figuring other people might have also run into the same thing? Or I can also take this over to the protobuf github? not sure. Help? 😞
The text was updated successfully, but these errors were encountered: