Hi, I finally got a chance to run some tests. I've attached a patch below that works. As András pointed out, András Vöröskői writes: > Hi, > > So zig testing result is the following: > -Dskip-libc does not work, my best result is with -Dskip-non-native. > > -Dskip-non-native fails with "libc headers note" test from > `compile_errors.zig` (I had to comment it around line 2750) and std > library tests also fails instantaneously. > > So I suggest the following test command for now: `zig build > -Dskip-non-native test-toolchain` with a patch to disable that failing > test. This will test everything except the std library and docs. 'test-toolchain' is probably a good choice because it skips standard library tests, which I found out can take a lot of memory (>7.5GB)! I also disabled stage 2 tests since stage 2 is experimental and isn't actually installed. Now that I have an output: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix size zig store item total self /gnu/store/kwjw55f4syys5gg8a9lr6bk6a3jdqw0i-zig-0.8.1 576.6 177.4 30.8% /gnu/store/rmc131fpy2hv408a1awd2wm7kiwyf7d7-llvm-12.0.0 234.1 162.7 28.2% /gnu/store/rn75fm7adgx3pw5j8pg3bczfqq1y17lk-gcc-7.5.0 178.5 107.3 18.6% /gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31 38.4 36.7 6.4% /gnu/store/f0ca0lf64bw08srv1bj7gkg6ag0sbdb2-gcc-7.5.0-lib 71.0 32.6 5.7% /gnu/store/01b4w3m6mp55y531kyi1g8shh722kwqm-gcc-7.5.0-lib 71.0 32.6 5.7% /gnu/store/nzfhh1rm85lx2p5plbx45qqj82pcv5hp-clang-runtime-12.0.0 95.9 24.9 4.3% /gnu/store/mmhimfwmmidf09jw1plw3aw1g1zn2nkh-bash-static-5.0.16 1.6 1.6 0.3% /gnu/store/g2s5jfkfd4k973wb58476b1bbv9zpm6m-zlib-1.2.11 38.6 0.2 0.0% /gnu/store/rykm237xkmq7rl1p0nwass01p090p88x-zlib-1.2.11 71.2 0.2 0.0% /gnu/store/bw15z9kh9c65ycc2vbhl2izwfwfva7p1-libffi-3.3 71.2 0.2 0.0% total: 576.6 MiB --8<---------------cut here---------------end--------------->8--- It looks like we're retaining references to the main gcc-7.5.0 output, but only to its "include/c++" directory, as a single reference in the zig binary. I expect this would cause issues if another GCC version were later used with Zig. We're retaining double direct references to gcc-7.5.0-lib, and double indirect references to zlib-1.2.11. This seems to come from clang. (Wow, clang is big. Maybe it should have a separate "lib" output? Zig, for example, only needs libclang to build, not the binaries.) Other than those items, it looks good! I've asked on their ML about exactly which dependencies are needed for the host and target architectures, so hopefully that will solve that. -- Sarah