Skip to content

Build error error: ELF flush failed: ReadFailed #24700

@ChillerDragon

Description

@ChillerDragon
[chiller@archlinux build]$ make
[ 36%] Built target zigcpp
[ 47%] Built target zig-wasm2c
[ 68%] Built target zig1
[ 94%] Built target zig2
[100%] Building stage3
install
└─ install zig
   └─ compile exe zig Debug native 1 errors
error: ELF flush failed: ReadFailed
error: the following command failed with 1 compilation errors:
/home/chiller/Desktop/git-extern/zig/build/zig2 build-exe -fallow-so-scripts --stack 48234496 /home/chiller/Desktop/git-extern/zig/build/zigcpp/libzigcpp.a /usr/lib/libclang-cpp.so.20.1 /usr/lib/liblldMinGW.so /usr/lib/liblldELF.so /usr/lib/liblldCOFF.so /usr/lib/liblldWasm.so /usr/lib/liblldMachO.so /usr/lib/liblldCommon.so -lLLVM-20 /usr/lib/libstdc++.so -lunwind -fno-sanitize-thread -ODebug -I /usr/include -I /usr/include -L /usr/lib --dep aro --dep aro_translate_c --dep build_options -Mroot=/home/chiller/Desktop/git-extern/zig/src/main.zig -Maro=/home/chiller/Desktop/git-extern/zig/lib/compiler/aro/aro.zig --dep aro -Maro_translate_c=/home/chiller/Desktop/git-extern/zig/lib/compiler/aro_translate_c.zig -Mbuild_options=.zig-cache/c/7e8ed09042d22b740901c49824775438/options.zig -lc --cache-dir .zig-cache --global-cache-dir /home/chiller/.cache/zig --name zig --zig-lib-dir lib/ --listen=-

Build Summary: 2/5 steps succeeded; 1 failed
install transitive failure
└─ install zig transitive failure
   └─ compile exe zig Debug native 1 errors

error: the following build command failed with exit code 1:
.zig-cache/o/361cdf57e3c1ba71de5aa8c7a3d74ff8/build /home/chiller/Desktop/git-extern/zig/build/zig2 lib /home/chiller/Desktop/git-extern/zig .zig-cache /home/chiller/.cache/zig --seed 0x37c06596 -Zef6b9866b40c4cd4 --prefix /home/chiller/Desktop/git-extern/zig/build/stage3 -Dversion-string=0.15.0-dev.1415+82961a8c9 -Dtarget=native -Dcpu=native -Denable-llvm -Dconfig_h=/home/chiller/Desktop/git-extern/zig/build/config.h -Dno-langref -Doptimize=Debug
make[2]: *** [CMakeFiles/stage3.dir/build.make:73: stage3/bin/zig] Error 1
make[1]: *** [CMakeFiles/Makefile2:228: CMakeFiles/stage3.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
[chiller@archlinux build]$ clang --version
clang version 20.1.8
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
[chiller@archlinux build]$ uname -a
Linux archlinux 6.15.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 02 Aug 2025 01:20:06 +0000 x86_64 GNU/Linux

82961a8

Metadata

Metadata

Assignees

Labels

bugObserved behavior contradicts documented or intended behaviorregressionIt worked in a previous version of Zig, but stopped working.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions