==> Synchronizing chroot copy [/home/alhp/workspace/chroot/root] -> [build_0d8023be-2bd9-4cf9-990f-25706b966b2d]...done
==> Making package: zig 0.16.0-1.1 (Tue May  5 13:54:44 2026)
==> Retrieving sources...
  -> Downloading zig-0.16.0.tar.xz...
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
  0      0   0      0   0      0      0      0                              0  7 21.45M   7  1.54M   0      0  1.54M      0   00:13   00:01   00:12  1.54M 22 21.45M  22  4.84M   0      0  2.41M      0   00:08   00:02   00:06  2.41M 39 21.45M  39  8.40M   0      0  2.79M      0   00:07   00:03   00:04  2.79M 56 21.45M  56 12.17M   0      0  3.03M      0   00:07   00:04   00:03  3.03M 75 21.45M  75 16.20M   0      0  3.22M      0   00:06   00:05   00:01  3.22M 93 21.45M  93 20.17M   0      0  3.34M      0   00:06   00:06          3.70M100 21.45M 100 21.45M   0      0  3.38M      0   00:06   00:06          3.70M100 21.45M 100 21.45M   0      0  3.38M      0   00:06   00:06          3.70M100 21.45M 100 21.45M   0      0  3.38M      0   00:06   00:06          3.70M
  -> Downloading 9df02121d0d87c17173f79d55692bed9cb65722c.patch...
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
  0      0   0      0   0      0      0      0                              0100   1253 100   1253   0      0   2537      0                              0100   1253 100   1253   0      0   2537      0                              0100   1253 100   1253   0      0   2537      0                              0
  -> Found skip-futex2-test.patch
==> Validating source files with sha256sums...
    zig-0.16.0.tar.xz ... Passed
    9df02121d0d87c17173f79d55692bed9cb65722c.patch ... Passed
    skip-futex2-test.patch ... Passed
==> Making package: zig 0.16.0-1.1 (Tue May  5 11:54:53 2026)
==> Checking runtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...

Package (5)          New Version     Net Change  Download Size

extra/compiler-rt21  21.1.8-1         46.11 MiB               
core/libedit         20251016_3.1-1    0.26 MiB               
extra/clang21        21.1.8-1        222.60 MiB               
extra/lld21          21.1.8-1          6.49 MiB       1.90 MiB
extra/llvm21-libs    21.1.8-1        149.92 MiB               

Total Download Size:     1.90 MiB
Total Installed Size:  425.38 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 lld21-21.1.8-1-x86_64 downloading...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
installing libedit...
installing llvm21-libs...
installing compiler-rt21...
installing clang21...
Optional dependencies for clang21
    openmp: OpenMP support in clang with -fopenmp
    python: for scan-view and git-clang-format
    llvm21: referenced by some clang headers
installing lld21...
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...

Package (7)               New Version  Net Change

extra/cppdap              1.58.0-3       1.61 MiB
extra/hicolor-icon-theme  0.18-1         0.05 MiB
extra/jsoncpp             1.9.6-3        0.77 MiB
extra/libuv               1.52.1-1       0.64 MiB
extra/rhash               1.4.6-1        0.34 MiB
extra/cmake               4.3.2-1       95.21 MiB
extra/llvm21              21.1.8-1      77.59 MiB

Total Installed Size:  176.21 MiB

:: Proceed with installation? [Y/n] 
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
installing cppdap...
installing hicolor-icon-theme...
installing jsoncpp...
Optional dependencies for jsoncpp
    jsoncpp-doc: documentation
installing libuv...
installing rhash...
installing cmake...
Optional dependencies for cmake
    make: for unix Makefile generator [installed]
    ninja: for ninja generator
    qt6-base: cmake-gui
