#66173 closed defect (duplicate)
zig 0.10.0 fails to build on arm64
Reported by: | breun (Nils Breunese) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.0 |
Keywords: | arm64 | Cc: | felix@… |
Port: | zig |
Description (last modified by breun (Nils Breunese))
~ ❯ sw_vers ProductName: macOS ProductVersion: 13.0 BuildVersion: 22A380 ~ ❯ sudo port install zig ---> Computing dependencies for zig ---> Fetching archive for zig ---> Attempting to fetch zig-0.10.0_0.darwin_22.arm64.tbz2 from https://packages.macports.org/zig ---> Attempting to fetch zig-0.10.0_0.darwin_22.arm64.tbz2 from https://ema.uk.packages.macports.org/zig ---> Attempting to fetch zig-0.10.0_0.darwin_22.arm64.tbz2 from https://fra.de.packages.macports.org/zig ---> Building zig Error: Failed to build zig: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_zig/zig/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Error: Processing of port zig failed
The end of /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_zig/zig/main.log
looks like this:
:info:build ld: warning: directory not found for option '-L/opt/local/share/cmake/Modules' :info:build Undefined symbols for architecture arm64: :info:build "_panic_stage", referenced from: :info:build _std.debug.panicImpl in zig2.o :info:build "_panic_state_raw", referenced from: :info:build _crash_report.PanicSwitch.preDispatch in zig2.o :info:build _crash_report.PanicSwitch.dispatch in zig2.o :info:build "_zir_state", referenced from: :info:build _crash_report.AnalyzeBody.push in zig2.o :info:build _crash_report.AnalyzeBody.pop in zig2.o :info:build _crash_report.dumpStatusReport in zig2.o :info:build ld: symbol(s) not found for architecture arm64 :info:build clang: error: linker command failed with exit code 1 (use -v to see invocation) :info:build make[2]: *** [zig2] Error 1 :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_zig/zig/work/build' :info:build make[1]: *** [CMakeFiles/zig2.dir/all] Error 2 :info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_zig/zig/work/build' :info:build make: *** [all] Error 2 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_zig/zig/work/build' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_zig/zig/work/build" && /usr/bin/make -j10 -w all VERBOSE=ON :info:build Exit code: 2 :error:build Failed to build zig: command execution failed :debug:build Error code: CHILDSTATUS 62106 2 :debug:build Backtrace: command execution failed :debug:build while executing :debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring" :debug:build invoked from within :debug:build "command_exec -callback portprogress::target_progress_callback build" :debug:build (procedure "portbuild::build_main" line 8) :debug:build invoked from within :debug:build "$procedure $targetname" :error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_zig/zig/main.log for details.
https://ports.macports.org/port/zig/details/ shows that zig
also fails to build on the arm64 versions of Monterey and Big Sur due the same issue.
Change History (9)
comment:1 Changed 2 years ago by kencu (Ken)
comment:2 Changed 2 years ago by christoph-morrison (Christoph 'knurd' Morrison)
Same on 13.0.1
ProductName: macOS ProductVersion: 13.0.1 BuildVersion: 22A400
:info:build Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build" && /usr/bin/make -j20 -w all VERBOSE=ON :debug:build system: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build" && /usr/bin/make -j20 -w all VERBOSE=ON :info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build' :info:build /opt/local/bin/cmake -S/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/zig-0.10.0 -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build --check-build-system CMakeFiles/Makefile.cmake 0 :info:build /opt/local/bin/cmake -E cmake_progress_start /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build/CMakeFiles /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build//CMakeFiles/progress.marks :info:build /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/Makefile2 all :info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build' :info:build /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/embedded_softfloat.dir/build.make CMakeFiles/embedded_softfloat.dir/depend :info:build /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/zigcpp.dir/build.make CMakeFiles/zigcpp.dir/depend :info:build /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/opt_c_util.dir/build.make CMakeFiles/opt_c_util.dir/depend :info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build' :info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/zig-0.10.0 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/zig-0.10.0 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build/CMakeFiles/opt_c_util.dir/DependInfo.cmake --color= :info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build' :info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/zig-0.10.0 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/zig-0.10.0 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build/CMakeFiles/zigcpp.dir/DependInfo.cmake --color= :info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build' :info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/zig-0.10.0 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/zig-0.10.0 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build/CMakeFiles/embedded_softfloat.dir/DependInfo.cmake --color= :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build' :info:build /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/opt_c_util.dir/build.make CMakeFiles/opt_c_util.dir/build :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build' :info:build /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/zigcpp.dir/build.make CMakeFiles/zigcpp.dir/build :info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build' :info:build make[2]: Nothing to be done for `CMakeFiles/opt_c_util.dir/build'. :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build' :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build' :info:build /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/embedded_softfloat.dir/build.make CMakeFiles/embedded_softfloat.dir/build :info:build [ 1%] Built target opt_c_util :info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build' :info:build make[2]: Nothing to be done for `CMakeFiles/embedded_softfloat.dir/build'. :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build' :info:build [ 82%] Built target embedded_softfloat :info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build' :info:build make[2]: Nothing to be done for `CMakeFiles/zigcpp.dir/build'. :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build' :info:build [ 86%] Built target zigcpp :info:build /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/zigstage1.dir/build.make CMakeFiles/zigstage1.dir/depend :info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build' :info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/zig-0.10.0 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/zig-0.10.0 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build/CMakeFiles/zigstage1.dir/DependInfo.cmake --color= :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build' :info:build /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/zigstage1.dir/build.make CMakeFiles/zigstage1.dir/build :info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build' :info:build make[2]: Nothing to be done for `CMakeFiles/zigstage1.dir/build'. :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build' :info:build [ 97%] Built target zigstage1 :info:build /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/zig1.dir/build.make CMakeFiles/zig1.dir/depend :info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build' :info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/zig-0.10.0 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/zig-0.10.0 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build/CMakeFiles/zig1.dir/DependInfo.cmake --color= :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build' :info:build /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/zig1.dir/build.make CMakeFiles/zig1.dir/build :info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build' :info:build make[2]: Nothing to be done for `CMakeFiles/zig1.dir/build'. :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build' :info:build [ 98%] Built target zig1 :info:build /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/zig2.dir/build.make CMakeFiles/zig2.dir/depend :info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build' :info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/zig-0.10.0 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/zig-0.10.0 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build/CMakeFiles/zig2.dir/DependInfo.cmake --color= :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build' :info:build /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/zig2.dir/build.make CMakeFiles/zig2.dir/build :info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build' :info:build [ 99%] Linking CXX executable zig2 :info:build /opt/local/bin/cmake -E cmake_link_script CMakeFiles/zig2.dir/link.txt --verbose=ON :info:build /opt/local/bin/clang++-mp-15 -pipe -Os -DNDEBUG -I/opt/local/include -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -mmacosx-version-min=13.0 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk CMakeFiles/zig2.dir/src/stage1/empty.cpp.o zig2.o -o zig2 -L/opt/local/share/cmake/Modules -L/opt/local/libexec/llvm-15 -L/opt/local/libexec/llvm-15/lib -Wl,-rpath,/opt/local/lib zigcpp/libzigstage1.a zigcpp/libopt_c_util.a zigcpp/libembedded_softfloat.a zigcpp/libzigcpp.a /opt/local/libexec/llvm-15/lib/libclangFrontendTool.a /opt/local/libexec/llvm-15/lib/libclangCodeGen.a /opt/local/libexec/llvm-15/lib/libclangFrontend.a /opt/local/libexec/llvm-15/lib/libclangDriver.a /opt/local/libexec/llvm-15/lib/libclangSerialization.a /opt/local/libexec/llvm-15/lib/libclangSema.a /opt/local/libexec/llvm-15/lib/libclangStaticAnalyzerFrontend.a /opt/local/libexec/llvm-15/lib/libclangStaticAnalyzerCheckers.a /opt/local/libexec/llvm-15/lib/libclangStaticAnalyzerCore.a /opt/local/libexec/llvm-15/lib/libclangAnalysis.a /opt/local/libexec/llvm-15/lib/libclangASTMatchers.a /opt/local/libexec/llvm-15/lib/libclangAST.a /opt/local/libexec/llvm-15/lib/libclangParse.a /opt/local/libexec/llvm-15/lib/libclangSema.a /opt/local/libexec/llvm-15/lib/libclangStaticAnalyzerFrontend.a /opt/local/libexec/llvm-15/lib/libclangStaticAnalyzerCheckers.a /opt/local/libexec/llvm-15/lib/libclangStaticAnalyzerCore.a /opt/local/libexec/llvm-15/lib/libclangAnalysis.a /opt/local/libexec/llvm-15/lib/libclangASTMatchers.a /opt/local/libexec/llvm-15/lib/libclangAST.a /opt/local/libexec/llvm-15/lib/libclangParse.a /opt/local/libexec/llvm-15/lib/libclangBasic.a /opt/local/libexec/llvm-15/lib/libclangEdit.a /opt/local/libexec/llvm-15/lib/libclangLex.a /opt/local/libexec/llvm-15/lib/libclangARCMigrate.a /opt/local/libexec/llvm-15/lib/libclangRewriteFrontend.a /opt/local/libexec/llvm-15/lib/libclangRewrite.a /opt/local/libexec/llvm-15/lib/libclangCrossTU.a /opt/local/libexec/llvm-15/lib/libclangIndex.a /opt/local/libexec/llvm-15/lib/libclangToolingCore.a /opt/local/libexec/llvm-15/lib/libclangExtractAPI.a /opt/local/libexec/llvm-15/lib/libclangSupport.a /opt/local/libexec/llvm-15/lib/liblldMinGW.a /opt/local/libexec/llvm-15/lib/liblldELF.a /opt/local/libexec/llvm-15/lib/liblldCOFF.a /opt/local/libexec/llvm-15/lib/liblldWasm.a /opt/local/libexec/llvm-15/lib/liblldMachO.a /opt/local/libexec/llvm-15/lib/liblldCommon.a -lLLVMWindowsManifest -lLLVMWindowsDriver -lLLVMXRay -lLLVMLibDriver -lLLVMDlltoolDriver -lLLVMCoverage -lLLVMLineEditor -lLLVMXCoreDisassembler -lLLVMXCoreCodeGen -lLLVMXCoreDesc -lLLVMXCoreInfo -lLLVMX86TargetMCA -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMX86Desc -lLLVMX86Info -lLLVMWebAssemblyDisassembler -lLLVMWebAssemblyAsmParser -lLLVMWebAssemblyCodeGen -lLLVMWebAssemblyDesc -lLLVMWebAssemblyUtils -lLLVMWebAssemblyInfo -lLLVMVEDisassembler -lLLVMVEAsmParser -lLLVMVECodeGen -lLLVMVEDesc -lLLVMVEInfo -lLLVMSystemZDisassembler -lLLVMSystemZAsmParser -lLLVMSystemZCodeGen -lLLVMSystemZDesc -lLLVMSystemZInfo -lLLVMSparcDisassembler -lLLVMSparcAsmParser -lLLVMSparcCodeGen -lLLVMSparcDesc -lLLVMSparcInfo -lLLVMRISCVDisassembler -lLLVMRISCVAsmParser -lLLVMRISCVCodeGen -lLLVMRISCVDesc -lLLVMRISCVInfo -lLLVMPowerPCDisassembler -lLLVMPowerPCAsmParser -lLLVMPowerPCCodeGen -lLLVMPowerPCDesc -lLLVMPowerPCInfo -lLLVMNVPTXCodeGen -lLLVMNVPTXDesc -lLLVMNVPTXInfo -lLLVMMSP430Disassembler -lLLVMMSP430AsmParser -lLLVMMSP430CodeGen -lLLVMMSP430Desc -lLLVMMSP430Info -lLLVMMipsDisassembler -lLLVMMipsAsmParser -lLLVMMipsCodeGen -lLLVMMipsDesc -lLLVMMipsInfo -lLLVMLanaiDisassembler -lLLVMLanaiCodeGen -lLLVMLanaiAsmParser -lLLVMLanaiDesc -lLLVMLanaiInfo -lLLVMHexagonDisassembler -lLLVMHexagonCodeGen -lLLVMHexagonAsmParser -lLLVMHexagonDesc -lLLVMHexagonInfo -lLLVMBPFDisassembler -lLLVMBPFAsmParser -lLLVMBPFCodeGen -lLLVMBPFDesc -lLLVMBPFInfo -lLLVMAVRDisassembler -lLLVMAVRAsmParser -lLLVMAVRCodeGen -lLLVMAVRDesc -lLLVMAVRInfo -lLLVMARMDisassembler -lLLVMARMAsmParser -lLLVMARMCodeGen -lLLVMARMDesc -lLLVMARMUtils -lLLVMARMInfo -lLLVMAMDGPUTargetMCA -lLLVMAMDGPUDisassembler -lLLVMAMDGPUAsmParser -lLLVMAMDGPUCodeGen -lLLVMAMDGPUDesc -lLLVMAMDGPUUtils -lLLVMAMDGPUInfo -lLLVMAArch64Disassembler -lLLVMAArch64AsmParser -lLLVMAArch64CodeGen -lLLVMAArch64Desc -lLLVMAArch64Utils -lLLVMAArch64Info -lLLVMOrcJIT -lLLVMMCJIT -lLLVMJITLink -lLLVMInterpreter -lLLVMExecutionEngine -lLLVMRuntimeDyld -lLLVMOrcTargetProcess -lLLVMOrcShared -lLLVMDWP -lLLVMDebugInfoGSYM -lLLVMOption -lLLVMObjectYAML -lLLVMObjCopy -lLLVMMCA -lLLVMMCDisassembler -lLLVMLTO -lLLVMCFGuard -lLLVMFrontendOpenACC -lLLVMExtensions -lPolly -lPollyISL -lLLVMPasses -lLLVMObjCARCOpts -lLLVMCoroutines -lLLVMipo -lLLVMInstrumentation -lLLVMVectorize -lLLVMLinker -lLLVMFrontendOpenMP -lLLVMDWARFLinker -lLLVMGlobalISel -lLLVMMIRParser -lLLVMAsmPrinter -lLLVMSelectionDAG -lLLVMCodeGen -lLLVMIRReader -lLLVMAsmParser -lLLVMInterfaceStub -lLLVMFileCheck -lLLVMFuzzMutate -lLLVMTarget -lLLVMScalarOpts -lLLVMInstCombine -lLLVMAggressiveInstCombine -lLLVMTransformUtils -lLLVMBitWriter -lLLVMAnalysis -lLLVMProfileData -lLLVMSymbolize -lLLVMDebugInfoPDB -lLLVMDebugInfoMSF -lLLVMDebugInfoDWARF -lLLVMObject -lLLVMTextAPI -lLLVMMCParser -lLLVMMC -lLLVMDebugInfoCodeView -lLLVMBitReader -lLLVMFuzzerCLI -lLLVMCore -lLLVMRemarks -lLLVMBitstreamReader -lLLVMBinaryFormat -lLLVMTableGen -lLLVMSupport -lLLVMDemangle -lm -lz -lzstd -lcurses -lxml2 :info:build ld: warning: directory not found for option '-L/opt/local/share/cmake/Modules' :info:build Undefined symbols for architecture arm64: :info:build "_panic_stage", referenced from: :info:build _std.debug.panicImpl in zig2.o :info:build "_panic_state_raw", referenced from: :info:build _crash_report.PanicSwitch.preDispatch in zig2.o :info:build _crash_report.PanicSwitch.dispatch in zig2.o :info:build "_zir_state", referenced from: :info:build _crash_report.AnalyzeBody.push in zig2.o :info:build _crash_report.AnalyzeBody.pop in zig2.o :info:build _crash_report.dumpStatusReport in zig2.o :info:build ld: symbol(s) not found for architecture arm64 :info:build clang: error: linker command failed with exit code 1 (use -v to see invocation) :info:build make[2]: *** [zig2] Error 1 :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build' :info:build make[1]: *** [CMakeFiles/zig2.dir/all] Error 2 :info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build' :info:build make: *** [all] Error 2 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build" && /usr/bin/make -j20 -w all VERBOSE=ON :info:build Exit code: 2 :error:build Failed to build zig: command execution failed :debug:build Error code: CHILDSTATUS 53517 2 :debug:build Backtrace: command execution failed :debug:build while executing :debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring" :debug:build invoked from within :debug:build "command_exec -callback portprogress::target_progress_callback build" :debug:build (procedure "portbuild::build_main" line 8) :debug:build invoked from within :debug:build "$procedure $targetname" :error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/main.log for details.
There is a folder missing (Modules) in /opt/local/share/cmake
ls /opt/local/share/cmake GtkDoc bash-completion
but in /opt/local/share/cmake-3.23:
ls /opt/local/share/cmake-3.23 Help Modules Templates include
But even after symlinking Modules to /opt/local/share/cmake, the build fails with the same error, but the directory not found warning is gone
comment:3 Changed 2 years ago by kencu (Ken)
removing a patchfile seems to work for some. See ticket:65333
comment:4 Changed 2 years ago by breun (Nils Breunese)
What patch file are you referring to? I don't see any patches when I look at https://github.com/macports/macports-ports/tree/master/lang/zig
comment:5 Changed 2 years ago by breun (Nils Breunese)
Description: | modified (diff) |
---|---|
Summary: | zig 0.10.0 fails to build on macOS 13 arm64 → zig 0.10.0 fails to build on arm64 |
comment:6 Changed 2 years ago by kencu (Ken)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
there is more information in the other ticket, so what say we re-open that and close this, to keep it all in one place?
comment:7 Changed 2 years ago by breun (Nils Breunese)
i0ntempest said the following about this ticket in ticket:65333: “That's a different error, though might be caused by the same thing (the emutls patch for llvm).” I don’t know if this is a duplicate or not.
The other ticket was also already closed, even though arm64 builds wet still failing on the buildbots, so I created this new ticket, but I see it’s been reopened now.
comment:9 Changed 2 years ago by kencu (Ken)
what's in this ticket is a small subset of the information there, which is more useful.
see also 65333