ziglang / zig

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

zig 0.8.0 does not build against llvm 12.0.0 if build with shared libs #9032

Closed TimB87 closed 3 years ago

TimB87 commented 3 years ago

Hi!

In the past I compiled zig 0.7.1 against a llvm version which was compiled with -D BUILD_SHARED_LIBS=ON. Now, it doesn't seem to support that anymore, as I hit the following:

prt-get: updating /usr/ports/overlay/zig
prt-get: starting build Mon Jun  7 18:40:27 2021
=======> Building '/home/pkgmk/packages/zig#0.8.0-1.pkg.tar.xz'.
bsdtar -p -o -C /home/pkgmk/work/zig/src -xf /home/pkgmk/distfiles/zig-0.8.0.tar.xz
cp resolve_DNS.patch /home/pkgmk/work/zig/src
+ build
+ export CC=clang CXX=clang++ AR=llvm-ar NM=llvm-nm RANLIB=llvm-ranlib 'LDFLAGS+= -fuse-ld=lld'
+ CC=clang
+ CXX=clang++
+ AR=llvm-ar
+ NM=llvm-nm
+ RANLIB=llvm-ranlib
+ LDFLAGS+=' -fuse-ld=lld'
+ patch -Np1 -d zig-0.8.0 -i /home/pkgmk/work/zig/src/resolve_DNS.patch
patching file lib/std/net/test.zig
+ [[ -e /usr/bin/ninja ]]
+ PKGMK_ZIG+=' -G Ninja'
+ cmake -S zig-0.8.0 -B build -G Ninja -D CMAKE_INSTALL_PREFIX=/usr -D CMAKE_BUILD_TYPE=Release -D 'CMAKE_CXX_FLAGS_RELEASE=-march=x86-64 -O2' -D 'CMAKE_C_FLAGS_RELEASE=-march=x86-64 -O2' -D ZIG_PREFER_CLANG_CPP_DYLIB=OFF -Wno-dev
-- Found ccache /usr/bin/ccache
-- The C compiler identification is Clang 12.0.0
-- The CXX compiler identification is Clang 12.0.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/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: /usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Configuring zig version 0.8.0
-- Found llvm: -lLLVMWindowsManifest;-lLLVMXRay;-lLLVMLibDriver;-lLLVMDlltoolDriver;-lLLVMCoverage;-lLLVMLineEditor;-lLLVMXCoreDisassembler;-lLLVMXCoreCodeGen;-lLLVMXCoreDesc;-lLLVMXCoreInfo;-lLLVMX86Disassembler;-lLLVMX86AsmParser;-lLLVMX86CodeGen;-lLLVMX86Desc;-lLLVMX86Info;-lLLVMWebAssemblyDisassembler;-lLLVMWebAssemblyAsmParser;-lLLVMWebAssemblyCodeGen;-lLLVMWebAssemblyDesc;-lLLVMWebAssemblyInfo;-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;-lLLVMAMDGPUDisassembler;-lLLVMAMDGPUAsmParser;-lLLVMAMDGPUCodeGen;-lLLVMAMDGPUDesc;-lLLVMAMDGPUUtils;-lLLVMAMDGPUInfo;-lLLVMAArch64Disassembler;-lLLVMAArch64AsmParser;-lLLVMAArch64CodeGen;-lLLVMAArch64Desc;-lLLVMAArch64Utils;-lLLVMAArch64Info;-lLLVMOrcJIT;-lLLVMMCJIT;-lLLVMJITLink;-lLLVMOrcTargetProcess;-lLLVMOrcShared;-lLLVMInterpreter;-lLLVMExecutionEngine;-lLLVMRuntimeDyld;-lLLVMSymbolize;-lLLVMDebugInfoPDB;-lLLVMDebugInfoGSYM;-lLLVMOption;-lLLVMObjectYAML;-lLLVMMCA;-lLLVMMCDisassembler;-lLLVMLTO;-lLLVMPasses;-lLLVMCFGuard;-lLLVMCoroutines;-lLLVMObjCARCOpts;-lLLVMHelloNew;-lLLVMipo;-lLLVMVectorize;-lLLVMLinker;-lLLVMInstrumentation;-lLLVMFrontendOpenMP;-lLLVMFrontendOpenACC;-lLLVMExtensions;-lLLVMDWARFLinker;-lLLVMGlobalISel;-lLLVMMIRParser;-lLLVMAsmPrinter;-lLLVMDebugInfoDWARF;-lLLVMSelectionDAG;-lLLVMCodeGen;-lLLVMIRReader;-lLLVMAsmParser;-lLLVMInterfaceStub;-lLLVMFileCheck;-lLLVMFuzzMutate;-lLLVMTarget;-lLLVMScalarOpts;-lLLVMInstCombine;-lLLVMAggressiveInstCombine;-lLLVMTransformUtils;-lLLVMBitWriter;-lLLVMAnalysis;-lLLVMProfileData;-lLLVMObject;-lLLVMTextAPI;-lLLVMMCParser;-lLLVMMC;-lLLVMDebugInfoCodeView;-lLLVMDebugInfoMSF;-lLLVMBitReader;-lLLVMCore;-lLLVMRemarks;-lLLVMBitstreamReader;-lLLVMBinaryFormat;-lLLVMTableGen;-lLLVMSupport;-lLLVMDemangle  
-- Found clang: /usr/lib/libclangFrontendTool.so;/usr/lib/libclangCodeGen.so;/usr/lib/libclangFrontend.so;/usr/lib/libclangDriver.so;/usr/lib/libclangSerialization.so;/usr/lib/libclangSema.so;/usr/lib/libclangStaticAnalyzerFrontend.so;/usr/lib/libclangStaticAnalyzerCheckers.so;/usr/lib/libclangStaticAnalyzerCore.so;/usr/lib/libclangAnalysis.so;/usr/lib/libclangASTMatchers.so;/usr/lib/libclangAST.so;/usr/lib/libclangParse.so;/usr/lib/libclangSema.so;/usr/lib/libclangBasic.so;/usr/lib/libclangEdit.so;/usr/lib/libclangLex.so;/usr/lib/libclangARCMigrate.so;/usr/lib/libclangRewriteFrontend.so;/usr/lib/libclangRewrite.so;/usr/lib/libclangCrossTU.so;/usr/lib/libclangIndex.so;/usr/lib/libclangToolingCore.so  
-- Found lld: /usr/lib/liblldDriver.so;/usr/lib/liblldMinGW.so;/usr/lib/liblldELF.so;/usr/lib/liblldCOFF.so;/usr/lib/liblldMachO.so;/usr/lib/liblldWasm.so;/usr/lib/liblldReaderWriter.so;/usr/lib/liblldCore.so;/usr/lib/liblldYAML.so;/usr/lib/liblldCommon.so  
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pkgmk/work/zig/src/build
+ cmake --build build
[1/164] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/buffer.cpp.o
[2/164] Building CXX object CMakeFiles/zig0.dir/src/stage1/zig0.cpp.o
[3/164] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/bigfloat.cpp.o
[4/164] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/errmsg.cpp.o
[5/164] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/error.cpp.o
[6/164] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/heap.cpp.o
[7/164] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/bigint.cpp.o
[8/164] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/ir_print.cpp.o
[9/164] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/dump_analysis.cpp.o
[10/164] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/mem.cpp.o
[11/164] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/os.cpp.o
[12/164] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/range_set.cpp.o
[13/164] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/softfloat_ext.cpp.o
[14/164] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/stage1.cpp.o
[15/164] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/target.cpp.o
[16/164] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/parser.cpp.o
[17/164] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/util.cpp.o
[18/164] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/tokenizer.cpp.o
[19/164] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/codegen.cpp.o
[20/164] Building C object CMakeFiles/opt_c_util.dir/src/stage1/parse_f128.c.o
[21/164] Linking C static library zigcpp/libopt_c_util.a
[22/164] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/analyze.cpp.o
[23/164] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/astgen.cpp.o
[24/164] Building CXX object CMakeFiles/zigcpp.dir/src/zig_llvm-ar.cpp.o
[25/164] Building CXX object CMakeFiles/zigcpp.dir/src/zig_clang_cc1as_main.cpp.o
[26/164] Building CXX object CMakeFiles/zigcpp.dir/src/windows_sdk.cpp.o
[27/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/f128M_isSignalingNaN.c.o
[28/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_commonNaNToF128M.c.o
[29/164] Building CXX object CMakeFiles/zigcpp.dir/src/zig_clang.cpp.o
[30/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_commonNaNToF16UI.c.o
[31/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_countLeadingZeros32.c.o
[32/164] Building CXX object CMakeFiles/zigcpp.dir/src/zig_clang_driver.cpp.o
[33/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_commonNaNToF32UI.c.o
[34/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_commonNaNToF64UI.c.o
[35/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_f128MToCommonNaN.c.o
[36/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_f16UIToCommonNaN.c.o
[37/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_f32UIToCommonNaN.c.o
[38/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_f64UIToCommonNaN.c.o
[39/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_propagateNaNF128M.c.o
[40/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_add.c.o
[41/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/softfloat_raiseFlags.c.o
[42/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_propagateNaNF16UI.c.o
[43/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_div.c.o
[44/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_eq.c.o
[45/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_eq_signaling.c.o
[46/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_le_quiet.c.o
[47/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_le.c.o
[48/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_lt.c.o
[49/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_lt_quiet.c.o
[50/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_mulAdd.c.o
[51/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_mul.c.o
[52/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_rem.c.o
[53/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_roundToInt.c.o
[54/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_sqrt.c.o
[55/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_sub.c.o
[56/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_f16.c.o
[57/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_f32.c.o
[58/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_f64.c.o
[59/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_i32.c.o
[60/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_i32_r_minMag.c.o
[61/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_i64.c.o
[62/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_i64_r_minMag.c.o
[63/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_ui32.c.o
[64/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_ui32_r_minMag.c.o
[65/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_ui64.c.o
[66/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_ui64_r_minMag.c.o
[67/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_add.c.o
[68/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_div.c.o
[69/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_eq.c.o
[70/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_isSignalingNaN.c.o
[71/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_lt.c.o
[72/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_rem.c.o
[73/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_mul.c.o
[74/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_roundToInt.c.o
[75/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_to_f128M.c.o
[76/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_sqrt.c.o
[77/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_sub.c.o
[78/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_to_f64.c.o
[79/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f32_to_f128M.c.o
[80/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f64_to_f128M.c.o
[81/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f64_to_f16.c.o
[82/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_addCarryM.c.o
[83/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/i32_to_f128M.c.o
[84/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_add256M.c.o
[85/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_addM.c.o
[86/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_addComplCarryM.c.o
[87/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_addF128M.c.o
[88/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_addMagsF64.c.o
[89/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_addMagsF16.c.o
[90/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_addMagsF32.c.o
[91/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_approxRecip32_1.c.o
[92/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_approxRecipSqrt32_1.c.o
[93/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_approxRecipSqrt_1Ks.c.o
[94/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_compare128M.c.o
[95/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_approxRecip_1Ks.c.o
[96/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_compare96M.c.o
[97/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_countLeadingZeros16.c.o
[98/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_countLeadingZeros64.c.o
[99/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_countLeadingZeros8.c.o
[100/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_invalidF128M.c.o
[101/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_eq128.c.o
[102/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_isNaNF128M.c.o
[103/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_le128.c.o
[104/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_mul128MTo256M.c.o
[105/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_lt128.c.o
[106/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_mul64To128M.c.o
[107/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_mulAddF32.c.o
[108/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_mulAddF16.c.o
[109/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_mulAddF128M.c.o
[110/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_mulAddF64.c.o
[111/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_negXM.c.o
[112/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_normRoundPackMToF128M.c.o
[113/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_normRoundPackToF16.c.o
[114/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_normRoundPackToF32.c.o
[115/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_normRoundPackToF64.c.o
[116/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_normSubnormalF128SigM.c.o
[117/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_normSubnormalF16Sig.c.o
[118/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_normSubnormalF32Sig.c.o
[119/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_normSubnormalF64Sig.c.o
[120/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_remStepMBy32.c.o
[121/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_roundMToI64.c.o
[122/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_roundMToUI64.c.o
[123/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_roundPackMToF128M.c.o
[124/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_roundPackToF16.c.o
[125/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_roundPackToF32.c.o
[126/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_roundPackToF64.c.o
[127/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_roundToI32.c.o
[128/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_roundToI64.c.o
[129/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_roundToUI32.c.o
[130/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_roundToUI64.c.o
[131/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shiftLeftM.c.o
[132/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shiftNormSigF128M.c.o
[133/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shiftRightJam32.c.o
[134/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shiftRightJam256M.c.o
[135/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shiftRightJam64.c.o
[136/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shiftRightJamM.c.o
[137/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shortShiftLeft64To96M.c.o
[138/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shiftRightM.c.o
[139/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shortShiftLeftM.c.o
[140/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shortShiftRightJam64.c.o
[141/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shortShiftRightExtendM.c.o
[142/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shortShiftRightJamM.c.o
[143/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_sub256M.c.o
[144/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shortShiftRightM.c.o
[145/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_sub1XM.c.o
[146/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_subM.c.o
[147/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_subMagsF64.c.o
[148/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_subMagsF32.c.o
[149/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_subMagsF16.c.o
[150/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/softfloat_state.c.o
[151/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_tryPropagateNaNF128M.c.o
[152/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_mulAdd.c.o
[153/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/ui32_to_f128M.c.o
[154/164] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/ui64_to_f128M.c.o
[155/164] Linking C static library zigcpp/libembedded_softfloat.a
[156/164] Building CXX object CMakeFiles/zigcpp.dir/src/zig_llvm.cpp.o
[157/164] Building CXX object CMakeFiles/zigcpp.dir/src/zig_clang_cc1_main.cpp.o
[158/164] Linking CXX static library zigcpp/libzigcpp.a
[159/164] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/ir.cpp.o
[160/164] Linking CXX static library zigcpp/libzigstage1.a
[161/164] Linking CXX executable zig0
[162/164] Building self-hosted component /home/pkgmk/work/zig/src/build/zig1.o
FAILED: zig1.o 
cd /home/pkgmk/work/zig/src/zig-0.8.0 && /home/pkgmk/work/zig/src/build/zig0 src/stage1.zig -target native -mcpu=baseline --name zig1 --override-lib-dir /home/pkgmk/work/zig/src/zig-0.8.0/lib -femit-bin=/home/pkgmk/work/zig/src/build/zig1.o -OReleaseFast --strip -lc --pkg-begin build_options /home/pkgmk/work/zig/src/build/config.zig --pkg-end --pkg-begin compiler_rt /home/pkgmk/work/zig/src/zig-0.8.0/lib/std/special/compiler_rt.zig --pkg-end
zig0: /home/pkgmk/work/llvm/src/llvm-12.0.0.src/lib/Transforms/Scalar/SROA.cpp:2679: bool llvm::sroa::AllocaSliceRewriter::visitStoreInst(llvm::StoreInst&): Assertion `DL.typeSizeEqualsStoreSize(V->getType()) && "Non-byte-multiple bit width"' failed.
ninja: build stopped: subcommand failed.
=======> ERROR: Building '/home/pkgmk/packages/zig#0.8.0-1.pkg.tar.xz' failed.

Is there any chance to get the old behaviour back or is this a design choice made on purpose?

LemonBoy commented 3 years ago

Duplicate of #8251

TimB87 commented 3 years ago

Thanks for the pointer @LemonBoy I'll close this here