[1/150] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/softfloat_ext.cpp.o [2/150] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/util.cpp.o [3/150] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/f128M_isSignalingNaN.c.o [4/150] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_commonNaNToF128M.c.o [5/150] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/target.cpp.o [6/150] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_commonNaNToF16UI.c.o [7/150] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_commonNaNToF32UI.c.o [8/150] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_commonNaNToF64UI.c.o [9/150] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_f128MToCommonNaN.c.o [10/150] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_f32UIToCommonNaN.c.o [11/150] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_f16UIToCommonNaN.c.o [12/150] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/tokenizer.cpp.o [13/150] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_f64UIToCommonNaN.c.o [14/150] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_propagateNaNF128M.c.o [15/150] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/softfloat_raiseFlags.c.o [16/150] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/stage1.cpp.o [17/150] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_propagateNaNF16UI.c.o [18/150] Building C object CMakeFiles/opt_c_util.dir/src/stage1/parse_f128.c.o [19/150] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_add.c.o [20/150] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_div.c.o [21/150] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_le.c.o [22/150] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_eq_signaling.c.o [23/150] Linking C static library zigcpp/libopt_c_util.a [24/150] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_eq.c.o [25/150] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_le_quiet.c.o [26/150] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_mulAdd.c.o [27/150] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_lt.c.o [28/150] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_lt_quiet.c.o [29/150] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_mul.c.o [30/150] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_rem.c.o [31/150] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/bigint.cpp.o FAILED: CMakeFiles/zigstage1.dir/src/stage1/bigint.cpp.o /nix/store/q289knj5k3j6mgbqq40ajgvlqnd46mi8-gcc-wrapper-9.3.0/bin/g++ -I../deps/SoftFloat-3e/source/include -I../ -I. -I../src -I../src/stage1 -I../deps/SoftFloat-3e-prebuilt -I../deps/SoftFloat-3e/source/8086 -g -std=c++14 -DZIG_LINK_MODE=Dynamic -Werror -Wall -Werror=implicit-fallthrough -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/zigstage1.dir/src/stage1/bigint.cpp.o -MF CMakeFiles/zigstage1.dir/src/stage1/bigint.cpp.o.d -o CMakeFiles/zigstage1.dir/src/stage1/bigint.cpp.o -c ../src/stage1/bigint.cpp ../src/stage1/bigint.cpp: In function ‘void bigint_add(BigInt*, const BigInt*, const BigInt*)’: ../src/stage1/bigint.cpp:511:19: error: ‘smaller_op’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 511 | const BigInt *smaller_op; | ^~~~~~~~~~ ../src/stage1/bigint.cpp:510:19: error: ‘bigger_op’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 510 | const BigInt *bigger_op; | ^~~~~~~~~ cc1plus: all warnings being treated as errors [32/150] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_sub.c.o [33/150] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_f32.c.o [34/150] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_sqrt.c.o [35/150] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_f16.c.o [36/150] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_f64.c.o [37/150] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_roundToInt.c.o [38/150] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/codegen.cpp.o FAILED: CMakeFiles/zigstage1.dir/src/stage1/codegen.cpp.o /nix/store/q289knj5k3j6mgbqq40ajgvlqnd46mi8-gcc-wrapper-9.3.0/bin/g++ -I../deps/SoftFloat-3e/source/include -I../ -I. -I../src -I../src/stage1 -I../deps/SoftFloat-3e-prebuilt -I../deps/SoftFloat-3e/source/8086 -g -std=c++14 -DZIG_LINK_MODE=Dynamic -Werror -Wall -Werror=implicit-fallthrough -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/zigstage1.dir/src/stage1/codegen.cpp.o -MF CMakeFiles/zigstage1.dir/src/stage1/codegen.cpp.o.d -o CMakeFiles/zigstage1.dir/src/stage1/codegen.cpp.o -c ../src/stage1/codegen.cpp ../src/stage1/codegen.cpp: In function ‘bool iter_function_params_c_abi(CodeGen*, ZigType*, FnWalk*, size_t)’: ../src/stage1/codegen.cpp:2123:70: error: ‘val’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 2123 | LLVMValueRef f64_ptr_to_struct = LLVMBuildBitCast(g->builder, val, LLVMPointerType(LLVMDoubleType(), 0), ""); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/stage1/codegen.cpp:2162:57: error: ‘var’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 2162 | var->di_loc_var = ZigLLVMCreateParameterVariable(g->dbuilder, get_di_scope(g, var->parent_scope), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2163 | var->name, fn_walk->data.vars.import->data.structure.root_struct->di_file, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2164 | (unsigned)(var->decl_node->line + 1), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2165 | get_llvm_di_type(g, dest_ty), !g->strip_debug_symbols, 0, di_arg_index + 1); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/stage1/codegen.cpp:129:23: error: ‘llvm_fn’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 129 | return addLLVMAttr(fn_val, param_index + 1, attr_name); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/stage1/codegen.cpp:1860:18: note: ‘llvm_fn’ was declared here 1860 | LLVMValueRef llvm_fn; | ^~~~~~~ ../src/stage1/codegen.cpp:1989:57: error: ‘ty’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 1989 | X64CABIClass abi_class = type_c_abi_x86_64_class(g, ty); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ ../src/stage1/codegen.cpp: In function ‘LLVMOpaqueValue* ir_render_call(CodeGen*, IrExecutableGen*, IrInstGenCall*)’: ../src/stage1/codegen.cpp:4569:34: error: ‘call_attr’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 4569 | result = ZigLLVMBuildCall(g->builder, fn_val, | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ 4570 | gen_param_values.items, (unsigned)gen_param_values.length, llvm_cc, call_attr, ""); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/stage1/codegen.cpp:4589:23: error: ‘ret_ptr’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 4589 | LLVMBuildStore(g->builder, result, ret_ptr); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/stage1/codegen.cpp:4514:48: error: ‘frame_result_loc’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 4514 | LLVMValueRef call_inst = gen_resume(g, fn_val, frame_result_loc, ResumeIdCall); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/stage1/codegen.cpp: In function ‘LLVMOpaqueValue* ir_render_overflow_op(CodeGen*, IrExecutableGen*, IrInstGenOverflowOp*)’: ../src/stage1/codegen.cpp:6023:46: error: ‘add_sub_mul’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 6023 | LLVMValueRef fn_val = get_int_overflow_fn(g, int_type, add_sub_mul); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ cc1plus: all warnings being treated as errors [39/150] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/analyze.cpp.o FAILED: CMakeFiles/zigstage1.dir/src/stage1/analyze.cpp.o /nix/store/q289knj5k3j6mgbqq40ajgvlqnd46mi8-gcc-wrapper-9.3.0/bin/g++ -I../deps/SoftFloat-3e/source/include -I../ -I. -I../src -I../src/stage1 -I../deps/SoftFloat-3e-prebuilt -I../deps/SoftFloat-3e/source/8086 -g -std=c++14 -DZIG_LINK_MODE=Dynamic -Werror -Wall -Werror=implicit-fallthrough -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/zigstage1.dir/src/stage1/analyze.cpp.o -MF CMakeFiles/zigstage1.dir/src/stage1/analyze.cpp.o.d -o CMakeFiles/zigstage1.dir/src/stage1/analyze.cpp.o -c ../src/stage1/analyze.cpp In file included from ../src/stage1/heap.hpp:12, from ../src/stage1/util.hpp:24, from ../src/stage1/list.hpp:11, from ../src/stage1/all_types.hpp:11, from ../src/stage1/analyze.hpp:11, from ../src/stage1/analyze.cpp:8: ../src/stage1/mem.hpp: In function ‘Error resolve_union_zero_bits(CodeGen*, ZigType*)’: ../src/stage1/mem.hpp:116:9: error: ‘covered_enum_fields’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 116 | this->internal_deallocate(TypeInfo::make(), ptr, count); | ^~~~ ../src/stage1/analyze.cpp:3234:11: note: ‘covered_enum_fields’ was declared here 3234 | bool *covered_enum_fields; | ^~~~~~~~~~~~~~~~~~~ ../src/stage1/analyze.cpp:3482:23: error: ‘qual_str’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 3482 | add_node_error(g, source_node, | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ 3483 | buf_sprintf("%s union does not support enum tag type", qual_str)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1plus: all warnings being treated as errors [40/150] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/ir.cpp.o FAILED: CMakeFiles/zigstage1.dir/src/stage1/ir.cpp.o /nix/store/q289knj5k3j6mgbqq40ajgvlqnd46mi8-gcc-wrapper-9.3.0/bin/g++ -I../deps/SoftFloat-3e/source/include -I../ -I. -I../src -I../src/stage1 -I../deps/SoftFloat-3e-prebuilt -I../deps/SoftFloat-3e/source/8086 -g -std=c++14 -DZIG_LINK_MODE=Dynamic -Werror -Wall -Werror=implicit-fallthrough -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/zigstage1.dir/src/stage1/ir.cpp.o -MF CMakeFiles/zigstage1.dir/src/stage1/ir.cpp.o.d -o CMakeFiles/zigstage1.dir/src/stage1/ir.cpp.o -c ../src/stage1/ir.cpp In file included from ../src/stage1/util.hpp:23, from ../src/stage1/list.hpp:11, from ../src/stage1/all_types.hpp:11, from ../src/stage1/analyze.hpp:11, from ../src/stage1/ir.cpp:8: ../src/stage1/util_base.hpp: In function ‘ZigValue* const_ptr_pointee_unchecked_no_isf(CodeGen*, ZigValue*)’: ../src/stage1/util_base.hpp:52:5: error: ‘result’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 52 | if (!ok) { | ^~ ../src/stage1/ir.cpp:817:15: note: ‘result’ was declared here 817 | ZigValue *result; | ^~~~~~ ../src/stage1/ir.cpp: In function ‘IrInstGen* ir_try_evaluate_bin_op_cmp_const(IrAnalyze*, IrInst*, IrInstGen*, IrInstGen*, ZigType*, IrBinOp)’: ../src/stage1/ir.cpp:16564:28: error: ‘one_possible_value’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 16564 | if (one_possible_value || (instr_is_comptime(op1) && instr_is_comptime(op2))) { | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/stage1/ir.cpp: In function ‘IrInstGen* ir_analyze_instruction_container_init_list(IrAnalyze*, IrInstSrcContainerInitList*)’: ../src/stage1/ir.cpp:24809:5: error: ‘is_comptime’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 24809 | if (is_comptime) { | ^~ ../src/stage1/ir.cpp: In function ‘IrInstGen* ir_analyze_bin_op_cmp_numeric(IrAnalyze*, IrInst*, IrInstGen*, IrInstGen*, IrBinOp)’: ../src/stage1/ir.cpp:17023:14: error: ‘op1_bits’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 17023 | uint32_t op1_bits; | ^~~~~~~~ ../src/stage1/ir.cpp:16870:46: error: ‘opv_op2’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 16870 | if (((opv_op1 || instr_is_comptime(op1)) && (opv_op2 || instr_is_comptime(op2))) || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/stage1/ir.cpp:16870:86: error: ‘opv_op1’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 16870 | if (((opv_op1 || instr_is_comptime(op1)) && (opv_op2 || instr_is_comptime(op2))) || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 16871 | (have_op1_cmp_zero && have_op2_cmp_zero)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/stage1/ir.cpp: In function ‘IrInstGen* ir_analyze_instruction_elem_ptr(IrAnalyze*, IrInstSrcElemPtr*)’: ../src/stage1/ir.cpp:22591:42: error: ‘old_size’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 22591 | ir_add_error_node(ira, elem_ptr_instruction->base.base.source_node, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 22592 | buf_sprintf("index %" ZIG_PRI_u64 " outside pointer of size %" ZIG_PRI_usize "", index, old_size)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/stage1/ir.cpp:22590:21: error: ‘mem_size’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 22590 | if (new_index >= mem_size) { | ^~ ../src/stage1/ir.cpp:22590:21: error: ‘new_index’ may be used uninitialized in this function [-Werror=maybe-uninitialized] ../src/stage1/ir.cpp: In function ‘IrInstGen* ir_analyze_instruction_memset(IrAnalyze*, IrInstSrcMemset*)’: ../src/stage1/ir.cpp:28238:13: error: ‘bound_end’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 28238 | if (end > bound_end) { | ^~ ../src/stage1/ir.cpp:28237:20: error: ‘start’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 28237 | size_t end = start + count; | ^~~ ../src/stage1/ir.cpp:28198:23: error: ‘dest_elements’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 28198 | ZigValue *dest_elements; | ^~~~~~~~~~~~~ ../src/stage1/ir.cpp: In function ‘IrInstGen* ir_analyze_instruction_memcpy(IrAnalyze*, IrInstSrcMemcpy*)’: ../src/stage1/ir.cpp:28414:13: error: ‘src_end’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 28414 | if (src_start + count > src_end) { | ^~ ../src/stage1/ir.cpp:28414:27: error: ‘src_start’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 28414 | if (src_start + count > src_end) { | ~~~~~~~~~~^~~~~~~ ../src/stage1/ir.cpp:28375:23: error: ‘src_elements’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 28375 | ZigValue *src_elements; | ^~~~~~~~~~~~ ../src/stage1/ir.cpp:28370:13: error: ‘dest_end’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 28370 | if (dest_start + count > dest_end) { | ^~ ../src/stage1/ir.cpp:28370:28: error: ‘dest_start’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 28370 | if (dest_start + count > dest_end) { | ~~~~~~~~~~~^~~~~~~ ../src/stage1/ir.cpp:28332:23: error: ‘dest_elements’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 28332 | ZigValue *dest_elements; | ^~~~~~~~~~~~~ ../src/stage1/ir.cpp: In function ‘IrInstGen* ir_analyze_instruction_await(IrAnalyze*, IrInstSrcAwait*)’: ../src/stage1/ir.cpp:32049:23: error: ‘target_fn’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 32049 | result->target_fn = target_fn; | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ ../src/stage1/ir.cpp: In function ‘IrInstGen* ir_analyze_instruction_slice(IrAnalyze*, IrInstSrcSlice*)’: ../src/stage1/ir.cpp:28777:13: error: ‘rel_end’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 28777 | if (end_scalar > rel_end) { | ^~ ../src/stage1/ir.cpp:28916:20: error: ‘abs_offset’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 28916 | size_t index = abs_offset + start_scalar; | ^~~~~ ../src/stage1/ir.cpp:28917:33: error: ‘array_val’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 28917 | init_const_ptr_array(ira->codegen, ptr_val, array_val, index, return_type_is_const, PtrLenUnknown); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1plus: all warnings being treated as errors ninja: build stopped: subcommand failed.