-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Add include path to Rust build script #6765
Conversation
520d012
to
8108583
Compare
Could you post the error message you get when building? I don't think we should hardcode a path like this. |
Yeah, I agree that it doesn't make sense to hardcode it here. I'm having a hell of a time resolving this on one of our machines, and I have to assume it's because of how the machine is configured. We have stddef.h (multiple, in fact) but I have no idea which toolchain rust is trying to use here, so I don't know which one it's failing to find. It seems to be happening in bindgen, and there's a running thread about issues like this: rust-lang/rust-bindgen#1226. It seems like it's not actually an issue on their side, but it's common when using bindgen. |
Have you tried specifying |
Yes, it's set! I think I was getting a different error before I realized I needed to set that. |
Closing, glad that the problem is resolved |
Oops, this problem isn't resolved! Sorry, didn't mean to imply that. I had already set |
In this case it is indeed versy strange that stddef is not part of your include path, how about you add it to your CPLUS_INCLUDE_PATH and C_INCLUDE_PATH env variable in your system? |
I have, to seemingly no effect. I'll bug our sysadmin about this. It must
be on my side.
…On Wed, Oct 28, 2020 at 4:23 PM Tianqi Chen ***@***.***> wrote:
In this case it is indeed versy strange that stddef is not part of your
include path, how about you add it to your CPLUS_INCLUDE_PATH and
C_INCLUDE_PATH env variable in your system?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#6765 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJFZAKQIN4YXDUNFVHLUGTSNCRXNANCNFSM4S7ZXP4Q>
.
|
@jroesch
I'm not sure what we want to do here. I needed to add this path to make the build script work on my system -- perhaps there's something I should do on my side, though?