-
Notifications
You must be signed in to change notification settings - Fork 9
Bindgen can't find stddef.h #71
Comments
(This is a linux builder) |
Is this on Ubuntu? IIRC bindgen uses clang, so could it be https://bugs.launchpad.net/ubuntu/+source/llvm-defaults/+bug/1242300 ? |
I have Ubuntu 16.04, and had this problem just running bindgen from CLI to manually generate some bindings. I think that it dependes on both the bindgen version and installed clang version: I have the problem on my desktop but not on the laptop (both 16.04) I have not tried yet to build the latest Servo. |
I'm on debian unstable. I see lots of the referenced types of symlinks from that bug report that do point to directories containing stddef.h. This will probably need a giant strace to figure out what's missing. |
I have encountered this problem too, on Fedora. |
I tried to install clang on my PC on Ubuntu 16.04.3 LTS with Intel CPU, my reported #19300 was fixed, and I can build servo successfully. I'm not sure whether my solution works for this issue. |
I ran with
The file is located at I've no idea how to make it work, but perhaps this info helps... |
Ok, finally I have been able to solve this on my system. The solution is embarrassing: when @BruceDai reported that he solved it by installing So anyway, I have some more details. On Fedora, there is a I feel like somewhere along this chain, something should be shouting louder about the problem/solution, but I'm not exactly sure where that responsibility lies. Maybe in |
Add clang packages for non-debian linuxes. Per servo/gecko-media#71 (comment). <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19353) <!-- Reviewable:end -->
Add clang packages for non-debian linuxes. Per servo/gecko-media#71 (comment). <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19353) <!-- Reviewable:end -->
… servo:jdm-patch-7); r=KiChjang Per servo/gecko-media#71 (comment). Source-Repo: https://github.com/servo/servo Source-Revision: 10e5ae2c65575aeea4681a89da8ba6aead23af54 --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : 527e88303ca768901dd1c2f68eae77916f0c574e
… servo:jdm-patch-7); r=KiChjang Per servo/gecko-media#71 (comment). Source-Repo: https://github.com/servo/servo Source-Revision: 10e5ae2c65575aeea4681a89da8ba6aead23af54
… servo:jdm-patch-7); r=KiChjang Per servo/gecko-media#71 (comment). Source-Repo: https://github.com/servo/servo Source-Revision: 10e5ae2c65575aeea4681a89da8ba6aead23af54
Similarly, I had libclang-3.9 on debian, but not clang itself. |
Also see rsmpi/rsmpi#1 (comment) for possibly fixing this issue by adding some pathes to |
… servo:jdm-patch-7); r=KiChjang Per servo/gecko-media#71 (comment). Source-Repo: https://github.com/servo/servo Source-Revision: 10e5ae2c65575aeea4681a89da8ba6aead23af54 UltraBlame original commit: f9be9bd0f9e255bcb698654505ce42a10511e5d9
… servo:jdm-patch-7); r=KiChjang Per servo/gecko-media#71 (comment). Source-Repo: https://github.com/servo/servo Source-Revision: 10e5ae2c65575aeea4681a89da8ba6aead23af54 UltraBlame original commit: f9be9bd0f9e255bcb698654505ce42a10511e5d9
… servo:jdm-patch-7); r=KiChjang Per servo/gecko-media#71 (comment). Source-Repo: https://github.com/servo/servo Source-Revision: 10e5ae2c65575aeea4681a89da8ba6aead23af54 UltraBlame original commit: f9be9bd0f9e255bcb698654505ce42a10511e5d9
From servo/servo#19129 (comment):
Any suggestions?
The text was updated successfully, but these errors were encountered: