ziglang / zig

General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
https://ziglang.org
MIT License
35k stars 2.56k forks source link

"brew install zig --HEAD" fails on osx ventura 13.4 #15979

Closed weihsiu closed 1 year ago

weihsiu commented 1 year ago

Zig Version

0.11.0-dev.3384+00ff65357

Steps to Reproduce and Observed Behavior

on mac osx ventura 13.4: % brew install zig --HEAD ... error: the following build command failed with exit code 1: /private/tmp/zig-20230608-72250-1d1v2mh/zig-cache/o/e57701418410ab865bda4f9c3dfc035b/build /private/tmp/zig-20230608-72250-1d1v2mh/build/zig2 /private/tmp/zig-20230608-72250-1d1v2mh /private/tmp/zig-20230608-72250-1d1v2mh/zig-cache /private/tmp/zig-20230608-72250-1d1v2mh/.brew_home/.cache/zig --prefix /tmp/zig-20230608-72250-1d1v2mh/build/stage3 --zig-lib-dir /tmp/zig-20230608-72250-1d1v2mh/lib -Dconfig_h=/tmp/zig-20230608-72250-1d1v2mh/build/config.h -Denable-llvm -Doptimize=ReleaseFast -Dstrip -Dtarget=native -Dcpu=native -Dversion-string=0.11.0-dev.3384+00ff65357 make[2]: [stage3/bin/zig] Error 1 make[2]: Deleting file `stage3/bin/zig' make[1]: [CMakeFiles/stage3.dir/all] Error 2 make: [all] Error 2

Expected Behavior

zig installs properly

weihsiu commented 1 year ago

btw, this is a different error than the one reported in https://github.com/ziglang/zig/issues/15956. i got further along than #15956

marcelroed commented 1 year ago

Having the same issue. Here's the output with --verbose:

brew install zig --HEAD --verbose                                                      (3)  ✘ INT  57s
==> Fetching dependencies for zig: llvm@15
==> Fetching llvm@15
==> Downloading https://ghcr.io/v2/homebrew/core/llvm/15/manifests/15.0.7
Already downloaded: /Users/marcel/Library/Caches/Homebrew/downloads/07d6b5a728fda40fb890ce488f96df4ad9896f32eef6f5ab4aa053d753c06614--llvm@15-15.0.7.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/llvm/15/blobs/sha256:fd420324c3289bcd91b85e13ece10818363cf0d82fc25f8983de306f8114cc01
Already downloaded: /Users/marcel/Library/Caches/Homebrew/downloads/9f60ddffe9c0e234b85e4ed1300becfff2eb8017f0a242d346e1e4c2bd8b09fc--llvm@15--15.0.7.arm64_ventura.bottle.tar.gz
==> Verifying checksum for '9f60ddffe9c0e234b85e4ed1300becfff2eb8017f0a242d346e1e4c2bd8b09fc--llvm@15--15.0.7.arm64_ventura.bottle.tar.gz'
==> Fetching zig
==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/77100a86aaba3b12e5a03aae56e2cd345a906822/Formula/zig.rb
Already downloaded: /Users/marcel/Library/Caches/Homebrew/downloads/e934f251dd80c010643a1cc0141258e48c689e2d82b5eefc42ff1688fd815701--zig.rb
==> Verifying checksum for 'e934f251dd80c010643a1cc0141258e48c689e2d82b5eefc42ff1688fd815701--zig.rb'
==> Cloning https://github.com/ziglang/zig.git
Updating /Users/marcel/Library/Caches/Homebrew/zig--git
/usr/bin/env git config remote.origin.url https://github.com/ziglang/zig.git
/usr/bin/env git config remote.origin.fetch \+refs/heads/master:refs/remotes/origin/master
/usr/bin/env git config remote.origin.tagOpt --no-tags
/usr/bin/env git config advice.detachedHead false
/usr/bin/env git config core.fsmonitor false
/usr/bin/env git fetch origin
==> Checking out branch master
/usr/bin/env git checkout -f master --
Already on 'master'
Your branch is up to date with 'origin/master'.
/usr/bin/env git reset --hard origin/master --
HEAD is now at 38fc826a5 Merge pull request #15957 from BratishkaErik/deprecated-
/usr/bin/env cp -pR /Users/marcel/Library/Caches/Homebrew/zig--git/tools/. /private/tmp/d20230614-57369-1u2ymf6/tools
/usr/bin/env cp -pR /Users/marcel/Library/Caches/Homebrew/zig--git/CMakeLists.txt /private/tmp/d20230614-57369-1u2ymf6/CMakeLists.txt
/usr/bin/env cp -pR /Users/marcel/Library/Caches/Homebrew/zig--git/LICENSE /private/tmp/d20230614-57369-1u2ymf6/LICENSE
/usr/bin/env cp -pR /Users/marcel/Library/Caches/Homebrew/zig--git/test/. /private/tmp/d20230614-57369-1u2ymf6/test
/usr/bin/env cp -pR /Users/marcel/Library/Caches/Homebrew/zig--git/cmake/. /private/tmp/d20230614-57369-1u2ymf6/cmake
/usr/bin/env cp -pR /Users/marcel/Library/Caches/Homebrew/zig--git/ci/. /private/tmp/d20230614-57369-1u2ymf6/ci
/usr/bin/env cp -pR /Users/marcel/Library/Caches/Homebrew/zig--git/stage1/. /private/tmp/d20230614-57369-1u2ymf6/stage1
/usr/bin/env cp -pR /Users/marcel/Library/Caches/Homebrew/zig--git/build.zig /private/tmp/d20230614-57369-1u2ymf6/build.zig
/usr/bin/env cp -pR /Users/marcel/Library/Caches/Homebrew/zig--git/README.md /private/tmp/d20230614-57369-1u2ymf6/README.md
/usr/bin/env cp -pR /Users/marcel/Library/Caches/Homebrew/zig--git/.gitignore /private/tmp/d20230614-57369-1u2ymf6/.gitignore
/usr/bin/env cp -pR /Users/marcel/Library/Caches/Homebrew/zig--git/.github/. /private/tmp/d20230614-57369-1u2ymf6/.github
/usr/bin/env cp -pR /Users/marcel/Library/Caches/Homebrew/zig--git/.gitattributes /private/tmp/d20230614-57369-1u2ymf6/.gitattributes
/usr/bin/env cp -pR /Users/marcel/Library/Caches/Homebrew/zig--git/lib/. /private/tmp/d20230614-57369-1u2ymf6/lib
/usr/bin/env cp -pR /Users/marcel/Library/Caches/Homebrew/zig--git/doc/. /private/tmp/d20230614-57369-1u2ymf6/doc
/usr/bin/env cp -pR /Users/marcel/Library/Caches/Homebrew/zig--git/.git/. /private/tmp/d20230614-57369-1u2ymf6/.git
/usr/bin/env cp -pR /Users/marcel/Library/Caches/Homebrew/zig--git/src/. /private/tmp/d20230614-57369-1u2ymf6/src
/usr/bin/env cp -pR /private/tmp/d20230614-57369-1u2ymf6/tools/. /private/tmp/zig-20230614-57369-mq2ulq/tools
/usr/bin/env cp -pR /private/tmp/d20230614-57369-1u2ymf6/CMakeLists.txt /private/tmp/zig-20230614-57369-mq2ulq/CMakeLists.txt
/usr/bin/env cp -pR /private/tmp/d20230614-57369-1u2ymf6/LICENSE /private/tmp/zig-20230614-57369-mq2ulq/LICENSE
/usr/bin/env cp -pR /private/tmp/d20230614-57369-1u2ymf6/test/. /private/tmp/zig-20230614-57369-mq2ulq/test
/usr/bin/env cp -pR /private/tmp/d20230614-57369-1u2ymf6/cmake/. /private/tmp/zig-20230614-57369-mq2ulq/cmake
/usr/bin/env cp -pR /private/tmp/d20230614-57369-1u2ymf6/ci/. /private/tmp/zig-20230614-57369-mq2ulq/ci
/usr/bin/env cp -pR /private/tmp/d20230614-57369-1u2ymf6/stage1/. /private/tmp/zig-20230614-57369-mq2ulq/stage1
/usr/bin/env cp -pR /private/tmp/d20230614-57369-1u2ymf6/build.zig /private/tmp/zig-20230614-57369-mq2ulq/build.zig
/usr/bin/env cp -pR /private/tmp/d20230614-57369-1u2ymf6/README.md /private/tmp/zig-20230614-57369-mq2ulq/README.md
/usr/bin/env cp -pR /private/tmp/d20230614-57369-1u2ymf6/.gitignore /private/tmp/zig-20230614-57369-mq2ulq/.gitignore
/usr/bin/env cp -pR /private/tmp/d20230614-57369-1u2ymf6/.github/. /private/tmp/zig-20230614-57369-mq2ulq/.github
/usr/bin/env cp -pR /private/tmp/d20230614-57369-1u2ymf6/.gitattributes /private/tmp/zig-20230614-57369-mq2ulq/.gitattributes
/usr/bin/env cp -pR /private/tmp/d20230614-57369-1u2ymf6/lib/. /private/tmp/zig-20230614-57369-mq2ulq/lib
/usr/bin/env cp -pR /private/tmp/d20230614-57369-1u2ymf6/doc/. /private/tmp/zig-20230614-57369-mq2ulq/doc
/usr/bin/env cp -pR /private/tmp/d20230614-57369-1u2ymf6/.git/. /private/tmp/zig-20230614-57369-mq2ulq/.git
/usr/bin/env cp -pR /private/tmp/d20230614-57369-1u2ymf6/src/. /private/tmp/zig-20230614-57369-mq2ulq/src
==> cmake -S . -B build -DZIG_STATIC_LLVM=ON -DCMAKE_INSTALL_PREFIX=/opt/homebrew/Cellar/zig/HEAD-38fc826 -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DBUILD_TESTING=OFF -DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk
-- The C compiler identification is AppleClang 14.0.3.14030022
-- The CXX compiler identification is AppleClang 14.0.3.14030022
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/homebrew/Library/Homebrew/shims/mac/super/clang - 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: /opt/homebrew/Library/Homebrew/shims/mac/super/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring zig version 0.11.0-dev.3639+38fc826a5
-- Found llvm: /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMWindowsManifest.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMXRay.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMLibDriver.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMDlltoolDriver.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMCoverage.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMLineEditor.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMXCoreDisassembler.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMXCoreCodeGen.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMXCoreDesc.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMXCoreInfo.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMX86TargetMCA.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMX86Disassembler.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMX86AsmParser.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMX86CodeGen.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMX86Desc.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMX86Info.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMWebAssemblyDisassembler.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMWebAssemblyAsmParser.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMWebAssemblyCodeGen.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMWebAssemblyDesc.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMWebAssemblyUtils.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMWebAssemblyInfo.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMVEDisassembler.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMVEAsmParser.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMVECodeGen.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMVEDesc.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMVEInfo.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMSystemZDisassembler.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMSystemZAsmParser.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMSystemZCodeGen.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMSystemZDesc.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMSystemZInfo.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMSparcDisassembler.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMSparcAsmParser.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMSparcCodeGen.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMSparcDesc.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMSparcInfo.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMRISCVTargetMCA.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMRISCVDisassembler.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMRISCVAsmParser.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMRISCVCodeGen.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMRISCVDesc.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMRISCVInfo.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMPowerPCDisassembler.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMPowerPCAsmParser.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMPowerPCCodeGen.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMPowerPCDesc.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMPowerPCInfo.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMNVPTXCodeGen.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMNVPTXDesc.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMNVPTXInfo.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMMSP430Disassembler.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMMSP430AsmParser.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMMSP430CodeGen.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMMSP430Desc.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMMSP430Info.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMMipsDisassembler.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMMipsAsmParser.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMMipsCodeGen.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMMipsDesc.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMMipsInfo.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMLoongArchDisassembler.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMLoongArchAsmParser.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMLoongArchCodeGen.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMLoongArchDesc.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMLoongArchInfo.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMLanaiDisassembler.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMLanaiCodeGen.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMLanaiAsmParser.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMLanaiDesc.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMLanaiInfo.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMHexagonDisassembler.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMHexagonCodeGen.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMHexagonAsmParser.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMHexagonDesc.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMHexagonInfo.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMBPFDisassembler.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMBPFAsmParser.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMBPFCodeGen.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMBPFDesc.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMBPFInfo.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAVRDisassembler.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAVRAsmParser.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAVRCodeGen.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAVRDesc.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAVRInfo.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMARMDisassembler.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMARMAsmParser.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMARMCodeGen.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMARMDesc.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMARMUtils.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMARMInfo.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAMDGPUTargetMCA.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAMDGPUDisassembler.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAMDGPUAsmParser.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAMDGPUCodeGen.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAMDGPUDesc.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAMDGPUUtils.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAMDGPUInfo.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAArch64Disassembler.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAArch64AsmParser.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAArch64CodeGen.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAArch64Desc.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAArch64Utils.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAArch64Info.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMOrcJIT.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMWindowsDriver.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMMCJIT.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMJITLink.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMInterpreter.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMExecutionEngine.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMRuntimeDyld.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMOrcTargetProcess.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMOrcShared.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMDWP.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMDebugInfoLogicalView.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMDebugInfoGSYM.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMOption.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMObjectYAML.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMObjCopy.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMMCA.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMMCDisassembler.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMLTO.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMCFGuard.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMFrontendOpenACC.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMFrontendHLSL.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMExtensions.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libPolly.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libPollyISL.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMPasses.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMCoroutines.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMipo.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMInstrumentation.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMVectorize.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMLinker.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMFrontendOpenMP.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMDWARFLinkerParallel.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMDWARFLinker.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMGlobalISel.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMMIRParser.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAsmPrinter.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMSelectionDAG.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMCodeGen.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMObjCARCOpts.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMIRPrinter.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMInterfaceStub.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMFileCheck.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMFuzzMutate.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMTarget.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMScalarOpts.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMInstCombine.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAggressiveInstCombine.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMTransformUtils.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMBitWriter.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAnalysis.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMProfileData.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMSymbolize.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMDebugInfoPDB.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMDebugInfoMSF.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMDebugInfoDWARF.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMObject.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMTextAPI.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMMCParser.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMIRReader.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAsmParser.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMMC.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMDebugInfoCodeView.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMBitReader.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMFuzzerCLI.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMCore.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMRemarks.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMBitstreamReader.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMBinaryFormat.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMTargetParser.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMTableGen.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMSupport.a;/opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMDemangle.a;-lm;/opt/homebrew/lib/libz3.dylib;-lz;-lzstd;-lcurses;-lxml2 (Required is at least version "16")
-- Found clang: /opt/homebrew/opt/llvm/lib/libclangFrontendTool.a;/opt/homebrew/opt/llvm/lib/libclangCodeGen.a;/opt/homebrew/opt/llvm/lib/libclangFrontend.a;/opt/homebrew/opt/llvm/lib/libclangDriver.a;/opt/homebrew/opt/llvm/lib/libclangSerialization.a;/opt/homebrew/opt/llvm/lib/libclangSema.a;/opt/homebrew/opt/llvm/lib/libclangStaticAnalyzerFrontend.a;/opt/homebrew/opt/llvm/lib/libclangStaticAnalyzerCheckers.a;/opt/homebrew/opt/llvm/lib/libclangStaticAnalyzerCore.a;/opt/homebrew/opt/llvm/lib/libclangAnalysis.a;/opt/homebrew/opt/llvm/lib/libclangASTMatchers.a;/opt/homebrew/opt/llvm/lib/libclangAST.a;/opt/homebrew/opt/llvm/lib/libclangParse.a;/opt/homebrew/opt/llvm/lib/libclangSema.a;/opt/homebrew/opt/llvm/lib/libclangBasic.a;/opt/homebrew/opt/llvm/lib/libclangEdit.a;/opt/homebrew/opt/llvm/lib/libclangLex.a;/opt/homebrew/opt/llvm/lib/libclangARCMigrate.a;/opt/homebrew/opt/llvm/lib/libclangRewriteFrontend.a;/opt/homebrew/opt/llvm/lib/libclangRewrite.a;/opt/homebrew/opt/llvm/lib/libclangCrossTU.a;/opt/homebrew/opt/llvm/lib/libclangIndex.a;/opt/homebrew/opt/llvm/lib/libclangToolingCore.a;/opt/homebrew/opt/llvm/lib/libclangExtractAPI.a;/opt/homebrew/opt/llvm/lib/libclangSupport.a (Required is at least version "16")
-- Found lld: /opt/homebrew/opt/llvm/lib/liblldMinGW.a;/opt/homebrew/opt/llvm/lib/liblldELF.a;/opt/homebrew/opt/llvm/lib/liblldCOFF.a;/opt/homebrew/opt/llvm/lib/liblldWasm.a;/opt/homebrew/opt/llvm/lib/liblldMachO.a;/opt/homebrew/opt/llvm/lib/liblldCommon.a (Required is at least version "16")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Configuring done (0.7s)
-- Generating done (0.0s)
CMake Warning:
  Manually-specified variables were not used by the project:

    BUILD_TESTING
    CMAKE_INSTALL_LIBDIR

-- Build files have been written to: /tmp/zig-20230614-57369-mq2ulq/build
==> cmake --build build
/opt/homebrew/Cellar/cmake/3.26.4/bin/cmake -S/tmp/zig-20230614-57369-mq2ulq -B/tmp/zig-20230614-57369-mq2ulq/build --check-build-system CMakeFiles/Makefile.cmake 0
/opt/homebrew/Cellar/cmake/3.26.4/bin/cmake -E cmake_progress_start /tmp/zig-20230614-57369-mq2ulq/build/CMakeFiles /tmp/zig-20230614-57369-mq2ulq/build//CMakeFiles/progress.marks
/Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/Makefile2 all
/Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/zigcpp.dir/build.make CMakeFiles/zigcpp.dir/depend
/Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/zig-wasm2c.dir/build.make CMakeFiles/zig-wasm2c.dir/depend
cd /tmp/zig-20230614-57369-mq2ulq/build && /opt/homebrew/Cellar/cmake/3.26.4/bin/cmake -E cmake_depends "Unix Makefiles" /tmp/zig-20230614-57369-mq2ulq /tmp/zig-20230614-57369-mq2ulq /tmp/zig-20230614-57369-mq2ulq/build /tmp/zig-20230614-57369-mq2ulq/build /tmp/zig-20230614-57369-mq2ulq/build/CMakeFiles/zig-wasm2c.dir/DependInfo.cmake --color=
cd /tmp/zig-20230614-57369-mq2ulq/build && /opt/homebrew/Cellar/cmake/3.26.4/bin/cmake -E cmake_depends "Unix Makefiles" /tmp/zig-20230614-57369-mq2ulq /tmp/zig-20230614-57369-mq2ulq /tmp/zig-20230614-57369-mq2ulq/build /tmp/zig-20230614-57369-mq2ulq/build /tmp/zig-20230614-57369-mq2ulq/build/CMakeFiles/zigcpp.dir/DependInfo.cmake --color=
/Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/zig-wasm2c.dir/build.make CMakeFiles/zig-wasm2c.dir/build
/Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/zigcpp.dir/build.make CMakeFiles/zigcpp.dir/build
[ 15%] Building C object CMakeFiles/zig-wasm2c.dir/stage1/wasm2c.c.o
[ 15%] Building CXX object CMakeFiles/zigcpp.dir/src/zig_llvm.cpp.o
/opt/homebrew/Library/Homebrew/shims/mac/super/clang  -I/tmp/zig-20230614-57369-mq2ulq -I/tmp/zig-20230614-57369-mq2ulq/build -I/tmp/zig-20230614-57369-mq2ulq/src -O3 -DNDEBUG -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -std=c99 -O2 -MD -MT CMakeFiles/zig-wasm2c.dir/stage1/wasm2c.c.o -MF CMakeFiles/zig-wasm2c.dir/stage1/wasm2c.c.o.d -o CMakeFiles/zig-wasm2c.dir/stage1/wasm2c.c.o -c /tmp/zig-20230614-57369-mq2ulq/stage1/wasm2c.c
/opt/homebrew/Library/Homebrew/shims/mac/super/clang++  -I/tmp/zig-20230614-57369-mq2ulq -I/tmp/zig-20230614-57369-mq2ulq/build -I/tmp/zig-20230614-57369-mq2ulq/src -O3 -DNDEBUG -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -std=c++17 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D_GNU_SOURCE -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Werror=type-limits -Wno-missing-braces -Wno-comment -MD -MT CMakeFiles/zigcpp.dir/src/zig_llvm.cpp.o -MF CMakeFiles/zigcpp.dir/src/zig_llvm.cpp.o.d -o CMakeFiles/zigcpp.dir/src/zig_llvm.cpp.o -c /tmp/zig-20230614-57369-mq2ulq/src/zig_llvm.cpp
[ 30%] Building CXX object CMakeFiles/zigcpp.dir/src/zig_clang_driver.cpp.o
[ 30%] Building CXX object CMakeFiles/zigcpp.dir/src/zig_clang.cpp.o
[ 30%] Building CXX object CMakeFiles/zigcpp.dir/src/zig_llvm-ar.cpp.o
[ 30%] Building CXX object CMakeFiles/zigcpp.dir/src/zig_clang_cc1_main.cpp.o
[ 35%] Building CXX object CMakeFiles/zigcpp.dir/src/windows_sdk.cpp.o
/opt/homebrew/Library/Homebrew/shims/mac/super/clang++  -I/tmp/zig-20230614-57369-mq2ulq -I/tmp/zig-20230614-57369-mq2ulq/build -I/tmp/zig-20230614-57369-mq2ulq/src -O3 -DNDEBUG -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -std=c++17 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D_GNU_SOURCE -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Werror=type-limits -Wno-missing-braces -Wno-comment -MD -MT CMakeFiles/zigcpp.dir/src/zig_clang_driver.cpp.o -MF CMakeFiles/zigcpp.dir/src/zig_clang_driver.cpp.o.d -o CMakeFiles/zigcpp.dir/src/zig_clang_driver.cpp.o -c /tmp/zig-20230614-57369-mq2ulq/src/zig_clang_driver.cpp
/opt/homebrew/Library/Homebrew/shims/mac/super/clang++  -I/tmp/zig-20230614-57369-mq2ulq -I/tmp/zig-20230614-57369-mq2ulq/build -I/tmp/zig-20230614-57369-mq2ulq/src -O3 -DNDEBUG -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -std=c++17 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D_GNU_SOURCE -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Werror=type-limits -Wno-missing-braces -Wno-comment -MD -MT CMakeFiles/zigcpp.dir/src/windows_sdk.cpp.o -MF CMakeFiles/zigcpp.dir/src/windows_sdk.cpp.o.d -o CMakeFiles/zigcpp.dir/src/windows_sdk.cpp.o -c /tmp/zig-20230614-57369-mq2ulq/src/windows_sdk.cpp
/opt/homebrew/Library/Homebrew/shims/mac/super/clang++  -I/tmp/zig-20230614-57369-mq2ulq -I/tmp/zig-20230614-57369-mq2ulq/build -I/tmp/zig-20230614-57369-mq2ulq/src -O3 -DNDEBUG -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -std=c++17 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D_GNU_SOURCE -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Werror=type-limits -Wno-missing-braces -Wno-comment -MD -MT CMakeFiles/zigcpp.dir/src/zig_clang_cc1_main.cpp.o -MF CMakeFiles/zigcpp.dir/src/zig_clang_cc1_main.cpp.o.d -o CMakeFiles/zigcpp.dir/src/zig_clang_cc1_main.cpp.o -c /tmp/zig-20230614-57369-mq2ulq/src/zig_clang_cc1_main.cpp
/opt/homebrew/Library/Homebrew/shims/mac/super/clang++  -I/tmp/zig-20230614-57369-mq2ulq -I/tmp/zig-20230614-57369-mq2ulq/build -I/tmp/zig-20230614-57369-mq2ulq/src -O3 -DNDEBUG -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -std=c++17 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D_GNU_SOURCE -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Werror=type-limits -Wno-missing-braces -Wno-comment -MD -MT CMakeFiles/zigcpp.dir/src/zig_llvm-ar.cpp.o -MF CMakeFiles/zigcpp.dir/src/zig_llvm-ar.cpp.o.d -o CMakeFiles/zigcpp.dir/src/zig_llvm-ar.cpp.o -c /tmp/zig-20230614-57369-mq2ulq/src/zig_llvm-ar.cpp
/opt/homebrew/Library/Homebrew/shims/mac/super/clang++  -I/tmp/zig-20230614-57369-mq2ulq -I/tmp/zig-20230614-57369-mq2ulq/build -I/tmp/zig-20230614-57369-mq2ulq/src -O3 -DNDEBUG -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -std=c++17 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D_GNU_SOURCE -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Werror=type-limits -Wno-missing-braces -Wno-comment -MD -MT CMakeFiles/zigcpp.dir/src/zig_clang.cpp.o -MF CMakeFiles/zigcpp.dir/src/zig_clang.cpp.o.d -o CMakeFiles/zigcpp.dir/src/zig_clang.cpp.o -c /tmp/zig-20230614-57369-mq2ulq/src/zig_clang.cpp
[ 40%] Building CXX object CMakeFiles/zigcpp.dir/src/zig_clang_cc1as_main.cpp.o
/opt/homebrew/Library/Homebrew/shims/mac/super/clang++  -I/tmp/zig-20230614-57369-mq2ulq -I/tmp/zig-20230614-57369-mq2ulq/build -I/tmp/zig-20230614-57369-mq2ulq/src -O3 -DNDEBUG -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -std=c++17 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D_GNU_SOURCE -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Werror=type-limits -Wno-missing-braces -Wno-comment -MD -MT CMakeFiles/zigcpp.dir/src/zig_clang_cc1as_main.cpp.o -MF CMakeFiles/zigcpp.dir/src/zig_clang_cc1as_main.cpp.o.d -o CMakeFiles/zigcpp.dir/src/zig_clang_cc1as_main.cpp.o -c /tmp/zig-20230614-57369-mq2ulq/src/zig_clang_cc1as_main.cpp
[ 45%] Linking C executable zig-wasm2c
/opt/homebrew/Cellar/cmake/3.26.4/bin/cmake -E cmake_link_script CMakeFiles/zig-wasm2c.dir/link.txt --verbose=1
/opt/homebrew/Library/Homebrew/shims/mac/super/clang -O3 -DNDEBUG -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names "CMakeFiles/zig-wasm2c.dir/stage1/wasm2c.c.o" -o zig-wasm2c
[ 45%] Built target zig-wasm2c
/Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/zig1.dir/build.make CMakeFiles/zig1.dir/depend
[ 50%] Converting /tmp/zig-20230614-57369-mq2ulq/stage1/zig1.wasm to /tmp/zig-20230614-57369-mq2ulq/build/zig1.c
cd /tmp/zig-20230614-57369-mq2ulq && /tmp/zig-20230614-57369-mq2ulq/build/zig-wasm2c /tmp/zig-20230614-57369-mq2ulq/stage1/zig1.wasm /tmp/zig-20230614-57369-mq2ulq/build/zig1.c
cd /tmp/zig-20230614-57369-mq2ulq/build && /opt/homebrew/Cellar/cmake/3.26.4/bin/cmake -E cmake_depends "Unix Makefiles" /tmp/zig-20230614-57369-mq2ulq /tmp/zig-20230614-57369-mq2ulq /tmp/zig-20230614-57369-mq2ulq/build /tmp/zig-20230614-57369-mq2ulq/build /tmp/zig-20230614-57369-mq2ulq/build/CMakeFiles/zig1.dir/DependInfo.cmake --color=
/Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/zig1.dir/build.make CMakeFiles/zig1.dir/build
[ 60%] Building C object CMakeFiles/zig1.dir/stage1/wasi.c.o
[ 60%] Building C object CMakeFiles/zig1.dir/zig1.c.o
/opt/homebrew/Library/Homebrew/shims/mac/super/clang  -I/tmp/zig-20230614-57369-mq2ulq -I/tmp/zig-20230614-57369-mq2ulq/build -I/tmp/zig-20230614-57369-mq2ulq/src -O3 -DNDEBUG -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -std=c99 -Os -MD -MT CMakeFiles/zig1.dir/stage1/wasi.c.o -MF CMakeFiles/zig1.dir/stage1/wasi.c.o.d -o CMakeFiles/zig1.dir/stage1/wasi.c.o -c /tmp/zig-20230614-57369-mq2ulq/stage1/wasi.c
/opt/homebrew/Library/Homebrew/shims/mac/super/clang  -I/tmp/zig-20230614-57369-mq2ulq -I/tmp/zig-20230614-57369-mq2ulq/build -I/tmp/zig-20230614-57369-mq2ulq/src -O3 -DNDEBUG -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -std=c99 -Os -MD -MT CMakeFiles/zig1.dir/zig1.c.o -MF CMakeFiles/zig1.dir/zig1.c.o.d -o CMakeFiles/zig1.dir/zig1.c.o -c /tmp/zig-20230614-57369-mq2ulq/build/zig1.c
[ 65%] Linking CXX static library zigcpp/libzigcpp.a
/opt/homebrew/Cellar/cmake/3.26.4/bin/cmake -P CMakeFiles/zigcpp.dir/cmake_clean_target.cmake
/opt/homebrew/Cellar/cmake/3.26.4/bin/cmake -E cmake_link_script CMakeFiles/zigcpp.dir/link.txt --verbose=1
/usr/bin/ar qc zigcpp/libzigcpp.a CMakeFiles/zigcpp.dir/src/zig_llvm.cpp.o "CMakeFiles/zigcpp.dir/src/zig_llvm-ar.cpp.o" CMakeFiles/zigcpp.dir/src/zig_clang.cpp.o CMakeFiles/zigcpp.dir/src/zig_clang_driver.cpp.o CMakeFiles/zigcpp.dir/src/zig_clang_cc1_main.cpp.o CMakeFiles/zigcpp.dir/src/zig_clang_cc1as_main.cpp.o CMakeFiles/zigcpp.dir/src/windows_sdk.cpp.o
/usr/bin/ranlib zigcpp/libzigcpp.a
[ 65%] Built target zigcpp
[ 70%] Linking C executable zig1
/opt/homebrew/Cellar/cmake/3.26.4/bin/cmake -E cmake_link_script CMakeFiles/zig1.dir/link.txt --verbose=1
/opt/homebrew/Library/Homebrew/shims/mac/super/clang -O3 -DNDEBUG -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/zig1.dir/zig1.c.o CMakeFiles/zig1.dir/stage1/wasi.c.o -o zig1  -lm
[ 70%] Built target zig1
/Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/zig2.dir/build.make CMakeFiles/zig2.dir/depend
[ 80%] Running zig1.wasm to produce /tmp/zig-20230614-57369-mq2ulq/build/compiler_rt.c
[ 80%] Running zig1.wasm to produce /tmp/zig-20230614-57369-mq2ulq/build/zig2.c
cd /tmp/zig-20230614-57369-mq2ulq && /tmp/zig-20230614-57369-mq2ulq/build/zig1 /tmp/zig-20230614-57369-mq2ulq/lib build-obj lib/compiler_rt.zig -ofmt=c -OReleaseSmall --name compiler_rt -femit-bin="/tmp/zig-20230614-57369-mq2ulq/build/compiler_rt.c" --mod build_options::/tmp/zig-20230614-57369-mq2ulq/build/config.zig --deps build_options -target aarch64-macos
cd /tmp/zig-20230614-57369-mq2ulq && /tmp/zig-20230614-57369-mq2ulq/build/zig1 /tmp/zig-20230614-57369-mq2ulq/lib build-exe src/main.zig -ofmt=c -lc -OReleaseSmall --name zig2 -femit-bin="/tmp/zig-20230614-57369-mq2ulq/build/zig2.c" --mod build_options::/tmp/zig-20230614-57369-mq2ulq/build/config.zig --deps build_options -target aarch64-macos
cd /tmp/zig-20230614-57369-mq2ulq/build && /opt/homebrew/Cellar/cmake/3.26.4/bin/cmake -E cmake_depends "Unix Makefiles" /tmp/zig-20230614-57369-mq2ulq /tmp/zig-20230614-57369-mq2ulq /tmp/zig-20230614-57369-mq2ulq/build /tmp/zig-20230614-57369-mq2ulq/build /tmp/zig-20230614-57369-mq2ulq/build/CMakeFiles/zig2.dir/DependInfo.cmake --color=
/Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/zig2.dir/build.make CMakeFiles/zig2.dir/build
[ 90%] Building C object CMakeFiles/zig2.dir/compiler_rt.c.o
[ 90%] Building C object CMakeFiles/zig2.dir/zig2.c.o
/opt/homebrew/Library/Homebrew/shims/mac/super/clang  -I/tmp/zig-20230614-57369-mq2ulq -I/tmp/zig-20230614-57369-mq2ulq/build -I/tmp/zig-20230614-57369-mq2ulq/src -I/tmp/zig-20230614-57369-mq2ulq/stage1 -O3 -DNDEBUG -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -std=c99 -O0 -fno-stack-protector -MD -MT CMakeFiles/zig2.dir/compiler_rt.c.o -MF CMakeFiles/zig2.dir/compiler_rt.c.o.d -o CMakeFiles/zig2.dir/compiler_rt.c.o -c /tmp/zig-20230614-57369-mq2ulq/build/compiler_rt.c
/opt/homebrew/Library/Homebrew/shims/mac/super/clang  -I/tmp/zig-20230614-57369-mq2ulq -I/tmp/zig-20230614-57369-mq2ulq/build -I/tmp/zig-20230614-57369-mq2ulq/src -I/tmp/zig-20230614-57369-mq2ulq/stage1 -O3 -DNDEBUG -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -std=c99 -O0 -fno-stack-protector -MD -MT CMakeFiles/zig2.dir/zig2.c.o -MF CMakeFiles/zig2.dir/zig2.c.o.d -o CMakeFiles/zig2.dir/zig2.c.o -c /tmp/zig-20230614-57369-mq2ulq/build/zig2.c
[ 95%] Linking CXX executable zig2
/opt/homebrew/Cellar/cmake/3.26.4/bin/cmake -E cmake_link_script CMakeFiles/zig2.dir/link.txt --verbose=1
/opt/homebrew/Library/Homebrew/shims/mac/super/clang++ -O3 -DNDEBUG -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Wl,-stack_size,0x10000000 CMakeFiles/zig2.dir/zig2.c.o CMakeFiles/zig2.dir/compiler_rt.c.o -o zig2  zigcpp/libzigcpp.a /opt/homebrew/opt/llvm/lib/libclangFrontendTool.a /opt/homebrew/opt/llvm/lib/libclangCodeGen.a /opt/homebrew/opt/llvm/lib/libclangFrontend.a /opt/homebrew/opt/llvm/lib/libclangDriver.a /opt/homebrew/opt/llvm/lib/libclangSerialization.a /opt/homebrew/opt/llvm/lib/libclangSema.a /opt/homebrew/opt/llvm/lib/libclangStaticAnalyzerFrontend.a /opt/homebrew/opt/llvm/lib/libclangStaticAnalyzerCheckers.a /opt/homebrew/opt/llvm/lib/libclangStaticAnalyzerCore.a /opt/homebrew/opt/llvm/lib/libclangAnalysis.a /opt/homebrew/opt/llvm/lib/libclangASTMatchers.a /opt/homebrew/opt/llvm/lib/libclangAST.a /opt/homebrew/opt/llvm/lib/libclangParse.a /opt/homebrew/opt/llvm/lib/libclangSema.a /opt/homebrew/opt/llvm/lib/libclangStaticAnalyzerFrontend.a /opt/homebrew/opt/llvm/lib/libclangStaticAnalyzerCheckers.a /opt/homebrew/opt/llvm/lib/libclangStaticAnalyzerCore.a /opt/homebrew/opt/llvm/lib/libclangAnalysis.a /opt/homebrew/opt/llvm/lib/libclangASTMatchers.a /opt/homebrew/opt/llvm/lib/libclangAST.a /opt/homebrew/opt/llvm/lib/libclangParse.a /opt/homebrew/opt/llvm/lib/libclangBasic.a /opt/homebrew/opt/llvm/lib/libclangEdit.a /opt/homebrew/opt/llvm/lib/libclangLex.a /opt/homebrew/opt/llvm/lib/libclangARCMigrate.a /opt/homebrew/opt/llvm/lib/libclangRewriteFrontend.a /opt/homebrew/opt/llvm/lib/libclangRewrite.a /opt/homebrew/opt/llvm/lib/libclangCrossTU.a /opt/homebrew/opt/llvm/lib/libclangIndex.a /opt/homebrew/opt/llvm/lib/libclangToolingCore.a /opt/homebrew/opt/llvm/lib/libclangExtractAPI.a /opt/homebrew/opt/llvm/lib/libclangSupport.a /opt/homebrew/opt/llvm/lib/liblldMinGW.a /opt/homebrew/opt/llvm/lib/liblldELF.a /opt/homebrew/opt/llvm/lib/liblldCOFF.a /opt/homebrew/opt/llvm/lib/liblldWasm.a /opt/homebrew/opt/llvm/lib/liblldMachO.a /opt/homebrew/opt/llvm/lib/liblldCommon.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMWindowsManifest.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMXRay.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMLibDriver.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMDlltoolDriver.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMCoverage.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMLineEditor.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMXCoreDisassembler.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMXCoreCodeGen.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMXCoreDesc.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMXCoreInfo.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMX86TargetMCA.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMX86Disassembler.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMX86AsmParser.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMX86CodeGen.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMX86Desc.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMX86Info.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMWebAssemblyDisassembler.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMWebAssemblyAsmParser.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMWebAssemblyCodeGen.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMWebAssemblyDesc.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMWebAssemblyUtils.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMWebAssemblyInfo.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMVEDisassembler.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMVEAsmParser.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMVECodeGen.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMVEDesc.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMVEInfo.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMSystemZDisassembler.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMSystemZAsmParser.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMSystemZCodeGen.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMSystemZDesc.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMSystemZInfo.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMSparcDisassembler.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMSparcAsmParser.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMSparcCodeGen.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMSparcDesc.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMSparcInfo.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMRISCVTargetMCA.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMRISCVDisassembler.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMRISCVAsmParser.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMRISCVCodeGen.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMRISCVDesc.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMRISCVInfo.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMPowerPCDisassembler.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMPowerPCAsmParser.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMPowerPCCodeGen.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMPowerPCDesc.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMPowerPCInfo.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMNVPTXCodeGen.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMNVPTXDesc.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMNVPTXInfo.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMMSP430Disassembler.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMMSP430AsmParser.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMMSP430CodeGen.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMMSP430Desc.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMMSP430Info.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMMipsDisassembler.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMMipsAsmParser.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMMipsCodeGen.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMMipsDesc.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMMipsInfo.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMLoongArchDisassembler.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMLoongArchAsmParser.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMLoongArchCodeGen.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMLoongArchDesc.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMLoongArchInfo.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMLanaiDisassembler.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMLanaiCodeGen.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMLanaiAsmParser.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMLanaiDesc.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMLanaiInfo.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMHexagonDisassembler.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMHexagonCodeGen.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMHexagonAsmParser.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMHexagonDesc.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMHexagonInfo.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMBPFDisassembler.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMBPFAsmParser.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMBPFCodeGen.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMBPFDesc.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMBPFInfo.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAVRDisassembler.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAVRAsmParser.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAVRCodeGen.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAVRDesc.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAVRInfo.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMARMDisassembler.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMARMAsmParser.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMARMCodeGen.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMARMDesc.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMARMUtils.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMARMInfo.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAMDGPUTargetMCA.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAMDGPUDisassembler.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAMDGPUAsmParser.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAMDGPUCodeGen.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAMDGPUDesc.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAMDGPUUtils.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAMDGPUInfo.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAArch64Disassembler.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAArch64AsmParser.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAArch64CodeGen.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAArch64Desc.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAArch64Utils.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAArch64Info.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMOrcJIT.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMWindowsDriver.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMMCJIT.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMJITLink.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMInterpreter.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMExecutionEngine.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMRuntimeDyld.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMOrcTargetProcess.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMOrcShared.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMDWP.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMDebugInfoLogicalView.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMDebugInfoGSYM.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMOption.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMObjectYAML.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMObjCopy.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMMCA.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMMCDisassembler.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMLTO.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMCFGuard.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMFrontendOpenACC.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMFrontendHLSL.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMExtensions.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libPolly.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libPollyISL.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMPasses.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMCoroutines.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMipo.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMInstrumentation.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMVectorize.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMLinker.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMFrontendOpenMP.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMDWARFLinkerParallel.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMDWARFLinker.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMGlobalISel.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMMIRParser.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAsmPrinter.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMSelectionDAG.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMCodeGen.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMObjCARCOpts.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMIRPrinter.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMInterfaceStub.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMFileCheck.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMFuzzMutate.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMTarget.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMScalarOpts.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMInstCombine.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAggressiveInstCombine.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMTransformUtils.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMBitWriter.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAnalysis.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMProfileData.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMSymbolize.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMDebugInfoPDB.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMDebugInfoMSF.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMDebugInfoDWARF.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMObject.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMTextAPI.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMMCParser.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMIRReader.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMAsmParser.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMMC.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMDebugInfoCodeView.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMBitReader.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMFuzzerCLI.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMCore.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMRemarks.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMBitstreamReader.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMBinaryFormat.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMTargetParser.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMTableGen.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMSupport.a /opt/homebrew/Cellar/llvm/16.0.5/lib/libLLVMDemangle.a -lm /opt/homebrew/lib/libz3.dylib -lz -lzstd -lcurses -lxml2
[ 95%] Built target zig2
/Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/stage3.dir/build.make CMakeFiles/stage3.dir/depend
cd /tmp/zig-20230614-57369-mq2ulq/build && /opt/homebrew/Cellar/cmake/3.26.4/bin/cmake -E cmake_depends "Unix Makefiles" /tmp/zig-20230614-57369-mq2ulq /tmp/zig-20230614-57369-mq2ulq /tmp/zig-20230614-57369-mq2ulq/build /tmp/zig-20230614-57369-mq2ulq/build /tmp/zig-20230614-57369-mq2ulq/build/CMakeFiles/stage3.dir/DependInfo.cmake --color=
/Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/stage3.dir/build.make CMakeFiles/stage3.dir/build
[100%] Building stage3
cd /tmp/zig-20230614-57369-mq2ulq && /tmp/zig-20230614-57369-mq2ulq/build/zig2 build --prefix /tmp/zig-20230614-57369-mq2ulq/build/stage3 --zig-lib-dir /tmp/zig-20230614-57369-mq2ulq/lib -Dconfig_h=/tmp/zig-20230614-57369-mq2ulq/build/config.h -Denable-llvm -Doptimize=ReleaseFast -Dstrip -Dtarget=native -Dcpu=native -Dversion-string=0.11.0-dev.3639+38fc826a5
run docgen (langref.html): error:
The following command crashed:
/private/tmp/zig-20230614-57369-mq2ulq/build/zig2 build-exe --name cImport_builtin --color on cImport_builtin.zig --zig-lib-dir /tmp/zig-20230614-57369-mq2ulq/lib -lc
/private/tmp/zig-20230614-57369-mq2ulq/doc/langref.html.in:10775:20: error: example failed to compile
      {#link_libc#}

error: ParseError
/private/tmp/zig-20230614-57369-mq2ulq/doc/docgen.zig:1848:13: 0x1025d49ff in exec (docgen)
            return error.ChildCrashed;
            ^
/private/tmp/zig-20230614-57369-mq2ulq/doc/docgen.zig:287:5: 0x1025f1717 in parseError__anon_6280 (docgen)
    return error.ParseError;
    ^
/private/tmp/zig-20230614-57369-mq2ulq/doc/docgen.zig:1453:29: 0x1025e859b in genHtml__anon_4359 (docgen)
                            return parseError(tokenizer, code.source_token, "example failed to compile", .{});
                            ^
/private/tmp/zig-20230614-57369-mq2ulq/doc/docgen.zig:104:5: 0x1025f784b in main (docgen)
    try genHtml(allocator, &tokenizer, &toc, buffered_writer.writer(), zig_exe, opt_zig_lib_dir, do_code_tests);
    ^

run docgen (langref.html): error: the following command exited with error code 1:
/private/tmp/zig-20230614-57369-mq2ulq/zig-cache/o/ffae7fe04e231d62f3f8c242c6bb22a6/docgen --zig /private/tmp/zig-20230614-57369-mq2ulq/build/zig2 --zig-lib-dir /tmp/zig-20230614-57369-mq2ulq/lib /private/tmp/zig-20230614-57369-mq2ulq/doc/langref.html.in /private/tmp/zig-20230614-57369-mq2ulq/zig-cache/o/c0be23fa03b0c4f70a9e4b93576f39c6/langref.html
Build Summary: 5/8 steps succeeded; 1 failed (disable with -fno-summary)
install transitive failure
+- install generated to doc/langref.html transitive failure
|  +- run docgen (langref.html) failure
|     +- zig build-exe docgen Debug native success 2s MaxRSS:262M
+- install lib/ success
+- install zig success
   +- zig build-exe zig ReleaseFast native success 5m MaxRSS:3G
      +- options success
error: the following build command failed with exit code 1:
/private/tmp/zig-20230614-57369-mq2ulq/zig-cache/o/00f37e051882bbfb544af5cfd19cd065/build /private/tmp/zig-20230614-57369-mq2ulq/build/zig2 /private/tmp/zig-20230614-57369-mq2ulq /private/tmp/zig-20230614-57369-mq2ulq/zig-cache /private/tmp/zig-20230614-57369-mq2ulq/.brew_home/.cache/zig --prefix /tmp/zig-20230614-57369-mq2ulq/build/stage3 --zig-lib-dir /tmp/zig-20230614-57369-mq2ulq/lib -Dconfig_h=/tmp/zig-20230614-57369-mq2ulq/build/config.h -Denable-llvm -Doptimize=ReleaseFast -Dstrip -Dtarget=native -Dcpu=native -Dversion-string=0.11.0-dev.3639+38fc826a5
make[2]: *** [stage3/bin/zig] Error 1
make[2]: *** Deleting file `stage3/bin/zig'
make[1]: *** [CMakeFiles/stage3.dir/all] Error 2
make: *** [all] Error 2

