Hello, Zig Community!
I am using Zig compiler version 0.14.0-dev.3224+5ab511307
, which I compiled from source on my Arch Linux PC (with all packages up to date).
Today I wanted to update it by git pull
-ing the latest version from github and then running sudo zig build install --release=fast -Dcpu=native
. I used the same flags to compile the previous Zig version.
After some time time the compilation process failed with this error:
negolng@negolng-arch ~/zig (master)> sudo zig build install --release=fast -Dcpu=native
install
โโ install zig
โโ zig build-exe zig ReleaseFast native 2 errors
src/codegen/llvm.zig:101:10: error: no field named 'propeller' in enum 'Target.Cpu.Arch'
.propeller,
~^~~~~~~~~
/usr/local/lib/zig/std/Target.zig:1341:22: note: enum declared here
pub const Arch = enum {
^~~~
src/target.zig:198:10: error: no field named 'propeller' in enum 'Target.Cpu.Arch'
.propeller,
~^~~~~~~~~
/usr/local/lib/zig/std/Target.zig:1341:22: note: enum declared here
pub const Arch = enum {
^~~~
error: the following command failed with 2 compilation errors:
/usr/local/bin/zig build-exe --stack 48234496 -fno-sanitize-thread -OReleaseFast --dep aro --dep aro_translate_c --dep build_options -Mroot=/home/negolng/zig/src/main.zig -Maro=/home/negolng/zig/lib/compiler/aro/aro.zig --dep aro -Maro_translate_c=/home/negolng/zig/lib/compiler/aro_translate_c.zig -Mbuild_options=/home/negolng/zig/.zig-cache/c/d743ca96a7253c20cdb7b85e6646bf30/options.zig --cache-dir /home/negolng/zig/.zig-cache --global-cache-dir /root/.cache/zig --name zig --zig-lib-dir /usr/local/lib/zig/ --listen=-
Build Summary: 289/292 steps succeeded; 1 failed
install transitive failure
โโ install zig transitive failure
โโ zig build-exe zig ReleaseFast native 2 errors
error: the following build command failed with exit code 1:
/home/negolng/zig/.zig-cache/o/d2af8acc3e92eb0fe3a3911a66979daa/build /usr/local/bin/zig /usr/local/lib/zig /home/negolng/zig /home/negolng/zig/.zig-cache /root/.cache/zig --seed 0x2d9f25de -Z7cd016cc7dacb8b5 install --release=fast -Dcpu=native
I tried cleaning the build cache by sudo rm -rf .zig-cache
and then re-building it without any flags (sudo zig build install
) or with the --release=safe
flag only, but goth the same error message both times.
I am still new to Zig and I have no idea how to solve this issue, so thanks in advance, I will appreciate any help!