-
Notifications
You must be signed in to change notification settings - Fork 212
Description
Given these env variables:
export PATH="${PROJECT}/wasi-sdk-10.0/bin:$PATH"
export WASI_SYSROOT="${PROJECT}/wasi-sdk-10.0/share/wasi-sysroot"
clang --target=wasm32-wasi --sysroot="${WASI_SYSROOT}" ...I then see configure: error: C compiler cannot create executables.
- ./configure --prefix=/.../wasm-build --with-sysroot=/.../wasi-sdk-10.0/share/wasi-sysroot --host=wasm32-wasi --disable-ssp --disable-shared
checking build system type... i386-apple-darwin19.5.0
checking host system type... wasm32-unknown-wasi
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for wasm32-wasi-strip... llvm-strip
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '501' is supported by ustar format... yes
checking whether GID '20' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether make supports nested variables... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports the include directive... yes (GNU style)
checking for wasm32-wasi-gcc... clang
checking whether the C compiler works... no
configure: error: in/.../': configure: error: C compiler cannot create executables Seeconfig.log' for more details
I am able to make a sysroot myself inside a checked out wasi-sdk repo with make install INSTALL_DIR="${PROJECT}/sysroot/" and I can use it to compile the same project (after I've downloaded and placed libclang_rt.builtins-wasm32-wasi-10.0.tar.gz into my llvm installation inside homebrew). However, I'd like to take advantage of the pre-compiled binaries + sysroots if at all possible because I've run into a problem too many times with one machine having a different version of llvm installed, etc.
One key difference I notice when using the version I compiled myself is it says it's build system type is x86_64-apple-darwin19.5.0.
I am using macOS 10.15.5 with the latest homebrew and llvm 10.0.0_3.