installing llvm21...
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
==> Retrieving sources...
  -> Found zig-0.16.0.tar.xz
  -> Found 9df02121d0d87c17173f79d55692bed9cb65722c.patch
  -> Found skip-futex2-test.patch
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Extracting zig-0.16.0.tar.xz with bsdtar
==> Starting prepare()...
patching file src/link/Elf/Atom.zig
patching file lib/std/os/linux/test.zig
Hunk #1 succeeded at 326 (offset -20 lines).
Hunk #2 succeeded at 375 (offset -20 lines).
Hunk #3 succeeded at 385 (offset -20 lines).
==> Starting build()...
-- The C compiler identification is GNU 16.1.1
-- The CXX compiler identification is GNU 16.1.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring zig version 0.16.0
-- Found llvm: /usr/lib/llvm21/lib/libLLVM-21.so (Required is at least version "21")
-- Found clang: /usr/lib/llvm21/lib/libclang-cpp.so.21.1 (Required is at least version "21")
-- Found lld: /usr/lib/llvm21/lib/liblldMinGW.so;/usr/lib/llvm21/lib/liblldELF.so;/usr/lib/llvm21/lib/liblldCOFF.so;/usr/lib/llvm21/lib/liblldWasm.so;/usr/lib/llvm21/lib/liblldMachO.so;/usr/lib/llvm21/lib/liblldCommon.so (Required is at least version "21")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Configuring done (0.8s)
-- Generating done (0.0s)
-- Build files have been written to: /startdir/src/zig-0.16.0/build
[ 11%] Building CXX object CMakeFiles/zigcpp.dir/src/zig_llvm.cpp.o
[ 11%] Building C object CMakeFiles/zig-wasm2c.dir/stage1/wasm2c.c.o
[ 22%] Building CXX object CMakeFiles/zigcpp.dir/src/zig_llvm-ar.cpp.o
[ 22%] Building CXX object CMakeFiles/zigcpp.dir/src/zig_clang_cc1_main.cpp.o
[ 33%] Building CXX object CMakeFiles/zigcpp.dir/src/zig_clang_driver.cpp.o
[ 33%] Building CXX object CMakeFiles/zigcpp.dir/src/zig_clang_cc1as_main.cpp.o
[ 38%] Linking C executable zig-wasm2c
[ 38%] Built target zig-wasm2c
[ 44%] Converting /startdir/src/zig-0.16.0/stage1/zig1.wasm to /startdir/src/zig-0.16.0/build/zig1.c
[ 50%] Building C object CMakeFiles/zig1.dir/zig1.c.o
[ 55%] Building C object CMakeFiles/zig1.dir/stage1/wasi.c.o
[ 61%] Linking CXX static library zigcpp/libzigcpp.a
[ 61%] Built target zigcpp
[ 66%] Linking C executable zig1
[ 66%] Built target zig1
[ 77%] Running zig1.wasm to produce /startdir/src/zig-0.16.0/build/zig2.c
[ 77%] Running zig1.wasm to produce /startdir/src/zig-0.16.0/build/compiler_rt.c
[ 83%] Building C object CMakeFiles/zig2.dir/zig2.c.o
[ 88%] Building C object CMakeFiles/zig2.dir/compiler_rt.c.o
In file included from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/limits.h:26,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/16.1.1/include/limits.h:210,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/16.1.1/include/syslimits.h:9,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/16.1.1/include/limits.h:34,
                 from /startdir/src/zig-0.16.0/stage1/zig.h:516,
                 from /startdir/src/zig-0.16.0/build/compiler_rt.c:2:
/usr/include/features.h:451:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
  451 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
      |    ^~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/limits.h:26,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/16.1.1/include/limits.h:210,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/16.1.1/include/syslimits.h:9,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/16.1.1/include/limits.h:34,
                 from /startdir/src/zig-0.16.0/stage1/zig.h:516,
                 from /startdir/src/zig-0.16.0/build/zig2.c:2:
/usr/include/features.h:451:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
  451 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
      |    ^~~~~~~
[ 94%] Linking CXX executable zig2
[ 94%] Built target zig2
[100%] Building stage3
[100%] Built target stage3
==> Starting check()...
-- Install configuration: "None"
test
+- test-incremental
   +- incr-check 'change_struct_same_fields' failure
error: [x86_64-linux-selfhosted 'initial version'] generated executable '.local-cache/o/04c6c9cc4dce3fbb16a660c5bb320d76/root' terminated with signal SEGV
error: process exited with code 1 (expected exited with code 0)
failed command: ./.zig-cache/o/c1d83f1c0aeb17a43942d8d84a71b6de/incr-check /startdir/src/zig-0.16.0/testinstall/usr/bin/zig /startdir/src/zig-0.16.0/test/incremental/change_struct_same_fields --zig-lib-dir testinstall/usr/lib/zig/

Build Summary: 5548/5696 steps succeeded (145 skipped, 1 failed); 63108/64078 tests passed (970 skipped)
test transitive failure
+- test-incremental transitive failure
   +- incr-check 'change_struct_same_fields' failure

error: the following build command failed with exit code 1:
.zig-cache/o/c37a1391299fa03477efef51f0f50acd/build /startdir/src/zig-0.16.0/testinstall/usr/bin/zig testinstall/usr/lib/zig /startdir/src/zig-0.16.0 .zig-cache /build/.cache/zig --seed 0xfef3782b -Z3fdaafca0e7ec8a7 test -Dconfig_h=build/config.h -Dstatic-llvm=false -Denable-llvm=true -Dskip-non-native=true
==> ERROR: A failure occurred in check().
    Aborting...
==> ERROR: Build failed, check /home/alhp/workspace/chroot/build_0d8023be-2bd9-4cf9-990f-25706b966b2d/build
