musl CI: link LLVM statically (and everything else too) #4699
+24
−16
Cirrus CI / FreeBSD 13.3 x64
failed
Jul 12, 2024 in 3m 56s
Task Summary
Instruction build_bootstrap_ldc failed in 02:33
Details
✅ 00:03 clone
✅ 01:10 install_prerequisites
✅ 00:02 clone_submodules_early
❌ 02:33 build_bootstrap_ldc
[71/215] Building CXX object CMakeFiles/LDCShared.dir/ir/irclass.cpp.o
[72/215] Building CXX object CMakeFiles/LDCShared.dir/ir/irfunction.cpp.o
[73/215] Building CXX object CMakeFiles/LDCShared.dir/ir/irfuncty.cpp.o
[74/215] Building CXX object CMakeFiles/LDCShared.dir/ir/irmodule.cpp.o
[75/215] Building CXX object CMakeFiles/LDCShared.dir/ir/irstruct.cpp.o
[76/215] Building CXX object CMakeFiles/LDCShared.dir/ir/irtype.cpp.o
[77/215] Building CXX object CMakeFiles/LDCShared.dir/ir/irtypeaggr.cpp.o
[78/215] Building CXX object CMakeFiles/LDCShared.dir/ir/irtypeclass.cpp.o
[79/215] Building CXX object CMakeFiles/LDCShared.dir/ir/irtypefunction.cpp.o
[80/215] Building CXX object CMakeFiles/LDCShared.dir/ir/irtypestruct.cpp.o
[81/215] Building CXX object CMakeFiles/LDCShared.dir/driver/args.cpp.o
[82/215] Building CXX object CMakeFiles/LDCShared.dir/driver/cl_helpers.cpp.o
[83/215] Building CXX object CMakeFiles/LDCShared.dir/ir/irvar.cpp.o
[84/215] Building CXX object CMakeFiles/LDCShared.dir/driver/cl_options_instrumentation.cpp.o
[85/215] Building CXX object CMakeFiles/LDCShared.dir/driver/cache.cpp.o
[86/215] Building CXX object CMakeFiles/LDCShared.dir/driver/cl_options-llvm.cpp.o
[87/215] Building CXX object CMakeFiles/LDCShared.dir/driver/cl_options_sanitizers.cpp.o
[88/215] Building CXX object CMakeFiles/LDCShared.dir/driver/configfile.cpp.o
[89/215] Building CXX object CMakeFiles/LDCShared.dir/driver/cl_options.cpp.o
[90/215] Building CXX object CMakeFiles/LDCShared.dir/driver/codegenerator.cpp.o
[91/215] Building CXX object CMakeFiles/LDCShared.dir/driver/exe_path.cpp.o
[92/215] Building CXX object CMakeFiles/LDCShared.dir/driver/cpreprocessor.cpp.o
[93/215] Building CXX object CMakeFiles/LDCShared.dir/driver/dcomputecodegenerator.cpp.o
[94/215] Building CXX object CMakeFiles/LDCShared.dir/driver/targetmachine.cpp.o
/tmp/cirrus-ci-build/driver/targetmachine.cpp:280:20: warning: unused function 'getLoongArch32TargetCPU' [-Wunused-function]
static std::string getLoongArch32TargetCPU(const llvm::Triple &triple) {
^
/tmp/cirrus-ci-build/driver/targetmachine.cpp:284:20: warning: unused function 'getLoongArch64TargetCPU' [-Wunused-function]
static std::string getLoongArch64TargetCPU(const llvm::Triple &triple) {
^
2 warnings generated.
[95/215] Building CXX object CMakeFiles/LDCShared.dir/driver/tool.cpp.o
[96/215] Building CXX object CMakeFiles/LDCShared.dir/driver/archiver.cpp.o
[97/215] Building CXX object CMakeFiles/LDCShared.dir/driver/linker.cpp.o
[98/215] Building CXX object CMakeFiles/LDCShared.dir/driver/toobj.cpp.o
[99/215] Building CXX object CMakeFiles/LDCShared.dir/driver/linker-msvc.cpp.o
[100/215] Building CXX object CMakeFiles/LDCShared.dir/driver/ldc-version.cpp.o
[101/215] Building CXX object CMakeFiles/LDCShared.dir/driver/linker-gcc.cpp.o
[102/215] Building CXX object CMakeFiles/LDMD_CXX_LIB.dir/driver/args.cpp.o
[103/215] Building CXX object CMakeFiles/LDMD_CXX_LIB.dir/driver/exe_path.cpp.o
[104/215] Building CXX object CMakeFiles/LDMD_CXX_LIB.dir/driver/ldmd.cpp.o
[105/215] Building CXX object CMakeFiles/LDCShared.dir/driver/plugins.cpp.o
[106/215] Generating obj/ldmd2.o
[107/215] Building CXX object CMakeFiles/LDMD_CXX_LIB.dir/driver/response.cpp.o
[108/215] Linking CXX static library lib/libldmd.a
[109/215] Linking CXX executable bin/ldmd2
[110/215] Building CXX object utils/CMakeFiles/gen_gccbuiltins.dir/gen_gccbuiltins.cpp.o
[111/215] Linking CXX executable bin/gen_gccbuiltins
FAILED: bin/gen_gccbuiltins
: && /usr/local/bin/clang++ -DDMDV2 -O3 -DNDEBUG utils/CMakeFiles/gen_gccbuiltins.dir/gen_gccbuiltins.cpp.o -o bin/gen_gccbuiltins -lLLVMTableGen -lLLVMWindowsManifest -lLLVMWindowsDriver -lLLVMLTO -lLLVMExtensions -lLLVMLibDriver -lLLVMOption -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 -lLLVMMCA -lLLVMAMDGPUDisassembler -lLLVMAMDGPUAsmParser -lLLVMAMDGPUCodeGen -lLLVMMIRParser -lLLVMAMDGPUDesc -lLLVMAMDGPUUtils -lLLVMAMDGPUInfo -lLLVMPasses -lLLVMObjCARCOpts -lLLVMCoroutines -lLLVMipo -lLLVMInstrumentation -lLLVMVectorize -lLLVMLinker -lLLVMIRReader -lLLVMAsmParser -lLLVMFrontendOpenMP -lLLVMAArch64Disassembler -lLLVMMCDisassembler -lLLVMAArch64AsmParser -lLLVMAArch64CodeGen -lLLVMCFGuard -lLLVMGlobalISel -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMCodeGen -lLLVMTarget -lLLVMScalarOpts -lLLVMInstCombine -lLLVMAggressiveInstCombine -lLLVMTransformUtils -lLLVMBitWriter -lLLVMAnalysis -lLLVMProfileData -lLLVMSymbolize -lLLVMDebugInfoPDB -lLLVMDebugInfoMSF -lLLVMDebugInfoDWARF -lLLVMObject -lLLVMTextAPI -lLLVMMCParser -lLLVMBitReader -lLLVMCore -lLLVMRemarks -lLLVMBitstreamReader -lLLVMAArch64Desc -lLLVMAArch64Utils -lLLVMAArch64Info -lLLVMMC -lLLVMDebugInfoCodeView -lLLVMBinaryFormat -lLLVMSupport -lLLVMDemangle -L/usr/local/llvm15/lib -lrt -lexecinfo -lpthread -lm -lz -lzstd && :
ld: error: unable to find library -lzstd
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
[112/215] Building CXX object CMakeFiles/LDCShared.dir/driver/main.cpp.o
[113/215] Generating obj/ldc-build-runtime.o
[114/215] Generating obj/ldc2.o
ninja: build stopped: subcommand failed.
Loading