Open thivmcthiv opened 4 years ago
Same error is on Window 10
Well, on Windows 10 you can resolve this error by installing LLVM.
Hi, same problem here on Ubuntu 18.04, so I installed llvm-dev and libclang-dev but it still didn't compile:
--- stderr
/usr/include/stdio.h:33:10: fatal error: 'stddef.h' file not found
/usr/include/stdio.h:33:10: fatal error: 'stddef.h' file not found, err: true
thread 'main' panicked at 'Unable to generate bindings: ()', /home/USER/.cargo/registry/src/github.com-1ecc6299db9ec823/libxlsxwriter-sys-1.0.0/build.rs:85:20
So I installed clang-9 and finally, it compiled correctly.
Same error compiling in azure pipelines. I tried setup LIBCLANG_PATH var:
- script: |
choco install llvm
setx PATH "C:\Program Files\LLVM\bin;%PATH%" /M
setx LIBCLANG_PATH "C:\Program Files\LLVM\bin" /M
echo $CARGO_HOME
echo %path:;=&echo.%
refreshenv
displayName: Install CLANG
condition: eq( variables['Agent.OS'], 'Windows_NT' )
- script: |
cargo build --bin sync --release
env:
LIBCLANG_PATH: "C:\Program Files\LLVM\bin"
displayName: Cargo build Windows
condition: eq( variables['Agent.OS'], 'Windows_NT' )
Just because I ran into this several times in the past now. It's basically like @cereal-s suggested on Ubuntu-20.04, but with a twist:
wget --no-check-certificate -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-9 main'
sudo apt install llvm-9-dev libclang-9-dev clang-9
Well, on Windows 10 you can resolve this error by installing LLVM.
I have the same error and I have installed LLVM
Same issue
--- stderr ./third_party/libxlsxwriter/include/xlsxwriter/workbook.h:45:10: fatal error: 'stdio.h' file not found ./third_party/libxlsxwriter/include/xlsxwriter/workbook.h:45:10: fatal error: 'stdio.h' file not found, err: true
LLVM and rust toolchain mast be identical (gnu - gnu or msvc - msvc)
Hello, I was trying to use the crate for a project I am making, but It doesn't seem to compile, and gives this error message before exiting:
I am on ubuntu focal fossa and using stable rust. It seems that I need the libclang.so libraries. where can I download these from?