Open nikhilanayak opened 3 years ago
The same error, I guess...
exit status: 0
RUST_BACKTRACE=1
environment variable to display a backtraceSame, trying to use https://github.com/messense/cargo-xwinbuild too.
I tried to set all env vars:
LLVM_PATH="/opt/homebrew/opt/llvm"
LLVM_VERSION="13.0.1"
export PATH="$LLVM_PATH:$PATH"
export SDKROOT=$(xcrun --sdk macosx --show-sdk-path)
export LD_LIBRARY_PATH="$LLVM_PATH/lib/:$LD_LIBRARY_PATH"
export DYLD_LIBRARY_PATH="$LLVM_PATH/lib/:$DYLD_LIBRARY_PATH"
export CPATH="$LLVM_PATH/lib/clang/$LLVM_VERSION/include/"
export LDFLAGS="-L$LLVM_PATH/lib"
export CPPFLAGS="-I$LLVM_PATH/include"
export CC="$LLVM_PATH/bin/clang"
export CXX="$LLVM_PATH/bin/clang++"
P.D: How about provide precompiled option, like is with sqlite?
The same error on macOS 13.0.1。I set include like this:
sudo ln -s /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/* /usr/local/include/
then, the error like this:
cargo:warning=/usr/local/include/sys/cdefs.h:913:2: error: Unsupported architecture
cargo:warning=/usr/local/include/machine/_types.h:36:2: error: architecture not supported
cargo:warning=/usr/local/include/sys/_types.h:55:9: error: unknown type name '__int64_t'; did you mean '__int128_t'?
Hi. I'm new to Rust, so please forgive me if this is a simple error. I'm trying to compile the package but I'm getting this error:
I got this error on both Windows (clang with CygWin) and Linux (clang). How can I solve this?
Edit: This also happens on Windows with LLVM/clang. Testing clang with a simple c program that uses stdio.h also works. I suspect this has something to do with Rust not using the include path but I have no idea how to solve it.