[MacPorts] #68281: zig error: linker command failed with exit code 1
MacPorts
noreply at macports.org
Fri Sep 29 09:59:31 UTC 2023
#68281: zig error: linker command failed with exit code 1
--------------------------+--------------------
Reporter: wyuenho | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Keywords: sonoma arm64 | Port: zig
--------------------------+--------------------
{{{
$ sudo port -v install zig
---> Computing dependencies for zig.
---> Fetching archive for zig
---> zig-0.11.0_0.darwin_23.arm64.tbz2 doesn't seem to exist in
/opt/local/var/macports/incoming/verified
---> Attempting to fetch zig-0.11.0_0.darwin_23.arm64.tbz2 from
https://packages.macports.org/zig
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
0 126 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
0
---> Attempting to fetch zig-0.11.0_0.darwin_23.arm64.tbz2 from
https://ema.uk.packages.macports.org/zig
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
0---> Attempting to fetch zig-0.11.0_0.darwin_23.arm64.tbz2 from
https://mse.uk.packages.macports.org/zig
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
0 196 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
0
---> Building zig
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 -j10 -w all VERBOSE=ON
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'
/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.11.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
/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
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/Makefile2
all
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'
/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
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'
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.11.0
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/zig-0.11.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
/zig-wasm2c.dir/DependInfo.cmake --color=
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'
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.11.0
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/zig-0.11.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=
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'
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/zig-
wasm2c.dir/build.make CMakeFiles/zig-wasm2c.dir/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'
make[2]: Nothing to be done for `CMakeFiles/zig-wasm2c.dir/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'
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'
/Library/Developer/CommandLineTools/usr/bin/make -f
CMakeFiles/zigcpp.dir/build.make CMakeFiles/zigcpp.dir/build
[ 10%] Built target zig-wasm2c
/Library/Developer/CommandLineTools/usr/bin/make -f
CMakeFiles/zig1.dir/build.make CMakeFiles/zig1.dir/depend
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'
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.11.0
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/zig-0.11.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=
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'
make[2]: Nothing to be done for `CMakeFiles/zigcpp.dir/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'
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'
/Library/Developer/CommandLineTools/usr/bin/make -f
CMakeFiles/zig1.dir/build.make CMakeFiles/zig1.dir/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'
make[2]: Nothing to be done for `CMakeFiles/zig1.dir/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'
[ 47%] Built target zigcpp
[ 68%] Built target zig1
/Library/Developer/CommandLineTools/usr/bin/make -f
CMakeFiles/zig2.dir/build.make CMakeFiles/zig2.dir/depend
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'
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.11.0
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/zig-0.11.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=
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'
/Library/Developer/CommandLineTools/usr/bin/make -f
CMakeFiles/zig2.dir/build.make CMakeFiles/zig2.dir/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'
[ 73%] Linking CXX executable zig2
/opt/local/bin/cmake -E cmake_link_script CMakeFiles/zig2.dir/link.txt
--verbose=ON
/opt/local/bin/clang++-mp-16 -pipe -Os -DNDEBUG -I/opt/local/include
-stdlib=libc++
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64
-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -mmacosx-
version-min=14.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/MacOSX14.sdk
-Wl,-stack_size,0x10000000 CMakeFiles/zig2.dir/zig2.c.o
CMakeFiles/zig2.dir/compiler_rt.c.o -o zig2 -L/opt/local/libexec/llvm-16
-L/opt/local/libexec/llvm-16/lib -Wl,-rpath,/opt/local/lib
zigcpp/libzigcpp.a /opt/local/libexec/llvm-16/lib/libclangFrontendTool.a
/opt/local/libexec/llvm-16/lib/libclangCodeGen.a
/opt/local/libexec/llvm-16/lib/libclangFrontend.a
/opt/local/libexec/llvm-16/lib/libclangDriver.a
/opt/local/libexec/llvm-16/lib/libclangSerialization.a
/opt/local/libexec/llvm-16/lib/libclangSema.a
/opt/local/libexec/llvm-16/lib/libclangStaticAnalyzerFrontend.a
/opt/local/libexec/llvm-16/lib/libclangStaticAnalyzerCheckers.a
/opt/local/libexec/llvm-16/lib/libclangStaticAnalyzerCore.a
/opt/local/libexec/llvm-16/lib/libclangAnalysis.a
/opt/local/libexec/llvm-16/lib/libclangASTMatchers.a
/opt/local/libexec/llvm-16/lib/libclangAST.a
/opt/local/libexec/llvm-16/lib/libclangParse.a
/opt/local/libexec/llvm-16/lib/libclangSema.a
/opt/local/libexec/llvm-16/lib/libclangStaticAnalyzerFrontend.a
/opt/local/libexec/llvm-16/lib/libclangStaticAnalyzerCheckers.a
/opt/local/libexec/llvm-16/lib/libclangStaticAnalyzerCore.a
/opt/local/libexec/llvm-16/lib/libclangAnalysis.a
/opt/local/libexec/llvm-16/lib/libclangASTMatchers.a
/opt/local/libexec/llvm-16/lib/libclangAST.a
/opt/local/libexec/llvm-16/lib/libclangParse.a
/opt/local/libexec/llvm-16/lib/libclangBasic.a
/opt/local/libexec/llvm-16/lib/libclangEdit.a
/opt/local/libexec/llvm-16/lib/libclangLex.a
/opt/local/libexec/llvm-16/lib/libclangARCMigrate.a
/opt/local/libexec/llvm-16/lib/libclangRewriteFrontend.a
/opt/local/libexec/llvm-16/lib/libclangRewrite.a
/opt/local/libexec/llvm-16/lib/libclangCrossTU.a
/opt/local/libexec/llvm-16/lib/libclangIndex.a
/opt/local/libexec/llvm-16/lib/libclangToolingCore.a
/opt/local/libexec/llvm-16/lib/libclangExtractAPI.a
/opt/local/libexec/llvm-16/lib/libclangSupport.a
/opt/local/libexec/llvm-16/lib/liblldMinGW.a
/opt/local/libexec/llvm-16/lib/liblldELF.a
/opt/local/libexec/llvm-16/lib/liblldCOFF.a
/opt/local/libexec/llvm-16/lib/liblldWasm.a
/opt/local/libexec/llvm-16/lib/liblldMachO.a
/opt/local/libexec/llvm-16/lib/liblldCommon.a -lLLVMWindowsManifest
-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 -lLLVMRISCVTargetMCA
-lLLVMRISCVDisassembler -lLLVMRISCVAsmParser -lLLVMRISCVCodeGen
-lLLVMRISCVDesc -lLLVMRISCVInfo -lLLVMPowerPCDisassembler
-lLLVMPowerPCAsmParser -lLLVMPowerPCCodeGen -lLLVMPowerPCDesc
-lLLVMPowerPCInfo -lLLVMNVPTXCodeGen -lLLVMNVPTXDesc -lLLVMNVPTXInfo
-lLLVMMSP430Disassembler -lLLVMMSP430AsmParser -lLLVMMSP430CodeGen
-lLLVMMSP430Desc -lLLVMMSP430Info -lLLVMMipsDisassembler
-lLLVMMipsAsmParser -lLLVMMipsCodeGen -lLLVMMipsDesc -lLLVMMipsInfo
-lLLVMLoongArchDisassembler -lLLVMLoongArchAsmParser
-lLLVMLoongArchCodeGen -lLLVMLoongArchDesc -lLLVMLoongArchInfo
-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
-lLLVMWindowsDriver -lLLVMMCJIT -lLLVMJITLink -lLLVMInterpreter
-lLLVMExecutionEngine -lLLVMRuntimeDyld -lLLVMOrcTargetProcess
-lLLVMOrcShared -lLLVMDWP -lLLVMDebugInfoLogicalView -lLLVMDebugInfoGSYM
-lLLVMOption -lLLVMObjectYAML -lLLVMObjCopy -lLLVMMCA -lLLVMMCDisassembler
-lLLVMLTO -lLLVMCFGuard -lLLVMFrontendOpenACC -lLLVMFrontendHLSL
-lLLVMExtensions -lPolly -lPollyISL -lLLVMPasses -lLLVMCoroutines
-lLLVMipo -lLLVMInstrumentation -lLLVMVectorize -lLLVMLinker
-lLLVMFrontendOpenMP -lLLVMDWARFLinkerParallel -lLLVMDWARFLinker
-lLLVMGlobalISel -lLLVMMIRParser -lLLVMAsmPrinter -lLLVMSelectionDAG
-lLLVMCodeGen -lLLVMObjCARCOpts -lLLVMIRPrinter -lLLVMInterfaceStub
-lLLVMFileCheck -lLLVMFuzzMutate -lLLVMTarget -lLLVMScalarOpts
-lLLVMInstCombine -lLLVMAggressiveInstCombine -lLLVMTransformUtils
-lLLVMBitWriter -lLLVMAnalysis -lLLVMProfileData -lLLVMSymbolize
-lLLVMDebugInfoPDB -lLLVMDebugInfoMSF -lLLVMDebugInfoDWARF -lLLVMObject
-lLLVMTextAPI -lLLVMMCParser -lLLVMIRReader -lLLVMAsmParser -lLLVMMC
-lLLVMDebugInfoCodeView -lLLVMBitReader -lLLVMFuzzerCLI -lLLVMCore
-lLLVMRemarks -lLLVMBitstreamReader -lLLVMBinaryFormat -lLLVMTargetParser
-lLLVMTableGen -lLLVMSupport -lLLVMDemangle -lm -lz -lzstd -lcurses -lxml2
ld: warning: ignoring duplicate libraries:
'/opt/local/libexec/llvm-16/lib/libclangAST.a',
'/opt/local/libexec/llvm-16/lib/libclangASTMatchers.a',
'/opt/local/libexec/llvm-16/lib/libclangAnalysis.a',
'/opt/local/libexec/llvm-16/lib/libclangParse.a',
'/opt/local/libexec/llvm-16/lib/libclangSema.a',
'/opt/local/libexec/llvm-16/lib/libclangStaticAnalyzerCheckers.a',
'/opt/local/libexec/llvm-16/lib/libclangStaticAnalyzerCore.a',
'/opt/local/libexec/llvm-16/lib/libclangStaticAnalyzerFrontend.a'
duplicate symbol '__mh_execute_header' in:
/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/zig2.c.o
boundary-file
ld: 1 duplicate symbols
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[2]: *** [zig2] Error 1
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'
make[1]: *** [CMakeFiles/zig2.dir/all] Error 2
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'
make: *** [all] Error 2
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'
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 -j10 -w all VERBOSE=ON
Exit code: 2
Error: Failed to build zig: command execution failed
Error: 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.
Error: Follow https://guide.macports.org/#project.tickets if you believe
there is a bug.
Error: Processing of port zig failed
}}}
--
Ticket URL: <https://trac.macports.org/ticket/68281>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list