Open justjosias opened 4 years ago
I get a different error on Android x86_64 (Waydroid):
~/git/zig/build $ ninja -j4
[15/20] Running zig1.wasm to produce /data/data/com.termux/files/home/git/zig/build/zig2.c
FAILED: zig2.c /data/data/com.termux/files/home/git/zig/build/zig2.c
cd /data/data/com.termux/files/home/git/zig && /data/data/com.termux/files/home/git/zig/build/zig1 /data/data/com.termux/files/home/git/zig/lib build-exe src/main.zig -ofmt=c -lc -OReleaseSmall --name zig2 -femit-bin="/data/data/com.termux/files/home/git/zig/build/zig2.c" --pkg-begin build_options /data/data/com.termux/files/home/git/zig/build/config.zig --pkg-end -target x86_64-android
error: UnknownOperatingSystem
[16/20] Running zig1.wasm to produce /data/data/com.termux/files/home/git/zig/build/compiler_rt.c
FAILED: compiler_rt.c /data/data/com.termux/files/home/git/zig/build/compiler_rt.c
cd /data/data/com.termux/files/home/git/zig && /data/data/com.termux/files/home/git/zig/build/zig1 /data/data/com.termux/files/home/git/zig/lib build-obj lib/compiler_rt.zig -ofmt=c -OReleaseSmall --name compiler_rt -femit-bin="/data/data/com.termux/files/home/git/zig/build/compiler_rt.c" --pkg-begin build_options /data/data/com.termux/files/home/git/zig/build/config.zig --pkg-end -target x86_64-android
error: UnknownOperatingSystem
ninja: build stopped: subcommand failed.
~/git/zig/build $
Edit: Seems to be a different issue (see https://github.com/ziglang/zig/issues/16565), as "Debian 10 in proot" should be still Linux I think
During compilation of Zig, using the standard posix instructions, the
zig0
executable segfaulted when it was run.Running the
zig0
executable by itself also segfaults.Compilation log:
The output of
strace ./zig0
:Background information: Debian 10 in proot in Termux in Android 5.1 on an ARM tablet. The patch for LLVM PolyPlugin was applied.
Kernel version: 3.18.19