zls
zls copied to clipboard
zig build -Drelease-safe fails on freebsd
Error:
zig build -Drelease-safe
error: Failed to add package at path /usr/home/x/zls/src/zinput/src/main.zig: FileNotFound
zls...The following command exited with error code 1:
/usr/local/bin/zig build-exe /usr/home/x/zls/src/main.zig -OReleaseSafe --cache-dir /usr/home/x/zls/zig-cache --global-cache-dir /home/x/.cache/zig --name zls --pkg-begin build_options /usr/home/x/zls/zig-cache/options/uKZopIcuroF1h5GN4XSTLPx9Merwk3esZaDElqA89NfYzxkegeJ3i-pc9OQuwu55 --pkg-end --pkg-begin known-folders /usr/home/x/zls/src/known-folders/known-folders.zig --pkg-end --pkg-begin zinput /usr/home/x/zls/src/zinput/src/main.zig --pkg-end --enable-cache
error: the following build command failed with exit code 1:
/usr/home/x/zls/zig-cache/o/26fad6eedf86fd706a6a80034de16840/build /usr/local/bin/zig /usr/home/x/zls /usr/home/x/zls/zig-cache /home/x/.cache/zig -Drelease-safe
HOST:x: /home/x/zls >
OS: FreeBSD 13.1-RC5
cc -v FreeBSD clang version 13.0.0 ([email protected]:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303) Target: x86_64-unknown-freebsd13.1 Thread model: posix InstalledDir: /usr/bin
zls uses submodules, run git submodule update --init or when cloning git clone --recurse-submodules https://github.com/zigtools/zls
And just to note we are waiting for https://github.com/zigtools/zls/pull/481 to be merge to support compiling with latest master.
This erroe was caused by cloning without submodules.