==> Formula
Path: /Users/marcel/Library/Caches/Homebrew/downloads/e934f251dd80c010643a1cc0141258e48c689e2d82b5eefc42ff1688fd815701--zig.rb
==> Configuration
HOMEBREW_VERSION: 4.0.22-6-gf71294d
ORIGIN: https://github.com/Homebrew/brew
HEAD: f71294d483e1ce9920fd10d8169b1419c0ba41fb
Last commit: 19 hours ago
Core tap origin: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 41506fa6af492064f9ba76e46577a76796ef7bfd
Core tap last commit: 4 months ago
Core tap branch: master
Core tap JSON: 14 Jun 10:44 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 10
Homebrew Ruby: 2.6.10 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: 10-core 64-bit arm_firestorm_icestorm
Clang: 14.0.3 build 1403
Git: 2.41.0 => /opt/homebrew/bin/git
Curl: 7.88.1 => /usr/bin/curl
macOS: 13.4-arm64
CLT: 14.3.1.0.1.1683849156
Xcode: 14.3.1
Rosetta 2: false
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j10
CMAKE_PREFIX_PATH: /opt/homebrew/opt/llvm:/opt/homebrew
CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_PATH: /opt/homebrew/opt/z3/lib/pkgconfig:/opt/homebrew/opt/lz4/lib/pkgconfig:/opt/homebrew/opt/xz/lib/pkgconfig:/opt/homebrew/opt/zstd/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/opt/homebrew/Library/Homebrew/os/mac/pkgconfig/13
HOMEBREW_GIT: git
HOMEBREW_SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk
ACLOCAL_PATH: /opt/homebrew/share/aclocal
PATH: /opt/homebrew/Library/Homebrew/shims/mac/super:/opt/homebrew/opt/llvm/bin:/opt/homebrew/opt/z3/bin:/opt/homebrew/opt/cmake/bin:/opt/homebrew/opt/lz4/bin:/opt/homebrew/opt/xz/bin:/opt/homebrew/opt/zstd/bin:/usr/bin:/bin:/usr/sbin:/sbin

