You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2020/10/28 20:45:23 UTC

[GitHub] [incubator-tvm] gussmith23 commented on pull request #6765: Add include path to Rust build script

gussmith23 commented on pull request #6765:
URL: https://github.com/apache/incubator-tvm/pull/6765#issuecomment-718198239


   ```
   error: failed to run custom build command for `tvm-sys v0.1.0 (https://github.com/apache/incubator-tvm?branch=main#4c4888bc)`
   
   Caused by:
     process didn't exit successfully: `/home/gus/glenside-evaluation/target/debug/build/tvm-sys-6e86f41bfc277513/build-script-build` (exit code: 1)
     --- stdout
     cargo:rerun-if-env-changed=TVM_HOME
     cargo:rustc-link-lib=dylib=tvm
     cargo:rustc-link-search=/home/gus/tvm/build
   
     --- stderr
     /home/gus/tvm/3rdparty/dlpack/include/dlpack/dlpack.h:30:10: fatal error: 'stddef.h' file not found
     /home/gus/tvm/3rdparty/dlpack/include/dlpack/dlpack.h:30:10: fatal error: 'stddef.h' file not found, err: true
     Error: failed to generate bindings
   ```
   
   Yeah, I agree that it doesn't seem to make sense. 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: https://github.com/rust-lang/rust-bindgen/issues/1226. It seems like it's not actually an issue on their side, but it's common when using bindgen. 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org