Error: zig HEAD-38fc826 did not build
Logs:
     /Users/marcel/Library/Logs/Homebrew/zig/02.cmake.cc
     /Users/marcel/Library/Logs/Homebrew/zig/00.options.out
     /Users/marcel/Library/Logs/Homebrew/zig/01.cmake.cc
     /Users/marcel/Library/Logs/Homebrew/zig/01.cmake
     /Users/marcel/Library/Logs/Homebrew/zig/02.cmake
     /Users/marcel/Library/Logs/Homebrew/zig/build
READ THIS: https://docs.brew.sh/Troubleshooting

zig's formula was built from an unstable upstream --HEAD.
This build failure is expected behaviour.
Do not create issues about this on Homebrew's GitHub repositories.
Any opened issues will be immediately closed without response.
Do not ask for help from Homebrew or its maintainers on social media.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.
marcelroed commented 1 year ago

Additionally, my PATH looks like this:

> echo $PATH
/opt/homebrew/Caskroom/miniforge/base/envs/3.11/bin /opt/homebrew/Caskroom/miniforge/base/condabin /opt/homebrew/opt/llvm/bin /Users/marcel/.config/emacs/bin /Users/marcel/.cargo/bin /opt/homebrew/sbin /opt/homebrew/bin /Users/marcel/.fzf/bin /Users/marcel/.local/bin /usr/local/bin /System/Cryptexes/App/usr/bin /usr/bin /bin /usr/sbin /sbin /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin /Library/Apple/usr/bin /Library/TeX/texbin

so I'm not sure where Homebrew is setting the path from for install.

marcelroed commented 1 year ago

I figured out a temporary fix. You can force the Homebrew shim to use the local LLVM install rather than AppleClang by setting the environment variable HOMEBREW_CC like this:

> HOMEBREW_CC=llvm_clang brew install zig --HEAD
andrewrk commented 1 year ago

Duplicate of #16102