. translator/c/test/test_database.py::test_primitive . translator/c/test/test_database.py::test_struct . translator/c/test/test_database.py::test_inlined_struct . translator/c/test/test_database.py::test_complete . translator/c/test/test_database.py::test_codegen . translator/c/test/test_database.py::test_codegen_2 . translator/c/test/test_database.py::test_codegen_3 . translator/c/test/test_database.py::test_func_simple . translator/c/test/test_database.py::test_function_call . translator/c/test/test_database.py::test_malloc . translator/c/test/test_database.py::test_multiple_malloc . translator/c/test/test_database.py::test_array_of_char . translator/c/test/test_database.py::test_voidp . translator/c/test/test_database.py::test_intlong_unique . translator/c/test/test_database.py::test_recursive_struct . translator/c/test/test_database.py::test_typedef . translator/c/test/test_database.py::test_const_types . translator/backendopt/test/test_all.py::TestLLType::()::test_big . translator/backendopt/test/test_all.py::TestLLType::()::test_for_loop . translator/backendopt/test/test_all.py::TestLLType::()::test_premature_death . translator/backendopt/test/test_all.py::TestLLType::()::test_idempotent . translator/backendopt/test/test_all.py::TestLLType::()::test_bug_inlined_if . translator/backendopt/test/test_all.py::TestLLType::()::test_range_iter . translator/backendopt/test/test_all.py::TestLLType::()::test_constant_diffuse . translator/backendopt/test/test_all.py::TestLLType::()::test_isinstance . translator/backendopt/test/test_all.py::TestLLType::()::test_list_comp . translator/backendopt/test/test_all.py::TestLLType::()::test_secondary_backendopt . translator/backendopt/test/test_all.py::TestLLType::()::test_replace_we_are_jitted . translator/backendopt/test/test_all.py::TestLLType::()::test_getfield_vtable . translator/backendopt/test/test_canraise.py::TestCanRaise::()::test_can_raise_simple . translator/backendopt/test/test_canraise.py::TestCanRaise::()::test_can_raise_recursive . translator/backendopt/test/test_canraise.py::TestCanRaise::()::test_bug_graphanalyze_recursive . translator/backendopt/test/test_canraise.py::TestCanRaise::()::test_recursive_cannot_raise . translator/backendopt/test/test_canraise.py::TestCanRaise::()::test_can_raise_exception . translator/backendopt/test/test_canraise.py::TestCanRaise::()::test_indirect_call . translator/backendopt/test/test_canraise.py::TestCanRaise::()::test_method . translator/backendopt/test/test_canraise.py::TestCanRaise::()::test_method_recursive . translator/backendopt/test/test_canraise.py::TestCanRaise::()::test_instantiate . translator/backendopt/test/test_canraise.py::TestCanRaise::()::test_llexternal . translator/backendopt/test/test_canraise.py::TestCanRaise::()::test_ll_arraycopy . translator/backendopt/test/test_canraise.py::TestCanRaise::()::test_memoryerror . translator/backendopt/test/test_constfold.py::test_simple . translator/backendopt/test/test_constfold.py::test_immutable_fields . translator/backendopt/test/test_constfold.py::test_along_link . translator/backendopt/test/test_constfold.py::test_multiple_incoming_links . translator/backendopt/test/test_constfold.py::test_fold_exitswitch . translator/backendopt/test/test_constfold.py::test_exception . translator/backendopt/test/test_constfold.py::test_malloc . translator/backendopt/test/test_constfold.py::test_keepalive_const_fieldptr . translator/backendopt/test/test_constfold.py::test_keepalive_const_arrayitems . translator/backendopt/test/test_constfold.py::test_dont_constfold_debug_print . translator/backendopt/test/test_constfold.py::test_fold_exitswitch_along_one_path . translator/backendopt/test/test_constfold.py::test_knownswitch_after_exitswitch . translator/backendopt/test/test_constfold.py::test_coalesce_exitswitchs . translator/backendopt/test/test_constfold.py::test_merge_if_blocks_bug . translator/backendopt/test/test_constfold.py::test_merge_if_blocks_bug_2 . translator/backendopt/test/test_constfold.py::test_replace_we_are_jitted . translator/backendopt/test/test_constfold.py::test_int_ovf . translator/backendopt/test/test_constfold.py::test_int_ovf_bug . translator/backendopt/test/test_constfold.py::test_constant_diffuse_bug . translator/backendopt/test/test_constfold.py::test_float_zero_sign . translator/backendopt/test/test_constfold.py::test_same_constant . translator/backendopt/test/test_constfold.py::test_ptr_eq_x_x . translator/backendopt/test/test_finalizer.py::TestFinalizerAnalyzer::()::test_nothing . translator/backendopt/test/test_finalizer.py::TestFinalizerAnalyzer::()::test_malloc . translator/backendopt/test/test_finalizer.py::TestFinalizerAnalyzer::()::test_raw_free_getfield . translator/backendopt/test/test_finalizer.py::TestFinalizerAnalyzer::()::test_c_call . translator/backendopt/test/test_finalizer.py::TestFinalizerAnalyzer::()::test_c_call_without_release_gil . translator/backendopt/test/test_finalizer.py::TestFinalizerAnalyzer::()::test_chain . translator/backendopt/test/test_finalizer.py::TestFinalizerAnalyzer::()::test_must_be_light_finalizer_decorator . translator/backendopt/test/test_finalizer.py::test_various_ops . translator/backendopt/test/test_gilanalysis.py::test_canrelease_external . translator/backendopt/test/test_gilanalysis.py::test_canrelease_instantiate . translator/backendopt/test/test_gilanalysis.py::test_no_release_gil . translator/backendopt/test/test_gilanalysis.py::test_no_release_gil_detect . translator/backendopt/test/test_graphanalyze.py::test_random_graphs . translator/backendopt/test/test_graphanalyze.py::test_delayed_fnptr . translator/backendopt/test/test_graphanalyze.py::test_null_fnptr . translator/backendopt/test/test_inline.py::TestInline::()::test_inline_simple . translator/backendopt/test/test_inline.py::TestInline::()::test_nothing_to_inline . translator/backendopt/test/test_inline.py::TestInline::()::test_inline_big . translator/backendopt/test/test_inline.py::TestInline::()::test_inline_raising . translator/backendopt/test/test_inline.py::TestInline::()::test_inline_several_times . translator/backendopt/test/test_inline.py::TestInline::()::test_always_inline . translator/backendopt/test/test_inline.py::TestInline::()::test_inline_exceptions . translator/backendopt/test/test_inline.py::TestInline::()::test_inline_const_exceptions . translator/backendopt/test/test_inline.py::TestInline::()::test_inline_exception_guarded . translator/backendopt/test/test_inline.py::TestInline::()::test_inline_with_raising_non_call_op . translator/backendopt/test/test_inline.py::TestInline::()::test_inline_var_exception . translator/backendopt/test/test_inline.py::TestInline::()::test_inline_nonraising_into_catching . translator/backendopt/test/test_inline.py::TestInline::()::test_for_loop . translator/backendopt/test/test_inline.py::TestInline::()::test_inline_constructor . translator/backendopt/test/test_inline.py::TestInline::()::test_cannot_inline_recursive_function . translator/backendopt/test/test_inline.py::TestInline::()::test_auto_inlining_small_call_big . translator/backendopt/test/test_inline.py::TestInline::()::test_auto_inlining_small_call_big_call_count . translator/backendopt/test/test_inline.py::TestInline::()::test_inline_exception_catching . translator/backendopt/test/test_inline.py::TestInline::()::test_inline_catching_different_exception . translator/backendopt/test/test_inline.py::TestInline::()::test_inline_raiseonly . translator/backendopt/test/test_inline.py::TestInline::()::test_measure_median_execution_cost . translator/backendopt/test/test_inline.py::TestInline::()::test_indirect_call_with_exception . translator/backendopt/test/test_inline.py::TestInline::()::test_list_iteration . translator/backendopt/test/test_inline.py::TestInline::()::test_bug_in_find_exception_type . translator/backendopt/test/test_inline.py::TestInline::()::test_correct_keepalive_placement . translator/backendopt/test/test_inline.py::TestInline::()::test_keepalive_hard_case . translator/backendopt/test/test_inline.py::TestInline::()::test_auto_inline_graphs_from_anywhere . translator/backendopt/test/test_inline.py::TestInline::()::test_inline_all . translator/backendopt/test/test_inline.py::TestInline::()::test_inline_preserves_source_attribution . translator/backendopt/test/test_inline.py::TestInline::()::test_copy_block_source_attribution . translator/backendopt/test/test_inline.py::TestInline::()::test_inline_all_exc . translator/backendopt/test/test_innerloop.py::test_simple_loop . translator/backendopt/test/test_innerloop.py::test_two_loops . translator/backendopt/test/test_innerloop.py::test_nested_loops . translator/backendopt/test/test_malloc.py::TestMallocRemoval::()::test_fn1 . translator/backendopt/test/test_malloc.py::TestMallocRemoval::()::test_fn2 . translator/backendopt/test/test_malloc.py::TestMallocRemoval::()::test_fn3 . translator/backendopt/test/test_malloc.py::TestMallocRemoval::()::test_fn4 . translator/backendopt/test/test_malloc.py::TestMallocRemoval::()::test_fn5 . translator/backendopt/test/test_malloc.py::TestMallocRemoval::()::test_aliasing . translator/backendopt/test/test_malloc.py::TestMallocRemoval::()::test_aliasing_identity_op . translator/backendopt/test/test_malloc.py::TestMallocRemoval::()::test_merge . translator/backendopt/test/test_malloc.py::TestMallocRemoval::()::test_bogus_cast_pointer . translator/backendopt/test/test_malloc.py::TestMallocRemoval::()::test_dont_remove_with__del__ . translator/backendopt/test/test_malloc.py::TestMallocRemoval::()::test_wrapper_cannot_be_removed . translator/backendopt/test/test_malloc.py::TestMallocRemoval::()::test_direct_fieldptr . translator/backendopt/test/test_malloc.py::TestMallocRemoval::()::test_direct_fieldptr_2 s translator/backendopt/test/test_malloc.py::TestMallocRemoval::()::test_getarraysubstruct Skipped: fails because of the interior structure changes . translator/backendopt/test/test_malloc.py::TestMallocRemoval::()::test_ptr_nonzero . translator/backendopt/test/test_malloc.py::TestMallocRemoval::()::test_substruct_not_accessed s translator/backendopt/test/test_malloc.py::TestMallocRemoval::()::test_union Skipped: fails because of the interior structure changes . translator/backendopt/test/test_malloc.py::TestMallocRemoval::()::test_keep_all_keepalives . translator/backendopt/test/test_malloc.py::TestMallocRemoval::()::test_nested_struct s translator/backendopt/test/test_malloc.py::TestMallocRemoval::()::test_interior_ptr Skipped: fails . translator/backendopt/test/test_malloc.py::TestMallocRemoval::()::test_interior_ptr_with_index . translator/backendopt/test/test_malloc.py::TestMallocRemoval::()::test_interior_ptr_with_field_and_index . translator/backendopt/test/test_malloc.py::TestMallocRemoval::()::test_interior_ptr_with_index_and_field s translator/backendopt/test/test_malloc.py::TestMallocRemoval::()::test_two_paths_one_with_constant Skipped: XXX implement me? . translator/backendopt/test/test_merge_if_blocks.py::test_merge1 . translator/backendopt/test/test_merge_if_blocks.py::test_merge_passonvars . translator/backendopt/test/test_merge_if_blocks.py::test_merge_several . translator/backendopt/test/test_merge_if_blocks.py::test_merge_with_or . translator/backendopt/test/test_merge_if_blocks.py::test_dont_merge . translator/backendopt/test/test_merge_if_blocks.py::test_two_constants . translator/backendopt/test/test_merge_if_blocks.py::test_same_cases . translator/backendopt/test/test_merge_if_blocks.py::test_replace_exitswitch_by_constant_bug . translator/backendopt/test/test_merge_if_blocks.py::test_switch_on_symbolic . translator/backendopt/test/test_removeassert.py::test_simple . translator/backendopt/test/test_removeassert.py::test_simple_melting_away . translator/backendopt/test/test_removeassert.py::test_and . translator/backendopt/test/test_removeassert.py::test_or . translator/backendopt/test/test_removeassert.py::test_isinstance . translator/backendopt/test/test_removeassert.py::test_with_exception . translator/backendopt/test/test_removenoops.py::test_remove_same_as . translator/backendopt/test/test_removenoops.py::test_remove_same_as_nonconst . translator/backendopt/test/test_removenoops.py::test_remove_unaryops . translator/backendopt/test/test_removenoops.py::test_remove_duplicate_casts . translator/backendopt/test/test_ssa.py::test_data_flow_families . translator/backendopt/test/test_ssa.py::test_SSI_to_SSA . translator/backendopt/test/test_ssa.py::test_SSA_to_SSI . translator/backendopt/test/test_ssa.py::test_SSA_to_SSI_2 . translator/backendopt/test/test_storesink.py::TestStoreSink::()::test_infrastructure . translator/backendopt/test/test_storesink.py::TestStoreSink::()::test_simple . translator/backendopt/test/test_storesink.py::TestStoreSink::()::test_irrelevant_setfield . translator/backendopt/test/test_storesink.py::TestStoreSink::()::test_relevant_setfield . translator/backendopt/test/test_storesink.py::TestStoreSink::()::test_different_concretetype . translator/backendopt/test/test_storesink.py::TestStoreSink::()::test_subclass . translator/backendopt/test/test_storesink.py::TestStoreSink::()::test_bug_1 . translator/backendopt/test/test_storesink.py::TestStoreSink::()::test_cfg_splits . translator/backendopt/test/test_storesink.py::TestStoreSink::()::test_malloc_does_not_invalidate . translator/backendopt/test/test_storesink.py::TestStoreSink::()::test_debug_assert_not_none . translator/backendopt/test/test_storesink.py::TestStoreSink::()::test_read_none_field_bug . translator/backendopt/test/test_storesink.py::TestStoreSink::()::test_cast_pointer_bug . translator/backendopt/test/test_support.py::test_simple_compute_reachability . translator/backendopt/test/test_support.py::test_find_backedges . translator/backendopt/test/test_support.py::test_find_loop_blocks . translator/backendopt/test/test_support.py::test_find_loop_blocks_simple . translator/backendopt/test/test_support.py::test_find_loop_blocks2 . translator/backendopt/test/test_support.py::test_find_loop_blocks3 . translator/backendopt/test/test_writeanalyze.py::TestWriteAnalyze::()::test_writes_simple . translator/backendopt/test/test_writeanalyze.py::TestWriteAnalyze::()::test_writes_recursive . translator/backendopt/test/test_writeanalyze.py::TestWriteAnalyze::()::test_write_to_new_struct . translator/backendopt/test/test_writeanalyze.py::TestWriteAnalyze::()::test_write_to_new_struct_2 . translator/backendopt/test/test_writeanalyze.py::TestWriteAnalyze::()::test_write_to_new_struct_3 . translator/backendopt/test/test_writeanalyze.py::TestWriteAnalyze::()::test_write_to_new_struct_4 . translator/backendopt/test/test_writeanalyze.py::TestWriteAnalyze::()::test_write_to_new_struct_5 . translator/backendopt/test/test_writeanalyze.py::TestWriteAnalyze::()::test_method . translator/backendopt/test/test_writeanalyze.py::TestWriteAnalyze::()::test_instantiate . translator/backendopt/test/test_writeanalyze.py::TestWriteAnalyze::()::test_llexternal . translator/backendopt/test/test_writeanalyze.py::TestWriteAnalyze::()::test_contains . translator/backendopt/test/test_writeanalyze.py::TestWriteAnalyze::()::test_list . translator/backendopt/test/test_writeanalyze.py::TestWriteAnalyze::()::test_llexternal_with_callback . translator/backendopt/test/test_writeanalyze.py::TestLLtypeReadWriteAnalyze::()::test_read_simple . translator/backendopt/test/test_writeanalyze.py::TestLLtypeReadWriteAnalyze::()::test_read_really s translator/backendopt/test/test_writeanalyze.py::TestLLtypeReadWriteAnalyze::()::test_cutoff Skipped: cutoff: disabled . translator/backendopt/test/test_writeanalyze.py::TestLLtypeReadWriteAnalyze::()::test_contains . translator/backendopt/test/test_writeanalyze.py::TestLLtypeReadWriteAnalyze::()::test_adt_method . translator/backendopt/test/test_writeanalyze.py::TestLLtypeReadWriteAnalyze::()::test_interiorfield . translator/backendopt/test/test_writeanalyze.py::TestGcLoadStoreIndexed::()::test_gc_load_indexed_str . translator/backendopt/test/test_writeanalyze.py::TestGcLoadStoreIndexed::()::test_gc_load_indexed_list_of_chars . translator/backendopt/test/test_writeanalyze.py::TestGcLoadStoreIndexed::()::test_gc_store_indexed_str . translator/backendopt/test/test_writeanalyze.py::TestGcLoadStoreIndexed::()::test_gc_store_indexed_list_of_chars . translator/backendopt/test/test_writeanalyze.py::TestGcLoadStoreIndexed::()::test_explanation . translator/c/test/test_exception.py::test_simple1 . translator/c/test/test_exception.py::test_implicit_index_error_lists . translator/c/test/test_exception.py::test_myexception . translator/c/test/test_exception.py::test_raise_outside_testfn . translator/c/test/test_exception.py::test_memoryerror . translator/c/test/test_exception.py::test_assert . translator/c/test/test_exception.py::test_reraise_exception . translator/c/test/test_exception.py::test_dict_keyerror_inside_try_finally . translator/c/test/test_exception.py::test_getitem_custom_exception . translator/c/test/test_exception.py::test_ovf_propagation . translator/c/test/test_boehm.py::TestUsingBoehm::()::test_malloc_a_lot . translator/c/test/test_boehm.py::TestUsingBoehm::()::test__del__ . translator/c/test/test_boehm.py::TestUsingBoehm::()::test_id_is_weak . translator/c/test/test_boehm.py::TestUsingBoehm::()::test_del_raises . translator/c/test/test_boehm.py::TestUsingBoehm::()::test_memory_error_varsize . translator/c/test/test_boehm.py::TestUsingBoehm::()::test_zero_malloc . translator/c/test/test_boehm.py::TestUsingBoehm::()::test_gc_set_max_heap_size . translator/c/test/test_boehm.py::TestUsingBoehm::()::test_weakref . translator/c/test/test_boehm.py::TestUsingBoehm::()::test_prebuilt_weakref . translator/c/test/test_boehm.py::TestUsingBoehm::()::test_weakref_to_prebuilt . translator/c/test/test_boehm.py::TestUsingBoehm::()::test_nested_finalizers . translator/c/test/test_boehm.py::TestUsingBoehm::()::test_can_move . translator/c/test/test_boehm.py::TestUsingBoehm::()::test_heap_stats . translator/c/test/test_boehm.py::TestUsingBoehm::()::test_shrink_array . translator/c/test/test_boehm.py::TestUsingBoehm::()::test_write_barrier_nop . translator/c/test/test_boehm.py::TestUsingBoehm::()::test_hash_preservation . translator/c/test/test_boehm.py::TestUsingBoehm::()::test_finalizer_queue . translator/c/test/test_lladdresses.py::test_null . translator/c/test/test_lladdresses.py::test_convert_to_bool . translator/c/test/test_lladdresses.py::test_memory_access . translator/c/test/test_lladdresses.py::test_memory_access_zero . translator/c/test/test_lladdresses.py::test_memory_float . translator/c/test/test_lladdresses.py::test_offset_inside_fixed_array . translator/c/test/test_lladdresses.py::test_pointer_arithmetic . translator/c/test/test_lladdresses.py::test_pointer_arithmetic_inplace . translator/c/test/test_lladdresses.py::test_raw_memcopy . translator/c/test/test_lladdresses.py::test_raw_memmove . translator/c/test/test_lladdresses.py::test_pointer_comparison . translator/c/test/test_lladdresses.py::test_flavored_malloc_raw . translator/c/test/test_lladdresses.py::test_gcref . translator/c/test/test_lladdresses.py::test_cast_adr_to_int . translator/c/test/test_lladdresses.py::test_cast_int_to_adr . translator/c/test/test_lladdresses.py::test_dict_of_addresses . translator/c/test/test_lladdresses.py::test_gcarray_length . translator/c/test/test_llop.py::TestLLOp::()::test_gc_load_indexed . translator/c/test/test_llop.py::TestLLOp::()::test_gc_store_indexed_int . translator/c/test/test_llop.py::TestLLOp::()::test_gc_store_indexed_double . translator/c/test/test_llop.py::TestLLOp::()::test_gc_store_indexed_float . translator/c/test/test_extfunc.py::test_time_clock . translator/c/test/test_extfunc.py::test_time_sleep . translator/c/test/test_extfunc.py::test_os_open . translator/c/test/test_extfunc.py::test_failing_os_open . translator/c/test/test_extfunc.py::test_open_read_write_seek_close . translator/c/test/test_extfunc.py::test_big_read s translator/c/test/test_extfunc.py::test_ftruncate Skipped: this os has no ftruncate :-( s translator/c/test/test_extfunc.py::test_largefile Skipped: this os has no ftruncate :-( . translator/c/test/test_extfunc.py::test_os_access . translator/c/test/test_extfunc.py::test_os_stat . translator/c/test/test_extfunc.py::test_os_stat_raises_winerror . translator/c/test/test_extfunc.py::test_os_fstat . translator/c/test/test_extfunc.py::test_os_isatty . translator/c/test/test_extfunc.py::test_getcwd . translator/c/test/test_extfunc.py::test_system . translator/c/test/test_extfunc.py::test_os_path_exists . translator/c/test/test_extfunc.py::test_os_path_isdir . translator/c/test/test_extfunc.py::test_time_time . translator/c/test/test_extfunc.py::test_formatd . translator/c/test/test_extfunc.py::test_float_to_str . translator/c/test/test_extfunc.py::test_os_unlink . translator/c/test/test_extfunc.py::test_chdir . translator/c/test/test_extfunc.py::test_mkdir_rmdir . translator/c/test/test_extfunc.py::test_strerror . translator/c/test/test_extfunc.py::test_pipe_dup_dup2 . translator/c/test/test_extfunc.py::test_os_chmod . translator/c/test/test_extfunc.py::test_os_rename . translator/c/test/test_extfunc.py::test_os_umask . translator/c/test/test_extfunc.py::test_os_getpid . translator/c/test/test_extfunc.py::test_waitpid s translator/c/test/test_extfunc.py::test_kill_to_send_sigusr1 Skipped: no SIGUSR1 available . translator/c/test/test_extfunc.py::test_dictlike_environ_getitem . translator/c/test/test_extfunc.py::test_dictlike_environ_get . translator/c/test/test_extfunc.py::test_dictlike_environ_setitem . translator/c/test/test_extfunc.py::test_dictlike_environ_delitem . translator/c/test/test_extfunc.py::test_dictlike_environ_keys . translator/c/test/test_extfunc.py::test_dictlike_environ_items . translator/c/test/test_extfunc.py::test_listdir . translator/c/test/test_extfunc.py::test_spawnv . translator/c/test/test_extfunc.py::test_spawnve . translator/c/test/test_extfunc.py::test_utime . translator/c/test/test_genc.py::test_simple . translator/c/test/test_genc.py::test_int_becomes_float . translator/c/test/test_genc.py::test_string_arg . translator/c/test/test_genc.py::test_dont_write_source_files . translator/c/test/test_genc.py::test_rlist . translator/c/test/test_genc.py::test_rptr . translator/c/test/test_genc.py::test_empty_string . translator/c/test/test_genc.py::test_rstr . translator/c/test/test_genc.py::test_recursive_struct . translator/c/test/test_genc.py::test_recursive_struct_2 . translator/c/test/test_genc.py::test_infinite_float . translator/c/test/test_genc.py::test_infinite_float_in_array . translator/c/test/test_genc.py::test_nan_and_special_values . translator/c/test/test_genc.py::test_prebuilt_instance_with_dict . translator/c/test/test_genc.py::test_long_strings . translator/c/test/test_genc.py::test_keepalive . translator/c/test/test_genc.py::test_print . translator/c/test/test_genc.py::test_name . translator/c/test/test_genc.py::test_entrypoints . translator/c/test/test_genc.py::test_exportstruct . translator/c/test/test_genc.py::test_recursive_llhelper . translator/c/test/test_genc.py::test_ordered_dict . translator/c/test/test_genc.py::test_inhibit_tail_call . translator/c/test/test_genc.py::test_generated_c_source . translator/c/test/test_genc.py::test_generated_c_source_no_gotos . translator/c/test/test_genc.py::test_computed_goto_large_switch . translator/c/test/test_genc.py::test_computed_goto_correctness . translator/c/test/test_genc.py::test_computed_goto_negative_cases . translator/c/test/test_genc.py::test_computed_goto_negative_cases_correctness . translator/c/test/test_genc.py::test_generated_switch . translator/c/test/test_genc.py::test_inlining_c_source . translator/c/test/test_genc.py::test_escape_c_comments_unit . translator/c/test/test_genc.py::test_escaping_c_comments . translator/c/test/test_math.py::TestMath::()::test_math . translator/c/test/test_math.py::TestMath::()::test_math_nodebug . translator/c/test/test_refcount.py::TestRefcount::()::test_something . translator/c/test/test_refcount.py::TestRefcount::()::test_something_more . translator/c/test/test_refcount.py::TestRefcount::()::test_call_function . translator/c/test/test_refcount.py::TestRefcount::()::test_multiple_exits . translator/c/test/test_refcount.py::TestRefcount::()::test_cleanup_vars_on_call . translator/c/test/test_refcount.py::TestRefcount::()::test_multiply_passed_var . translator/c/test/test_refcount.py::TestRefcount::()::test_write_barrier . translator/c/test/test_refcount.py::TestRefcount::()::test_del_catches . translator/c/test/test_refcount.py::TestRefcount::()::test_del_raises . translator/c/test/test_refcount.py::TestRefcount::()::test_wrong_order_setitem . translator/c/test/test_rtagged.py::test_tagged_boehm . translator/c/test/test_rtagged.py::test_name_gcref E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_finalizer_order cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError ---------- Captured stderr setup ---------- [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True [flowgraph] (rpython.translator.c.test.test_newgc:39)main [translation:info] Annotating&simplifying... [translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy [flowgraph] (rpython.translator.c.test.test_newgc:104)allfuncs [flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item [flowgraph] (rpython.translator.c.test.test_newgc:944)f_arraycopy_writebarrier_int [flowgraph] (rpython.translator.c.test.test_newgc:965)f_arraycopy_writebarrier_ptr [flowgraph] (rpython.translator.c.test.test_newgc:750)f_callback_with_collect [flowgraph] (rpython.translator.c.test.test_newgc:783)f_can_move [flowgraph] (rpython.translator.c.test.test_newgc:1277)f_check_zero_works [flowgraph] (rpython.translator.c.test.test_newgc:443)f_del_raises [flowgraph] (rpython.translator.c.test.test_newgc:1163)f_dump_rpy_heap [flowgraph] (rpython.translator.c.test.test_newgc:146)f_empty_collect [flowgraph] (rpython.translator.c.test.test_newgc:1537)f_extra_item_after_alloc [flowgraph] (rpython.translator.c.test.test_newgc:341)f_framework_array_of_void [flowgraph] (rpython.translator.c.test.test_newgc:627)f_framework_del_seeing_new_types [flowgraph] (rpython.translator.c.test.test_newgc:393)f_framework_finalizer [flowgraph] (rpython.translator.c.test.test_newgc:640)f_framework_late_filling_pointers [flowgraph] (rpython.translator.c.test.test_newgc:332)f_framework_malloc_failure [flowgraph] (rpython.translator.c.test.test_newgc:608)f_framework_malloc_raw [flowgraph] (rpython.translator.c.test.test_newgc:307)f_framework_nongc_static_root [flowgraph] (rpython.translator.c.test.test_newgc:368)f_framework_opaque [flowgraph] (rpython.translator.c.test.test_newgc:223)f_framework_protect_getfield [flowgraph] (rpython.translator.c.test.test_newgc:197)f_framework_safe_pushpop [flowgraph] (rpython.translator.c.test.test_newgc:165)f_framework_simple [flowgraph] (rpython.translator.c.test.test_newgc:293)f_framework_static_roots [flowgraph] (rpython.translator.c.test.test_newgc:267)f_framework_using_lists [flowgraph] (rpython.translator.c.test.test_newgc:241)f_framework_varsized [flowgraph] (rpython.translator.c.test.test_newgc:323)f_framework_void_array [flowgraph] (rpython.memory.test.snippet:190)f_from_objwithfinalizer_to_youngobj [flowgraph] (rpython.translator.c.test.test_newgc:1387)f_gc_heap_stats [flowgraph] (rpython.translator.c.test.test_newgc:1362)f_gc_set_max_heap_size [flowgraph] (rpython.translator.c.test.test_newgc:1244)f_gcflag_extra [flowgraph] (rpython.translator.c.test.test_newgc:1103)f_get_rpy_memory_usage [flowgraph] (rpython.translator.c.test.test_newgc:1015)f_get_rpy_referents [flowgraph] (rpython.translator.c.test.test_newgc:996)f_get_rpy_roots [flowgraph] (rpython.translator.c.test.test_newgc:1128)f_get_rpy_type_index [flowgraph] (rpython.translator.c.test.test_newgc:912)f_hash_overflow [flowgraph] (rpython.translator.c.test.test_newgc:829)f_hash_preservation [flowgraph] (rpython.translator.c.test.test_newgc:932)f_hash_varsized [flowgraph] (rpython.translator.c.test.test_newgc:1040)f_is_rpy_instance [flowgraph] (rpython.translator.c.test.test_newgc:1303)f_long_chain_of_instances [flowgraph] (rpython.translator.c.test.test_newgc:1330)f_many_ids [flowgraph] (rpython.translator.c.test.test_newgc:1617)f_nongc_attached_to_gc [flowgraph] (rpython.translator.c.test.test_newgc:1646)f_nongc_opaque_attached_to_gc [flowgraph] (rpython.translator.c.test.test_newgc:1483)f_nursery_hash_base [flowgraph] (rpython.translator.c.test.test_newgc:673)f_object_alignment [flowgraph] (rpython.translator.c.test.test_newgc:706)f_open_read_write_seek_close [flowgraph] (rpython.translator.c.test.test_newgc:589)f_prebuilt_dicts_of_all_sizes [flowgraph] (rpython.translator.c.test.test_newgc:554)f_prebuilt_weakref [flowgraph] (rpython.translator.c.test.test_newgc:1561)f_rerased [flowgraph] (rpython.translator.c.test.test_newgc:793)f_resizable_buffer [flowgraph] (rpython.translator.c.test.test_newgc:1065)f_try_cast_gcref_to_instance [flowgraph] (rpython.translator.c.test.test_newgc:695)f_void_list [flowgraph] (rpython.translator.c.test.test_newgc:516)f_weakref [flowgraph] (rpython.translator.c.test.test_newgc:1209)f_write_typeids_z [flowgraph] (rpython.translator.c.test.test_newgc:653)f_zero_raw_malloc [flowgraph] (rpython.rlib.rposix:461)open [flowgraph] (rpython.rlib.rposix:402)_as_utf80 [flowgraph] (rpython.rlib.rposix:392)_as_utf8 [flowgraph] (rpython.translator.c.test.test_newgc:693)E.__init__ [flowgraph] (rpython.rlib.rgc:953)cast_instance_to_gcref [flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr [flowgraph] (?:2)ll_shrink_array [flowgraph] (rpython.rlib.rgc:468)ll_shrink_array [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.rlib.rerased:128)try_cast_erased [flowgraph] (rpython.rtyper.rclass:1143)ll_isinstance [flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass [flowgraph] (rpython.translator.c.test.test_newgc:575)keq [flowgraph] (rpython.translator.c.test.test_newgc:577)khash [flowgraph] (rpython.translator.c.test.test_newgc:1643)A.__del__ [flowgraph] (rpython.translator.c.test.test_newgc:1640)A.__init__ [flowgraph] (rpython.rlib.rzlib:267)deflateInit [flowgraph] (rpython.rlib.rzlib:149)_deflateInit2 [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)deflateInit2_ [flowgraph] (rpython.rtyper.lltypesystem.rffi:926)get_nonmovingbuffer_ll_final_null [flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll [flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c [flowgraph] (rpython.translator.c.test.test_newgc:1614)A.__del__ [flowgraph] (rpython.translator.c.test.test_newgc:1611)A.__init__ [flowgraph] (rpython.translator.c.test.test_newgc:1036)check [flowgraph] (rpython.rlib.rposix:500)write [flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__ [flowgraph] (rpython.translator.c.test.test_newgc:985)g [flowgraph] (rpython.translator.c.test.test_newgc:1360)g [flowgraph] (rpython.memory.test.snippet:177)g [flowgraph] (rpython.rlib.rgc:617)register_finalizer [flowgraph] (rpython.memory.test.snippet:169)finalizer_trigger [flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref [flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr [flowgraph] (rpython.rlib.rgc:600)next_dead [flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance [flowgraph] (rpython.translator.c.test.test_newgc:290)make [flowgraph] (rpython.translator.c.test.test_newgc:286)A.__init__ [flowgraph] (rpython.translator.c.test.test_newgc:160)make [flowgraph] (rpython.translator.c.test.test_newgc:156)g [flowgraph] (rpython.translator.c.test.test_newgc:188)make [flowgraph] (rpython.translator.c.test.test_newgc:180)g [flowgraph] (rpython.translator.c.test.test_newgc:212)prepare [flowgraph] (rpython.translator.c.test.test_newgc:358)gethidden [flowgraph] (rpython.translator.c.test.test_newgc:391)A.__del__ [flowgraph] (rpython.translator.c.test.test_newgc:388)A.__init__ [flowgraph] (rpython.translator.c.test.test_newgc:625)A.__del__ [flowgraph] (rpython.translator.c.test.test_newgc:1530)check [flowgraph] (rpython.rlib.rgc:1612)ll_write_final_null_char [flowgraph] (rpython.translator.c.test.test_newgc:441)B.__del__ [flowgraph] (rpython.rlib.clibffi:310)get_libc_name [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)pypy_get_libc_handle [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_pypy_get_libc_handle [flowgraph] (rpython.rlib.rgil:160)release [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.translator.c.test.test_newgc:499)f_custom_light_finalizer [flowgraph] (rpython.translator.c.test.test_newgc:474)f_custom_trace [flowgraph] (rpython.translator.c.test.test_newgc:426)f_del_catches [flowgraph] (rpython.translator.c.test.test_newgc:1673)f_limited_memory [flowgraph] (rpython.translator.c.test.test_newgc:1667)g [flowgraph] (rpython.translator.c.test.test_newgc:1665)A.__init__ [flowgraph] (rpython.translator.c.test.test_newgc:420)f [flowgraph] (rpython.translator.c.test.test_newgc:412)A.__del__ [flowgraph] (rpython.translator.c.test.test_newgc:417)f1 [flowgraph] (rpython.translator.c.test.test_newgc:409)g [flowgraph] (rpython.translator.c.test.test_newgc:460)setup [flowgraph] (rpython.translator.c.test.test_newgc:495)setup [flowgraph] (rpython.memory.test.snippet:92)f_finalizer_order [flowgraph] (rpython.translator.c.test.test_newgc:1414)f_string_builder [flowgraph] (rpython.translator.c.test.test_newgc:1446)f_string_builder_multiple_builds [flowgraph] (rpython.translator.c.test.test_newgc:1462)f_string_builder_multiple_builds_2 [flowgraph] (rpython.translator.c.test.test_newgc:1428)f_string_builder_over_allocation [flowgraph] (rpython.memory.test.snippet:83)build_example [flowgraph] (rpython.memory.test.snippet:64)A.__init__ [flowgraph] (rpython.rlib.rgc:617)register_finalizer [flowgraph] (rpython.memory.test.snippet:71)finalizer_trigger [flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref [flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr [flowgraph] (rpython.rlib.rgc:600)next_dead [flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance [flowgraph] (rpython.translator.c.test.test_newgc:468)measure_length [flowgraph] (rpython.rlib.rgil:171)acquire [flowgraph] (rpython.translator.c.test.test_newgc:217)g [flowgraph] (rpython.rlib.rgc:953)cast_instance_to_gcref [flowgraph] (rpython.flowspace.specialcase:95)rpython_print_newline [flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end [flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw [flowgraph] (rpython.rtyper.lltypesystem.rstr:63)_get_raw_buf [flowgraph] (rpython.rtyper.lltypesystem.rstr:57)_str_ofs [flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr [flowgraph] (rpython.translator.c.test.test_newgc:363)reveal [flowgraph] (rpython.translator.c.test.test_newgc:365)overwrite [flowgraph] (?:2)mallocstr [flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr [flowgraph] (rpython.rlib.rthread:282)gc_thread_run [flowgraph] (rpython.memory.test.snippet:136)error [flowgraph] (rpython.memory.test.snippet:53)age_of [flowgraph] (rpython.rlib.rgc:964)try_cast_gcref_to_instance [flowgraph] (rpython.rtyper.lltypesystem.rffi:1410)scoped_utf82wcharp.__init__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:1418)scoped_utf82wcharp.__enter__ [flowgraph] (rpython.rlib.rutf8:470)codepoints_in_utf8 [flowgraph] (rpython.memory.test.snippet:55)set_age_of [flowgraph] (rpython.rtyper.lltypesystem.rffi:1138)utf82wcharp [flowgraph] (rpython.rlib.rutf8:799)Utf8StringIterator.__init__ [flowgraph] (rpython.rlib.rutf8:804)Utf8StringIterator.__iter__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_deflateInit2_ [flowgraph] (rpython.rlib.rutf8:813)Utf8StringIterator.next [flowgraph] (rpython.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll [flowgraph] (rpython.rlib.rzlib:239)fromstream [flowgraph] (rpython.rtyper.lltypesystem.rffi:854)charp2str [flowgraph] (rpython.rtyper.lltypesystem.rffi:1030)charpsize2str [flowgraph] (rpython.rtyper.lltypesystem.rstr:145)copy_raw_to_string [flowgraph] (rpython.rlib.rzlib:233)RZlibError.__init__ [flowgraph] (rpython.rlib.rzlib:309)deflateEnd [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)deflateEnd [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_deflateEnd [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)wrap_write [flowgraph] (rpython.rlib.rgc:964)try_cast_gcref_to_instance [flowgraph] (rpython.rtyper.lltypesystem.rffi:1433)scoped_nonmovingbuffer.__exit__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_wrap_write [flowgraph] (rpython.rlib.rposix:151)_errno_before [flowgraph] (rpython.rlib.rthread:349)getraw [flowgraph] (rpython.rlib.rthread:349)getraw [flowgraph] (rpython.rlib.rthread:349)getraw [flowgraph] (rpython.rlib.rthread:349)getraw [flowgraph] (rpython.rlib.rposix:170)_errno_after [flowgraph] (rpython.rlib.rgc:964)try_cast_gcref_to_instance [flowgraph] (rpython.rlib.rthread:364)setraw [flowgraph] (rpython.rlib.rthread:364)setraw [flowgraph] (rpython.rlib.rthread:364)setraw [flowgraph] (rpython.rlib.rthread:364)setraw [flowgraph] (rpython.rlib.rwin32:394)GetModuleFileName [flowgraph] (rpython.rlib.rgc:953)cast_instance_to_gcref [flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)GetModuleFileNameA [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_GetModuleFileNameA [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)_wopen [flowgraph] (rpython.rtyper.lltypesystem.rffi:1420)scoped_utf82wcharp.__exit__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:831)free_charp [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall__wopen [flowgraph] (rpython.rlib.rposix:151)_errno_before [flowgraph] (rpython.rlib.clibffi:704)CDLL.__del__ [flowgraph] (rpython.rlib.clibffi:699)CDLL.__init__ [flowgraph] (rpython.rlib.clibffi:675)RawCDLL.getpointer [flowgraph] (rpython.rlib.rposix:170)_errno_after [flowgraph] (rpython.rlib.clibffi:672)RawCDLL.__init__ [flowgraph] (rpython.rlib.rdynload:259)dlclose [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)FreeLibrary [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_FreeLibrary [flowgraph] (rpython.rlib.rdynload:233)dlopen [flowgraph] (rpython.rlib.rdynload:266)dlsym [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)GetProcAddress [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_GetProcAddress [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)LoadLibraryW [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_LoadLibraryW [flowgraph] (rpython.rlib.rposix:151)_errno_before [flowgraph] (rpython.rlib.rdynload:66)DLOpenError.__init__ [flowgraph] (rpython.rlib.rposix:170)_errno_after [flowgraph] (rpython.rlib.clibffi:516)AbstractFuncPtr.__del__ [flowgraph] (rpython.rlib.clibffi:658)FuncPtr.__del__ [flowgraph] (rpython.rlib.clibffi:588)FuncPtr.__init__ [flowgraph] (rpython.rlib.clibffi:480)AbstractFuncPtr.__init__ [flowgraph] (rpython.rlib.clibffi:466)get_call_conv [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_prep_cif [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_prep_cif [flowgraph] (rpython.rlib.rwin32:172)GetLastError_saved [flowgraph] (rpython.rlib.rwin32:311)FormatErrorW [flowgraph] (rpython.rlib.rwin32:348)llimpl_FormatErrorW [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)LocalFree [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_LocalFree [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)FormatMessageW [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_FormatMessageW [flowgraph] (rpython.rtyper.lltypesystem.rffi:1100)wcharpsize2utf8 [flowgraph] (rpython.rlib.rutf8:63)unichr_as_utf8_append [flowgraph] (rpython.rlib.rutf8:80)_nonascii_unichr_as_utf8_append [flowgraph] (rpython.rlib.rutf8:35)OutOfRange.__init__ [flowgraph] (rpython.rlib.clibffi:553)CallbackFuncPtr.__del__ [flowgraph] (rpython.rlib.clibffi:532)CallbackFuncPtr.__init__ [flowgraph] (rpython.rlib.clibffi:610)FuncPtr.push_arg [flowgraph] (rpython.translator.c.test.test_newgc:734)callback [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_prep_closure_loc [flowgraph] (rpython.rlib.clibffi:389)push_arg_as_ffiptr [flowgraph] (?:6)wrapper [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_prep_closure_loc [flowgraph] (rpython.rlib.rgil:183)acquire_maybe_in_new_thread [flowgraph] (rpython.rlib.rthread:124)get_or_make_ident [flowgraph] (rpython.rlib.rthread:356)get_or_make_raw [flowgraph] (rpython.rlib.clibffi:446)ll_callback [flowgraph] (rpython.rlib.rposix:170)_errno_after [flowgraph] (?:1)callback_with_jitdriver [flowgraph] (rpython.rlib.jit:442)get_printable_location [flowgraph] (rpython.rlib.clibffi:433)_ll_callback [flowgraph] (rpython.rlib.rposix:151)_errno_before [flowgraph] (rpython.rlib.clibffi:610)FuncPtr.push_arg [flowgraph] (rpython.rlib.rposix:430)handle_posix_error [flowgraph] (rpython.rlib.rarithmetic:139)widen [flowgraph] (rpython.rlib.rposix:430)handle_posix_error [flowgraph] (rpython.rlib.rposix:113)get_saved_errno [flowgraph] (rpython.rlib.clibffi:389)push_arg_as_ffiptr [flowgraph] (rpython.rlib.rposix:508)close [flowgraph] (rpython.rlib.rposix:255)SuppressIPH.__init__ [flowgraph] (rpython.rlib.rposix:258)SuppressIPH.__enter__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)enter_suppress_iph [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_enter_suppress_iph [flowgraph] (rpython.translator.c.test.test_newgc:892)h [flowgraph] (rpython.translator.c.test.test_newgc:859)g [flowgraph] (rpython.translator.c.test.test_newgc:870)build [flowgraph] (rpython.translator.c.test.test_newgc:880)check [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)_close [flowgraph] (rpython.rlib.rposix:262)SuppressIPH.__exit__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)exit_suppress_iph [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_exit_suppress_iph [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall__close [flowgraph] (rpython.rlib.rposix:151)_errno_before [flowgraph] (rpython.rlib.rposix:170)_errno_after [flowgraph] (rpython.rlib.rposix:430)handle_posix_error [flowgraph] (rpython.rlib.rposix:518)lseek [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)_lseeki64 [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall__lseeki64 [flowgraph] (rpython.rlib.rposix:151)_errno_before [flowgraph] (rpython.rlib.rposix:170)_errno_after [flowgraph] (rpython.rlib.rposix:430)handle_posix_error [flowgraph] (rpython.rlib.rposix:490)read [flowgraph] (rpython.rtyper.lltypesystem.rffi:1469)scoped_alloc_buffer.__init__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:1471)scoped_alloc_buffer.__enter__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:953)alloc_buffer [flowgraph] (rpython.rtyper.lltypesystem.rffi:1474)scoped_alloc_buffer.__exit__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:1008)keep_buffer_alive_until_here [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)wrap_read [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_wrap_read [flowgraph] (rpython.rlib.rposix:151)_errno_before [flowgraph] (rpython.rlib.rposix:170)_errno_after [flowgraph] (rpython.rlib.rposix:430)handle_posix_error [flowgraph] (rpython.rtyper.lltypesystem.rffi:1476)scoped_alloc_buffer.str [flowgraph] (?:2)str_from_buffer [flowgraph] (rpython.rtyper.lltypesystem.rffi:988)str_from_buffer [flowgraph] (rpython.rlib.clibffi:550)CallbackFuncPtr.get_closure [flowgraph] (rpython.rlib.clibffi:638)FuncPtr.call [flowgraph] (rpython.rlib.clibffi:631)FuncPtr._check_args [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_call [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_call [flowgraph] (rpython.rlib.rposix:151)_errno_before [flowgraph] (rpython.rlib.rposix:170)_errno_after [flowgraph] (rpython.rlib.clibffi:635)FuncPtr._clean_args [flowgraph] (rpython.rlib.clibffi:263)check_fficall_result [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo_sizeof_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo_has_final_null_char_0 [flowgraph] (?:1)memo__contains_gcptr_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo__contains_gcptr_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo_offsetof_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo_CArray_0 [flowgraph] (?:1)memo_sizeof_0 [flowgraph] (?:1)memo_CArray_0 [flowgraph] (?:1)memo_sizeof_0 [flowgraph] (?:1)memo_sizeof_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__make_wrapper_for_0 [flowgraph] (?:1)memo__should_widen_type_0 [flowgraph] (?:1)memo_CArray_0 [flowgraph] (?:1)memo_sizeof_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [translation:info] RTyping... [flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info [flowgraph] (rpython.rtyper.rlist:690)ll_getitem_nonneg [flowgraph] (rpython.rtyper.rlist:719)ll_getitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items [flowgraph] (rpython.rtyper.lltypesystem.rstr:1058)ll_int [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem [flowgraph] (rpython.rtyper.lltypesystem.rstr:394)ll_strhash [flowgraph] (rpython.rlib.jit:1321)conditional_call_elidable [flowgraph] (rpython.rtyper.lltypesystem.rstr:402)_ll_strhash [flowgraph] (rpython.rlib.objectmodel:620)ll_hash_string [flowgraph] (rpython.rlib.objectmodel:595)_hash_string [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash [flowgraph] (?:11)ll_call_lookup_function_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed [flowgraph] (rpython.rtyper.lltypesystem.rstr:420)ll_strfasthash [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:602)ll_valid_from_key [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes [flowgraph] (rpython.rlib.rgc:508)ll_arrayclear [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.rlib.rgc:508)ll_arrayclear [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.rlib.rgc:508)ll_arrayclear [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.rlib.rgc:508)ll_arrayclear [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (?:2)ll_call_lookup_function_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rstr:601)ll_streq [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_create_initial_index_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (?:1)memo__ll_ptr_to_array_of_0 [flowgraph] (?:1)memo__ll_ptr_to_array_of_0 [flowgraph] (?:1)memo__ll_ptr_to_array_of_0 [flowgraph] (?:1)memo__ll_ptr_to_array_of_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (rpython.rtyper.rlist:690)ll_getitem_nonneg [flowgraph] (rpython.rtyper.rlist:723)ll_getitem_foldable_nonneg [flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter [flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext [flowgraph] (rpython.rtyper.rlist:590)ll_append [flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length [flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:1300)conditional_call [flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rlist:198) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really [flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)_ll_list_resize_hint_really_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really [flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items [flowgraph] (?:1)memo__ll_prebuilt_empty_array_0 [flowgraph] (?:1)memo__contains_gcptr_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (rpython.rtyper.rlist:690)ll_getitem_nonneg [flowgraph] (rpython.rtyper.rlist:723)ll_getitem_foldable_nonneg [flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast [flowgraph] (rpython.rtyper.rint:149)ll_str [flowgraph] (rpython.rtyper.lltypesystem.ll_str:13)ll_int2dec [flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned [flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange [flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter [flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist [flowgraph] (rpython.rtyper.rlist:728)ll_setitem_nonneg [flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist [flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array [flowgraph] (?:1)memo__ll_prebuilt_empty_array_0 [flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist [flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array [flowgraph] (?:1)memo__ll_prebuilt_empty_array_0 [flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter [flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set [flowgraph] (rpython.rlib.rarithmetic:741)int_force_ge_zero [flowgraph] (rpython.rtyper.rlist:510)_ll_alloc_and_set_jit [flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null [flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit [flowgraph] (rpython.rtyper.lltypesystem.rlist:324)ll_newlist [flowgraph] (rpython.rtyper.rlist:522)_ll_alloc_and_clear [flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items [flowgraph] (rpython.rlib.rgc:508)ll_arrayclear [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set [flowgraph] (rpython.rtyper.rlist:510)_ll_alloc_and_set_jit [flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null [flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit [flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist [flowgraph] (rpython.rtyper.rlist:522)_ll_alloc_and_clear [flowgraph] (rpython.rtyper.lltypesystem.rlist:399)ll_fixed_items [flowgraph] (?:11)_ll_alloc_and_set_nonnull_look_inside_iff [flowgraph] (rpython.rtyper.rlist:530) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.rlist:530)_ll_alloc_and_set_nonnull [flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast [flowgraph] (rpython.rlib.rgc:508)ll_arrayclear [flowgraph] (rpython.rlib.rgc:538)ll_arrayfill [flowgraph] (?:2)_ll_alloc_and_set_nonnull_trampoline [flowgraph] (rpython.rtyper.rlist:530)_ll_alloc_and_set_nonnull [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (rpython.rtyper.rlist:582)ll_len_foldable [flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length [flowgraph] (rpython.rtyper.rlist:690)ll_getitem_nonneg [flowgraph] (rpython.rtyper.rlist:723)ll_getitem_foldable_nonneg [flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast [flowgraph] (rpython.rtyper.rlist:1001)ll_listcontains [flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length [flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast [flowgraph] (rpython.rtyper.rlist:728)ll_setitem_nonneg [flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash [flowgraph] (rpython.rtyper.rlist:582)ll_len_foldable [flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length [flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist [flowgraph] (rpython.rtyper.rrange:172)ll_rangenext_up [flowgraph] (?:11)ll_join_chars_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rstr:821) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (?:2)ll_join_chars_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars [flowgraph] (rpython.rtyper.rint:502)ll_int_py_mod_nonnegargs [flowgraph] (rpython.rtyper.rlist:590)ll_append [flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length [flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:1300)conditional_call [flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rlist:198) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)_ll_list_resize_hint_really_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really [flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast [flowgraph] (?:1)memo__contains_gcptr_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (rpython.rtyper.lltypesystem.rlist:391)ll_fixed_newemptylist [flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist [flowgraph] (rpython.rtyper.rlist:690)ll_getitem_nonneg [flowgraph] (rpython.rtyper.rlist:723)ll_getitem_foldable_nonneg [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:648)ll_dict_len [flowgraph] (rpython.rtyper.rlist:582)ll_len_foldable [flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:640)ll_keyhash_custom [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash [flowgraph] (?:11)ll_call_lookup_function_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:625)ll_hash_from_cache [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:644)ll_keyeq_custom [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:602)ll_valid_from_key [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes [flowgraph] (?:2)ll_call_lookup_function_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_create_initial_index_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter [flowgraph] (rpython.rtyper.lltypesystem.rlist:484)ll_listnext_foldable [flowgraph] (rpython.rtyper.lltypesystem.rstr:425)ll_strconcat [flowgraph] (rpython.rtyper.lltypesystem.rstr:416)ll_length [flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents [flowgraph] (rpython.rtyper.rlist:590)ll_append [flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length [flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:1300)conditional_call [flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rlist:198) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)_ll_list_resize_hint_really_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really [flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index [flowgraph] (?:1)memo__ll_empty_array_0 [flowgraph] (rpython.rtyper.rlist:574)ll_len [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:648)ll_dict_len [flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen [rtyper] specializing: 200 / 3441 blocks (5%) [flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash [flowgraph] (rpython.rtyper.rtuple:62)ll_hash [flowgraph] (rpython.rtyper.rnone:42)ll_none_hash [flowgraph] (rpython.rtyper.rtuple:62)ll_hash [flowgraph] (rpython.rlib.objectmodel:623)_hash_float [flowgraph] (rpython.rtyper.rint:619)ll_hash_int [flowgraph] (rpython.rtyper.lltypesystem.rlist:484)ll_listnext_foldable [flowgraph] (?:11)ll_join_strs_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rstr:785) [flowgraph] (rpython.rlib.jit:294)loop_unrolling_heuristic [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs [flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (?:2)ll_join_strs_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs [flowgraph] (rpython.rtyper.lltypesystem.rlist:476)ll_listnext [flowgraph] (rpython.rtyper.lltypesystem.rstr:333)ll_char_mul [flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist [flowgraph] (rpython.rtyper.rlist:728)ll_setitem_nonneg [flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter [flowgraph] (rpython.rtyper.lltypesystem.rlist:476)ll_listnext [flowgraph] (rpython.rtyper.rlist:590)ll_append [flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length [flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:1300)conditional_call [flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rlist:198) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really [flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)_ll_list_resize_hint_really_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really [flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast [flowgraph] (?:1)memo__ll_prebuilt_empty_array_0 [flowgraph] (?:1)memo__contains_gcptr_0 [flowgraph] (rpython.rtyper.rlist:574)ll_len [flowgraph] (rpython.rtyper.rlist:699)ll_getitem [flowgraph] (rpython.rtyper.rlist:719)ll_getitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rlist:493)ll_getnextindex [rtyper] specializing: 400 / 3625 blocks (11%) [flowgraph] (rpython.rtyper.rlist:690)ll_getitem_nonneg [flowgraph] (rpython.rtyper.rlist:723)ll_getitem_foldable_nonneg [flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast [flowgraph] (rpython.translator.c.test.test_newgc:491)customlightfinlz [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:445)ll_new [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:178)ll_append_char [flowgraph] (rpython.rlib.jit:1300)conditional_call [flowgraph] (?:2)ll_grow_by [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:94)ll_grow_by [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:155)ll_append [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:163)ll_jit_append [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:233)ll_jit_try_append_slice [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:80)_ll_append [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:117)ll_grow_and_append [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:171)ll_append_res0 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_2 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_2 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_3 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_3 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_4 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_4 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_5 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_5 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_6 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_6 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_7 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_7 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_8 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_8 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_9 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_9 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_10 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_10 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:189)ll_append_slice [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:197)ll_jit_append_slice [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:205)ll_append_res_slice [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:275)ll_append_multiple_char [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:299)ll_jit_try_append_multiple_char [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:282)_ll_append_multiple_char [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:11)ll_build_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:374)ll_fold_pieces [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:346)ll_getlength [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:365)ll_shrink_final [flowgraph] (?:2)ll_build_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build [flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange [flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter [flowgraph] (rpython.rtyper.lltypesystem.rstr:539)ll_join [flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr [flowgraph] (?:1)memo_emptystrfun_0 [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index [flowgraph] (?:1)memo__ll_empty_array_0 [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem [flowgraph] (rpython.rtyper.rstr:937)ll_char_hash [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash [flowgraph] (?:11)ll_call_lookup_function_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:607)ll_valid_from_value [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (?:2)ll_call_lookup_function_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_create_initial_index_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done [flowgraph] (?:11)ll_dict_grow_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:745)_overallocate_entries_len [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function [flowgraph] (?:2)ll_dict_grow_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow [flowgraph] (?:1)memo__contains_gcptr_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash [flowgraph] (rpython.rtyper.lltypesystem.rlist:493)ll_getnextindex [flowgraph] (rpython.rtyper.rlist:690)ll_getitem_nonneg [flowgraph] (?:11)ll_listdelslice_startonly_look_inside_iff [flowgraph] (rpython.rtyper.rlist:914) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.rlist:914)ll_listdelslice_startonly [flowgraph] (rpython.rtyper.rlist:541)ll_null_item [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)ll_listdelslice_startonly_trampoline [flowgraph] (rpython.rtyper.rlist:914)ll_listdelslice_startonly [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:1300)conditional_call [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash [flowgraph] (?:11)ll_call_lookup_function_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (?:2)ll_call_lookup_function_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_create_initial_index_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done [flowgraph] (?:11)ll_dict_grow_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function [flowgraph] (?:2)ll_dict_grow_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow [flowgraph] (?:1)memo__contains_gcptr_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (rpython.rtyper.rstr:555)ll_str [flowgraph] (rpython.rtyper.lltypesystem.rstr:362)ll_chr2str [flowgraph] (rpython.rtyper.rlist:1001)ll_listcontains [flowgraph] (rpython.rtyper.rstr:426)ll_str [flowgraph] (?:1)memo_ll_constant_0 [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index [flowgraph] (?:1)memo__ll_empty_array_0 [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1218)ll_dictiter [flowgraph] (?:11)_ll_dictnext_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)_ll_dictnext [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (?:2)_ll_dictnext_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)_ll_dictnext [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1462)ll_dict_contains [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1465)ll_dict_contains_with_hash [flowgraph] (?:11)ll_call_lookup_function_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (?:2)ll_call_lookup_function_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_create_initial_index_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (rpython.rtyper.rlist:699)ll_getitem [flowgraph] (rpython.rtyper.rlist:719)ll_getitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash [flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done [flowgraph] (?:11)ll_dict_grow_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function [flowgraph] (?:2)ll_dict_grow_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow [flowgraph] (?:1)memo__contains_gcptr_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (rpython.rtyper.lltypesystem.rstr:354)ll_stritem_nonneg [flowgraph] (rpython.rtyper.rlist:737)ll_setitem [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash [rtyper] specializing: 1000 / 5762 blocks (17%) [flowgraph] (rpython.rtyper.rlist:582)ll_len_foldable [flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length [flowgraph] (rpython.rtyper.rlist:690)ll_getitem_nonneg [flowgraph] (rpython.rtyper.rlist:723)ll_getitem_foldable_nonneg [flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast [flowgraph] (rpython.rtyper.rclass:870)ll_str [flowgraph] (rpython.rtyper.lltypesystem.ll_str:47)ll_int2hex [flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned [flowgraph] (?:1)memo_conststr_0 [flowgraph] (?:1)memo_conststr_0 [flowgraph] (?:1)memo_conststr_0 [flowgraph] (?:1)memo_conststr_0 [rtyper] specializing: 1300 / 5805 blocks (22%) [flowgraph] (rpython.rtyper.rint:410)ll_int_py_div_nonnegargs [rtyper] specializing: 1600 / 5807 blocks (27%) [flowgraph] (?:11)ll_listeq_look_inside_iff [flowgraph] (rpython.rtyper.rlist:972)listeq_unroll_case [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.rlist:979)ll_listeq [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (?:2)ll_listeq_trampoline [flowgraph] (rpython.rtyper.rlist:979)ll_listeq [rtyper] specializing: 1800 / 5843 blocks (30%) [rtyper] specializing: 2100 / 5843 blocks (35%) [rtyper] specializing: 2400 / 5843 blocks (41%) [flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div [flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod [rtyper] specializing: 2700 / 5847 blocks (46%) [rtyper] specializing: 3000 / 5847 blocks (51%) [rtyper] specializing: 3300 / 5847 blocks (56%) [flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:106)ll_math_isfinite [flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:98)ll_math_isinf [flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:158)ll_math_frexp [rtyper] specializing: 3600 / 5847 blocks (61%) [flowgraph] (rpython.rtyper.rbuiltin:240)ll_min [rtyper] specializing: 3900 / 5849 blocks (66%) [rtyper] specializing: 4200 / 5849 blocks (71%) [flowgraph] (rpython.rtyper.rint:398)ll_int_py_div [flowgraph] (rpython.rtyper.rbuiltin:240)ll_min [rtyper] specializing: 4500 / 5856 blocks (76%) [rtyper] specializing: 4800 / 5856 blocks (81%) [rtyper] specializing: 5100 / 5856 blocks (87%) [rtyper] specializing: 5400 / 5856 blocks (92%) [rtyper] specializing: 5700 / 5856 blocks (97%) [rtyper] -=- specialized 5856 blocks -=- [flowgraph] (rpython.rlib.objectmodel:397)revdb_flag_io_disabled [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)_finite [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall__finite [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)frexp [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_frexp [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)_isnan [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall__isnan [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [rtyper] specializing: 5900 / 5908 blocks (99%) [rtyper] -=- specialized 52 more blocks -=- [rtyper] -=- specialized 0 more blocks -=- [flowgraph] (rpython.rtyper.rclass:1130)ll_type [rtyper] -=- specialized 2 more blocks -=- [translation:info] usession directory: c:\users\runner~1\appdata\local\temp\usession-pypy-HEAD-12 [translation:info] already done: Annotating&simplifying [translation:info] already done: RTyping [translation:info] inserting stack checks... [flowgraph] (rpython.rlib.rstack:42)stack_check [flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath [rtyper] -=- specialized 8 more blocks -=- [translation:info] inserted 16 stack checks. [translation:info] Creating database for generating c source... [flowgraph] (rpython.translator.exceptiontransform:100)rpyexc_occurred [flowgraph] (rpython.translator.exceptiontransform:104)rpyexc_fetch_type [flowgraph] (rpython.translator.exceptiontransform:107)rpyexc_fetch_value [flowgraph] (rpython.translator.exceptiontransform:110)rpyexc_clear [flowgraph] (rpython.translator.exceptiontransform:114)rpyexc_raise [flowgraph] (rpython.translator.exceptiontransform:128)rpyexc_reraise [flowgraph] (rpython.translator.exceptiontransform:133)rpyexc_fetch_exception [flowgraph] (rpython.translator.exceptiontransform:138)rpyexc_restore_exception [flowgraph] (rpython.translator.exceptiontransform:539)rpyexc_get_exception_addr [flowgraph] (rpython.translator.exceptiontransform:543)rpyexc_get_exc_value_addr [flowgraph] (rpython.rtyper.rclass:1173)ll_inst_type [rtyper] -=- specialized 25 more blocks -=- [flowgraph] (rpython.memory.gctransform.transform:447)_ll_malloc_fixedsize [flowgraph] (rpython.memory.gctransform.transform:454)_ll_malloc_fixedsize_zero [flowgraph] (rpython.memory.gctransform.transform:470)_ll_malloc_varsize_no_length [flowgraph] (rpython.memory.gctransform.transform:487)ll_malloc_varsize [flowgraph] (rpython.memory.gctransform.transform:493)_ll_malloc_varsize_no_length_zero [flowgraph] (rpython.memory.gctransform.framework:178)frameworkgc_setup [flowgraph] (rpython.memory.gctransform.framework:184)frameworkgc__teardown [flowgraph] (rpython.memory.gctransform.shadowstack:80)incr_stack [flowgraph] (rpython.memory.gctransform.shadowstack:86)decr_stack [flowgraph] (rpython.memory.gctypelayout:594)ll_weakref_deref [flowgraph] (rpython.memory.gc.minimark:520)MiniMarkGC.malloc_fixedsize_clear [flowgraph] (rpython.memory.gc.minimark:575)MiniMarkGC.malloc_varsize_clear [flowgraph] (rpython.memory.gc.minimark:637)MiniMarkGC.collect [flowgraph] (rpython.memory.gc.base:165)GCBase.collect_step [flowgraph] (rpython.memory.gc.base:156)GCBase.enable [flowgraph] (rpython.memory.gc.base:159)GCBase.disable [flowgraph] (rpython.memory.gc.base:162)GCBase.isenabled [flowgraph] (rpython.memory.gc.minimark:849)MiniMarkGC.can_move [flowgraph] (rpython.memory.gc.minimark:854)MiniMarkGC.shrink_array [flowgraph] (rpython.memory.gc.base:149)GCBase.get_type_id_cast [flowgraph] (rpython.memory.gc.minimark:1193)MiniMarkGC.writebarrier_before_copy [flowgraph] (rpython.memory.gc.minimark:1239)MiniMarkGC.writebarrier_before_move [flowgraph] (rpython.memory.gc.minimark:520)MiniMarkGC.malloc_fast [flowgraph] (rpython.memory.gc.minimark:575)MiniMarkGC.malloc_varsize_clear_fast [flowgraph] (rpython.memory.gctransform.framework:411)raw_malloc_memory_pressure_varsize [flowgraph] (rpython.memory.gctransform.framework:417)raw_malloc_memory_pressure [flowgraph] (rpython.memory.gc.minimark:1914)MiniMarkGC.identityhash [flowgraph] (rpython.memory.gc.minimark:1911)MiniMarkGC.id [flowgraph] (rpython.memory.gc.inspector:32)get_rpy_roots [flowgraph] (rpython.memory.gc.inspector:63)get_rpy_referents [flowgraph] (rpython.memory.gc.inspector:76)get_rpy_memory_usage [flowgraph] (rpython.memory.gc.inspector:79)get_rpy_type_index [flowgraph] (rpython.memory.gc.inspector:83)is_rpy_instance [flowgraph] (rpython.memory.gc.inspector:265)dump_rpy_heap [flowgraph] (rpython.memory.gc.inspector:281)get_typeids_z [flowgraph] (rpython.memory.gc.inspector:285)get_typeids_list [flowgraph] (rpython.memory.gc.minimark:828)MiniMarkGC.set_max_heap_size [flowgraph] (rpython.memory.gc.minimark:1065)MiniMarkGC.write_barrier [flowgraph] (rpython.memory.gc.minimark:1082)remember_young_pointer [flowgraph] (rpython.memory.gc.minimark:1069)MiniMarkGC.write_barrier_from_array [flowgraph] (rpython.memory.gc.minimark:1171)jit_remember_young_pointer_from_array [flowgraph] (rpython.memory.gc.minimark:631)MiniMarkGC.malloc_fixed_or_varsize_nonmovable [flowgraph] (rpython.memory.gc.minimark:1272)MiniMarkGC.register_finalizer [flowgraph] (rpython.memory.gctransform.shadowstack:258)gc_increase_root_stack_depth [flowgraph] (rpython.memory.gctransform.shadowstack:351)ShadowStackPool.increase_root_stack_depth [flowgraph] (rpython.memory.gc.minimark:695)MiniMarkGC.external_malloc [flowgraph] (rpython.memory.gc.minimark:887)MiniMarkGC.combine [flowgraph] (rpython.memory.gc.base:130)GCBase.header [flowgraph] (rpython.memory.gc.minimark:1123)remember_young_pointer_from_array2 [flowgraph] (rpython.memory.support:122)AddressStack.append [flowgraph] (rpython.memory.gc.minimark:1187)MiniMarkGC.get_card [flowgraph] (rpython.memory.gc.inspector:201)HeapDumper.__init__ [flowgraph] (rpython.memory.gc.inspector:173)BaseWalker.process [flowgraph] (rpython.memory.gc.inspector:112)BaseWalker.add_roots [flowgraph] (rpython.memory.gc.inspector:99)BaseWalker.__init__ [flowgraph] (rpython.memory.support:307)AddressDict [flowgraph] (rpython.memory.lldict:17)newdict [flowgraph] (rpython.rtyper.lltypesystem.rdict:667)ll_newdict_size [flowgraph] (rpython.memory.lldict:20)dict_allocate [flowgraph] (rpython.memory.support:101)AddressStack.__init__ [flowgraph] (rpython.memory.support:40)FreeList.get [flowgraph] (rpython.memory.gc.minimark:883)MiniMarkGC.get_type_id [flowgraph] (rpython.memory.gc.base:118)GCBase.get_member_index [flowgraph] (rpython.memory.gctypelayout:131)GCData.q_member_index [flowgraph] (rpython.memory.gctypelayout:59)GCData.get [flowgraph] (rpython.memory.gctypelayout:204)_check_valid_type_info [flowgraph] (rpython.memory.gc.base:152)GCBase.get_size_incl_hash [flowgraph] (rpython.memory.gc.base:146)GCBase.get_size [flowgraph] (rpython.memory.gc.base:134)GCBase._get_size_for_typeid [flowgraph] (rpython.memory.gctypelayout:110)GCData.q_fixed_size [flowgraph] (rpython.memory.gc.inspector:56)_do_append_rpy_referents [flowgraph] (rpython.memory.gc.base:259)GCBase.trace [flowgraph] (rpython.memory.gctypelayout:143)GCData.q_fast_path_tracing [flowgraph] (rpython.memory.gc.inspector:25)_do_append_rpy_roots [flowgraph] (rpython.memory.gc.minimark:1803)MiniMarkGC.enumerate_all_roots [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.inspector:14)_append_rpy_root [flowgraph] (rpython.memory.gc.minimark:1900)MiniMarkGC.id_or_identityhash [flowgraph] (rpython.memory.gc.base:380)GCBase.is_valid_gc_object [flowgraph] (rpython.memory.gc.minimark:836)MiniMarkGC.raw_malloc_memory_pressure [flowgraph] (rpython.rtyper.lltypesystem.llarena:365)round_up_for_allocation [flowgraph] (rpython.memory.gc.minimark:653)MiniMarkGC.collect_and_reserve [flowgraph] (rpython.memory.gc.minimark:1282)MiniMarkGC.minor_collection [flowgraph] (?:2)debug_start [flowgraph] (rpython.rlib.debug:126)debug_start [flowgraph] (rpython.memory.gc.minimark:890)MiniMarkGC.init_gc_object [flowgraph] (rpython.memory.gc.minimark:1251)MiniMarkGC.manually_copy_card_bits [flowgraph] (rpython.memory.gc.minimark:976)MiniMarkGC.card_marking_bytes_for_length [flowgraph] (rpython.memory.gc.minimark:903)MiniMarkGC.is_in_nursery [flowgraph] (rpython.memory.gc.base:64)GCBase._teardown [flowgraph] (rpython.memory.gctransform.shadowstack:108)setup_root_walker [flowgraph] (rpython.memory.gctransform.shadowstack:288)ShadowStackPool.initial_setup [flowgraph] (rpython.memory.gctransform.shadowstack:344)ShadowStackPool._prepare_unused_stack [flowgraph] (rpython.memory.gctransform.shadowstack:335)ShadowStackPool.start_fresh_new_state [flowgraph] (rpython.memory.gc.base:385)GCBase.enumerate_all_roots [flowgraph] (rpython.memory.gctypelayout:135)GCData.q_is_rpython_class [flowgraph] (rpython.memory.lldict:29)dict_allocate_entries [flowgraph] (rpython.memory.gc.minimark:1803)MiniMarkGC.enumerate_all_roots [flowgraph] (rpython.memory.support:108)AddressStack.enlarge [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.inspector:259)_hd_add_root [flowgraph] (rpython.memory.gc.inspector:123)BaseWalker.add [flowgraph] (rpython.memory.gctransform.framework:1758)walk_roots [flowgraph] (rpython.memory.gc.base:377)GCBase.points_to_valid_gc_object [flowgraph] (rpython.memory.gc.base:600)callback2 [flowgraph] (rpython.memory.gctransform.shadowstack:112)walk_stack_roots [flowgraph] (rpython.memory.gc.minimark:1883)MiniMarkGC._find_shadow [flowgraph] (rpython.memory.gc.minimark:1859)MiniMarkGC._allocate_shadow [flowgraph] (rpython.memory.gctransform.shadowstack:43)walk_stack_root [flowgraph] (rpython.memory.support:10)mangle_hash [flowgraph] (rpython.memory.gc.base:385)GCBase.enumerate_all_roots [flowgraph] (rpython.memory.gctransform.shadowstack:93) [flowgraph] (rpython.memory.gctypelayout:113)GCData.q_varsize_item_sizes [flowgraph] (rpython.memory.gctypelayout:73)GCData.q_is_varsize [flowgraph] (rpython.memory.gctypelayout:66)GCData.get_varsize [flowgraph] (rpython.memory.gctypelayout:207)_check_valid_type_info_varsize [flowgraph] (rpython.memory.gctypelayout:107)GCData.q_offsets_to_gc_pointers [flowgraph] (rpython.memory.gctypelayout:85)GCData.q_is_gcarrayofgcptr [flowgraph] (rpython.memory.gc.inspector:44)_append_rpy_referent [flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path [flowgraph] (rpython.memory.gctypelayout:77)GCData.q_has_gcptr_in_varsize [flowgraph] (rpython.memory.gctypelayout:119)GCData.q_varsize_offset_to_length [flowgraph] (rpython.memory.gctypelayout:139)GCData.q_has_custom_trace [flowgraph] (rpython.memory.gctypelayout:116)GCData.q_varsize_offset_to_variable_part [flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.gctypelayout:122)GCData.q_varsize_offsets_to_gcpointers_in_var_part [flowgraph] (rpython.memory.gc.base:600)callback2 [flowgraph] (rpython.memory.gctransform.shadowstack:376)ShadowStackPool._resize [flowgraph] (rpython.memory.gc.minimark:961)MiniMarkGC.get_total_memory_used [flowgraph] (rpython.memory.gctransform.framework:1754)setup_root_walker [flowgraph] (rpython.memory.gc.minimark:1582)MiniMarkGC._malloc_out_of_nursery [flowgraph] (rpython.memory.gc.minimarkpage:154)ArenaCollection.malloc [flowgraph] (rpython.memory.gc.minimarkpage:197)ArenaCollection.allocate_new_page [flowgraph] (rpython.memory.gc.minimarkpage:278)ArenaCollection.allocate_new_arena [flowgraph] (rpython.memory.gc.minimarkpage:259)ArenaCollection._pick_next_arena [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.memory.gc.minimarkpage:604)_dummy_size [flowgraph] (rpython.memory.gc.minimark:1593)MiniMarkGC._malloc_out_of_nursery_nonsmall [flowgraph] (rpython.rtyper.lltypesystem.rdict:866)ll_contains [flowgraph] (rpython.memory.lldict:47)dict_keyhash [flowgraph] (rpython.memory.lldict:44)_hash [flowgraph] (rpython.memory.gc.minimarkpage:386)ArenaCollection._rehash_arenas_lists [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rdict:576) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rdict:576)ll_dict_lookup [flowgraph] (rpython.memory.lldict:50)dict_entry_valid [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.memory.gc.minimarkpage:589)start_of_page [flowgraph] (rpython.memory.gc.minimarkpage:611)out_of_memory [flowgraph] (rpython.rtyper.debug:49)fatalerror [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rdict:576)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.memory.gc.minimark:302)MiniMarkGC.setup [flowgraph] (rpython.memory.gc.minimark:1808)MiniMarkGC.enum_live_with_finalizers [flowgraph] (rpython.memory.gc.minimark:1808)MiniMarkGC.enum_live_with_finalizers [flowgraph] (rpython.memory.gc.base:45)GCBase.setup [flowgraph] (rpython.memory.support:228)AddressDeque.__init__ [flowgraph] (rpython.memory.support:314)null_address_dict [flowgraph] (rpython.rtyper.lltypesystem.rdict:459)ll_dict_setitem [flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rdict:466) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rdict:466)_ll_dict_setitem_lookup_done [flowgraph] (rpython.rtyper.lltypesystem.rdict:544)ll_dict_resize [flowgraph] (rpython.rtyper.lltypesystem.rdict:554)_ll_dict_resize_to [flowgraph] (rpython.memory.lldict:53)dict_entry_hash [flowgraph] (rpython.memory.lldict:40)dict_delete_entries [flowgraph] (rpython.memory.gc.minimark:1359)MiniMarkGC.collect_roots_in_nursery [flowgraph] (?:2)debug_stop [flowgraph] (rpython.rlib.debug:137)debug_stop [flowgraph] (rpython.memory.gc.minimark:430)MiniMarkGC.allocate_nursery [flowgraph] (rpython.memory.gc.minimark:420)MiniMarkGC._alloc_nursery [flowgraph] (rpython.memory.gc.minimark:416)MiniMarkGC._nursery_memory_size [flowgraph] (rpython.rtyper.lltypesystem.rdict:495)ll_dict_insertclean [flowgraph] (rpython.memory.lldict:56)dict_get [flowgraph] (rpython.memory.support:272)AddressDeque.foreach [flowgraph] (rpython.memory.support:272)AddressDeque.foreach [flowgraph] (rpython.memory.support:250)AddressDeque.append [flowgraph] (rpython.rtyper.lltypesystem.rdict:735)ll_get [flowgraph] (rpython.rtyper.lltypesystem.rdict:434)ll_get_value [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rdict:639)ll_dict_lookup_clean [flowgraph] (rpython.memory.gc.minimark:454)MiniMarkGC.set_major_threshold_from [flowgraph] (rpython.memory.support:235)AddressDeque.enlarge [flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rdict:466)_ll_dict_setitem_lookup_done [flowgraph] (rpython.memory.support:258)AddressDeque.non_empty [flowgraph] (rpython.memory.gc.minimark:643)MiniMarkGC.move_nursery_top [flowgraph] (rpython.memory.gc.minimark:967)MiniMarkGC.card_marking_words_for_length [flowgraph] (rpython.memory.lldict:59)dict_add [flowgraph] (rpython.memory.gc.minimark:1950)MiniMarkGC.deal_with_young_objects_with_finalizers [flowgraph] (rpython.memory.support:262)AddressDeque.popleft [flowgraph] (rpython.memory.gc.minimark:1372)MiniMarkGC.collect_cardrefs_to_nursery [flowgraph] (rpython.memory.support:130)AddressStack.non_empty [flowgraph] (rpython.memory.gc.minimark:1475)MiniMarkGC._trace_drag_out1 [flowgraph] (rpython.memory.support:243)AddressDeque.shrink [flowgraph] (rpython.memory.support:52)FreeList.put [flowgraph] (rpython.memory.gc.minimark:1478)MiniMarkGC._trace_drag_out [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.memory.gc.minimark:938)MiniMarkGC.is_forwarded [flowgraph] (rpython.memory.gc.minimark:1553)MiniMarkGC._visit_young_rawmalloced_object [flowgraph] (rpython.memory.support:133)AddressStack.pop [flowgraph] (rpython.memory.support:115)AddressStack.shrink [flowgraph] (rpython.memory.gctypelayout:81)GCData.q_has_gcptr [flowgraph] (rpython.memory.gc.minimark:953)MiniMarkGC.get_forwarding_address [flowgraph] (rpython.memory.gc.minimark:1464)MiniMarkGC.trace_and_drag_out_of_nursery_partial [flowgraph] (rpython.memory.gc.base:343)GCBase.trace_partial [flowgraph] (rpython.memory.gc.base:252)gc_callback__trace_drag_out [flowgraph] (rpython.memory.gc.minimark:1436)MiniMarkGC.collect_oldrefs_to_nursery [flowgraph] (rpython.memory.gc.minimark:1458)MiniMarkGC.trace_and_drag_out_of_nursery [flowgraph] (rpython.memory.gc.base:259)GCBase.trace [flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path [flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.gc.minimark:2071)MiniMarkGC.invalidate_young_weakrefs [flowgraph] (rpython.memory.gctypelayout:125)GCData.q_weakpointer_offset [flowgraph] (rpython.memory.gc.minimark:1920)MiniMarkGC.deal_with_young_objects_with_destructors [flowgraph] (rpython.memory.gc.base:437)GCBase.call_destructor [flowgraph] (rpython.memory.gctypelayout:98)GCData.q_destructor_or_custom_trace [flowgraph] (rpython.rtyper.lltypesystem.rdict:445)ll_dict_len [flowgraph] (rpython.rtyper.lltypesystem.rdict:774)ll_clear [flowgraph] (rpython.memory.gc.minimark:1608)MiniMarkGC.free_young_rawmalloced_objects [flowgraph] (rpython.memory.lldict:65)dict_foreach [flowgraph] (rpython.memory.gc.minimark:1614)MiniMarkGC._free_young_rawmalloced_obj [flowgraph] (rpython.memory.gc.minimark:1749)MiniMarkGC.free_rawmalloced_object_if_unvisited [flowgraph] (rpython.memory.gc.minimark:496)MiniMarkGC.debug_rotate_nursery [flowgraph] (rpython.memory.lldict:24)dict_delete [flowgraph] (rpython.memory.gc.minimark:1635)MiniMarkGC.major_collection [flowgraph] (rpython.memory.gc.minimark:985)MiniMarkGC.debug_check_consistency [flowgraph] (rpython.memory.gc.minimark:1786)MiniMarkGC.collect_roots [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.minimark:1813)_collect_obj [flowgraph] (rpython.memory.gc.base:401)GCBase.enum_pending_finalizers [flowgraph] (rpython.memory.support:272)AddressDeque.foreach [flowgraph] (rpython.memory.gctypelayout:94)GCData.q_finalizer_handlers [flowgraph] (rpython.memory.gc.env:38)read_from_env [flowgraph] (rpython.memory.gc.base:401)GCBase.enum_pending_finalizers [flowgraph] (rpython.memory.gc.base:401)GCBase.enum_pending_finalizers [flowgraph] (rpython.memory.gc.base:482)GCBase._adr2deque [flowgraph] (rpython.rtyper.annlowlevel:546)cast_adr_to_nongc_instance [flowgraph] (rpython.memory.gc.env:17)_read_float_and_factor_from_env [flowgraph] (rpython.rtyper.controllerentry:80)getattr [flowgraph] (rpython.rlib.rposix_environ:66)get_get [flowgraph] (rpython.memory.gc.minimark:1825)MiniMarkGC.visit_all_objects [flowgraph] (rpython.memory.gc.minimark:1831)MiniMarkGC.visit [flowgraph] (rpython.memory.gc.base:259)GCBase.trace [flowgraph] (rpython.memory.gc.base:252)gc_callback__collect_ref_rec [flowgraph] (rpython.memory.gc.minimark:1822)MiniMarkGC._collect_ref_rec [flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path [flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.gc.minimark:1619)MiniMarkGC.remove_young_arrays_from_old_objects_pointing_to_young [flowgraph] (rpython.memory.support:142)AddressStack.delete [flowgraph] (rpython.memory.gc.env:570)estimate_best_nursery_size [flowgraph] (rpython.memory.gc.env:533)get_L2cache_win32 [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)pypy_get_l2_cache_size [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_pypy_get_l2_cache_size [flowgraph] (rpython.memory.gc.env:46)read_float_from_env [flowgraph] (rpython.memory.gc.minimark:1960)MiniMarkGC.deal_with_objects_with_finalizers [flowgraph] (rpython.memory.gc.minimark:2020)MiniMarkGC._finalization_state [flowgraph] (rpython.memory.gc.base:51)GCBase.mark_finalizer_to_run [flowgraph] (rpython.memory.support:291)AddressDeque.delete [flowgraph] (rpython.memory.gc.minimark:2113)MiniMarkGC.invalidate_old_weakrefs [flowgraph] (rpython.memory.gc.minimark:1933)MiniMarkGC.deal_with_old_objects_with_destructors [flowgraph] (rpython.memory.gc.minimark:1776)MiniMarkGC.free_unvisited_rawmalloc_objects [flowgraph] (rpython.memory.gc.minimarkpage:376)ArenaCollection.mass_free [flowgraph] (rpython.memory.gc.minimark:2042)MiniMarkGC._recursively_bump_finalization_state_from_2_to_3 [flowgraph] (rpython.memory.gc.env:42)read_uint_from_env [flowgraph] (rpython.memory.gc.minimark:2033)MiniMarkGC._bump_finalization_state_from_0_to_1 [flowgraph] (rpython.memory.gc.minimark:2055)MiniMarkGC._recursively_bump_finalization_state_from_1_to_2 [flowgraph] (rpython.memory.gc.base:259)GCBase.trace [flowgraph] (rpython.memory.gc.minimark:2016)_append_if_nonnull [flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path [flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.gc.minimarkpage:326)ArenaCollection.mass_free_prepare [flowgraph] (rpython.memory.gc.minimarkpage:346)ArenaCollection.mass_free_incremental [flowgraph] (rpython.memory.gc.env:125)get_total_memory [flowgraph] (rpython.memory.gc.env:480)get_win32_total_phys_memory [flowgraph] (rpython.rtyper.lltypesystem.lltype:2296)scoped_alloc [flowgraph] (rpython.rtyper.lltypesystem.lltype:2280)ScopedAlloc_Struct MEMORYSTATUSEX { c_dwLength, c_dwMemoryLoad, c_ullTotalPhys, c_ullAvailPhys, c_ullTotalPageFile, c_ullAvailPageFile, c_ullTotalVirtual, c_ullAvailVirtual, c_ullAvailExtendedVirtual }.__init__ [flowgraph] (rpython.memory.gc.minimarkpage:427)ArenaCollection.mass_free_in_pages [flowgraph] (rpython.memory.gc.minimarkpage:506)ArenaCollection.walk_page [flowgraph] (rpython.memory.gc.minimark:1738)MiniMarkGC._free_if_unvisited [flowgraph] (rpython.rtyper.lltypesystem.lltype:2286)ScopedAlloc_Struct MEMORYSTATUSEX { c_dwLength, c_dwMemoryLoad, c_ullTotalPhys, c_ullAvailPhys, c_ullTotalPageFile, c_ullAvailPageFile, c_ullTotalVirtual, c_ullAvailVirtual, c_ullAvailExtendedVirtual }.__enter__ [flowgraph] (rpython.memory.gc.env:561)best_nursery_size_for_L2cache [flowgraph] (rpython.memory.gc.minimarkpage:490)ArenaCollection.free_page [flowgraph] (rpython.memory.gc.minimark:476)MiniMarkGC.post_setup [flowgraph] (rpython.memory.gc.minimark:1817)MiniMarkGC._collect_ref_stk [flowgraph] (rpython.memory.gc.base:58)GCBase.post_setup [flowgraph] (rpython.rtyper.lltypesystem.lltype:2289)ScopedAlloc_Struct MEMORYSTATUSEX { c_dwLength, c_dwMemoryLoad, c_ullTotalPhys, c_ullAvailPhys, c_ullTotalPageFile, c_ullAvailPageFile, c_ullTotalVirtual, c_ullAvailVirtual, c_ullAvailExtendedVirtual }.__exit__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)GlobalMemoryStatusEx [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_GlobalMemoryStatusEx [flowgraph] (rpython.memory.gc.base:442)GCBase.debug_check_consistency [flowgraph] (rpython.memory.gc.minimark:1803)MiniMarkGC.enumerate_all_roots [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.base:470)_debug_callback [flowgraph] (rpython.memory.gc.base:463)GCBase._debug_record [flowgraph] (rpython.memory.gc.minimark:993)MiniMarkGC.debug_check_object [flowgraph] (rpython.memory.gc.base:385)GCBase.enumerate_all_roots [flowgraph] (rpython.memory.gc.minimark:1808)MiniMarkGC.enum_live_with_finalizers [flowgraph] (rpython.memory.support:272)AddressDeque.foreach [flowgraph] (rpython.memory.gc.env:100)clamp_total_memory [flowgraph] (rpython.memory.gc.base:401)GCBase.enum_pending_finalizers [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.inspector:134)BaseWalker.walk [flowgraph] (rpython.memory.gc.inspector:243)HeapDumper.writeobj [flowgraph] (rpython.memory.gc.inspector:225)HeapDumper.write [flowgraph] (rpython.memory.gc.inspector:212)HeapDumper.flush [flowgraph] (rpython.memory.gc.minimark:1746)MiniMarkGC._reset_gcflag_visited [flowgraph] (rpython.memory.gc.base:259)GCBase.trace [flowgraph] (rpython.memory.gc.base:252)gc_callback__writeref [flowgraph] (rpython.memory.gc.inspector:253)HeapDumper._writeref [flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path [flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.gc.base:259)GCBase.trace [flowgraph] (rpython.memory.gc.base:252)gc_callback__debug_callback2 [flowgraph] (rpython.memory.gc.base:474)GCBase._debug_callback2 [flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path [flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.gc.inspector:236)HeapDumper.write_marker [flowgraph] (rpython.memory.gc.base:485)GCBase.execute_finalizers [flowgraph] (rpython.memory.gc.base:600)callback2 [flowgraph] (rpython.memory.gc.inspector:168)BaseWalker.finish_processing [flowgraph] (rpython.memory.gc.inspector:157)BaseWalker.clear_gcflag_again [flowgraph] (rpython.memory.gc.minimark:1803)MiniMarkGC.enumerate_all_roots [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.inspector:262)_hd_unadd_root [flowgraph] (rpython.memory.gc.inspector:150)BaseWalker.unadd [flowgraph] (rpython.memory.gc.base:385)GCBase.enumerate_all_roots [flowgraph] (rpython.memory.gc.minimark:1808)MiniMarkGC.enum_live_with_finalizers [flowgraph] (rpython.memory.support:272)AddressDeque.foreach [flowgraph] (rpython.memory.gc.base:401)GCBase.enum_pending_finalizers [flowgraph] (rpython.memory.gc.inspector:164)BaseWalker.unwalk [flowgraph] (rpython.memory.gc.inspector:142)BaseWalker.unobj [flowgraph] (rpython.memory.gc.base:259)GCBase.trace [flowgraph] (rpython.memory.gc.base:252)gc_callback__unref [flowgraph] (rpython.memory.gc.inspector:146)BaseWalker._unref [flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path [flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.gc.inspector:208)HeapDumper.delete [flowgraph] (rpython.memory.gc.inspector:106)BaseWalker.delete [flowgraph] (rpython.memory.gc.base:600)callback2 [flowgraph] (?:1)memo_assert_callback_is_a_function_0 [flowgraph] (?:1)memo__convert_callback_formats_0 [flowgraph] (?:1)memo__convert_callback_formats_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo_make_callback_0 [flowgraph] (?:1)memo_assert_callback_is_a_function_0 [flowgraph] (?:1)memo_make_callback_0 [flowgraph] (?:1)memo_assert_callback_is_a_function_0 [flowgraph] (?:1)memo_assert_callback_is_a_function_0 [flowgraph] (?:1)memo__make_scoped_allocator_0 [flowgraph] (?:1)memo_sizeof_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__convert_callback_formats_0 [flowgraph] (?:1)memo_make_callback_0 [flowgraph] (?:1)memo_assert_callback_is_a_function_0 [flowgraph] (?:1)memo_make_callback_0 [flowgraph] (?:1)memo_assert_callback_is_a_function_0 [flowgraph] (?:1)memo__convert_callback_formats_0 [flowgraph] (?:1)memo_make_callback_0 [flowgraph] (?:1)memo_assert_callback_is_a_function_0 [flowgraph] (rpython.rtyper.lltypesystem.rlist:391)ll_fixed_newemptylist [rtyper] specializing: 6000 / 7672 blocks (78%) [flowgraph] (rpython.rtyper.lltypesystem.llarena:594)llimpl_getfakearenaaddress [flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set [flowgraph] (rpython.rtyper.rlist:510)_ll_alloc_and_set_jit [flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null [flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit [flowgraph] (rpython.rtyper.lltypesystem.rlist:399)ll_fixed_items [flowgraph] (rpython.rlib.rgc:538)ll_arrayfill [flowgraph] (rpython.rtyper.rlist:522)_ll_alloc_and_clear [flowgraph] (rpython.rlib.rgc:508)ll_arrayclear [flowgraph] (?:11)_ll_alloc_and_set_nonnull_look_inside_iff [flowgraph] (rpython.rtyper.rlist:530) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.rlist:530)_ll_alloc_and_set_nonnull [flowgraph] (?:2)_ll_alloc_and_set_nonnull_trampoline [flowgraph] (rpython.rtyper.rlist:530)_ll_alloc_and_set_nonnull [flowgraph] (rpython.rtyper.lltypesystem.llarena:565)llimpl_round_up_for_allocation [flowgraph] (rpython.rtyper.lltypesystem.llarena:549)llimpl_arena_reserve [flowgraph] (rpython.rtyper.lltypesystem.llarena:557)llimpl_arena_shrink_obj [flowgraph] (rpython.rtyper.rlist:893)ll_listslice_startstop [flowgraph] (rpython.rtyper.rlist:554)ll_arraycopy [flowgraph] (rpython.rtyper.lltypesystem.llarena:532)llimpl_arena_reset [flowgraph] (rpython.rtyper.lltypesystem.llarena:514)llimpl_arena_malloc [flowgraph] (rpython.rtyper.rbuiltin:252)ll_max [flowgraph] (rpython.rtyper.rint:495)ll_int_py_mod [rtyper] specializing: 6500 / 7735 blocks (84%) [flowgraph] (rpython.rtyper.rbuiltin:252)ll_max [rtyper] specializing: 6900 / 7737 blocks (89%) [flowgraph] (rpython.rlib.rposix_environ:173)getenv_llimpl [flowgraph] (rpython.rtyper.rstr:945)ll_str_is_true [flowgraph] (rpython.rtyper.lltypesystem.rstr:873)ll_stringslice_minusone [flowgraph] (rpython.rtyper.lltypesystem.rstr:840)_ll_stringslice [flowgraph] (rpython.rtyper.rstr:956)ll_stritem [flowgraph] (rpython.rtyper.lltypesystem.rstr:1046)ll_contains [flowgraph] (rpython.rtyper.rstr:997)ll_float [flowgraph] (rpython.rlib.rfloat:87)rstring_to_float [flowgraph] (rpython.rlib.rdtoa:54)strtod [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)_PyPy_dg_strtod [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall__PyPy_dg_strtod [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (rpython.rtyper.lltypesystem.llarena:579)llimpl_arena_protect [rtyper] specializing: 7400 / 7814 blocks (94%) [flowgraph] (rpython.rtyper.rbuiltin:240)ll_min [rtyper] specializing: 7700 / 7816 blocks (98%) [flowgraph] (rpython.rtyper.lltypesystem.rstr:860)ll_stringslice_startstop [rtyper] -=- specialized 1881 more blocks -=- [flowgraph] (rpython.rtyper.lltypesystem.llarena:488)llimpl_protect [flowgraph] (rpython.rlib.rmmap:280)VirtualProtect [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)VirtualProtect [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_VirtualProtect [flowgraph] (rpython.rtyper.lltypesystem.rffi:1382)scoped_str2charp.__init__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:1388)scoped_str2charp.__enter__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:817)str2charp [flowgraph] (rpython.rtyper.lltypesystem.llarena:456)madvise_arena_free [flowgraph] (rpython.rtyper.lltypesystem.llarena:451)PosixPageSize.get [flowgraph] (rpython.rlib.rmmap:1044)madvise_free [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)getenv [flowgraph] (rpython.rtyper.lltypesystem.rffi:1390)scoped_str2charp.__exit__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:831)free_charp [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_getenv [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (rpython.rtyper.rbuiltin:252)ll_max [rtyper] specializing: 7900 / 7919 blocks (99%) [rtyper] -=- specialized 95 more blocks -=- [backendopt:removecasts] removed 4 cast_pointers in MiniMarkGC.external_malloc [backendopt:removecasts] removed 1 cast_pointers in ShadowStackPool._prepare_unused_stack [backendopt:removecasts] removed 1 cast_pointers in custom_trace_dispatcher___append_rpy_referent [backendopt:removecasts] removed 1 cast_pointers in ShadowStackPool._resize [backendopt:removecasts] removed 1 cast_pointers in MiniMarkGC._malloc_out_of_nursery_nonsmall [backendopt:removecasts] removed 1 cast_pointers in MiniMarkGC._alloc_nursery [backendopt:removecasts] removed 1 cast_pointers in MiniMarkGC.is_forwarded [backendopt:removecasts] removed 1 cast_pointers in custom_trace_dispatcher__gc_callback__trace_drag_out [backendopt:removecasts] removed 1 cast_pointers in MiniMarkGC.major_collection [backendopt:removecasts] removed 1 cast_pointers in custom_trace_dispatcher__gc_callback__collect_ref_rec [backendopt:removecasts] removed 1 cast_pointers in custom_trace_dispatcher___append_if_nonnull [backendopt:removecasts] removed 3 cast_pointers in HeapDumper.flush [backendopt:removecasts] removed 1 cast_pointers in custom_trace_dispatcher__gc_callback__writeref [backendopt:removecasts] removed 1 cast_pointers in custom_trace_dispatcher__gc_callback__debug_callback2 [backendopt:removecasts] removed 1 cast_pointers in BaseWalker.unadd [backendopt:removecasts] removed 1 cast_pointers in custom_trace_dispatcher__gc_callback__unref [backendopt:removecasts] removed 1 cast_pointers in _ll_stringslice__rpy_stringPtr_Signed_Signed [backendopt:removecasts] removed 3 cast_pointers in ll_float__rpy_stringPtr [backendopt:removecasts] removed 2 cast_pointers in strtod__SomeString [backendopt:inlining] phase with threshold factor: 32.4 [backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic [backendopt:inlining] 0.00 llimpl_arena_reset [backendopt:inlining] 0.00 MiniMarkGC.id_or_identityhash [backendopt:inlining] 0.00 llimpl_arena_malloc [backendopt:inlining] 0.00 debug_stop [backendopt:inlining] 0.00 debug_start [backendopt:inlining] 0.00 _dummy_size [backendopt:inlining] 0.00 copy_string_to_raw [backendopt:inlining] 0.00 memo_sizeof_0 [backendopt:inlining] 0.00 ll_setitem_nonneg__dum_nocheckConst_arrayPtr_Signed_GCREFPtr [backendopt:inlining] 0.00 isvirtual__v344___simple_call__function_i [backendopt:inlining] 0.00 ll_fixed_items__arrayPtr [backendopt:inlining] 0.00 isconstant__v346___simple_call__function_i [backendopt:inlining] 0.00 memo__sizeof_none_0 [backendopt:inlining] 0.00 memo__sizeof_none_0 [backendopt:inlining] 0.00 MiniMarkGC.move_nursery_top [backendopt:inlining] 0.00 get_nonmovingbuffer_ll_final_null [backendopt:inlining] 0.00 copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed [backendopt:inlining] 0.00 MiniMarkGC._trace_drag_out [backendopt:inlining] 0.00 gc_callback__unref [backendopt:inlining] 0.00 gc_callback__collect_ref_rec [backendopt:inlining] 0.00 pypy_get_l2_cache_size___star_0 [backendopt:inlining] 0.00 isconstant__v350___simple_call__function_i [backendopt:inlining] 0.00 GlobalMemoryStatusEx__MEMORYSTATUSEXPtr_star_1 [backendopt:inlining] 0.00 VirtualProtect__arrayPtr_Unsigned_UINT_arrayPtr_star_4 [backendopt:inlining] 0.00 llimpl_getfakearenaaddress [backendopt:inlining] 0.00 gc_callback__trace_drag_out [backendopt:inlining] 0.00 memo__sizeof_none_0 [backendopt:inlining] 0.00 HeapDumper.write [backendopt:inlining] 0.00 gc_callback__writeref [backendopt:inlining] 0.00 isvirtual__v338___simple_call__function_i [backendopt:inlining] 0.00 isconstant__v340___simple_call__function_i [backendopt:inlining] 0.00 memo_emptystrfun_0 [backendopt:inlining] 0.00 MiniMarkGC._malloc_out_of_nursery [backendopt:inlining] 0.00 get_get [backendopt:inlining] 0.00 gc_callback__debug_callback2 [backendopt:inlining] 0.00 _PyPy_dg_strtod__arrayPtr_arrayPtr_star_2 [backendopt:inlining] 0.00 getenv__arrayPtr_star_1 [backendopt:inlining] 2.00 debug_start [backendopt:inlining] 2.00 debug_stop [backendopt:inlining] 2.00 ll_strlen__rpy_stringPtr [backendopt:inlining] 2.00 ll_fixed_newlist__GcArray_Ptr_GCREF__gcopaque_Ll_Signed [backendopt:inlining] 2.00 ll_int_py_div_nonnegargs__Signed_Signed [backendopt:inlining] 2.00 dict_delete_entries [backendopt:inlining] 2.00 MiniMarkGC.combine [backendopt:inlining] 2.00 ll_fixed_length__arrayPtr [backendopt:inlining] 2.00 ll_int_py_mod_nonnegargs__Signed_Signed [backendopt:inlining] 2.00 ll_dict_len__DICTPtr [backendopt:inlining] 2.00 cast_adr_to_nongc_instance__AddressDeque [backendopt:inlining] 2.00 free_charp [backendopt:inlining] 2.00 ScopedAlloc_Struct MEMORYSTATUSEX { c_dwLength, c_dwMemoryLoad, c_ullTotalPhys, c_ullAvailPhys, c_ullTotalPageFile, c_ullAvailPageFile, c_ullTotalVirtual, c_ullAvailVirtual, c_ullAvailExtendedVirtual }.__enter__ [backendopt:inlining] 2.00 scoped_str2charp.__enter__ [backendopt:inlining] 4.00 GCBase.header [backendopt:inlining] 4.00 AddressStack.non_empty [backendopt:inlining] 4.00 GCBase.is_valid_gc_object [backendopt:inlining] 4.00 MiniMarkGC.get_forwarding_address [backendopt:inlining] 4.00 GCData.q_finalizer_handlers [backendopt:inlining] 4.00 mangle_hash [backendopt:inlining] 4.00 ll_fixed_setitem_fast__arrayPtr_Signed_GCREFPtr [backendopt:inlining] 4.00 ll_stritem_nonneg__rpy_stringPtr_Signed [backendopt:inlining] 4.00 _ll_zero_or_null__GCREFPtr [backendopt:inlining] 4.00 ll_max__Unsigned_Unsigned [backendopt:inlining] 4.00 dict_allocate [backendopt:inlining] 4.00 _check_valid_type_info [backendopt:inlining] 4.00 _check_valid_type_info_varsize [backendopt:inlining] 4.00 ll_min__Float_Float [backendopt:inlining] 4.00 __exit____star_3 [backendopt:inlining] 4.00 ll_max__Float_Float [backendopt:inlining] 4.00 ll_max__Signed_Signed [backendopt:inlining] 4.00 ll_min__Signed_Signed [backendopt:inlining] 5.00 release [backendopt:inlining] 6.00 MiniMarkGC.get_total_memory_used [backendopt:inlining] 6.00 FreeList.put [backendopt:inlining] 6.00 MiniMarkGC._nursery_memory_size [backendopt:inlining] 6.00 ScopedAlloc_Struct MEMORYSTATUSEX { c_dwLength, c_dwMemoryLoad, c_ullTotalPhys, c_ullAvailPhys, c_ullTotalPageFile, c_ullAvailPageFile, c_ullTotalVirtual, c_ullAvailVirtual, c_ullAvailExtendedVirtual }.__init__ [backendopt:inlining] 2.00 GCBase._adr2deque [backendopt:inlining] 7.00 AddressDict [backendopt:inlining] 7.00 round_up_for_allocation [backendopt:inlining] 7.00 ll_len_foldable__arrayPtr [backendopt:inlining] 7.00 _hd_add_root [backendopt:inlining] 7.00 dict_keyhash [backendopt:inlining] 7.00 _debug_callback [backendopt:inlining] 7.00 _hd_unadd_root [backendopt:inlining] 7.00 GCBase.get_size_incl_hash [backendopt:inlining] 7.00 _collect_obj [backendopt:inlining] 7.00 mallocstr [backendopt:inlining] 7.00 newdict [backendopt:inlining] 7.00 setup_root_walker [backendopt:inlining] 7.00 out_of_memory [backendopt:inlining] 7.00 MiniMarkGC._free_young_rawmalloced_obj [backendopt:inlining] 7.00 ccall_getenv [backendopt:inlining] 0.00 getenv__arrayPtr_star_1 [backendopt:inlining] 2.00 ll_fixed_newemptylist__GcArray_Ptr_GCREF__gcopaque_Ll [backendopt:inlining] 7.00 rstring_to_float__SomeString [backendopt:inlining] 7.00 ccall__PyPy_dg_strtod__arrayPtr_arrayPtr [backendopt:inlining] 0.00 _PyPy_dg_strtod__arrayPtr_arrayPtr_star_2 [backendopt:inlining] 7.25 __v343___simple_call__function__ [backendopt:inlining] 7.50 int_force_ge_zero__Signed [backendopt:inlining] 8.00 dict_entry_valid [backendopt:inlining] 8.00 ll_get_value__DICTPtr_Unsigned [backendopt:inlining] 9.00 GCData.q_varsize_offset_to_length [backendopt:inlining] 6.00 GCData.get [backendopt:inlining] 9.00 GCData.q_varsize_item_sizes [backendopt:inlining] 9.00 GCData.q_varsize_offset_to_variable_part [backendopt:inlining] 9.00 GCData.q_varsize_offsets_to_gcpointers_in_var_part [backendopt:inlining] 9.00 dict_get [backendopt:inlining] 8.00 GCData.q_offsets_to_gc_pointers [backendopt:inlining] 6.00 GCData.get_varsize [backendopt:inlining] 8.00 GCData.q_fixed_size [backendopt:inlining] 9.00 GCBase.get_member_index [backendopt:inlining] 6.00 _hash [backendopt:inlining] 9.00 dict_add [backendopt:inlining] 9.00 ccall_VirtualProtect [backendopt:inlining] 9.00 ll_dict_lookup_trampoline__v341___simple_call__function_l [backendopt:inlining] 9.00 _ll_alloc_and_set_nonnull_trampoline__v352___simple_call__function__ [backendopt:inlining] 9.00 GCBase.post_setup [backendopt:inlining] 5.50 best_nursery_size_for_L2cache [backendopt:inlining] 10.00 acquire [backendopt:inlining] 10.00 ShadowStackPool.start_fresh_new_state [backendopt:inlining] 10.00 __v336___simple_call_invoke_0__a [backendopt:inlining] 3.50 __v349___simple_call__function__ [backendopt:inlining] 7.00 ll_str_is_true__LLHelpersConst_rpy_stringPtr [backendopt:inlining] 8.00 MiniMarkGC.get_type_id [backendopt:inlining] 8.00 GCBase.points_to_valid_gc_object [backendopt:inlining] 11.00 BaseWalker._unref [backendopt:inlining] 6.00 dict_delete [backendopt:inlining] 11.00 _append_if_nonnull [backendopt:inlining] 10.00 GCData.q_member_index [backendopt:inlining] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed [backendopt:inlining] 11.00 start_of_page [backendopt:inlining] 10.00 dict_entry_hash [backendopt:inlining] 11.00 _ll_dict_setitem_lookup_done_trampoline__v347___simple_call__function__ [backendopt:inlining] 11.00 MiniMarkGC.trace_and_drag_out_of_nursery [backendopt:inlining] 8.00 llimpl_round_up_for_allocation [backendopt:inlining] 11.00 GCBase._debug_callback2 [backendopt:inlining] 11.00 HeapDumper.delete [backendopt:inlining] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed [backendopt:inlining] 10.50 estimate_best_nursery_size [backendopt:inlining] 12.00 ll_arrayclear__arrayPtr [backendopt:inlining] 12.00 get_total_memory [backendopt:inlining] 12.25 scoped_str2charp.__init__ [backendopt:inlining] 12.50 AddressDeque.non_empty [backendopt:inlining] 12.50 ShadowStackPool._resize [backendopt:inlining] 9.00 __exit____star_3 [backendopt:inlining] 12.00 GCData.q_has_gcptr_in_varsize [backendopt:inlining] 12.00 GCData.q_has_gcptr [backendopt:inlining] 12.00 GCData.q_is_gcarrayofgcptr [backendopt:inlining] 12.00 GCData.q_fast_path_tracing [backendopt:inlining] 12.00 GCData.q_has_custom_trace [backendopt:inlining] 6.00 MiniMarkGC.init_gc_object [backendopt:inlining] 13.00 MiniMarkGC._collect_ref_rec [backendopt:inlining] 12.00 GCData.q_is_varsize [backendopt:inlining] 6.00 MiniMarkGC.get_card [backendopt:inlining] 12.00 GCData.q_is_rpython_class [backendopt:inlining] 13.00 customtrace___append_rpy_referent [backendopt:inlining] 13.00 MiniMarkGC.trace_and_drag_out_of_nursery_partial [backendopt:inlining] 13.00 customtrace__gc_callback__trace_drag_out [backendopt:inlining] 13.00 customtrace__gc_callback__collect_ref_rec [backendopt:inlining] 13.00 customtrace___append_if_nonnull [backendopt:inlining] 12.00 scoped_alloc__MEMORYSTATUSEX_False [backendopt:inlining] 10.00 MiniMarkGC._reset_gcflag_visited [backendopt:inlining] 13.00 customtrace__gc_callback__writeref [backendopt:inlining] 13.00 customtrace__gc_callback__debug_callback2 [backendopt:inlining] 13.00 BaseWalker.unobj [backendopt:inlining] 13.00 customtrace__gc_callback__unref [backendopt:inlining] 13.00 ll_stringslice_minusone__rpy_stringPtr [backendopt:inlining] 13.00 MiniMarkGC.is_in_nursery [backendopt:inlining] 13.00 free_nonmovingbuffer_ll [backendopt:inlining] 13.50 ll_int_py_mod__Signed_Signed [backendopt:inlining] 13.50 FreeList.get [backendopt:inlining] 14.00 ArenaCollection.mass_free [backendopt:inlining] 0.00 __v337___simple_call__function__ [backendopt:inlining] 14.00 GCData.q_weakpointer_offset [backendopt:inlining] 15.00 read_float_from_env [backendopt:inlining] 15.00 ll_int_py_div__Signed_Signed [backendopt:inlining] 16.00 MiniMarkGC.card_marking_words_for_length [backendopt:inlining] 16.00 MiniMarkGC.card_marking_bytes_for_length [backendopt:inlining] 16.00 BaseWalker.process [backendopt:inlining] 16.00 MiniMarkGC._recursively_bump_finalization_state_from_1_to_2 [backendopt:inlining] 15.00 _ll_alloc_and_clear__GcArray_Ptr_GCREF__gcopaque_Ll_Signed [backendopt:inlining] 16.25 MiniMarkGC.collect [backendopt:inlining] 17.00 ll_contains__rpy_stringPtr_Char [backendopt:inlining] 17.00 GCBase.get_size [backendopt:inlining] 17.00 ShadowStackPool.initial_setup [backendopt:inlining] 17.00 read_from_env [backendopt:inlining] 17.00 HeapDumper.__init__ [backendopt:inlining] 17.00 _do_append_rpy_roots [backendopt:inlining] 17.00 GCBase.setup [backendopt:inlining] 17.00 read_uint_from_env [backendopt:inlining] 17.00 madvise_free [backendopt:inlining] 17.00 llimpl_protect [backendopt:inlining] 11.00 ll_stritem__LLHelpersConst_rpy_stringPtr_Signed [backendopt:inlining] 17.75 ShadowStackPool._prepare_unused_stack [backendopt:inlining] 15.00 ll_dict_resize__DICTPtr [backendopt:inlining] 18.00 enumerate_all_roots___hd_add_root [backendopt:inlining] 18.00 enumerate_all_roots___append_rpy_root [backendopt:inlining] 18.00 enumerate_all_roots___debug_callback [backendopt:inlining] 18.00 enumerate_all_roots___hd_unadd_root [backendopt:inlining] 18.00 BaseWalker.finish_processing [backendopt:inlining] 19.00 walk_stack_roots [backendopt:inlining] 19.25 custom_trace_dispatcher___append_rpy_referent [backendopt:inlining] 19.25 custom_trace_dispatcher__gc_callback__trace_drag_out [backendopt:inlining] 19.25 custom_trace_dispatcher__gc_callback__collect_ref_rec [backendopt:inlining] 19.25 custom_trace_dispatcher___append_if_nonnull [backendopt:inlining] 19.25 custom_trace_dispatcher__gc_callback__writeref [backendopt:inlining] 19.25 custom_trace_dispatcher__gc_callback__debug_callback2 [backendopt:inlining] 19.25 custom_trace_dispatcher__gc_callback__unref [backendopt:inlining] 16.75 _trace_callback___append_rpy_referent [backendopt:inlining] 18.25 _trace_callback___append_if_nonnull [backendopt:inlining] 16.75 _trace_callback__gc_callback__writeref [backendopt:inlining] 18.25 _trace_callback__gc_callback__debug_callback2 [backendopt:inlining] 18.25 _trace_callback__gc_callback__unref [backendopt:inlining] 19.75 _trace_callback__gc_callback__collect_ref_rec [backendopt:inlining] 20.00 MiniMarkGC.raw_malloc_memory_pressure [backendopt:inlining] 17.25 MiniMarkGC.write_barrier [backendopt:inlining] 20.67 dict_allocate_entries [backendopt:inlining] 21.00 _do_append_rpy_referents [backendopt:inlining] 18.75 MiniMarkGC.debug_check_consistency [backendopt:inlining] 21.25 AddressStack.append [backendopt:inlining] 21.25 AddressDeque.append [backendopt:inlining] 19.50 GCData.q_destructor_or_custom_trace [backendopt:inlining] 21.33 ll_arrayfill__arrayPtr_GCREFPtr [backendopt:inlining] 21.50 AddressStack.__init__ [backendopt:inlining] 21.00 ll_contains__DICTPtr_Address [backendopt:inlining] 22.00 enum_live_with_finalizers___hd_add_root [backendopt:inlining] 22.00 enum_live_with_finalizers___append_rpy_root [backendopt:inlining] 21.00 MiniMarkGC.free_young_rawmalloced_objects [backendopt:inlining] 22.00 enum_live_with_finalizers___debug_callback [backendopt:inlining] 22.00 enum_live_with_finalizers___hd_unadd_root [backendopt:inlining] 23.33 charp2str [backendopt:inlining] 23.50 AddressDeque.__init__ [backendopt:inlining] 23.00 BaseWalker.delete [backendopt:inlining] 21.00 MiniMarkGC._finalization_state [backendopt:inlining] 21.75 ll_alloc_and_set__GcArray_Ptr_GCREF__gcopaque_Ll_Signed_GCREFPtr [backendopt:inlining] 24.75 _ll_alloc_and_set_jit__GcArray_Ptr_GCREF__gcopaque_Ll_Signed_GCREFPtr [backendopt:inlining] 15.00 MiniMarkGC.collect_roots_in_nursery [backendopt:inlining] 25.17 _ll_alloc_and_set_nojit__GcArray_Ptr_GCREF__gcopaque_Ll_Signed_GCREFPtr [backendopt:inlining] 19.00 ll_dict_lookup_look_inside_iff__DICTPtr_Address_Signed [backendopt:inlining] 25.75 ll_join_strs_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT [backendopt:inlining] 21.75 _ll_alloc_and_set_nonnull_look_inside_iff__GcArray_Ptr_GCREF__gcopaque_Ll_Signed_GCREFPtr [backendopt:inlining] 26.31 ll_stringslice_startstop__rpy_stringPtr_Signed_Signed [backendopt:inlining] 26.37 AddressStack.pop [backendopt:inlining] 21.50 MiniMarkGC._free_if_unvisited [backendopt:inlining] 16.75 clamp_total_memory [backendopt:inlining] 26.75 MiniMarkGC.is_forwarded [backendopt:inlining] 26.00 AddressStack.delete [backendopt:inlining] 26.00 AddressDeque.delete [backendopt:inlining] 20.50 get_L2cache_win32 [backendopt:inlining] 27.50 MiniMarkGC._alloc_nursery [backendopt:inlining] 28.75 _append_rpy_root [backendopt:inlining] 29.00 ll_dict_insertclean__DICTPtr_Address_Address_Signed [backendopt:inlining] 29.75 llimpl_arena_protect [backendopt:inlining] 20.50 _ll_dict_setitem_lookup_done_look_inside_iff__DICTPtr_Address_Address_Signed_Unsigned [backendopt:inlining] 21.00 ll_listslice_startstop__GcArray_Ptr_GCREF__gcopaque_Ll_arrayPtr_Signed_Signed [backendopt:inlining] 31.21 ArenaCollection._pick_next_arena [backendopt:inlining] 31.75 AddressDeque.popleft [backendopt:inlining] 31.75 _append_rpy_referent [backendopt:inlining] 32.25 HeapDumper._writeref [backendopt:inlining] 20.67 _ll_alloc_and_set_nonnull__v353___simple_call__function__ [backendopt:inlining] 20.67 _ll_alloc_and_set_nonnull__v351___simple_call__function__ [backendopt:inlining] inlined 1199 callsites. [backendopt:removecasts] removed 1 cast_pointers in get_rpy_roots [backendopt:removecasts] removed 1 cast_pointers in get_rpy_referents [backendopt:removecasts] removed 2 cast_pointers in get_win32_total_phys_memory [backendopt:removecasts] removed 1 cast_pointers in ll_alloc_and_set__GcArray_Ptr_GCREF__gcopaque_Ll_Signed_GCREFPtr [backendopt:removecasts] removed 1 cast_pointers in _ll_stringslice__rpy_stringPtr_Signed_Signed [backendopt:removecasts] removed 2 cast_pointers in strtod__SomeString [backendopt:malloc] starting malloc removal [backendopt:malloc] 1 simple mallocs removed in 'get_win32_total_phys_memory' [backendopt:malloc] 3 simple mallocs removed in 'GlobalMemoryStatusEx__MEMORYSTATUSEXPtr_star_1' [backendopt:malloc] 1 simple mallocs removed in 'getenv_llimpl' [backendopt:malloc] 1 simple mallocs removed in 'strtod__SomeString' [backendopt:malloc] 5 simple mallocs removed in '_PyPy_dg_strtod__arrayPtr_arrayPtr_star_2' [backendopt:malloc] 9 simple mallocs removed in 'VirtualProtect__arrayPtr_Signed_Signed_arrayPtr' [backendopt:malloc] 9 simple mallocs removed in 'VirtualProtect__arrayPtr_Unsigned_UINT_arrayPtr_star_4' [backendopt:malloc] 3 simple mallocs removed in 'getenv__arrayPtr_star_1' [backendopt:malloc] removed 32 simple mallocs in total [backendopt:mergeifblocks] starting to merge if blocks [backendopt] merging blocks in _trace_slow_path___append_rpy_referent [backendopt] merging blocks in _trace_slow_path__gc_callback__trace_drag_out [backendopt] merging blocks in _trace_slow_path__gc_callback__collect_ref_rec [backendopt] merging blocks in _trace_slow_path___append_if_nonnull [backendopt] merging blocks in _trace_slow_path__gc_callback__writeref [backendopt] merging blocks in _trace_slow_path__gc_callback__debug_callback2 [backendopt] merging blocks in _trace_slow_path__gc_callback__unref [backendopt] merging blocks in llimpl_arena_reset [flowgraph] (rpython.memory.gctransform.framework:620)ll_check_no_collect [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.gctransform.framework:618)no_op_callback [rtyper] -=- specialized 9 more blocks -=- [flowgraph] (rpython.translator.c.genc:261)entrypoint_wrapper [flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set [flowgraph] (rpython.rtyper.rlist:510)_ll_alloc_and_set_jit [flowgraph] (rpython.rtyper.rlist:522)_ll_alloc_and_clear [flowgraph] (rpython.rtyper.lltypesystem.rlist:324)ll_newlist [flowgraph] (?:11)_ll_alloc_and_set_nonnull_look_inside_iff [flowgraph] (rpython.rtyper.rlist:530) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.rlist:530)_ll_alloc_and_set_nonnull [flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit [flowgraph] (?:2)_ll_alloc_and_set_nonnull_trampoline [flowgraph] (rpython.rtyper.rlist:530)_ll_alloc_and_set_nonnull [flowgraph] (rpython.rtyper.rlist:728)ll_setitem_nonneg [rtyper] -=- specialized 46 more blocks -=- [rtyper] -=- specialized 0 more blocks -=- [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1604)ll_finalizer_trigger [flowgraph] (rpython.memory.gctransform.framework:1611)ll_next_dead [c] 1000 nodes [ array: 200 framework rtti: 39 func: 588 group: 1 struct: 666 ] [flowgraph] (rpython.memory.gctransform.framework:1604)ll_finalizer_trigger [flowgraph] (rpython.memory.gctransform.framework:1611)ll_next_dead [c] 2000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 83028 ] [c] 3000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 84028 ] [c] 4000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 85028 ] [c] 5000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 86028 ] [c] 6000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 87028 ] [c] 7000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 88028 ] [c] 8000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 89028 ] [c] 9000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 90028 ] [c] 10000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 91028 ] [c] 11000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 92028 ] [c] 12000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 93028 ] [c] 13000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 94028 ] [c] 14000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 95028 ] [c] 15000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 96028 ] [c] 16000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 97028 ] [c] 17000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 98028 ] [c] 18000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 99028 ] [c] 19000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 100028 ] [c] 20000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 101028 ] [c] 21000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 102028 ] [c] 22000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 103028 ] [c] 23000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 104028 ] [c] 24000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 105028 ] [c] 25000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 106028 ] [c] 26000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 107028 ] [c] 27000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 108028 ] [c] 28000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 109028 ] [c] 29000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 110028 ] [c] 30000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 111028 ] [c] 31000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 112028 ] [c] 32000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 113028 ] [c] 33000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 114028 ] [c] 34000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 115028 ] [c] 35000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 116028 ] [c] 36000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 117028 ] [c] 37000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 118028 ] [c] 38000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 119028 ] [c] 39000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 120028 ] [c] 40000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 121028 ] [c] 41000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 122028 ] [c] 42000 nodes [ array: 325 framework rtti: 57 func: 841 group: 1 struct: 123028 ] [c] 43000 nodes [ array: 388 framework rtti: 59 func: 959 group: 1 struct: 124523 ] [c] 44000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 45000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 46000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 47000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 48000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 49000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 50000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 51000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 52000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 53000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 54000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 55000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 56000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 57000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 58000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 59000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 60000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 61000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 62000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 63000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 64000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 65000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 66000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 67000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 68000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 69000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 70000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 71000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 72000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 73000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 74000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 75000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 76000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 77000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 78000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 79000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 80000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 81000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 82000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 83000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 84000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124527 ] [c] 85000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 86000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 87000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 88000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 89000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 90000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 91000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 92000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 93000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 94000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 95000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 96000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 97000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 98000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 99000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 100000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 101000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 102000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 103000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 104000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 105000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 106000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 107000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 108000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 109000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 110000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 111000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 112000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 113000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 114000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 115000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 116000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 117000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 118000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 119000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 120000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 121000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 122000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 123000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 124000 nodes [ array: 437 framework rtti: 62 func: 986 group: 1 struct: 124529 ] [c] 125000 nodes [ array: 449 framework rtti: 62 func: 1014 group: 1 struct: 124529 ] [c] 126000 nodes [ array: 835 framework rtti: 64 func: 1038 group: 1 struct: 124535 ] [c] 127000 nodes [ array: 837 framework rtti: 65 func: 1251 group: 1 struct: 125032 ] [c] 128000 nodes [ array: 839 framework rtti: 66 func: 1327 group: 1 struct: 125769 ] [c] 129000 nodes [ array: 839 framework rtti: 66 func: 1327 group: 1 struct: 126769 ] [c] 130000 nodes [ array: 839 framework rtti: 66 func: 1327 group: 1 struct: 127769 ] [c:database] GC transformer: finished helpers [flowgraph] (rpython.memory.gctransform.support:95)ll_report_finalizer_error [flowgraph] (rpython.memory.gctransform.support:77)write [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)wrap_write [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.transform:461)_ll_compute_size [rtyper] specializing: 8000 / 8140 blocks (98%) [rtyper] -=- specialized 166 more blocks -=- [backendopt:removecasts] removed 1 cast_pointers in _ll_malloc_fixedsize__Signed [backendopt:removecasts] removed 1 cast_pointers in _ll_malloc_fixedsize_zero__Signed [backendopt:removecasts] removed 1 cast_pointers in _ll_malloc_varsize_no_length__Signed_Signed_Signed [backendopt:removecasts] removed 1 cast_pointers in _ll_malloc_varsize_no_length_zero__Signed_Signed_Signed [backendopt:removecasts] removed 1 cast_pointers in _ll_compute_size__Signed_Signed_Signed [backendopt:inlining] phase with threshold factor: 32.4 [backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic [backendopt:inlining] 0.00 _ll_compute_size__Signed_Signed_Signed [backendopt:inlining] 0.00 wrap_write__Signed_SomeString_Signed_star_3 [backendopt:inlining] 12.50 AddressDeque.non_empty [backendopt:inlining] 16.50 _ll_malloc_varsize_no_length__Signed_Signed_Signed [backendopt:inlining] 26.62 ll_report_finalizer_error__SomeInstance [backendopt:inlining] 31.75 AddressDeque.popleft [backendopt:inlining] inlined 10 callsites. [backendopt:malloc] starting malloc removal [backendopt:malloc] 8 simple mallocs removed in 'write' [backendopt:malloc] 8 simple mallocs removed in 'wrap_write__Signed_SomeString_Signed_star_3' [backendopt:malloc] removed 16 simple mallocs in total [backendopt:mergeifblocks] starting to merge if blocks [c:database] GC transformer: finished tables [gctransform:info] assigned 224 typeids [gctransform:info] added 1886 push/pop stack root instructions [gctransform:info] inserted 71 write barrier calls [gctransform:info] inserted 39 write_barrier_from_array calls [gctransform:info] found 3 static roots [c:database] Inlining GC helpers and postprocessing [c] 130660 nodes [ array: 937 framework rtti: 66 func: 1368 group: 1 struct: 128288 ] [c:database] Completed [translation:info] database for generating C source was created [translation:info] Generating c source... [c:writing] structdef.h [c:writing] forwarddecl.h [c:writing] preimpl.h [c:writing] data_rpython_flowspace.c [c:writing] data_rpython_memory_gc.c [c:writing] data_rpython_memory_gctransform.c [c:writing] data_rpython_memory_test.c [c:writing] data_rpython_rlib.c [c:writing] data_rpython_rtyper.c [c:writing] data_rpython_rtyper_lltypesystem.c [c:writing] data_rpython_translator_c_test.c [c:writing] nonfuncnodes.c [c:writing] nonfuncnodes_1.c [c:writing] nonfuncnodes_2.c [c:writing] nonfuncnodes_3.c [c:writing] nonfuncnodes_4.c [c:writing] nonfuncnodes_5.c [c:writing] nonfuncnodes_6.c [c:writing] data_rpython_memory_gc_1.c [c:writing] data_rpython_rlib_1.c [c:writing] data_rpython_rtyper_lltypesystem_1.c [c:writing] implement.c [c:writing] rpython_flowspace.c [c:writing] rpython_memory.c [c:writing] rpython_memory_gc.c [c:writing] rpython_memory_gctransform.c [c:writing] rpython_memory_test.c [c:writing] rpython_rlib.c [c:writing] rpython_rtyper.c [c:writing] rpython_rtyper_lltypesystem.c [c:writing] rpython_rtyper_lltypesystem_1.c [c:writing] rpython_rtyper_lltypesystem_module.c [c:writing] rpython_translator.c [c:writing] rpython_translator_c.c [c:writing] rpython_translator_c_test.c [translation:info] written: c:\users\runner~1\appdata\local\temp\usession-pypy-HEAD-12\testing_1\testing_1.c [translation:info] Compiling c source... [platform:execute] nmake in c:\users\runner~1\appdata\local\temp\usession-pypy-HEAD-12\testing_1 [platform:Error] cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] stdafx.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] testing_1.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_flowspace.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_memory_gc.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_memory_gctransform.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_memory_test.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_rlib.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_rtyper.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_rtyper_lltypesystem.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_translator_c_test.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] nonfuncnodes.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] nonfuncnodes_1.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] nonfuncnodes_2.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] nonfuncnodes_3.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] nonfuncnodes_4.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] nonfuncnodes_5.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] nonfuncnodes_6.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_memory_gc_1.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_rlib_1.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_rtyper_lltypesystem_1.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] implement.c [platform:Error] implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' [platform:Error] implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' [platform:Error] implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] rpython_flowspace.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] rpython_memory.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] rpython_memory_gc.c [platform:Error] rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' [platform:Error] c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' [platform:Error] rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' [platform:Error] c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' [platform:Error] rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' [platform:Error] rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' [platform:Error] NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' [platform:Error] Stop. E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_from_objwithfinalizer_to_youngobj cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_empty_collect cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_framework_simple cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_framework_safe_pushpop cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_framework_protect_getfield cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_framework_varsized cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_framework_using_lists cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_framework_static_roots cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_framework_nongc_static_root cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_framework_void_array cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_framework_malloc_failure cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_framework_array_of_void cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_framework_opaque cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_framework_finalizer cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_del_catches cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_del_raises cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_custom_trace cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_custom_light_finalizer cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_weakref cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_prebuilt_weakref cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_prebuilt_dicts_of_all_sizes cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_framework_malloc_raw cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_framework_del_seeing_new_types cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_framework_late_filling_pointers cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_zero_raw_malloc cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_object_alignment cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_void_list cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_open_read_write_seek_close cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_callback_with_collect cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_can_move cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_resizable_buffer cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_hash_preservation cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_hash_overflow cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_hash_varsized cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_arraycopy_writebarrier_int cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_arraycopy_writebarrier_ptr cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_get_rpy_roots cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_get_rpy_referents cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_is_rpy_instance cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_try_cast_gcref_to_instance cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_get_rpy_memory_usage cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_get_rpy_type_index cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_dump_rpy_heap cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_write_typeids_z cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_gcflag_extra cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_check_zero_works cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_long_chain_of_instances cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_many_ids cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_gc_set_max_heap_size cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_string_builder cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_string_builder_over_allocation cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_string_builder_multiple_builds cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_string_builder_multiple_builds_2 cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_nursery_hash_base cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_extra_item_after_alloc cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_rerased cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_gc_heap_stats cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_nongc_attached_to_gc cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_nongc_opaque_attached_to_gc cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGC::()::test_limited_memory cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1830): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_1\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_1.obj /c testing_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4051): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4051): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1796): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1822): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_1\singleheader.h(4660): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1823): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1830): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_finalizer_order cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError ---------- Captured stderr setup ---------- [platform:msg] Updated environment with vsver 160, using x64 True [flowgraph] (rpython.translator.c.test.test_newgc:39)main [translation:info] Annotating&simplifying... [translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy [flowgraph] (rpython.translator.c.test.test_newgc:104)allfuncs [flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item [flowgraph] (rpython.translator.c.test.test_newgc:944)f_arraycopy_writebarrier_int [flowgraph] (rpython.translator.c.test.test_newgc:965)f_arraycopy_writebarrier_ptr [flowgraph] (rpython.translator.c.test.test_newgc:750)f_callback_with_collect [flowgraph] (rpython.translator.c.test.test_newgc:783)f_can_move [flowgraph] (rpython.translator.c.test.test_newgc:1277)f_check_zero_works [flowgraph] (rpython.translator.c.test.test_newgc:1891)f_collect_step [flowgraph] (rpython.translator.c.test.test_newgc:443)f_del_raises [flowgraph] (rpython.translator.c.test.test_newgc:1163)f_dump_rpy_heap [flowgraph] (rpython.translator.c.test.test_newgc:146)f_empty_collect [flowgraph] (rpython.translator.c.test.test_newgc:1537)f_extra_item_after_alloc [flowgraph] (rpython.translator.c.test.test_newgc:341)f_framework_array_of_void [flowgraph] (rpython.translator.c.test.test_newgc:627)f_framework_del_seeing_new_types [flowgraph] (rpython.translator.c.test.test_newgc:393)f_framework_finalizer [flowgraph] (rpython.translator.c.test.test_newgc:640)f_framework_late_filling_pointers [flowgraph] (rpython.translator.c.test.test_newgc:332)f_framework_malloc_failure [flowgraph] (rpython.translator.c.test.test_newgc:608)f_framework_malloc_raw [flowgraph] (rpython.translator.c.test.test_newgc:307)f_framework_nongc_static_root [flowgraph] (rpython.translator.c.test.test_newgc:368)f_framework_opaque [flowgraph] (rpython.translator.c.test.test_newgc:223)f_framework_protect_getfield [flowgraph] (rpython.translator.c.test.test_newgc:197)f_framework_safe_pushpop [flowgraph] (rpython.translator.c.test.test_newgc:165)f_framework_simple [flowgraph] (rpython.translator.c.test.test_newgc:293)f_framework_static_roots [flowgraph] (rpython.translator.c.test.test_newgc:267)f_framework_using_lists [flowgraph] (rpython.translator.c.test.test_newgc:241)f_framework_varsized [flowgraph] (rpython.translator.c.test.test_newgc:323)f_framework_void_array [flowgraph] (rpython.memory.test.snippet:190)f_from_objwithfinalizer_to_youngobj [flowgraph] (rpython.translator.c.test.test_newgc:1387)f_gc_heap_stats [flowgraph] (rpython.translator.c.test.test_newgc:1362)f_gc_set_max_heap_size [flowgraph] (rpython.translator.c.test.test_newgc:1244)f_gcflag_extra [flowgraph] (rpython.translator.c.test.test_newgc:1103)f_get_rpy_memory_usage [flowgraph] (rpython.translator.c.test.test_newgc:1015)f_get_rpy_referents [flowgraph] (rpython.translator.c.test.test_newgc:996)f_get_rpy_roots [flowgraph] (rpython.translator.c.test.test_newgc:1128)f_get_rpy_type_index [flowgraph] (rpython.translator.c.test.test_newgc:912)f_hash_overflow [flowgraph] (rpython.translator.c.test.test_newgc:829)f_hash_preservation [flowgraph] (rpython.translator.c.test.test_newgc:932)f_hash_varsized [flowgraph] (rpython.translator.c.test.test_newgc:1828)f_ignore_finalizer [flowgraph] (rpython.translator.c.test.test_newgc:1040)f_is_rpy_instance [flowgraph] (rpython.translator.c.test.test_newgc:1303)f_long_chain_of_instances [flowgraph] (rpython.translator.c.test.test_newgc:1330)f_many_ids [flowgraph] (rpython.translator.c.test.test_newgc:1617)f_nongc_attached_to_gc [flowgraph] (rpython.translator.c.test.test_newgc:1646)f_nongc_opaque_attached_to_gc [flowgraph] (rpython.translator.c.test.test_newgc:1483)f_nursery_hash_base [flowgraph] (rpython.translator.c.test.test_newgc:673)f_object_alignment [flowgraph] (rpython.translator.c.test.test_newgc:706)f_open_read_write_seek_close [flowgraph] (rpython.translator.c.test.test_newgc:589)f_prebuilt_dicts_of_all_sizes [flowgraph] (rpython.translator.c.test.test_newgc:554)f_prebuilt_weakref [flowgraph] (rpython.translator.c.test.test_newgc:1740)f_random_pin [flowgraph] (rpython.translator.c.test.test_newgc:1561)f_rerased [flowgraph] (rpython.translator.c.test.test_newgc:793)f_resizable_buffer [flowgraph] (rpython.translator.c.test.test_newgc:1932)f_total_gc_time [flowgraph] (rpython.translator.c.test.test_newgc:1723)f_total_memory_pressure [flowgraph] (rpython.translator.c.test.test_newgc:1065)f_try_cast_gcref_to_instance [flowgraph] (rpython.translator.c.test.test_newgc:695)f_void_list [flowgraph] (rpython.translator.c.test.test_newgc:516)f_weakref [flowgraph] (rpython.translator.c.test.test_newgc:1209)f_write_typeids_z [flowgraph] (rpython.translator.c.test.test_newgc:653)f_zero_raw_malloc [flowgraph] (rpython.rlib.rposix:461)open [flowgraph] (rpython.rlib.rposix:402)_as_utf80 [flowgraph] (rpython.rlib.rposix:392)_as_utf8 [flowgraph] (rpython.translator.c.test.test_newgc:693)E.__init__ [flowgraph] (rpython.rlib.rgc:953)cast_instance_to_gcref [flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr [flowgraph] (rpython.translator.c.test.test_newgc:1709)A.__del__ [flowgraph] (rpython.translator.c.test.test_newgc:1706)A.__init__ [flowgraph] (rpython.translator.c.test.test_newgc:1713)B.__init__ [flowgraph] (?:2)ll_shrink_array [flowgraph] (rpython.rlib.rgc:468)ll_shrink_array [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.rlib.rerased:128)try_cast_erased [flowgraph] (rpython.rtyper.rclass:1143)ll_isinstance [flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass [flowgraph] (rpython.translator.c.test.test_newgc:575)keq [flowgraph] (rpython.translator.c.test.test_newgc:577)khash [flowgraph] (rpython.translator.c.test.test_newgc:1643)A.__del__ [flowgraph] (rpython.translator.c.test.test_newgc:1640)A.__init__ [flowgraph] (rpython.rlib.rzlib:267)deflateInit [flowgraph] (rpython.rlib.rzlib:149)_deflateInit2 [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)deflateInit2_ [flowgraph] (rpython.rtyper.lltypesystem.rffi:926)get_nonmovingbuffer_ll_final_null [flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll [flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c [flowgraph] (rpython.translator.c.test.test_newgc:1614)A.__del__ [flowgraph] (rpython.translator.c.test.test_newgc:1611)A.__init__ [flowgraph] (rpython.translator.c.test.test_newgc:1036)check [flowgraph] (rpython.translator.c.test.test_newgc:1821)g [flowgraph] (rpython.rlib.rgc:617)register_finalizer [flowgraph] (rpython.translator.c.test.test_newgc:1818)finalizer_trigger [flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref [flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr [flowgraph] (rpython.rlib.rposix:500)write [flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__ [flowgraph] (rpython.translator.c.test.test_newgc:985)g [flowgraph] (rpython.translator.c.test.test_newgc:1360)g [flowgraph] (rpython.memory.test.snippet:177)g [flowgraph] (rpython.rlib.rgc:617)register_finalizer [flowgraph] (rpython.memory.test.snippet:169)finalizer_trigger [flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref [flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr [flowgraph] (rpython.rlib.rgc:600)next_dead [flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance [flowgraph] (rpython.translator.c.test.test_newgc:290)make [flowgraph] (rpython.translator.c.test.test_newgc:286)A.__init__ [flowgraph] (rpython.translator.c.test.test_newgc:160)make [flowgraph] (rpython.translator.c.test.test_newgc:156)g [flowgraph] (rpython.translator.c.test.test_newgc:188)make [flowgraph] (rpython.translator.c.test.test_newgc:180)g [flowgraph] (rpython.translator.c.test.test_newgc:212)prepare [flowgraph] (rpython.translator.c.test.test_newgc:358)gethidden [flowgraph] (rpython.translator.c.test.test_newgc:391)A.__del__ [flowgraph] (rpython.translator.c.test.test_newgc:388)A.__init__ [flowgraph] (rpython.translator.c.test.test_newgc:625)A.__del__ [flowgraph] (rpython.translator.c.test.test_newgc:1530)check [flowgraph] (rpython.rlib.rgc:1612)ll_write_final_null_char [flowgraph] (rpython.translator.c.test.test_newgc:441)B.__del__ [flowgraph] (rpython.translator.c.test.test_newgc:1889)X.__del__ [flowgraph] (rpython.rlib.rgc:36)old_state [flowgraph] (rpython.rlib.clibffi:310)get_libc_name [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)pypy_get_libc_handle [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_pypy_get_libc_handle [flowgraph] (rpython.rlib.rgil:160)release [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.translator.c.test.test_newgc:499)f_custom_light_finalizer [flowgraph] (rpython.translator.c.test.test_newgc:474)f_custom_trace [flowgraph] (rpython.translator.c.test.test_newgc:426)f_del_catches [flowgraph] (rpython.translator.c.test.test_newgc:1852)f_enable_disable [flowgraph] (rpython.translator.c.test.test_newgc:1956)f_increase_root_stack_depth [flowgraph] (rpython.translator.c.test.test_newgc:1673)f_limited_memory [flowgraph] (rpython.translator.c.test.test_newgc:1673)f_limited_memory_linux [flowgraph] (rpython.translator.c.test.test_newgc:1667)g [flowgraph] (rpython.translator.c.test.test_newgc:1665)A.__init__ [flowgraph] (rpython.translator.c.test.test_newgc:1667)g [flowgraph] (rpython.translator.c.test.test_newgc:1665)A.__init__ [flowgraph] (rpython.rlib.rgc:774)increase_root_stack_depth [flowgraph] (rpython.translator.c.test.test_newgc:1850)X.__del__ [flowgraph] (rpython.translator.c.test.test_newgc:420)f [flowgraph] (rpython.translator.c.test.test_newgc:412)A.__del__ [flowgraph] (rpython.translator.c.test.test_newgc:417)f1 [flowgraph] (rpython.translator.c.test.test_newgc:409)g [flowgraph] (rpython.translator.c.test.test_newgc:460)setup [flowgraph] (rpython.translator.c.test.test_newgc:495)setup [flowgraph] (rpython.memory.test.snippet:92)f_finalizer_order [flowgraph] (rpython.translator.c.test.test_newgc:1414)f_string_builder [flowgraph] (rpython.translator.c.test.test_newgc:1446)f_string_builder_multiple_builds [flowgraph] (rpython.translator.c.test.test_newgc:1462)f_string_builder_multiple_builds_2 [flowgraph] (rpython.translator.c.test.test_newgc:1428)f_string_builder_over_allocation [flowgraph] (rpython.memory.test.snippet:83)build_example [flowgraph] (rpython.memory.test.snippet:64)A.__init__ [flowgraph] (rpython.rlib.rgc:617)register_finalizer [flowgraph] (rpython.memory.test.snippet:71)finalizer_trigger [flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref [flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr [flowgraph] (rpython.rlib.rgc:600)next_dead [flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance [flowgraph] (rpython.translator.c.test.test_newgc:468)measure_length [flowgraph] (rpython.translator.c.test.test_newgc:1949)g [flowgraph] (rpython.rlib.rgil:171)acquire [flowgraph] (rpython.rlib.rgc:39)new_state [flowgraph] (rpython.translator.c.test.test_newgc:217)g [flowgraph] (rpython.rlib.rgc:953)cast_instance_to_gcref [flowgraph] (rpython.flowspace.specialcase:95)rpython_print_newline [flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end [flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw [flowgraph] (rpython.rtyper.lltypesystem.rstr:63)_get_raw_buf [flowgraph] (rpython.rtyper.lltypesystem.rstr:57)_str_ofs [flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr [flowgraph] (rpython.translator.c.test.test_newgc:363)reveal [flowgraph] (rpython.translator.c.test.test_newgc:365)overwrite [flowgraph] (?:2)mallocstr [flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr [flowgraph] (rpython.rlib.rthread:282)gc_thread_run [flowgraph] (rpython.memory.test.snippet:136)error [flowgraph] (rpython.memory.test.snippet:53)age_of [flowgraph] (rpython.rlib.rgc:964)try_cast_gcref_to_instance [flowgraph] (rpython.rtyper.lltypesystem.rffi:1410)scoped_utf82wcharp.__init__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:1418)scoped_utf82wcharp.__enter__ [flowgraph] (rpython.rlib.rutf8:470)codepoints_in_utf8 [flowgraph] (rpython.memory.test.snippet:55)set_age_of [flowgraph] (rpython.rlib.rgc:741)may_ignore_finalizer [flowgraph] (rpython.rtyper.lltypesystem.rffi:1138)utf82wcharp [flowgraph] (rpython.rlib.rutf8:799)Utf8StringIterator.__init__ [flowgraph] (rpython.rlib.rutf8:804)Utf8StringIterator.__iter__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_deflateInit2_ [flowgraph] (rpython.rlib.rutf8:813)Utf8StringIterator.next [flowgraph] (rpython.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll [flowgraph] (rpython.rlib.rzlib:239)fromstream [flowgraph] (rpython.rtyper.lltypesystem.rffi:854)charp2str [flowgraph] (rpython.rtyper.lltypesystem.rffi:1030)charpsize2str [flowgraph] (rpython.rtyper.lltypesystem.rstr:145)copy_raw_to_string [flowgraph] (rpython.rlib.rzlib:233)RZlibError.__init__ [flowgraph] (rpython.rlib.rzlib:309)deflateEnd [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)deflateEnd [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_deflateEnd [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)wrap_write [flowgraph] (rpython.rlib.rgc:42)is_done [flowgraph] (rpython.rlib.rgc:51)is_done__states [flowgraph] (rpython.rlib.rgc:964)try_cast_gcref_to_instance [flowgraph] (rpython.rtyper.lltypesystem.rffi:1433)scoped_nonmovingbuffer.__exit__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_wrap_write [flowgraph] (rpython.rlib.rposix:151)_errno_before [flowgraph] (rpython.rlib.rthread:349)getraw [flowgraph] (rpython.rlib.rthread:349)getraw [flowgraph] (rpython.rlib.rthread:349)getraw [flowgraph] (rpython.rlib.rthread:349)getraw [flowgraph] (rpython.rlib.rposix:170)_errno_after [flowgraph] (rpython.rlib.rgc:964)try_cast_gcref_to_instance [flowgraph] (rpython.rlib.rthread:364)setraw [flowgraph] (rpython.rlib.rthread:364)setraw [flowgraph] (rpython.rlib.rthread:364)setraw [flowgraph] (rpython.rlib.rthread:364)setraw [flowgraph] (rpython.rlib.rgc:600)next_dead [flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance [flowgraph] (rpython.rlib.rwin32:394)GetModuleFileName [flowgraph] (rpython.rlib.rgc:953)cast_instance_to_gcref [flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)GetModuleFileNameA [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_GetModuleFileNameA [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)_wopen [flowgraph] (rpython.rtyper.lltypesystem.rffi:1420)scoped_utf82wcharp.__exit__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:831)free_charp [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall__wopen [flowgraph] (rpython.rlib.rposix:151)_errno_before [flowgraph] (rpython.rlib.clibffi:704)CDLL.__del__ [flowgraph] (rpython.rlib.clibffi:699)CDLL.__init__ [flowgraph] (rpython.rlib.clibffi:675)RawCDLL.getpointer [flowgraph] (rpython.rlib.rposix:170)_errno_after [flowgraph] (rpython.rlib.clibffi:672)RawCDLL.__init__ [flowgraph] (rpython.rlib.rdynload:259)dlclose [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)FreeLibrary [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_FreeLibrary [flowgraph] (rpython.rlib.rdynload:233)dlopen [flowgraph] (rpython.rlib.rdynload:266)dlsym [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)GetProcAddress [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_GetProcAddress [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)LoadLibraryW [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_LoadLibraryW [flowgraph] (rpython.rlib.rposix:151)_errno_before [flowgraph] (rpython.rlib.rdynload:66)DLOpenError.__init__ [flowgraph] (rpython.rlib.rposix:170)_errno_after [flowgraph] (rpython.rlib.clibffi:516)AbstractFuncPtr.__del__ [flowgraph] (rpython.rlib.clibffi:658)FuncPtr.__del__ [flowgraph] (rpython.rlib.clibffi:588)FuncPtr.__init__ [flowgraph] (rpython.rlib.clibffi:480)AbstractFuncPtr.__init__ [flowgraph] (rpython.rlib.clibffi:466)get_call_conv [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_prep_cif [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_prep_cif [flowgraph] (rpython.rlib.rwin32:172)GetLastError_saved [flowgraph] (rpython.rlib.rwin32:311)FormatErrorW [flowgraph] (rpython.rlib.rwin32:348)llimpl_FormatErrorW [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)LocalFree [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_LocalFree [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)FormatMessageW [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_FormatMessageW [flowgraph] (rpython.rtyper.lltypesystem.rffi:1100)wcharpsize2utf8 [flowgraph] (rpython.rlib.rutf8:63)unichr_as_utf8_append [flowgraph] (rpython.rlib.rutf8:80)_nonascii_unichr_as_utf8_append [flowgraph] (rpython.rlib.rutf8:35)OutOfRange.__init__ [flowgraph] (rpython.rlib.clibffi:553)CallbackFuncPtr.__del__ [flowgraph] (rpython.rlib.clibffi:532)CallbackFuncPtr.__init__ [flowgraph] (rpython.rlib.clibffi:610)FuncPtr.push_arg [flowgraph] (rpython.translator.c.test.test_newgc:734)callback [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_prep_closure_loc [flowgraph] (rpython.rlib.clibffi:389)push_arg_as_ffiptr [flowgraph] (?:6)wrapper [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_prep_closure_loc [flowgraph] (rpython.rlib.rgil:183)acquire_maybe_in_new_thread [flowgraph] (rpython.rlib.rthread:124)get_or_make_ident [flowgraph] (rpython.rlib.rthread:356)get_or_make_raw [flowgraph] (rpython.rlib.clibffi:446)ll_callback [flowgraph] (rpython.rlib.rposix:170)_errno_after [flowgraph] (?:1)callback_with_jitdriver [flowgraph] (rpython.rlib.jit:442)get_printable_location [flowgraph] (rpython.rlib.clibffi:433)_ll_callback [flowgraph] (rpython.rlib.rposix:151)_errno_before [flowgraph] (rpython.rlib.clibffi:610)FuncPtr.push_arg [flowgraph] (rpython.rlib.rposix:430)handle_posix_error [flowgraph] (rpython.rlib.rarithmetic:139)widen [flowgraph] (rpython.rlib.rposix:430)handle_posix_error [flowgraph] (rpython.rlib.rposix:113)get_saved_errno [flowgraph] (rpython.rlib.clibffi:389)push_arg_as_ffiptr [flowgraph] (rpython.rlib.rposix:508)close [flowgraph] (rpython.rlib.rposix:255)SuppressIPH.__init__ [flowgraph] (rpython.rlib.rposix:258)SuppressIPH.__enter__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)enter_suppress_iph [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_enter_suppress_iph [flowgraph] (rpython.translator.c.test.test_newgc:892)h [flowgraph] (rpython.translator.c.test.test_newgc:859)g [flowgraph] (rpython.translator.c.test.test_newgc:870)build [flowgraph] (rpython.translator.c.test.test_newgc:880)check [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)_close [flowgraph] (rpython.rlib.rposix:262)SuppressIPH.__exit__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)exit_suppress_iph [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_exit_suppress_iph [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall__close [flowgraph] (rpython.rlib.rposix:151)_errno_before [flowgraph] (rpython.rlib.rposix:170)_errno_after [flowgraph] (rpython.rlib.rposix:430)handle_posix_error [flowgraph] (rpython.rlib.rposix:518)lseek [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)_lseeki64 [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall__lseeki64 [flowgraph] (rpython.rlib.rposix:151)_errno_before [flowgraph] (rpython.rlib.rposix:170)_errno_after [flowgraph] (rpython.rlib.rposix:430)handle_posix_error [flowgraph] (rpython.rlib.rposix:490)read [flowgraph] (rpython.rtyper.lltypesystem.rffi:1469)scoped_alloc_buffer.__init__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:1471)scoped_alloc_buffer.__enter__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:953)alloc_buffer [flowgraph] (rpython.rtyper.lltypesystem.rffi:1474)scoped_alloc_buffer.__exit__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:1008)keep_buffer_alive_until_here [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)wrap_read [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_wrap_read [flowgraph] (rpython.rlib.rposix:151)_errno_before [flowgraph] (rpython.rlib.rposix:170)_errno_after [flowgraph] (rpython.rlib.rposix:430)handle_posix_error [flowgraph] (rpython.rtyper.lltypesystem.rffi:1476)scoped_alloc_buffer.str [flowgraph] (?:2)str_from_buffer [flowgraph] (rpython.rtyper.lltypesystem.rffi:988)str_from_buffer [flowgraph] (rpython.rlib.clibffi:550)CallbackFuncPtr.get_closure [flowgraph] (rpython.rlib.clibffi:638)FuncPtr.call [flowgraph] (rpython.rlib.clibffi:631)FuncPtr._check_args [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_call [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_call [flowgraph] (rpython.rlib.rposix:151)_errno_before [flowgraph] (rpython.rlib.rposix:170)_errno_after [flowgraph] (rpython.rlib.clibffi:635)FuncPtr._clean_args [flowgraph] (rpython.rlib.clibffi:263)check_fficall_result [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo_sizeof_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo_has_final_null_char_0 [flowgraph] (?:1)memo__contains_gcptr_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo__contains_gcptr_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo_offsetof_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo_CArray_0 [flowgraph] (?:1)memo_sizeof_0 [flowgraph] (?:1)memo_CArray_0 [flowgraph] (?:1)memo_sizeof_0 [flowgraph] (?:1)memo_sizeof_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__make_wrapper_for_0 [flowgraph] (?:1)memo__should_widen_type_0 [flowgraph] (?:1)memo_CArray_0 [flowgraph] (?:1)memo_sizeof_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [translation:info] RTyping... [flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info [flowgraph] (rpython.rtyper.rlist:690)ll_getitem_nonneg [flowgraph] (rpython.rtyper.rlist:719)ll_getitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items [flowgraph] (rpython.rtyper.lltypesystem.rstr:1058)ll_int [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem [flowgraph] (rpython.rtyper.lltypesystem.rstr:394)ll_strhash [flowgraph] (rpython.rlib.jit:1321)conditional_call_elidable [flowgraph] (rpython.rtyper.lltypesystem.rstr:402)_ll_strhash [flowgraph] (rpython.rlib.objectmodel:620)ll_hash_string [flowgraph] (rpython.rlib.objectmodel:595)_hash_string [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash [flowgraph] (?:11)ll_call_lookup_function_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed [flowgraph] (rpython.rtyper.lltypesystem.rstr:420)ll_strfasthash [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:602)ll_valid_from_key [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes [flowgraph] (rpython.rlib.rgc:508)ll_arrayclear [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.rlib.rgc:508)ll_arrayclear [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.rlib.rgc:508)ll_arrayclear [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.rlib.rgc:508)ll_arrayclear [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (?:2)ll_call_lookup_function_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rstr:601)ll_streq [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_create_initial_index_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (?:1)memo__ll_ptr_to_array_of_0 [flowgraph] (?:1)memo__ll_ptr_to_array_of_0 [flowgraph] (?:1)memo__ll_ptr_to_array_of_0 [flowgraph] (?:1)memo__ll_ptr_to_array_of_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (rpython.rtyper.rlist:690)ll_getitem_nonneg [flowgraph] (rpython.rtyper.rlist:723)ll_getitem_foldable_nonneg [flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter [flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext [flowgraph] (rpython.rtyper.rlist:590)ll_append [flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length [flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:1300)conditional_call [flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rlist:198) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really [flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)_ll_list_resize_hint_really_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really [flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items [flowgraph] (?:1)memo__ll_prebuilt_empty_array_0 [flowgraph] (?:1)memo__contains_gcptr_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (rpython.rtyper.rlist:690)ll_getitem_nonneg [flowgraph] (rpython.rtyper.rlist:723)ll_getitem_foldable_nonneg [flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast [flowgraph] (rpython.rtyper.rint:149)ll_str [flowgraph] (rpython.rtyper.lltypesystem.ll_str:13)ll_int2dec [flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned [flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange [flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter [flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist [flowgraph] (rpython.rtyper.rlist:728)ll_setitem_nonneg [flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist [flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array [flowgraph] (?:1)memo__ll_prebuilt_empty_array_0 [flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist [flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array [flowgraph] (?:1)memo__ll_prebuilt_empty_array_0 [flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter [flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set [flowgraph] (rpython.rlib.rarithmetic:741)int_force_ge_zero [flowgraph] (rpython.rtyper.rlist:510)_ll_alloc_and_set_jit [flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null [flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit [flowgraph] (rpython.rtyper.lltypesystem.rlist:324)ll_newlist [flowgraph] (rpython.rtyper.rlist:522)_ll_alloc_and_clear [flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items [flowgraph] (rpython.rlib.rgc:508)ll_arrayclear [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set [flowgraph] (rpython.rtyper.rlist:510)_ll_alloc_and_set_jit [flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null [flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit [flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist [flowgraph] (rpython.rtyper.rlist:522)_ll_alloc_and_clear [flowgraph] (rpython.rtyper.lltypesystem.rlist:399)ll_fixed_items [flowgraph] (?:11)_ll_alloc_and_set_nonnull_look_inside_iff [flowgraph] (rpython.rtyper.rlist:530) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.rlist:530)_ll_alloc_and_set_nonnull [flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast [flowgraph] (rpython.rlib.rgc:508)ll_arrayclear [flowgraph] (rpython.rlib.rgc:538)ll_arrayfill [flowgraph] (?:2)_ll_alloc_and_set_nonnull_trampoline [flowgraph] (rpython.rtyper.rlist:530)_ll_alloc_and_set_nonnull [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (rpython.rtyper.rlist:582)ll_len_foldable [flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length [flowgraph] (rpython.rtyper.rlist:690)ll_getitem_nonneg [flowgraph] (rpython.rtyper.rlist:723)ll_getitem_foldable_nonneg [flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast [flowgraph] (rpython.rtyper.rlist:1001)ll_listcontains [flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length [flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast [flowgraph] (rpython.rtyper.rlist:728)ll_setitem_nonneg [flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash [flowgraph] (rpython.rtyper.lltypesystem.rlist:324)ll_newlist [flowgraph] (rpython.rtyper.rlist:728)ll_setitem_nonneg [flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast [flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set [flowgraph] (rpython.rtyper.rlist:510)_ll_alloc_and_set_jit [flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null [flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit [flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist [flowgraph] (rpython.rtyper.rlist:522)_ll_alloc_and_clear [flowgraph] (rpython.rtyper.lltypesystem.rlist:399)ll_fixed_items [flowgraph] (?:11)_ll_alloc_and_set_nonnull_look_inside_iff [flowgraph] (rpython.rtyper.rlist:530) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.rlist:530)_ll_alloc_and_set_nonnull [flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast [flowgraph] (rpython.rlib.rgc:538)ll_arrayfill [flowgraph] (rpython.rlib.rgc:508)ll_arrayclear [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (?:2)_ll_alloc_and_set_nonnull_trampoline [flowgraph] (rpython.rtyper.rlist:530)_ll_alloc_and_set_nonnull [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (rpython.rtyper.rlist:582)ll_len_foldable [flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length [flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist [flowgraph] (rpython.rtyper.rrange:172)ll_rangenext_up [flowgraph] (?:11)ll_join_chars_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rstr:821) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (?:2)ll_join_chars_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars [flowgraph] (rpython.rtyper.rint:502)ll_int_py_mod_nonnegargs [flowgraph] (rpython.rtyper.rlist:590)ll_append [flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length [flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:1300)conditional_call [flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rlist:198) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)_ll_list_resize_hint_really_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really [flowgraph] (?:1)memo__contains_gcptr_0 [flowgraph] (rpython.rtyper.lltypesystem.rlist:391)ll_fixed_newemptylist [flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist [flowgraph] (rpython.rtyper.rlist:728)ll_setitem_nonneg [flowgraph] (rpython.rtyper.rlist:574)ll_len [flowgraph] (rpython.rtyper.rlist:690)ll_getitem_nonneg [flowgraph] (rpython.rtyper.rlist:723)ll_getitem_foldable_nonneg [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:648)ll_dict_len [flowgraph] (rpython.rtyper.rlist:582)ll_len_foldable [flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:640)ll_keyhash_custom [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash [flowgraph] (?:11)ll_call_lookup_function_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:625)ll_hash_from_cache [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:644)ll_keyeq_custom [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:602)ll_valid_from_key [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes [flowgraph] (?:2)ll_call_lookup_function_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_create_initial_index_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter [flowgraph] (rpython.rtyper.lltypesystem.rlist:484)ll_listnext_foldable [flowgraph] (rpython.rtyper.lltypesystem.rstr:425)ll_strconcat [flowgraph] (rpython.rtyper.lltypesystem.rstr:416)ll_length [flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents [flowgraph] (rpython.rtyper.rlist:590)ll_append [flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length [flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:1300)conditional_call [flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rlist:198) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)_ll_list_resize_hint_really_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really [flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index [flowgraph] (?:1)memo__ll_empty_array_0 [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:648)ll_dict_len [rtyper] specializing: 200 / 3641 blocks (5%) [flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen [flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash [flowgraph] (rpython.rtyper.rtuple:62)ll_hash [flowgraph] (rpython.rtyper.rnone:42)ll_none_hash [flowgraph] (rpython.rtyper.rtuple:62)ll_hash [flowgraph] (rpython.rlib.objectmodel:623)_hash_float [flowgraph] (rpython.rtyper.rint:619)ll_hash_int [flowgraph] (rpython.rtyper.lltypesystem.rlist:484)ll_listnext_foldable [flowgraph] (?:11)ll_join_strs_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rstr:785) [flowgraph] (rpython.rlib.jit:294)loop_unrolling_heuristic [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs [flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (?:2)ll_join_strs_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs [flowgraph] (rpython.rtyper.lltypesystem.rlist:476)ll_listnext [flowgraph] (rpython.rtyper.lltypesystem.rstr:333)ll_char_mul [flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter [flowgraph] (rpython.rtyper.lltypesystem.rlist:476)ll_listnext [rtyper] specializing: 400 / 3731 blocks (10%) [flowgraph] (rpython.rtyper.rlist:590)ll_append [flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length [flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:1300)conditional_call [flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rlist:198) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really [flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)_ll_list_resize_hint_really_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really [flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast [flowgraph] (?:1)memo__ll_prebuilt_empty_array_0 [flowgraph] (?:1)memo__contains_gcptr_0 [flowgraph] (rpython.rtyper.rlist:574)ll_len [flowgraph] (rpython.rtyper.rlist:699)ll_getitem [flowgraph] (rpython.rtyper.rlist:719)ll_getitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rlist:493)ll_getnextindex [flowgraph] (rpython.rtyper.rlist:690)ll_getitem_nonneg [flowgraph] (rpython.rtyper.rlist:723)ll_getitem_foldable_nonneg [flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast [flowgraph] (rpython.translator.c.test.test_newgc:491)customlightfinlz [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:445)ll_new [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:178)ll_append_char [flowgraph] (rpython.rlib.jit:1300)conditional_call [flowgraph] (?:2)ll_grow_by [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:94)ll_grow_by [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:155)ll_append [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:163)ll_jit_append [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:233)ll_jit_try_append_slice [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:80)_ll_append [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:117)ll_grow_and_append [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:171)ll_append_res0 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_2 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_2 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_3 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_3 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_4 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_4 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_5 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_5 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_6 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_6 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_7 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_7 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_8 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_8 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_9 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_9 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_10 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_10 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:189)ll_append_slice [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:197)ll_jit_append_slice [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:205)ll_append_res_slice [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:275)ll_append_multiple_char [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:299)ll_jit_try_append_multiple_char [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:282)_ll_append_multiple_char [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:11)ll_build_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:374)ll_fold_pieces [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:346)ll_getlength [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:365)ll_shrink_final [flowgraph] (?:2)ll_build_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build [flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange [flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter [flowgraph] (rpython.rtyper.lltypesystem.rstr:539)ll_join [flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr [flowgraph] (?:1)memo_emptystrfun_0 [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index [flowgraph] (?:1)memo__ll_empty_array_0 [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem [flowgraph] (rpython.rtyper.rstr:937)ll_char_hash [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash [flowgraph] (?:11)ll_call_lookup_function_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:607)ll_valid_from_value [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (?:2)ll_call_lookup_function_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_create_initial_index_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done [flowgraph] (?:11)ll_dict_grow_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:745)_overallocate_entries_len [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function [flowgraph] (?:2)ll_dict_grow_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow [flowgraph] (?:1)memo__contains_gcptr_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash [flowgraph] (rpython.rtyper.lltypesystem.rlist:493)ll_getnextindex [flowgraph] (rpython.rtyper.rlist:690)ll_getitem_nonneg [flowgraph] (?:11)ll_listdelslice_startonly_look_inside_iff [flowgraph] (rpython.rtyper.rlist:914) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.rlist:914)ll_listdelslice_startonly [flowgraph] (rpython.rtyper.rlist:541)ll_null_item [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)ll_listdelslice_startonly_trampoline [flowgraph] (rpython.rtyper.rlist:914)ll_listdelslice_startonly [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:1300)conditional_call [flowgraph] (rpython.rtyper.lltypesystem.rstr:362)ll_chr2str [flowgraph] (rpython.rtyper.rlist:635)ll_pop_default [flowgraph] (rpython.rtyper.rlist:541)ll_null_item [flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:1300)conditional_call [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash [flowgraph] (?:11)ll_call_lookup_function_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (?:2)ll_call_lookup_function_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_create_initial_index_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done [flowgraph] (?:11)ll_dict_grow_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function [flowgraph] (?:2)ll_dict_grow_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow [flowgraph] (?:1)memo__contains_gcptr_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (rpython.rtyper.rstr:555)ll_str [flowgraph] (rpython.rtyper.rlist:1001)ll_listcontains [flowgraph] (rpython.rtyper.rstr:426)ll_str [flowgraph] (?:1)memo_ll_constant_0 [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index [flowgraph] (?:1)memo__ll_empty_array_0 [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1218)ll_dictiter [flowgraph] (?:11)_ll_dictnext_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)_ll_dictnext [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (?:2)_ll_dictnext_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)_ll_dictnext [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1462)ll_dict_contains [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1465)ll_dict_contains_with_hash [flowgraph] (?:11)ll_call_lookup_function_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (?:2)ll_call_lookup_function_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_create_initial_index_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (rpython.rtyper.rlist:699)ll_getitem [flowgraph] (rpython.rtyper.rlist:719)ll_getitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash [flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done [flowgraph] (?:11)ll_dict_grow_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function [flowgraph] (?:2)ll_dict_grow_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow [flowgraph] (?:1)memo__contains_gcptr_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (rpython.rtyper.lltypesystem.rstr:354)ll_stritem_nonneg [flowgraph] (rpython.rtyper.rlist:737)ll_setitem [rtyper] specializing: 900 / 5976 blocks (15%) [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash [flowgraph] (rpython.rtyper.rlist:582)ll_len_foldable [flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length [rtyper] specializing: 1200 / 5987 blocks (20%) [flowgraph] (rpython.rtyper.rlist:690)ll_getitem_nonneg [flowgraph] (rpython.rtyper.rlist:723)ll_getitem_foldable_nonneg [flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast [flowgraph] (rpython.rtyper.rclass:870)ll_str [flowgraph] (rpython.rtyper.lltypesystem.ll_str:47)ll_int2hex [flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned [flowgraph] (?:1)memo_conststr_0 [flowgraph] (?:1)memo_conststr_0 [flowgraph] (?:1)memo_conststr_0 [flowgraph] (?:1)memo_conststr_0 [flowgraph] (rpython.rtyper.rint:410)ll_int_py_div_nonnegargs [rtyper] specializing: 1600 / 6028 blocks (26%) [flowgraph] (?:11)ll_listeq_look_inside_iff [flowgraph] (rpython.rtyper.rlist:972)listeq_unroll_case [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.rlist:979)ll_listeq [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (?:2)ll_listeq_trampoline [flowgraph] (rpython.rtyper.rlist:979)ll_listeq [rtyper] specializing: 1900 / 6064 blocks (31%) [rtyper] specializing: 2200 / 6064 blocks (36%) [rtyper] specializing: 2500 / 6064 blocks (41%) [flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div [flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod [rtyper] specializing: 2800 / 6068 blocks (46%) [rtyper] specializing: 3100 / 6068 blocks (51%) [rtyper] specializing: 3400 / 6068 blocks (56%) [flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:106)ll_math_isfinite [flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:98)ll_math_isinf [flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:158)ll_math_frexp [rtyper] specializing: 3800 / 6068 blocks (62%) [flowgraph] (rpython.rtyper.rbuiltin:240)ll_min [rtyper] specializing: 4100 / 6070 blocks (67%) [rtyper] specializing: 4400 / 6070 blocks (72%) [flowgraph] (rpython.rtyper.rint:398)ll_int_py_div [flowgraph] (rpython.rtyper.rbuiltin:240)ll_min [rtyper] specializing: 4700 / 6077 blocks (77%) [rtyper] specializing: 5000 / 6077 blocks (82%) [rtyper] specializing: 5300 / 6077 blocks (87%) [rtyper] specializing: 5600 / 6077 blocks (92%) [rtyper] specializing: 5900 / 6077 blocks (97%) [rtyper] -=- specialized 6077 blocks -=- [flowgraph] (rpython.rlib.objectmodel:397)revdb_flag_io_disabled [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)_finite [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall__finite [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)frexp [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_frexp [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)_isnan [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall__isnan [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [rtyper] specializing: 6100 / 6129 blocks (99%) [rtyper] -=- specialized 52 more blocks -=- [rtyper] -=- specialized 0 more blocks -=- [flowgraph] (rpython.rtyper.rclass:1130)ll_type [rtyper] -=- specialized 2 more blocks -=- [translation:info] usession directory: c:\users\runner~1\appdata\local\temp\usession-pypy-HEAD-12 [translation:info] already done: Annotating&simplifying [translation:info] already done: RTyping [translation:info] inserting stack checks... [flowgraph] (rpython.rlib.rstack:42)stack_check [flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath [rtyper] -=- specialized 8 more blocks -=- [translation:info] inserted 17 stack checks. [translation:info] Creating database for generating c source... [flowgraph] (rpython.translator.exceptiontransform:100)rpyexc_occurred [flowgraph] (rpython.translator.exceptiontransform:104)rpyexc_fetch_type [flowgraph] (rpython.translator.exceptiontransform:107)rpyexc_fetch_value [flowgraph] (rpython.translator.exceptiontransform:110)rpyexc_clear [flowgraph] (rpython.translator.exceptiontransform:114)rpyexc_raise [flowgraph] (rpython.translator.exceptiontransform:128)rpyexc_reraise [flowgraph] (rpython.translator.exceptiontransform:133)rpyexc_fetch_exception [flowgraph] (rpython.translator.exceptiontransform:138)rpyexc_restore_exception [flowgraph] (rpython.translator.exceptiontransform:539)rpyexc_get_exception_addr [flowgraph] (rpython.translator.exceptiontransform:543)rpyexc_get_exc_value_addr [flowgraph] (rpython.rtyper.rclass:1173)ll_inst_type [rtyper] -=- specialized 25 more blocks -=- [flowgraph] (rpython.memory.gctransform.transform:447)_ll_malloc_fixedsize [flowgraph] (rpython.memory.gctransform.transform:454)_ll_malloc_fixedsize_zero [flowgraph] (rpython.memory.gctransform.transform:470)_ll_malloc_varsize_no_length [flowgraph] (rpython.memory.gctransform.transform:487)ll_malloc_varsize [flowgraph] (rpython.memory.gctransform.transform:493)_ll_malloc_varsize_no_length_zero [flowgraph] (rpython.memory.gctransform.framework:178)frameworkgc_setup [flowgraph] (rpython.memory.gctransform.framework:184)frameworkgc__teardown [flowgraph] (rpython.memory.gctransform.shadowstack:80)incr_stack [flowgraph] (rpython.memory.gctransform.shadowstack:86)decr_stack [flowgraph] (rpython.memory.gctypelayout:594)ll_weakref_deref [flowgraph] (rpython.memory.gc.incminimark:640)IncrementalMiniMarkGC.malloc_fixedsize [flowgraph] (rpython.memory.gc.incminimark:696)IncrementalMiniMarkGC.malloc_varsize [flowgraph] (rpython.memory.gc.incminimark:783)IncrementalMiniMarkGC.collect [flowgraph] (rpython.memory.gc.incminimark:810)IncrementalMiniMarkGC.collect_step [flowgraph] (rpython.memory.gc.incminimark:530)IncrementalMiniMarkGC.enable [flowgraph] (rpython.memory.gc.incminimark:533)IncrementalMiniMarkGC.disable [flowgraph] (rpython.memory.gc.incminimark:536)IncrementalMiniMarkGC.isenabled [flowgraph] (rpython.memory.gc.incminimark:1117)IncrementalMiniMarkGC.can_move [flowgraph] (rpython.memory.gc.incminimark:1160)IncrementalMiniMarkGC.shrink_array [flowgraph] (rpython.memory.gc.base:149)GCBase.get_type_id_cast [flowgraph] (rpython.memory.gc.incminimark:1628)IncrementalMiniMarkGC.writebarrier_before_copy [flowgraph] (rpython.memory.gc.incminimark:1701)IncrementalMiniMarkGC.writebarrier_before_move [flowgraph] (rpython.memory.gc.incminimark:640)IncrementalMiniMarkGC.malloc_fast [flowgraph] (rpython.memory.gc.incminimark:696)IncrementalMiniMarkGC.malloc_varsize_fast [flowgraph] (rpython.memory.gctransform.framework:411)raw_malloc_memory_pressure_varsize [flowgraph] (rpython.memory.gctransform.framework:417)raw_malloc_memory_pressure [flowgraph] (rpython.memory.gctransform.framework:430)get_stats [flowgraph] (rpython.memory.gc.incminimark:2878)IncrementalMiniMarkGC.identityhash [flowgraph] (rpython.memory.gc.incminimark:2875)IncrementalMiniMarkGC.id [flowgraph] (rpython.memory.gc.inspector:32)get_rpy_roots [flowgraph] (rpython.memory.gc.inspector:63)get_rpy_referents [flowgraph] (rpython.memory.gc.inspector:76)get_rpy_memory_usage [flowgraph] (rpython.memory.gc.inspector:79)get_rpy_type_index [flowgraph] (rpython.memory.gc.inspector:83)is_rpy_instance [flowgraph] (rpython.memory.gc.inspector:265)dump_rpy_heap [flowgraph] (rpython.memory.gc.inspector:281)get_typeids_z [flowgraph] (rpython.memory.gc.inspector:285)get_typeids_list [flowgraph] (rpython.memory.gc.incminimark:1094)IncrementalMiniMarkGC.set_max_heap_size [flowgraph] (rpython.memory.gc.incminimark:3172)IncrementalMiniMarkGC.rawrefcount_init [flowgraph] (rpython.memory.gc.incminimark:3196)IncrementalMiniMarkGC.rawrefcount_create_link_pypy [flowgraph] (rpython.memory.gc.incminimark:3212)IncrementalMiniMarkGC.rawrefcount_create_link_pyobj [flowgraph] (rpython.memory.gc.incminimark:3223)IncrementalMiniMarkGC.rawrefcount_mark_deallocating [flowgraph] (rpython.memory.gc.incminimark:3229)IncrementalMiniMarkGC.rawrefcount_from_obj [flowgraph] (rpython.memory.gc.incminimark:3237)IncrementalMiniMarkGC.rawrefcount_to_obj [flowgraph] (rpython.memory.gc.incminimark:3241)IncrementalMiniMarkGC.rawrefcount_next_dead [flowgraph] (rpython.memory.gc.incminimark:1121)IncrementalMiniMarkGC.pin [flowgraph] (rpython.memory.gc.incminimark:1150)IncrementalMiniMarkGC.unpin [flowgraph] (rpython.memory.gc.incminimark:1157)IncrementalMiniMarkGC._is_pinned [flowgraph] (rpython.memory.gc.incminimark:1489)IncrementalMiniMarkGC.write_barrier [flowgraph] (rpython.memory.gc.incminimark:1538)remember_young_pointer [flowgraph] (rpython.memory.gc.incminimark:1495)IncrementalMiniMarkGC.write_barrier_from_array [flowgraph] (rpython.memory.gc.incminimark:1606)jit_remember_young_pointer_from_array [flowgraph] (rpython.memory.gc.incminimark:765)IncrementalMiniMarkGC.malloc_fixed_or_varsize_nonmovable [flowgraph] (rpython.memory.gc.incminimark:1755)IncrementalMiniMarkGC.register_finalizer [flowgraph] (rpython.memory.gc.incminimark:3043)IncrementalMiniMarkGC.ignore_finalizer [flowgraph] (rpython.memory.gc.incminimark:770)IncrementalMiniMarkGC.move_out_of_nursery [flowgraph] (rpython.memory.gctransform.shadowstack:258)gc_increase_root_stack_depth [flowgraph] (rpython.memory.gctransform.shadowstack:351)ShadowStackPool.increase_root_stack_depth [flowgraph] (rpython.memory.gc.incminimark:1208)IncrementalMiniMarkGC.is_in_nursery [flowgraph] (rpython.memory.gc.base:130)GCBase.header [flowgraph] (rpython.memory.gc.incminimark:955)IncrementalMiniMarkGC.external_malloc [flowgraph] (rpython.memory.gc.incminimark:1192)IncrementalMiniMarkGC.combine [flowgraph] (rpython.memory.gc.incminimark:1503)IncrementalMiniMarkGC._remember_young_pointer_inlined [flowgraph] (rpython.memory.support:122)AddressStack.append [flowgraph] (rpython.memory.gc.incminimark:3169)IncrementalMiniMarkGC._pyobj [flowgraph] (rpython.memory.gc.incminimark:1213)IncrementalMiniMarkGC.is_young_object [flowgraph] (rpython.memory.gc.base:380)GCBase.is_valid_gc_object [flowgraph] (rpython.memory.support:101)AddressStack.__init__ [flowgraph] (rpython.memory.support:307)AddressDict [flowgraph] (rpython.memory.lldict:17)newdict [flowgraph] (rpython.rtyper.lltypesystem.rdict:667)ll_newdict_size [flowgraph] (rpython.memory.lldict:20)dict_allocate [flowgraph] (rpython.memory.support:40)FreeList.get [flowgraph] (rpython.memory.gc.inspector:201)HeapDumper.__init__ [flowgraph] (rpython.memory.gc.inspector:173)BaseWalker.process [flowgraph] (rpython.memory.gc.inspector:112)BaseWalker.add_roots [flowgraph] (rpython.memory.gc.inspector:99)BaseWalker.__init__ [flowgraph] (rpython.memory.gc.incminimark:1188)IncrementalMiniMarkGC.get_type_id [flowgraph] (rpython.memory.gc.base:152)GCBase.get_size_incl_hash [flowgraph] (rpython.memory.gc.base:146)GCBase.get_size [flowgraph] (rpython.memory.gc.inspector:56)_do_append_rpy_referents [flowgraph] (rpython.memory.gc.base:259)GCBase.trace [flowgraph] (rpython.memory.gc.inspector:25)_do_append_rpy_roots [flowgraph] (rpython.memory.gc.incminimark:2729)IncrementalMiniMarkGC.enumerate_all_roots [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.inspector:14)_append_rpy_root [flowgraph] (rpython.memory.gc.incminimark:2864)IncrementalMiniMarkGC.id_or_identityhash [flowgraph] (rpython.memory.support:10)mangle_hash [flowgraph] (rpython.memory.gc.incminimark:3128)IncrementalMiniMarkGC.get_stats [flowgraph] (rpython.memory.gc.incminimark:1264)IncrementalMiniMarkGC.get_total_memory_used [flowgraph] (rpython.memory.gc.incminimark:1281)IncrementalMiniMarkGC.get_peak_memory_used [flowgraph] (rpython.memory.gc.incminimark:1275)IncrementalMiniMarkGC.get_peak_memory_alloced [flowgraph] (rpython.memory.gc.incminimark:1270)IncrementalMiniMarkGC.get_total_memory_alloced [flowgraph] (rpython.memory.gc.inspector:273)count_memory_pressure [flowgraph] (rpython.memory.gc.inspector:180)MemoryPressureCounter.__init__ [flowgraph] (rpython.memory.gc.incminimark:1102)IncrementalMiniMarkGC.raw_malloc_memory_pressure [flowgraph] (rpython.rtyper.lltypesystem.llarena:365)round_up_for_allocation [flowgraph] (rpython.memory.gc.incminimark:752)IncrementalMiniMarkGC._bump_pointer [flowgraph] (rpython.memory.gc.incminimark:1765)IncrementalMiniMarkGC._minor_collection [flowgraph] (rpython.rlib.rtime:146)time [flowgraph] (rpython.memory.gc.incminimark:824)IncrementalMiniMarkGC.minor_collection_with_major_progress [flowgraph] (rpython.memory.gc.incminimark:2366)IncrementalMiniMarkGC.minor_and_major_collection [flowgraph] (rpython.memory.gc.incminimark:2375)IncrementalMiniMarkGC.gc_step_until [flowgraph] (rpython.memory.gc.incminimark:865)IncrementalMiniMarkGC.collect_and_reserve [flowgraph] (rpython.memory.gc.incminimark:1195)IncrementalMiniMarkGC.init_gc_object [flowgraph] (rpython.memory.gc.base:64)GCBase._teardown [flowgraph] (rpython.memory.gctransform.shadowstack:108)setup_root_walker [flowgraph] (rpython.memory.gctransform.shadowstack:288)ShadowStackPool.initial_setup [flowgraph] (rpython.memory.gctransform.shadowstack:344)ShadowStackPool._prepare_unused_stack [flowgraph] (rpython.memory.gctransform.shadowstack:335)ShadowStackPool.start_fresh_new_state [flowgraph] (?:2)debug_start [flowgraph] (rpython.memory.gc.base:385)GCBase.enumerate_all_roots [flowgraph] (rpython.memory.gc.incminimark:2729)IncrementalMiniMarkGC.enumerate_all_roots [flowgraph] (rpython.memory.lldict:29)dict_allocate_entries [flowgraph] (rpython.memory.gctypelayout:110)GCData.q_fixed_size [flowgraph] (rpython.memory.gctypelayout:59)GCData.get [flowgraph] (rpython.memory.gctypelayout:204)_check_valid_type_info [flowgraph] (rpython.memory.support:108)AddressStack.enlarge [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.inspector:259)_hd_add_root [flowgraph] (rpython.memory.gc.inspector:123)BaseWalker.add [flowgraph] (rpython.memory.gctransform.framework:1758)walk_roots [flowgraph] (rpython.memory.gc.base:377)GCBase.points_to_valid_gc_object [flowgraph] (rpython.memory.gc.base:600)callback2 [flowgraph] (rpython.memory.gctransform.shadowstack:112)walk_stack_roots [flowgraph] (rpython.rlib.debug:126)debug_start [flowgraph] (rpython.memory.gctransform.shadowstack:43)walk_stack_root [flowgraph] (rpython.memory.gc.base:385)GCBase.enumerate_all_roots [flowgraph] (rpython.memory.gc.incminimark:1557)remember_young_pointer_from_array2 [flowgraph] (rpython.memory.gc.incminimark:1622)IncrementalMiniMarkGC.get_card [flowgraph] (rpython.memory.gc.incminimark:2847)IncrementalMiniMarkGC._find_shadow [flowgraph] (rpython.memory.gc.incminimark:2818)IncrementalMiniMarkGC._allocate_shadow [flowgraph] (rpython.memory.gctransform.shadowstack:93) [flowgraph] (rpython.memory.gctypelayout:143)GCData.q_fast_path_tracing [flowgraph] (rpython.memory.gc.base:134)GCBase._get_size_for_typeid [flowgraph] (rpython.memory.gc.base:118)GCBase.get_member_index [flowgraph] (rpython.memory.gctypelayout:135)GCData.q_is_rpython_class [flowgraph] (rpython.memory.gctypelayout:131)GCData.q_member_index [flowgraph] (rpython.memory.gctypelayout:73)GCData.q_is_varsize [flowgraph] (rpython.memory.gctypelayout:113)GCData.q_varsize_item_sizes [flowgraph] (rpython.memory.gctypelayout:66)GCData.get_varsize [flowgraph] (rpython.memory.gctypelayout:207)_check_valid_type_info_varsize [flowgraph] (rpython.memory.gctypelayout:119)GCData.q_varsize_offset_to_length [flowgraph] (rpython.memory.gc.base:600)callback2 [flowgraph] (rpython.memory.gctransform.shadowstack:376)ShadowStackPool._resize [flowgraph] (rpython.memory.gc.incminimark:1288)IncrementalMiniMarkGC.threshold_reached [flowgraph] (rpython.memory.gctypelayout:107)GCData.q_offsets_to_gc_pointers [flowgraph] (rpython.memory.gctypelayout:85)GCData.q_is_gcarrayofgcptr [flowgraph] (rpython.memory.gc.incminimark:2301)IncrementalMiniMarkGC._malloc_out_of_nursery [flowgraph] (rpython.memory.gctransform.framework:1754)setup_root_walker [flowgraph] (rpython.memory.gc.inspector:44)_append_rpy_referent [flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path [flowgraph] (rpython.memory.gctypelayout:77)GCData.q_has_gcptr_in_varsize [flowgraph] (rpython.memory.gc.minimarkpage:154)ArenaCollection.malloc [flowgraph] (rpython.memory.gc.minimarkpage:197)ArenaCollection.allocate_new_page [flowgraph] (rpython.memory.gc.minimarkpage:278)ArenaCollection.allocate_new_arena [flowgraph] (rpython.memory.gc.minimarkpage:259)ArenaCollection._pick_next_arena [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.memory.gc.minimarkpage:604)_dummy_size [flowgraph] (rpython.memory.gc.incminimark:2313)IncrementalMiniMarkGC._malloc_out_of_nursery_nonsmall [flowgraph] (rpython.memory.gc.minimarkpage:611)out_of_memory [flowgraph] (rpython.rtyper.debug:49)fatalerror [flowgraph] (rpython.memory.gctypelayout:116)GCData.q_varsize_offset_to_variable_part [flowgraph] (rpython.memory.gctypelayout:139)GCData.q_has_custom_trace [flowgraph] (rpython.memory.gc.minimarkpage:386)ArenaCollection._rehash_arenas_lists [flowgraph] (rpython.memory.gctypelayout:122)GCData.q_varsize_offsets_to_gcpointers_in_var_part [flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.gc.minimarkpage:589)start_of_page [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.memory.gc.incminimark:374)IncrementalMiniMarkGC.setup [flowgraph] (rpython.memory.gc.incminimark:2734)IncrementalMiniMarkGC.enum_live_with_finalizers [flowgraph] (rpython.memory.gc.incminimark:2734)IncrementalMiniMarkGC.enum_live_with_finalizers [flowgraph] (rpython.rtyper.lltypesystem.rdict:866)ll_contains [flowgraph] (rpython.memory.lldict:47)dict_keyhash [flowgraph] (rpython.memory.lldict:44)_hash [flowgraph] (rpython.memory.lldict:56)dict_get [flowgraph] (rpython.rtyper.lltypesystem.rdict:735)ll_get [flowgraph] (rpython.rtyper.lltypesystem.rdict:459)ll_dict_setitem [flowgraph] (rpython.memory.support:130)AddressStack.non_empty [flowgraph] (rpython.memory.gc.base:45)GCBase.setup [flowgraph] (rpython.memory.support:228)AddressDeque.__init__ [flowgraph] (rpython.memory.support:314)null_address_dict [flowgraph] (rpython.memory.support:133)AddressStack.pop [flowgraph] (rpython.memory.support:115)AddressStack.shrink [flowgraph] (rpython.memory.support:52)FreeList.put [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rdict:576) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rdict:576)ll_dict_lookup [flowgraph] (rpython.memory.lldict:50)dict_entry_valid [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rdict:576)ll_dict_lookup [flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff [flowgraph] (rpython.memory.gc.incminimark:553)IncrementalMiniMarkGC.allocate_nursery [flowgraph] (rpython.memory.gc.incminimark:543)IncrementalMiniMarkGC._alloc_nursery [flowgraph] (rpython.memory.gc.incminimark:539)IncrementalMiniMarkGC._nursery_memory_size [flowgraph] (rpython.rtyper.lltypesystem.rdict:466) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rdict:466)_ll_dict_setitem_lookup_done [flowgraph] (rpython.rtyper.lltypesystem.rdict:544)ll_dict_resize [flowgraph] (rpython.rtyper.lltypesystem.rdict:554)_ll_dict_resize_to [flowgraph] (rpython.memory.lldict:53)dict_entry_hash [flowgraph] (rpython.memory.lldict:40)dict_delete_entries [flowgraph] (rpython.rtyper.lltypesystem.rdict:434)ll_get_value [flowgraph] (rpython.rtyper.lltypesystem.rdict:495)ll_dict_insertclean [flowgraph] (rpython.memory.support:258)AddressDeque.non_empty [flowgraph] (rpython.memory.support:272)AddressDeque.foreach [flowgraph] (rpython.memory.support:272)AddressDeque.foreach [flowgraph] (rpython.memory.support:250)AddressDeque.append [flowgraph] (rpython.memory.gctypelayout:89)GCData.q_cannot_pin [flowgraph] (rpython.memory.gc.incminimark:1713)IncrementalMiniMarkGC.manually_copy_card_bits [flowgraph] (rpython.memory.gc.incminimark:1301)IncrementalMiniMarkGC.card_marking_bytes_for_length [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rdict:639)ll_dict_lookup_clean [flowgraph] (rpython.memory.gc.incminimark:575)IncrementalMiniMarkGC.set_major_threshold_from [flowgraph] (rpython.memory.support:235)AddressDeque.enlarge [flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rdict:466)_ll_dict_setitem_lookup_done [flowgraph] (rpython.memory.gc.incminimark:3248)IncrementalMiniMarkGC.rrc_invoke_callback [flowgraph] (rpython.memory.gc.incminimark:1292)IncrementalMiniMarkGC.card_marking_words_for_length [flowgraph] (rpython.memory.lldict:59)dict_add [flowgraph] (?:2)debug_stop [flowgraph] (rpython.memory.support:262)AddressDeque.popleft [flowgraph] (rpython.rlib.debug:137)debug_stop [flowgraph] (rpython.memory.support:243)AddressDeque.shrink [flowgraph] (rpython.memory.gc.base:401)GCBase.enum_pending_finalizers [flowgraph] (rpython.memory.gc.base:401)GCBase.enum_pending_finalizers [flowgraph] (rpython.memory.gctypelayout:94)GCData.q_finalizer_handlers [flowgraph] (rpython.memory.gc.base:482)GCBase._adr2deque [flowgraph] (rpython.rtyper.annlowlevel:546)cast_adr_to_nongc_instance [flowgraph] (rpython.memory.support:291)AddressDeque.delete [flowgraph] (rpython.memory.gc.env:38)read_from_env [flowgraph] (rpython.memory.gc.env:17)_read_float_and_factor_from_env [flowgraph] (rpython.rtyper.controllerentry:80)getattr [flowgraph] (rpython.rlib.rposix_environ:66)get_get [flowgraph] (rpython.memory.gc.inspector:134)BaseWalker.walk [flowgraph] (rpython.memory.gc.inspector:243)HeapDumper.writeobj [flowgraph] (rpython.memory.gc.inspector:184)MemoryPressureCounter.processobj [flowgraph] (rpython.memory.gctypelayout:152)GCData.q_has_memory_pressure [flowgraph] (rpython.memory.gc.inspector:225)HeapDumper.write [flowgraph] (rpython.memory.gc.inspector:212)HeapDumper.flush [flowgraph] (rpython.memory.gc.base:259)GCBase.trace [flowgraph] (rpython.memory.gctypelayout:156)GCData.q_get_memory_pressure_ofs [flowgraph] (rpython.memory.gc.base:259)GCBase.trace [flowgraph] (rpython.memory.gc.base:252)gc_callback__ref [flowgraph] (rpython.memory.gc.inspector:193)MemoryPressureCounter._ref [flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path [flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.gc.base:252)gc_callback__writeref [flowgraph] (rpython.memory.gc.inspector:253)HeapDumper._writeref [flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path [flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.support:142)AddressStack.delete [flowgraph] (rpython.memory.gc.env:570)estimate_best_nursery_size [flowgraph] (rpython.memory.gc.env:533)get_L2cache_win32 [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)pypy_get_l2_cache_size [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_pypy_get_l2_cache_size [flowgraph] (rpython.memory.gc.env:46)read_float_from_env [flowgraph] (rpython.memory.gc.env:42)read_uint_from_env [flowgraph] (rpython.memory.gc.env:125)get_total_memory [flowgraph] (rpython.memory.gc.env:480)get_win32_total_phys_memory [flowgraph] (rpython.rtyper.lltypesystem.lltype:2296)scoped_alloc [flowgraph] (rpython.rtyper.lltypesystem.lltype:2280)ScopedAlloc_Struct MEMORYSTATUSEX { c_dwLength, c_dwMemoryLoad, c_ullTotalPhys, c_ullAvailPhys, c_ullTotalPageFile, c_ullAvailPageFile, c_ullTotalVirtual, c_ullAvailVirtual, c_ullAvailExtendedVirtual }.__init__ [flowgraph] (rpython.rtyper.lltypesystem.lltype:2286)ScopedAlloc_Struct MEMORYSTATUSEX { c_dwLength, c_dwMemoryLoad, c_ullTotalPhys, c_ullAvailPhys, c_ullTotalPageFile, c_ullAvailPageFile, c_ullTotalVirtual, c_ullAvailVirtual, c_ullAvailExtendedVirtual }.__enter__ [flowgraph] (rpython.memory.gc.env:561)best_nursery_size_for_L2cache [flowgraph] (rpython.rtyper.lltypesystem.lltype:2289)ScopedAlloc_Struct MEMORYSTATUSEX { c_dwLength, c_dwMemoryLoad, c_ullTotalPhys, c_ullAvailPhys, c_ullTotalPageFile, c_ullAvailPageFile, c_ullTotalVirtual, c_ullAvailVirtual, c_ullAvailExtendedVirtual }.__exit__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)GlobalMemoryStatusEx [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_GlobalMemoryStatusEx [flowgraph] (rpython.memory.gc.env:100)clamp_total_memory [flowgraph] (rpython.memory.gc.inspector:236)HeapDumper.write_marker [flowgraph] (rpython.memory.gc.inspector:120)BaseWalker.end_add_roots_marker [flowgraph] (rpython.memory.gc.incminimark:2344)IncrementalMiniMarkGC.remove_young_arrays_from_old_objects_pointing_to_young [flowgraph] (rpython.memory.gc.incminimark:1984)IncrementalMiniMarkGC.collect_roots_in_nursery [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.incminimark:1981)IncrementalMiniMarkGC._visit_old_objects_pointing_to_pinned [flowgraph] (rpython.memory.gc.base:259)GCBase.trace [flowgraph] (rpython.memory.gc.base:252)gc_callback__trace_drag_out [flowgraph] (rpython.memory.gc.incminimark:2145)IncrementalMiniMarkGC._trace_drag_out [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.memory.gc.incminimark:1235)IncrementalMiniMarkGC.is_forwarded [flowgraph] (rpython.memory.gc.incminimark:2267)IncrementalMiniMarkGC._visit_young_rawmalloced_object [flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path [flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.gc.incminimark:3252)IncrementalMiniMarkGC.rrc_minor_collection_trace [flowgraph] (rpython.rtyper.lltypesystem.rdict:445)ll_dict_len [flowgraph] (rpython.memory.gc.incminimark:2914)IncrementalMiniMarkGC.deal_with_young_objects_with_finalizers [flowgraph] (rpython.memory.gc.incminimark:1259)IncrementalMiniMarkGC.get_possibly_forwarded_tid [flowgraph] (rpython.memory.gc.incminimark:1251)IncrementalMiniMarkGC.get_forwarding_address [flowgraph] (rpython.memory.gc.incminimark:2009)IncrementalMiniMarkGC.collect_cardrefs_to_nursery [flowgraph] (rpython.memory.gc.incminimark:2114)IncrementalMiniMarkGC.trace_and_drag_out_of_nursery_partial [flowgraph] (rpython.memory.gc.base:343)GCBase.trace_partial [flowgraph] (rpython.memory.lldict:24)dict_delete [flowgraph] (rpython.memory.gctypelayout:81)GCData.q_has_gcptr [flowgraph] (rpython.memory.gc.incminimark:2125)IncrementalMiniMarkGC._trace_drag_out1 [flowgraph] (rpython.memory.gc.incminimark:2086)IncrementalMiniMarkGC.collect_oldrefs_to_nursery [flowgraph] (rpython.memory.gc.incminimark:2108)IncrementalMiniMarkGC.trace_and_drag_out_of_nursery [flowgraph] (rpython.memory.gc.incminimark:3058)IncrementalMiniMarkGC.invalidate_young_weakrefs [flowgraph] (rpython.memory.gctypelayout:125)GCData.q_weakpointer_offset [flowgraph] (rpython.memory.gc.incminimark:2884)IncrementalMiniMarkGC.deal_with_young_objects_with_destructors [flowgraph] (rpython.memory.gc.base:437)GCBase.call_destructor [flowgraph] (rpython.memory.gctypelayout:98)GCData.q_destructor_or_custom_trace [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.incminimark:1738)IncrementalMiniMarkGC.record_pinned_object_with_shadow [flowgraph] (rpython.rtyper.lltypesystem.rdict:774)ll_clear [flowgraph] (rpython.memory.gc.incminimark:3272)IncrementalMiniMarkGC.rrc_minor_collection_free [flowgraph] (rpython.memory.gc.incminimark:3284)IncrementalMiniMarkGC._rrc_minor_free [flowgraph] (rpython.memory.gc.incminimark:3320)IncrementalMiniMarkGC._rrc_free [flowgraph] (rpython.memory.gc.incminimark:2333)IncrementalMiniMarkGC.free_young_rawmalloced_objects [flowgraph] (rpython.memory.lldict:65)dict_foreach [flowgraph] (rpython.memory.gc.incminimark:2339)IncrementalMiniMarkGC._free_young_rawmalloced_obj [flowgraph] (rpython.memory.gc.incminimark:2661)IncrementalMiniMarkGC.free_rawmalloced_object_if_unvisited [flowgraph] (rpython.memory.support:203)AddressStack.sort [flowgraph] (rpython.memory.support:84)sort_chunk [flowgraph] (rpython.memory.support:77)quicksort [flowgraph] (rpython.memory.support:65)partition [flowgraph] (rpython.memory.support:150)AddressStack.length [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.incminimark:1735)IncrementalMiniMarkGC._wb_old_object_pointing_to_pinned [flowgraph] (rpython.memory.gc.incminimark:3259)IncrementalMiniMarkGC._rrc_minor_trace [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.incminimark:1976)IncrementalMiniMarkGC._reset_flag_old_objects_pointing_to_pinned [flowgraph] (rpython.memory.gc.incminimark:617)IncrementalMiniMarkGC.debug_rotate_nursery [flowgraph] (rpython.memory.gctransform.framework:1783)finished_minor_collection [flowgraph] (rpython.memory.gc.hook:51)GcHooks.fire_gc_minor [flowgraph] (rpython.memory.gc.hook:15)GcHooks.is_gc_minor_enabled [flowgraph] (rpython.memory.gc.incminimark:2390)IncrementalMiniMarkGC.major_collection_step [flowgraph] (rpython.memory.gc.incminimark:1310)IncrementalMiniMarkGC.debug_check_consistency [flowgraph] (rpython.memory.gc.incminimark:2719)IncrementalMiniMarkGC.collect_roots [flowgraph] (rpython.memory.gc.incminimark:2705)IncrementalMiniMarkGC.collect_nonstack_roots [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.incminimark:2739)IncrementalMiniMarkGC._collect_obj [flowgraph] (rpython.memory.gc.base:401)GCBase.enum_pending_finalizers [flowgraph] (rpython.memory.support:272)AddressDeque.foreach [flowgraph] (rpython.memory.gc.incminimark:597)IncrementalMiniMarkGC.post_setup [flowgraph] (rpython.memory.gc.base:58)GCBase.post_setup [flowgraph] (rpython.memory.gc.base:442)GCBase.debug_check_consistency [flowgraph] (rpython.memory.gc.incminimark:2729)IncrementalMiniMarkGC.enumerate_all_roots [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.base:470)_debug_callback [flowgraph] (rpython.memory.gc.base:463)GCBase._debug_record [flowgraph] (rpython.memory.gc.incminimark:1342)IncrementalMiniMarkGC.debug_check_object [flowgraph] (rpython.memory.gc.incminimark:1447)IncrementalMiniMarkGC._debug_check_object_scanning [flowgraph] (rpython.memory.gc.incminimark:1401)IncrementalMiniMarkGC._debug_check_object_sweeping [flowgraph] (rpython.memory.gc.base:385)GCBase.enumerate_all_roots [flowgraph] (rpython.memory.gc.incminimark:2734)IncrementalMiniMarkGC.enum_live_with_finalizers [flowgraph] (rpython.memory.support:272)AddressDeque.foreach [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.incminimark:2362)IncrementalMiniMarkGC._add_to_more_objects_to_trace_if_black [flowgraph] (rpython.memory.gc.incminimark:2357)IncrementalMiniMarkGC._add_to_more_objects_to_trace [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.incminimark:1338)IncrementalMiniMarkGC._check_not_in_nursery [flowgraph] (rpython.memory.gc.incminimark:1368)IncrementalMiniMarkGC._debug_check_object_marking [flowgraph] (rpython.memory.gc.base:259)GCBase.trace [flowgraph] (rpython.memory.gc.base:252)gc_callback__debug_check_not_white [flowgraph] (rpython.memory.gc.incminimark:1382)IncrementalMiniMarkGC._debug_check_not_white [flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path [flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.gc.incminimark:1443)IncrementalMiniMarkGC._debug_check_object_finalizing [flowgraph] (rpython.memory.gc.hook:56)GcHooks.fire_gc_collect_step [flowgraph] (rpython.memory.gc.hook:18)GcHooks.is_gc_collect_step_enabled [flowgraph] (rpython.memory.support:174)AddressStack.stack2dict [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.support:213)_add_in_dict [flowgraph] (rpython.memory.gc.base:401)GCBase.enum_pending_finalizers [flowgraph] (rpython.memory.gc.base:259)GCBase.trace [flowgraph] (rpython.memory.gc.base:252)gc_callback__debug_callback2 [flowgraph] (rpython.memory.gc.base:474)GCBase._debug_callback2 [flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path [flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.rlib.rgc:33)_encode_states [flowgraph] (rpython.memory.gc.incminimark:2767)IncrementalMiniMarkGC.visit_all_objects_step [flowgraph] (rpython.memory.gc.incminimark:2777)IncrementalMiniMarkGC.visit [flowgraph] (rpython.memory.gc.base:259)GCBase.trace [flowgraph] (rpython.memory.gc.base:252)gc_callback__collect_ref_rec [flowgraph] (rpython.memory.gc.incminimark:2758)IncrementalMiniMarkGC._collect_ref_rec [flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path [flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.gc.incminimark:2696)IncrementalMiniMarkGC.free_unvisited_rawmalloc_objects_step [flowgraph] (rpython.memory.gc.minimarkpage:346)ArenaCollection.mass_free_incremental [flowgraph] (rpython.memory.gc.base:485)GCBase.execute_finalizers [flowgraph] (rpython.memory.gc.incminimark:2761)IncrementalMiniMarkGC.visit_all_objects [flowgraph] (rpython.memory.gc.incminimark:3356)IncrementalMiniMarkGC.rrc_major_collection_trace [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.incminimark:3359)IncrementalMiniMarkGC._rrc_major_trace [flowgraph] (rpython.memory.gc.incminimark:2926)IncrementalMiniMarkGC.deal_with_objects_with_finalizers [flowgraph] (rpython.memory.gc.incminimark:2994)IncrementalMiniMarkGC._finalization_state [flowgraph] (rpython.memory.gc.incminimark:3105)IncrementalMiniMarkGC.invalidate_old_weakrefs [flowgraph] (rpython.memory.gc.incminimark:2897)IncrementalMiniMarkGC.deal_with_old_objects_with_destructors [flowgraph] (rpython.memory.gc.minimarkpage:326)ArenaCollection.mass_free_prepare [flowgraph] (rpython.memory.gc.incminimark:2688)IncrementalMiniMarkGC.start_free_rawmalloc_objects [flowgraph] (rpython.memory.gc.incminimark:3007)IncrementalMiniMarkGC._bump_finalization_state_from_0_to_1 [flowgraph] (rpython.memory.gc.incminimark:3022)IncrementalMiniMarkGC._recursively_bump_finalization_state_from_2_to_3 [flowgraph] (rpython.memory.gc.base:259)GCBase.trace [flowgraph] (rpython.memory.gc.incminimark:2990)_append_if_nonnull [flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path [flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.gc.incminimark:3035)IncrementalMiniMarkGC._recursively_bump_finalization_state_from_1_to_2 [flowgraph] (rpython.memory.gc.base:51)GCBase.mark_finalizer_to_run [flowgraph] (rpython.memory.gc.minimarkpage:427)ArenaCollection.mass_free_in_pages [flowgraph] (rpython.memory.gc.minimarkpage:506)ArenaCollection.walk_page [flowgraph] (rpython.memory.gc.incminimark:2650)IncrementalMiniMarkGC._free_if_unvisited [flowgraph] (rpython.memory.gc.minimarkpage:490)ArenaCollection.free_page [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.incminimark:2658)IncrementalMiniMarkGC._reset_gcflag_visited [flowgraph] (rpython.memory.gc.incminimark:2755)IncrementalMiniMarkGC._collect_ref_stk [flowgraph] (rpython.memory.gc.incminimark:2128)IncrementalMiniMarkGC._trace_drag_out1_marking_phase [flowgraph] (rpython.memory.gc.base:600)callback2 [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.incminimark:2646)IncrementalMiniMarkGC._sweep_old_objects_pointing_to_pinned [flowgraph] (rpython.memory.gc.incminimark:3377)IncrementalMiniMarkGC.rrc_major_collection_free [flowgraph] (rpython.memory.gc.incminimark:3397)IncrementalMiniMarkGC._rrc_major_free [flowgraph] (rpython.memory.lldict:62)dict_insertclean [flowgraph] (rpython.memory.gc.hook:61)GcHooks.fire_gc_collect [flowgraph] (rpython.memory.gc.hook:21)GcHooks.is_gc_collect_enabled [flowgraph] (rpython.memory.gc.inspector:168)BaseWalker.finish_processing [flowgraph] (rpython.memory.gc.inspector:157)BaseWalker.clear_gcflag_again [flowgraph] (rpython.memory.gc.incminimark:2729)IncrementalMiniMarkGC.enumerate_all_roots [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.inspector:262)_hd_unadd_root [flowgraph] (rpython.memory.gc.inspector:150)BaseWalker.unadd [flowgraph] (rpython.memory.gc.base:385)GCBase.enumerate_all_roots [flowgraph] (rpython.memory.gc.incminimark:2734)IncrementalMiniMarkGC.enum_live_with_finalizers [flowgraph] (rpython.memory.support:272)AddressDeque.foreach [flowgraph] (rpython.memory.gc.base:401)GCBase.enum_pending_finalizers [flowgraph] (rpython.memory.gc.inspector:164)BaseWalker.unwalk [flowgraph] (rpython.memory.gc.inspector:142)BaseWalker.unobj [flowgraph] (rpython.memory.gc.base:259)GCBase.trace [flowgraph] (rpython.memory.gc.base:252)gc_callback__unref [flowgraph] (rpython.memory.gc.inspector:146)BaseWalker._unref [flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path [flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.gc.inspector:208)HeapDumper.delete [flowgraph] (rpython.memory.gc.inspector:106)BaseWalker.delete [flowgraph] (rpython.memory.gc.base:600)callback2 [flowgraph] (?:1)memo_assert_callback_is_a_function_0 [flowgraph] (?:1)memo__convert_callback_formats_0 [flowgraph] (?:1)memo__convert_callback_formats_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo_make_callback_0 [flowgraph] (?:1)memo_make_callback_0 [flowgraph] (?:1)memo_assert_callback_is_a_function_0 [flowgraph] (?:1)memo_assert_callback_is_a_function_0 [flowgraph] (?:1)memo__make_scoped_allocator_0 [flowgraph] (?:1)memo_sizeof_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo_make_callback_0 [flowgraph] (?:1)memo_assert_callback_is_a_function_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo__convert_callback_formats_0 [flowgraph] (?:1)memo_make_callback_0 [flowgraph] (?:1)memo_assert_callback_is_a_function_0 [flowgraph] (?:1)memo_make_callback_0 [flowgraph] (?:1)memo_assert_callback_is_a_function_0 [flowgraph] (?:1)memo_make_callback_0 [flowgraph] (?:1)memo_assert_callback_is_a_function_0 [flowgraph] (?:1)memo_assert_callback_is_a_function_0 [flowgraph] (?:1)memo__convert_callback_formats_0 [flowgraph] (?:1)memo_make_callback_0 [flowgraph] (?:1)memo_assert_callback_is_a_function_0 [rtyper] specializing: 6200 / 8458 blocks (73%) [flowgraph] (rpython.rtyper.lltypesystem.rlist:391)ll_fixed_newemptylist [flowgraph] (rpython.rtyper.rbuiltin:252)ll_max [flowgraph] (rpython.rtyper.lltypesystem.llarena:565)llimpl_round_up_for_allocation [flowgraph] (rpython.rtyper.lltypesystem.llarena:549)llimpl_arena_reserve [flowgraph] (rpython.rtyper.lltypesystem.llarena:594)llimpl_getfakearenaaddress [flowgraph] (rpython.rtyper.lltypesystem.llarena:557)llimpl_arena_shrink_obj [flowgraph] (rpython.rtyper.lltypesystem.llarena:532)llimpl_arena_reset [flowgraph] (rpython.rtyper.lltypesystem.llarena:514)llimpl_arena_malloc [flowgraph] (rpython.rtyper.rlist:893)ll_listslice_startstop [flowgraph] (rpython.rtyper.rlist:554)ll_arraycopy [rtyper] specializing: 6700 / 8467 blocks (79%) [flowgraph] (rpython.rtyper.rint:495)ll_int_py_mod [flowgraph] (rpython.rtyper.rbuiltin:252)ll_max [flowgraph] (rpython.rlib.rposix_environ:173)getenv_llimpl [flowgraph] (rpython.rtyper.rstr:945)ll_str_is_true [flowgraph] (rpython.rtyper.lltypesystem.rstr:873)ll_stringslice_minusone [flowgraph] (rpython.rtyper.lltypesystem.rstr:840)_ll_stringslice [flowgraph] (rpython.rtyper.rstr:956)ll_stritem [flowgraph] (rpython.rtyper.lltypesystem.rstr:1046)ll_contains [flowgraph] (rpython.rtyper.rstr:997)ll_float [flowgraph] (rpython.rlib.rfloat:87)rstring_to_float [flowgraph] (rpython.rlib.rdtoa:54)strtod [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)_PyPy_dg_strtod [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall__PyPy_dg_strtod [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [rtyper] specializing: 7200 / 8550 blocks (84%) [rtyper] specializing: 7700 / 8550 blocks (90%) [flowgraph] (rpython.rtyper.lltypesystem.llarena:579)llimpl_arena_protect [rtyper] specializing: 8200 / 8550 blocks (95%) [flowgraph] (rpython.rtyper.rbuiltin:240)ll_min [rtyper] specializing: 8500 / 8552 blocks (99%) [flowgraph] (rpython.rtyper.lltypesystem.rstr:860)ll_stringslice_startstop [rtyper] -=- specialized 2396 more blocks -=- [flowgraph] (rpython.rtyper.lltypesystem.llarena:488)llimpl_protect [flowgraph] (rpython.rlib.rmmap:280)VirtualProtect [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)VirtualProtect [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_VirtualProtect [flowgraph] (rpython.rtyper.lltypesystem.rffi:1382)scoped_str2charp.__init__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:1388)scoped_str2charp.__enter__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:817)str2charp [flowgraph] (rpython.rtyper.lltypesystem.llarena:456)madvise_arena_free [flowgraph] (rpython.rtyper.lltypesystem.llarena:451)PosixPageSize.get [flowgraph] (rpython.rlib.rmmap:1044)madvise_free [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)getenv [flowgraph] (rpython.rtyper.lltypesystem.rffi:1390)scoped_str2charp.__exit__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:831)free_charp [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_getenv [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (rpython.rtyper.rbuiltin:252)ll_max [rtyper] specializing: 8600 / 8655 blocks (99%) [rtyper] -=- specialized 95 more blocks -=- [backendopt:removecasts] removed 1 cast_pointers in dump_rpy_heap [backendopt:removecasts] removed 4 cast_pointers in IncrementalMiniMarkGC.external_malloc [backendopt:removecasts] removed 2 cast_pointers in count_memory_pressure [backendopt:removecasts] removed 2 cast_pointers in time [backendopt:removecasts] removed 1 cast_pointers in ShadowStackPool._prepare_unused_stack [backendopt:removecasts] removed 1 cast_pointers in ShadowStackPool._resize [backendopt:removecasts] removed 1 cast_pointers in custom_trace_dispatcher___append_rpy_referent [backendopt:removecasts] removed 1 cast_pointers in HeapDumper.writeobj [backendopt:removecasts] removed 1 cast_pointers in MemoryPressureCounter.processobj [backendopt:removecasts] removed 3 cast_pointers in HeapDumper.flush [backendopt:removecasts] removed 1 cast_pointers in GCData.q_get_memory_pressure_ofs [backendopt:removecasts] removed 1 cast_pointers in custom_trace_dispatcher__gc_callback__ref [backendopt:removecasts] removed 1 cast_pointers in custom_trace_dispatcher__gc_callback__writeref [backendopt:removecasts] removed 1 cast_pointers in custom_trace_dispatcher__gc_callback__trace_drag_out [backendopt:removecasts] removed 1 cast_pointers in IncrementalMiniMarkGC.major_collection_step [backendopt:removecasts] removed 1 cast_pointers in custom_trace_dispatcher__gc_callback__debug_check_not_white [backendopt:removecasts] removed 1 cast_pointers in custom_trace_dispatcher__gc_callback__debug_callback2 [backendopt:removecasts] removed 1 cast_pointers in custom_trace_dispatcher__gc_callback__collect_ref_rec [backendopt:removecasts] removed 1 cast_pointers in custom_trace_dispatcher___append_if_nonnull [backendopt:removecasts] removed 1 cast_pointers in BaseWalker.unadd [backendopt:removecasts] removed 1 cast_pointers in custom_trace_dispatcher__gc_callback__unref [backendopt:removecasts] removed 1 cast_pointers in _ll_stringslice__rpy_stringPtr_Signed_Signed [backendopt:removecasts] removed 3 cast_pointers in ll_float__rpy_stringPtr [backendopt:removecasts] removed 2 cast_pointers in strtod__SomeString [backendopt:inlining] phase with threshold factor: 32.4 [backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic [backendopt:inlining] 0.00 IncrementalMiniMarkGC._bump_pointer [backendopt:inlining] 0.00 IncrementalMiniMarkGC._remember_young_pointer_inlined [backendopt:inlining] 0.00 IncrementalMiniMarkGC._collect_obj [backendopt:inlining] 0.00 gc_callback__collect_ref_rec [backendopt:inlining] 0.00 _dummy_size [backendopt:inlining] 0.00 copy_string_to_raw [backendopt:inlining] 0.00 IncrementalMiniMarkGC._malloc_out_of_nursery [backendopt:inlining] 0.00 memo__sizeof_none_0 [backendopt:inlining] 0.00 memo__sizeof_none_0 [backendopt:inlining] 0.00 ll_setitem_nonneg__dum_nocheckConst_arrayPtr_Signed_GCREFPtr [backendopt:inlining] 0.00 gc_callback__debug_callback2 [backendopt:inlining] 0.00 gc_callback__debug_check_not_white [backendopt:inlining] 0.00 ll_getitem_nonneg__dum_nocheckConst_ll_getitem_foldable_nonnegCons_arrayPtr_Signed [backendopt:inlining] 0.00 IncrementalMiniMarkGC._trace_drag_out [backendopt:inlining] 0.00 IncrementalMiniMarkGC._rrc_free [backendopt:inlining] 0.00 memo__sizeof_none_0 [backendopt:inlining] 0.00 gc_callback__trace_drag_out [backendopt:inlining] 0.00 _PyPy_dg_strtod__arrayPtr_arrayPtr_star_2 [backendopt:inlining] 0.00 llimpl_getfakearenaaddress [backendopt:inlining] 0.00 IncrementalMiniMarkGC.id_or_identityhash [backendopt:inlining] 0.00 llimpl_arena_malloc [backendopt:inlining] 0.00 gc_callback__writeref [backendopt:inlining] 0.00 debug_start [backendopt:inlining] 0.00 debug_stop [backendopt:inlining] 0.00 copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed [backendopt:inlining] 0.00 gc_callback__unref [backendopt:inlining] 0.00 getenv__arrayPtr_star_1 [backendopt:inlining] 0.00 llimpl_arena_reset [backendopt:inlining] 0.00 HeapDumper.write [backendopt:inlining] 0.00 memo_sizeof_0 [backendopt:inlining] 0.00 get_get [backendopt:inlining] 0.00 isconstant__v40414___simple_call__function [backendopt:inlining] 0.00 GlobalMemoryStatusEx__MEMORYSTATUSEXPtr_star_1 [backendopt:inlining] 0.00 isvirtual__v40412___simple_call__function [backendopt:inlining] 0.00 ll_fixed_items__arrayPtr [backendopt:inlining] 0.00 pypy_get_l2_cache_size___star_0 [backendopt:inlining] 0.00 gc_callback__ref [backendopt:inlining] 0.00 isconstant__v40408___simple_call__function [backendopt:inlining] 0.00 isvirtual__v40406___simple_call__function [backendopt:inlining] 0.00 get_nonmovingbuffer_ll_final_null [backendopt:inlining] 0.00 VirtualProtect__arrayPtr_Unsigned_UINT_arrayPtr_star_4 [backendopt:inlining] 0.00 memo_emptystrfun_0 [backendopt:inlining] 2.00 IncrementalMiniMarkGC._pyobj [backendopt:inlining] 2.00 ll_int_py_div_nonnegargs__Signed_Signed [backendopt:inlining] 2.00 ll_strlen__rpy_stringPtr [backendopt:inlining] 2.00 ll_dict_len__DICTPtr [backendopt:inlining] 2.00 dict_delete_entries [backendopt:inlining] 2.00 IncrementalMiniMarkGC.combine [backendopt:inlining] 2.00 ll_fixed_newlist__GcArray_Ptr_GCREF__gcopaque_Ll_Signed [backendopt:inlining] 2.00 debug_stop [backendopt:inlining] 2.00 free_charp [backendopt:inlining] 2.00 scoped_str2charp.__enter__ [backendopt:inlining] 2.00 ll_fixed_length__arrayPtr [backendopt:inlining] 2.00 ScopedAlloc_Struct MEMORYSTATUSEX { c_dwLength, c_dwMemoryLoad, c_ullTotalPhys, c_ullAvailPhys, c_ullTotalPageFile, c_ullAvailPageFile, c_ullTotalVirtual, c_ullAvailVirtual, c_ullAvailExtendedVirtual }.__enter__ [backendopt:inlining] 2.00 cast_adr_to_nongc_instance__AddressDeque [backendopt:inlining] 2.00 debug_start [backendopt:inlining] 4.00 GCBase.header [backendopt:inlining] 4.00 AddressStack.non_empty [backendopt:inlining] 4.00 GCBase.is_valid_gc_object [backendopt:inlining] 4.00 GCData.q_finalizer_handlers [backendopt:inlining] 4.00 ll_max__Unsigned_Unsigned [backendopt:inlining] 4.00 IncrementalMiniMarkGC.get_forwarding_address [backendopt:inlining] 4.00 mangle_hash [backendopt:inlining] 4.00 ll_stritem_nonneg__rpy_stringPtr_Signed [backendopt:inlining] 4.00 dict_allocate [backendopt:inlining] 4.00 _check_valid_type_info [backendopt:inlining] 4.00 _encode_states [backendopt:inlining] 4.00 __exit____star_3 [backendopt:inlining] 4.00 _check_valid_type_info_varsize [backendopt:inlining] 4.00 ll_max__Float_Float [backendopt:inlining] 4.00 ll_max__Signed_Signed [backendopt:inlining] 4.00 ll_min__Signed_Signed [backendopt:inlining] 4.00 ll_min__Float_Float [backendopt:inlining] 5.00 release [backendopt:inlining] 6.00 IncrementalMiniMarkGC.get_total_memory_used [backendopt:inlining] 6.00 FreeList.put [backendopt:inlining] 6.00 IncrementalMiniMarkGC._nursery_memory_size [backendopt:inlining] 6.00 ScopedAlloc_Struct MEMORYSTATUSEX { c_dwLength, c_dwMemoryLoad, c_ullTotalPhys, c_ullAvailPhys, c_ullTotalPageFile, c_ullAvailPageFile, c_ullTotalVirtual, c_ullAvailVirtual, c_ullAvailExtendedVirtual }.__init__ [backendopt:inlining] 6.00 IncrementalMiniMarkGC.get_peak_memory_alloced [backendopt:inlining] 6.00 IncrementalMiniMarkGC.get_total_memory_alloced [backendopt:inlining] 7.00 AddressDict [backendopt:inlining] 2.00 GCBase._adr2deque [backendopt:inlining] 7.00 out_of_memory [backendopt:inlining] 7.00 ll_len_foldable__arrayPtr [backendopt:inlining] 7.00 round_up_for_allocation [backendopt:inlining] 7.00 _hd_add_root [backendopt:inlining] 7.00 _hd_unadd_root [backendopt:inlining] 7.00 dict_keyhash [backendopt:inlining] 7.00 _debug_callback [backendopt:inlining] 7.00 GCBase.get_size_incl_hash [backendopt:inlining] 7.00 newdict [backendopt:inlining] 7.00 mallocstr [backendopt:inlining] 7.00 IncrementalMiniMarkGC._wb_old_object_pointing_to_pinned [backendopt:inlining] 7.00 ccall_getenv [backendopt:inlining] 0.00 getenv__arrayPtr_star_1 [backendopt:inlining] 7.00 ccall__PyPy_dg_strtod__arrayPtr_arrayPtr [backendopt:inlining] 0.00 _PyPy_dg_strtod__arrayPtr_arrayPtr_star_2 [backendopt:inlining] 7.00 rstring_to_float__SomeString [backendopt:inlining] 7.00 IncrementalMiniMarkGC._debug_check_object_finalizing [backendopt:inlining] 7.00 _add_in_dict [backendopt:inlining] 7.00 setup_root_walker [backendopt:inlining] 2.00 ll_fixed_newemptylist__GcArray_Ptr_GCREF__gcopaque_Ll [backendopt:inlining] 8.00 dict_entry_valid [backendopt:inlining] 8.00 ll_get_value__DICTPtr_Unsigned [backendopt:inlining] 8.00 ll_newrange__Ptr_GcStruct_rangeLlT_Signed_Signed [backendopt:inlining] 9.00 GCData.q_varsize_offset_to_length [backendopt:inlining] 6.00 GCData.get [backendopt:inlining] 9.00 GCData.q_varsize_item_sizes [backendopt:inlining] 9.00 dict_get [backendopt:inlining] 9.00 GCData.q_varsize_offset_to_variable_part [backendopt:inlining] 9.00 GCData.q_varsize_offsets_to_gcpointers_in_var_part [backendopt:inlining] 8.00 GCData.q_offsets_to_gc_pointers [backendopt:inlining] 6.00 GCData.get_varsize [backendopt:inlining] 9.00 dict_add [backendopt:inlining] 8.00 GCData.q_fixed_size [backendopt:inlining] 6.00 _hash [backendopt:inlining] 9.00 GCBase.get_member_index [backendopt:inlining] 9.00 IncrementalMiniMarkGC._free_young_rawmalloced_obj [backendopt:inlining] 9.00 ccall_VirtualProtect [backendopt:inlining] 9.00 MemoryPressureCounter.__init__ [backendopt:inlining] 9.00 IncrementalMiniMarkGC._check_not_in_nursery [backendopt:inlining] 9.00 GCBase.post_setup [backendopt:inlining] 9.00 ll_dict_lookup_trampoline__v40409___simple_call__function [backendopt:inlining] 5.50 best_nursery_size_for_L2cache [backendopt:inlining] 10.00 acquire [backendopt:inlining] 10.00 __v40404___simple_call_invoke_2_ [backendopt:inlining] 10.00 ShadowStackPool.start_fresh_new_state [backendopt:inlining] 7.00 ll_str_is_true__LLHelpersConst_rpy_stringPtr [backendopt:inlining] 8.00 IncrementalMiniMarkGC.get_type_id [backendopt:inlining] 8.00 GCBase.points_to_valid_gc_object [backendopt:inlining] 6.00 dict_delete [backendopt:inlining] 11.00 GCBase._debug_callback2 [backendopt:inlining] 11.00 BaseWalker._unref [backendopt:inlining] 11.00 _append_if_nonnull [backendopt:inlining] 11.00 start_of_page [backendopt:inlining] 11.00 _ll_dict_setitem_lookup_done_trampoline__v40415___simple_call__function [backendopt:inlining] 11.00 IncrementalMiniMarkGC.trace_and_drag_out_of_nursery [backendopt:inlining] 11.00 IncrementalMiniMarkGC._visit_old_objects_pointing_to_pinned [backendopt:inlining] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed [backendopt:inlining] 10.00 GCData.q_member_index [backendopt:inlining] 11.00 HeapDumper.delete [backendopt:inlining] 11.00 IncrementalMiniMarkGC.rrc_major_collection_trace [backendopt:inlining] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed [backendopt:inlining] 10.00 dict_entry_hash [backendopt:inlining] 11.00 MemoryPressureCounter._ref [backendopt:inlining] 8.00 llimpl_round_up_for_allocation [backendopt:inlining] 12.00 get_total_memory [backendopt:inlining] 12.00 ll_rangeiter__Ptr_GcStruct_rangeLlT_rangePtr [backendopt:inlining] 10.50 estimate_best_nursery_size [backendopt:inlining] 12.25 scoped_str2charp.__init__ [backendopt:inlining] 12.50 AddressDeque.non_empty [backendopt:inlining] 12.50 ll_rangenext_up__rangePtr_Signed [backendopt:inlining] 12.50 ShadowStackPool._resize [backendopt:inlining] 9.00 __exit____star_3 [backendopt:inlining] 10.00 IncrementalMiniMarkGC._is_pinned [backendopt:inlining] 12.00 GCData.q_has_gcptr_in_varsize [backendopt:inlining] 12.00 GCData.q_is_gcarrayofgcptr [backendopt:inlining] 12.00 GCData.q_has_custom_trace [backendopt:inlining] 12.00 GCData.q_fast_path_tracing [backendopt:inlining] 6.00 IncrementalMiniMarkGC.init_gc_object [backendopt:inlining] 12.00 GCData.q_has_gcptr [backendopt:inlining] 12.00 GCData.q_is_varsize [backendopt:inlining] 6.00 IncrementalMiniMarkGC.get_card [backendopt:inlining] 13.00 customtrace__gc_callback__debug_callback2 [backendopt:inlining] 12.00 GCData.q_is_rpython_class [backendopt:inlining] 13.00 sort_chunk [backendopt:inlining] 13.00 customtrace__gc_callback__collect_ref_rec [backendopt:inlining] 10.00 IncrementalMiniMarkGC._reset_gcflag_visited [backendopt:inlining] 12.00 scoped_alloc__MEMORYSTATUSEX_False [backendopt:inlining] 13.00 IncrementalMiniMarkGC.trace_and_drag_out_of_nursery_partial [backendopt:inlining] 13.00 customtrace__gc_callback__unref [backendopt:inlining] 13.00 customtrace__gc_callback__debug_check_not_white [backendopt:inlining] 13.00 customtrace__gc_callback__trace_drag_out [backendopt:inlining] 13.00 customtrace__gc_callback__writeref [backendopt:inlining] 13.00 BaseWalker.unobj [backendopt:inlining] 13.00 customtrace___append_rpy_referent [backendopt:inlining] 13.00 customtrace___append_if_nonnull [backendopt:inlining] 12.00 GCData.q_has_memory_pressure [backendopt:inlining] 13.00 ll_stringslice_minusone__rpy_stringPtr [backendopt:inlining] 13.00 customtrace__gc_callback__ref [backendopt:inlining] 13.00 free_nonmovingbuffer_ll [backendopt:inlining] 13.50 ll_int_py_mod__Signed_Signed [backendopt:inlining] 13.50 FreeList.get [backendopt:inlining] 2.00 __v40411___simple_call__function [backendopt:inlining] 2.00 __v40405___simple_call__function [backendopt:inlining] 14.00 GCData.q_weakpointer_offset [backendopt:inlining] 12.00 IncrementalMiniMarkGC.get_peak_memory_used [backendopt:inlining] 15.00 read_float_from_env [backendopt:inlining] 15.00 ll_int_py_div__Signed_Signed [backendopt:inlining] 16.00 IncrementalMiniMarkGC.card_marking_words_for_length [backendopt:inlining] 16.00 BaseWalker.process [backendopt:inlining] 16.00 IncrementalMiniMarkGC.card_marking_bytes_for_length [backendopt:inlining] 15.00 dict_insertclean [backendopt:inlining] 16.00 IncrementalMiniMarkGC.is_in_nursery [backendopt:inlining] 17.00 ll_contains__rpy_stringPtr_Char [backendopt:inlining] 17.00 GCBase.get_size [backendopt:inlining] 16.00 IncrementalMiniMarkGC.threshold_reached [backendopt:inlining] 17.00 read_from_env [backendopt:inlining] 17.00 ShadowStackPool.initial_setup [backendopt:inlining] 17.00 HeapDumper.__init__ [backendopt:inlining] 17.00 _do_append_rpy_roots [backendopt:inlining] 17.00 GCBase.setup [backendopt:inlining] 17.00 madvise_free [backendopt:inlining] 14.00 IncrementalMiniMarkGC.start_free_rawmalloc_objects [backendopt:inlining] 17.00 read_uint_from_env [backendopt:inlining] 17.00 llimpl_protect [backendopt:inlining] 11.00 ll_stritem__LLHelpersConst_rpy_stringPtr_Signed [backendopt:inlining] 17.75 ShadowStackPool._prepare_unused_stack [backendopt:inlining] 15.00 ll_dict_resize__DICTPtr [backendopt:inlining] 15.00 IncrementalMiniMarkGC._debug_check_object_scanning [backendopt:inlining] 18.00 enumerate_all_roots___append_rpy_root [backendopt:inlining] 18.00 enumerate_all_roots___hd_add_root [backendopt:inlining] 18.00 IncrementalMiniMarkGC.collect_roots [backendopt:inlining] 18.00 enumerate_all_roots___hd_unadd_root [backendopt:inlining] 18.00 enumerate_all_roots___debug_callback [backendopt:inlining] 17.00 GCData.q_cannot_pin [backendopt:inlining] 18.00 BaseWalker.finish_processing [backendopt:inlining] 15.25 IncrementalMiniMarkGC.write_barrier [backendopt:inlining] 16.25 IncrementalMiniMarkGC.rrc_invoke_callback [backendopt:inlining] 19.00 walk_stack_roots [backendopt:inlining] 19.00 IncrementalMiniMarkGC.raw_malloc_memory_pressure [backendopt:inlining] 19.25 custom_trace_dispatcher__gc_callback__debug_callback2 [backendopt:inlining] 19.25 custom_trace_dispatcher__gc_callback__collect_ref_rec [backendopt:inlining] 19.25 custom_trace_dispatcher__gc_callback__trace_drag_out [backendopt:inlining] 19.25 custom_trace_dispatcher__gc_callback__unref [backendopt:inlining] 19.25 custom_trace_dispatcher__gc_callback__debug_check_not_white [backendopt:inlining] 19.25 custom_trace_dispatcher__gc_callback__writeref [backendopt:inlining] 19.25 custom_trace_dispatcher___append_rpy_referent [backendopt:inlining] 19.25 custom_trace_dispatcher___append_if_nonnull [backendopt:inlining] 19.25 custom_trace_dispatcher__gc_callback__ref [backendopt:inlining] 19.33 AddressStack.length [backendopt:inlining] 18.25 _trace_callback__gc_callback__debug_callback2 [backendopt:inlining] 16.75 _trace_callback__gc_callback__collect_ref_rec [backendopt:inlining] 18.25 _trace_callback__gc_callback__unref [backendopt:inlining] 16.75 _trace_callback__gc_callback__debug_check_not_white [backendopt:inlining] 16.75 _trace_callback__gc_callback__writeref [backendopt:inlining] 16.75 _trace_callback___append_rpy_referent [backendopt:inlining] 18.25 _trace_callback___append_if_nonnull [backendopt:inlining] 18.25 _trace_callback__gc_callback__ref [backendopt:inlining] 17.25 IncrementalMiniMarkGC._sweep_old_objects_pointing_to_pinned [backendopt:inlining] 20.67 dict_allocate_entries [backendopt:inlining] 21.00 IncrementalMiniMarkGC.minor_and_major_collection [backendopt:inlining] 21.00 AddressStack.sort [backendopt:inlining] 21.00 _do_append_rpy_referents [backendopt:inlining] 21.25 AddressStack.append [backendopt:inlining] 21.25 AddressDeque.append [backendopt:inlining] 19.50 GCData.q_destructor_or_custom_trace [backendopt:inlining] 21.50 AddressStack.__init__ [backendopt:inlining] 18.75 IncrementalMiniMarkGC._add_to_more_objects_to_trace_if_black [backendopt:inlining] 21.00 ll_contains__DICTPtr_Address [backendopt:inlining] 21.00 IncrementalMiniMarkGC.free_young_rawmalloced_objects [backendopt:inlining] 22.00 enum_live_with_finalizers___debug_callback [backendopt:inlining] 22.00 enum_live_with_finalizers___append_rpy_root [backendopt:inlining] 22.00 enum_live_with_finalizers___hd_add_root [backendopt:inlining] 22.00 enum_live_with_finalizers___hd_unadd_root [backendopt:inlining] 23.33 charp2str [backendopt:inlining] 23.50 AddressDeque.__init__ [backendopt:inlining] 23.00 BaseWalker.delete [backendopt:inlining] 18.00 IncrementalMiniMarkGC._reset_flag_old_objects_pointing_to_pinned [backendopt:inlining] 21.00 IncrementalMiniMarkGC._finalization_state [backendopt:inlining] 24.50 ll_alloc_and_set__GcArray_Ptr_GCREF__gcopaque_Ll_Signed_GCREFPtr [backendopt:inlining] 23.00 GCData.q_get_memory_pressure_ofs [backendopt:inlining] 20.50 ll_dict_lookup_look_inside_iff__DICTPtr_Address_Signed [backendopt:inlining] 25.75 ll_join_strs_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT [backendopt:inlining] 26.31 ll_stringslice_startstop__rpy_stringPtr_Signed_Signed [backendopt:inlining] 26.37 AddressStack.pop [backendopt:inlining] 26.50 time [backendopt:inlining] 21.50 IncrementalMiniMarkGC._free_if_unvisited [backendopt:inlining] 16.75 clamp_total_memory [backendopt:inlining] 27.25 quicksort [backendopt:inlining] 27.50 IncrementalMiniMarkGC.is_forwarded [backendopt:inlining] 26.00 AddressStack.delete [backendopt:inlining] 26.00 AddressDeque.delete [backendopt:inlining] 20.50 get_L2cache_win32 [backendopt:inlining] 28.75 _append_rpy_root [backendopt:inlining] 29.00 IncrementalMiniMarkGC.collect_nonstack_roots [backendopt:inlining] 29.00 ll_dict_insertclean__DICTPtr_Address_Address_Signed [backendopt:inlining] 29.75 llimpl_arena_protect [backendopt:inlining] 21.62 IncrementalMiniMarkGC._rrc_minor_trace [backendopt:inlining] 23.50 _ll_dict_setitem_lookup_done_look_inside_iff__DICTPtr_Address_Address_Signed_Unsigned [backendopt:inlining] 29.75 IncrementalMiniMarkGC._alloc_nursery [backendopt:inlining] 21.00 ll_listslice_startstop__GcArray_Ptr_GCREF__gcopaque_Ll_arrayPtr_Signed_Signed [backendopt:inlining] 31.21 ArenaCollection._pick_next_arena [backendopt:inlining] 31.75 AddressDeque.popleft [backendopt:inlining] 31.75 _append_rpy_referent [backendopt:inlining] 32.25 HeapDumper._writeref [backendopt:inlining] 23.00 IncrementalMiniMarkGC.collect_roots_in_nursery [backendopt:inlining] 29.00 IncrementalMiniMarkGC.visit_all_objects [backendopt:inlining] inlined 1666 callsites. [backendopt:removecasts] removed 1 cast_pointers in dump_rpy_heap [backendopt:removecasts] removed 1 cast_pointers in count_memory_pressure [backendopt:removecasts] removed 2 cast_pointers in get_win32_total_phys_memory [backendopt:removecasts] removed 1 cast_pointers in partition [backendopt:removecasts] removed 1 cast_pointers in _ll_stringslice__rpy_stringPtr_Signed_Signed [backendopt:removecasts] removed 2 cast_pointers in strtod__SomeString [backendopt:malloc] starting malloc removal [backendopt:malloc] 1 simple mallocs removed in 'get_win32_total_phys_memory' [backendopt:malloc] 3 simple mallocs removed in 'GlobalMemoryStatusEx__MEMORYSTATUSEXPtr_star_1' [backendopt:malloc] 2 simple mallocs removed in 'partition' [backendopt:malloc] 1 simple mallocs removed in 'getenv_llimpl' [backendopt:malloc] 1 simple mallocs removed in 'strtod__SomeString' [backendopt:malloc] 5 simple mallocs removed in '_PyPy_dg_strtod__arrayPtr_arrayPtr_star_2' [backendopt:malloc] 9 simple mallocs removed in 'VirtualProtect__arrayPtr_Signed_Signed_arrayPtr' [backendopt:malloc] 9 simple mallocs removed in 'VirtualProtect__arrayPtr_Unsigned_UINT_arrayPtr_star_4' [backendopt:malloc] 3 simple mallocs removed in 'getenv__arrayPtr_star_1' [backendopt:malloc] removed 34 simple mallocs in total [backendopt:mergeifblocks] starting to merge if blocks [backendopt] merging blocks in IncrementalMiniMarkGC.collect [backendopt] merging blocks in IncrementalMiniMarkGC.get_stats [backendopt] merging blocks in _trace_slow_path___append_rpy_referent [backendopt] merging blocks in _trace_slow_path__gc_callback__ref [backendopt] merging blocks in _trace_slow_path__gc_callback__writeref [backendopt] merging blocks in _trace_slow_path__gc_callback__trace_drag_out [backendopt] merging blocks in foreach___rrc_minor_trace [backendopt] merging blocks in IncrementalMiniMarkGC._rrc_minor_trace [backendopt] merging blocks in IncrementalMiniMarkGC.major_collection_step [backendopt] merging blocks in IncrementalMiniMarkGC.debug_check_object [backendopt] merging blocks in _trace_slow_path__gc_callback__debug_check_not_white [backendopt] merging blocks in _trace_slow_path__gc_callback__debug_callback2 [backendopt] merging blocks in _trace_slow_path__gc_callback__collect_ref_rec [backendopt] merging blocks in IncrementalMiniMarkGC._rrc_major_trace [backendopt] merging blocks in _trace_slow_path___append_if_nonnull [backendopt] merging blocks in _trace_slow_path__gc_callback__unref [backendopt] merging blocks in llimpl_arena_reset [flowgraph] (rpython.memory.gctransform.framework:620)ll_check_no_collect [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.gctransform.framework:618)no_op_callback [rtyper] -=- specialized 9 more blocks -=- [flowgraph] (rpython.translator.c.genc:261)entrypoint_wrapper [flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set [flowgraph] (rpython.rtyper.rlist:510)_ll_alloc_and_set_jit [flowgraph] (rpython.rtyper.rlist:522)_ll_alloc_and_clear [flowgraph] (?:11)_ll_alloc_and_set_nonnull_look_inside_iff [flowgraph] (rpython.rtyper.rlist:530) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.rlist:530)_ll_alloc_and_set_nonnull [flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit [flowgraph] (?:2)_ll_alloc_and_set_nonnull_trampoline [flowgraph] (rpython.rtyper.rlist:530)_ll_alloc_and_set_nonnull [rtyper] specializing: 8700 / 8705 blocks (99%) [rtyper] -=- specialized 41 more blocks -=- [rtyper] -=- specialized 0 more blocks -=- [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1604)ll_finalizer_trigger [flowgraph] (rpython.memory.gctransform.framework:1611)ll_next_dead [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1604)ll_finalizer_trigger [flowgraph] (rpython.memory.gctransform.framework:1611)ll_next_dead [c] 1000 nodes [ array: 148 framework rtti: 45 func: 617 group: 1 struct: 709 ] [flowgraph] (rpython.memory.gctransform.framework:1604)ll_finalizer_trigger [flowgraph] (rpython.memory.gctransform.framework:1611)ll_next_dead [c] 2000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 67941 ] [c] 3000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 68941 ] [c] 4000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 69941 ] [c] 5000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 70941 ] [c] 6000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 71941 ] [c] 7000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 72941 ] [c] 8000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 73941 ] [c] 9000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 74941 ] [c] 10000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 75941 ] [c] 11000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 76941 ] [c] 12000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 77941 ] [c] 13000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 78941 ] [c] 14000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 79941 ] [c] 15000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 80941 ] [c] 16000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 81941 ] [c] 17000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 82941 ] [c] 18000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 83941 ] [c] 19000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 84941 ] [c] 20000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 85941 ] [c] 21000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 86941 ] [c] 22000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 87941 ] [c] 23000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 88941 ] [c] 24000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 89941 ] [c] 25000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 90941 ] [c] 26000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 91941 ] [c] 27000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 92941 ] [c] 28000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 93941 ] [c] 29000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 94941 ] [c] 30000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 95941 ] [c] 31000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 96941 ] [c] 32000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 97941 ] [c] 33000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 98941 ] [c] 34000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 99941 ] [c] 35000 nodes [ array: 354 framework rtti: 68 func: 925 group: 1 struct: 100941 ] [c] 36000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 37000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 38000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 39000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 40000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 41000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 42000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 43000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 44000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 45000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 46000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 47000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 48000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 49000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 50000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 51000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 52000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 53000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 54000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 55000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 56000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 57000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 58000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 59000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 60000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 61000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 62000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 63000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 64000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 65000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 66000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 67000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 68000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 69000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102053 ] [c] 70000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102055 ] [c] 71000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102055 ] [c] 72000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102055 ] [c] 73000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102055 ] [c] 74000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102055 ] [c] 75000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102055 ] [c] 76000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102055 ] [c] 77000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102055 ] [c] 78000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102055 ] [c] 79000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102055 ] [c] 80000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102055 ] [c] 81000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102055 ] [c] 82000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102055 ] [c] 83000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102055 ] [c] 84000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102055 ] [c] 85000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102055 ] [c] 86000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102055 ] [c] 87000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102055 ] [c] 88000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102055 ] [c] 89000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102055 ] [c] 90000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102055 ] [c] 91000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102055 ] [c] 92000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102055 ] [c] 93000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102055 ] [c] 94000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102055 ] [c] 95000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102055 ] [c] 96000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102055 ] [c] 97000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102055 ] [c] 98000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102055 ] [c] 99000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102055 ] [c] 100000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102055 ] [c] 101000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102055 ] [c] 102000 nodes [ array: 471 framework rtti: 75 func: 1078 group: 1 struct: 102055 ] [c] 103000 nodes [ array: 594 framework rtti: 75 func: 1106 group: 1 struct: 102055 ] [c] 104000 nodes [ array: 798 framework rtti: 78 func: 1212 group: 1 struct: 102523 ] [c] 105000 nodes [ array: 802 framework rtti: 79 func: 1421 group: 1 struct: 102699 ] [c] 106000 nodes [ array: 802 framework rtti: 79 func: 1421 group: 1 struct: 103699 ] [c] 107000 nodes [ array: 802 framework rtti: 79 func: 1421 group: 1 struct: 104699 ] [c:database] GC transformer: finished helpers [c] 108000 nodes [ array: 858 framework rtti: 79 func: 1421 group: 1 struct: 105803 ] [flowgraph] (rpython.memory.gctransform.support:95)ll_report_finalizer_error [flowgraph] (rpython.memory.gctransform.support:77)write [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)wrap_write [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.transform:461)_ll_compute_size [rtyper] specializing: 8800 / 8908 blocks (98%) [rtyper] -=- specialized 203 more blocks -=- [backendopt:removecasts] removed 1 cast_pointers in _ll_malloc_fixedsize__Signed [backendopt:removecasts] removed 1 cast_pointers in _ll_malloc_fixedsize_zero__Signed [backendopt:removecasts] removed 1 cast_pointers in _ll_malloc_varsize_no_length__Signed_Signed_Signed [backendopt:removecasts] removed 1 cast_pointers in _ll_malloc_varsize_no_length_zero__Signed_Signed_Signed [backendopt:removecasts] removed 1 cast_pointers in _ll_compute_size__Signed_Signed_Signed [backendopt:inlining] phase with threshold factor: 32.4 [backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic [backendopt:inlining] 0.00 _ll_compute_size__Signed_Signed_Signed [backendopt:inlining] 0.00 wrap_write__Signed_SomeString_Signed_star_3 [backendopt:inlining] 0.00 finalizer_trigger [backendopt:inlining] 12.50 AddressDeque.non_empty [backendopt:inlining] 16.50 _ll_malloc_varsize_no_length__Signed_Signed_Signed [backendopt:inlining] 26.62 ll_report_finalizer_error__SomeInstance [backendopt:inlining] 31.75 AddressDeque.popleft [backendopt:inlining] inlined 13 callsites. [backendopt:malloc] starting malloc removal [backendopt:malloc] 8 simple mallocs removed in 'write' [backendopt:malloc] 8 simple mallocs removed in 'wrap_write__Signed_SomeString_Signed_star_3' [backendopt:malloc] removed 16 simple mallocs in total [backendopt:mergeifblocks] starting to merge if blocks [c:database] GC transformer: finished tables [gctransform:info] assigned 238 typeids [gctransform:info] added 1979 push/pop stack root instructions [gctransform:info] inserted 76 write barrier calls [gctransform:info] inserted 39 write_barrier_from_array calls [gctransform:info] found 4 static roots [c:database] Inlining GC helpers and postprocessing [c] 108299 nodes [ array: 909 framework rtti: 79 func: 1472 group: 1 struct: 105838 ] [c:database] Completed [translation:info] database for generating C source was created [translation:info] Generating c source... [c:writing] structdef.h [c:writing] forwarddecl.h [c:writing] preimpl.h [c:writing] data_rpython_flowspace.c [c:writing] data_rpython_memory_gc.c [c:writing] data_rpython_memory_gctransform.c [c:writing] data_rpython_memory_test.c [c:writing] data_rpython_rlib.c [c:writing] data_rpython_rtyper.c [c:writing] data_rpython_rtyper_lltypesystem.c [c:writing] data_rpython_translator_c_test.c [c:writing] nonfuncnodes.c [c:writing] nonfuncnodes_1.c [c:writing] nonfuncnodes_2.c [c:writing] nonfuncnodes_3.c [c:writing] nonfuncnodes_4.c [c:writing] nonfuncnodes_5.c [c:writing] data_rpython_memory_gc_1.c [c:writing] data_rpython_rlib_1.c [c:writing] data_rpython_rtyper_lltypesystem_1.c [c:writing] data_rpython_translator_c_test_1.c [c:writing] implement.c [c:writing] rpython_flowspace.c [c:writing] rpython_memory.c [c:writing] rpython_memory_gc.c [c:computedgoto] pypy_g_IncrementalMiniMarkGC_get_stats: 11 cases [c:writing] rpython_memory_gctransform.c [c:writing] rpython_memory_test.c [c:writing] rpython_rlib.c [c:writing] rpython_rtyper.c [c:writing] rpython_rtyper_lltypesystem.c [c:writing] rpython_rtyper_lltypesystem_1.c [c:writing] rpython_rtyper_lltypesystem_module.c [c:writing] rpython_translator.c [c:writing] rpython_translator_c.c [c:writing] rpython_translator_c_test.c [translation:info] written: c:\users\runner~1\appdata\local\temp\usession-pypy-HEAD-12\testing_2\testing_2.c [translation:info] Compiling c source... [platform:execute] nmake in c:\users\runner~1\appdata\local\temp\usession-pypy-HEAD-12\testing_2 [platform:Error] cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] stdafx.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] testing_2.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_flowspace.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_memory_gc.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_memory_gctransform.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_memory_test.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_rlib.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_rtyper.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_rtyper_lltypesystem.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_translator_c_test.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] nonfuncnodes.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] nonfuncnodes_1.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] nonfuncnodes_2.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] nonfuncnodes_3.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] nonfuncnodes_4.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] nonfuncnodes_5.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_memory_gc_1.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_rlib_1.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_rtyper_lltypesystem_1.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_translator_c_test_1.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] implement.c [platform:Error] implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' [platform:Error] implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' [platform:Error] implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] rpython_flowspace.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] rpython_memory.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] rpython_memory_gc.c [platform:Error] rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' [platform:Error] c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' [platform:Error] rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' [platform:Error] c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' [platform:Error] rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' [platform:Error] rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' [platform:Error] NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' [platform:Error] Stop. E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_from_objwithfinalizer_to_youngobj cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_empty_collect cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_framework_simple cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_framework_safe_pushpop cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_framework_protect_getfield cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_framework_varsized cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_framework_using_lists cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_framework_static_roots cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_framework_nongc_static_root cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_framework_void_array cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_framework_malloc_failure cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_framework_array_of_void cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_framework_opaque cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_framework_finalizer cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_del_catches cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_del_raises cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_custom_trace cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_custom_light_finalizer cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_weakref cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_prebuilt_weakref cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_prebuilt_dicts_of_all_sizes cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_framework_malloc_raw cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_framework_del_seeing_new_types cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_framework_late_filling_pointers cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_zero_raw_malloc cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_object_alignment cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_void_list cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_open_read_write_seek_close cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_callback_with_collect cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_can_move cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_resizable_buffer cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_hash_preservation cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_hash_overflow cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_hash_varsized cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_arraycopy_writebarrier_int cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_arraycopy_writebarrier_ptr cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_get_rpy_roots cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_get_rpy_referents cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_is_rpy_instance cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_try_cast_gcref_to_instance cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_get_rpy_memory_usage cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_get_rpy_type_index cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_dump_rpy_heap cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_write_typeids_z cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_gcflag_extra cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_check_zero_works cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_long_chain_of_instances cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_many_ids cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_string_builder cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_string_builder_over_allocation cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_string_builder_multiple_builds cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_string_builder_multiple_builds_2 cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_nursery_hash_base cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_extra_item_after_alloc cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_rerased cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_gc_heap_stats cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_nongc_attached_to_gc cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_nongc_opaque_attached_to_gc cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_limited_memory cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_gc_set_max_heap_size cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_total_memory_pressure cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_random_pin cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_limited_memory_linux cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_ignore_finalizer cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_enable_disable cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_collect_step cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_total_gc_time cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGC::()::test_increase_root_stack_depth cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2146): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_2\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_2.obj /c testing_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4122): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4122): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2112): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2138): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_2\singleheader.h(5072): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2146): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_finalizer_order cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError ---------- Captured stderr setup ---------- [platform:msg] Updated environment with vsver 160, using x64 True [flowgraph] (rpython.translator.c.test.test_newgc:39)main [translation:info] Annotating&simplifying... [translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy [flowgraph] (rpython.translator.c.test.test_newgc:104)allfuncs [flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item [flowgraph] (rpython.translator.c.test.test_newgc:944)f_arraycopy_writebarrier_int [flowgraph] (rpython.translator.c.test.test_newgc:965)f_arraycopy_writebarrier_ptr [flowgraph] (rpython.translator.c.test.test_newgc:750)f_callback_with_collect [flowgraph] (rpython.translator.c.test.test_newgc:783)f_can_move [flowgraph] (rpython.translator.c.test.test_newgc:1277)f_check_zero_works [flowgraph] (rpython.translator.c.test.test_newgc:443)f_del_raises [flowgraph] (rpython.translator.c.test.test_newgc:1163)f_dump_rpy_heap [flowgraph] (rpython.translator.c.test.test_newgc:146)f_empty_collect [flowgraph] (rpython.translator.c.test.test_newgc:2037)f_erased [flowgraph] (rpython.translator.c.test.test_newgc:1537)f_extra_item_after_alloc [flowgraph] (rpython.translator.c.test.test_newgc:341)f_framework_array_of_void [flowgraph] (rpython.translator.c.test.test_newgc:627)f_framework_del_seeing_new_types [flowgraph] (rpython.translator.c.test.test_newgc:393)f_framework_finalizer [flowgraph] (rpython.translator.c.test.test_newgc:640)f_framework_late_filling_pointers [flowgraph] (rpython.translator.c.test.test_newgc:332)f_framework_malloc_failure [flowgraph] (rpython.translator.c.test.test_newgc:608)f_framework_malloc_raw [flowgraph] (rpython.translator.c.test.test_newgc:307)f_framework_nongc_static_root [flowgraph] (rpython.translator.c.test.test_newgc:368)f_framework_opaque [flowgraph] (rpython.translator.c.test.test_newgc:223)f_framework_protect_getfield [flowgraph] (rpython.translator.c.test.test_newgc:197)f_framework_safe_pushpop [flowgraph] (rpython.translator.c.test.test_newgc:165)f_framework_simple [flowgraph] (rpython.translator.c.test.test_newgc:293)f_framework_static_roots [flowgraph] (rpython.translator.c.test.test_newgc:267)f_framework_using_lists [flowgraph] (rpython.translator.c.test.test_newgc:241)f_framework_varsized [flowgraph] (rpython.translator.c.test.test_newgc:323)f_framework_void_array [flowgraph] (rpython.memory.test.snippet:190)f_from_objwithfinalizer_to_youngobj [flowgraph] (rpython.translator.c.test.test_newgc:1387)f_gc_heap_stats [flowgraph] (rpython.translator.c.test.test_newgc:1362)f_gc_set_max_heap_size [flowgraph] (rpython.translator.c.test.test_newgc:1244)f_gcflag_extra [flowgraph] (rpython.translator.c.test.test_newgc:1103)f_get_rpy_memory_usage [flowgraph] (rpython.translator.c.test.test_newgc:1015)f_get_rpy_referents [flowgraph] (rpython.translator.c.test.test_newgc:996)f_get_rpy_roots [flowgraph] (rpython.translator.c.test.test_newgc:1128)f_get_rpy_type_index [flowgraph] (rpython.translator.c.test.test_newgc:912)f_hash_overflow [flowgraph] (rpython.translator.c.test.test_newgc:829)f_hash_preservation [flowgraph] (rpython.translator.c.test.test_newgc:932)f_hash_varsized [flowgraph] (rpython.translator.c.test.test_newgc:1040)f_is_rpy_instance [flowgraph] (rpython.translator.c.test.test_newgc:1303)f_long_chain_of_instances [flowgraph] (rpython.translator.c.test.test_newgc:1330)f_many_ids [flowgraph] (rpython.translator.c.test.test_newgc:1617)f_nongc_attached_to_gc [flowgraph] (rpython.translator.c.test.test_newgc:1646)f_nongc_opaque_attached_to_gc [flowgraph] (rpython.translator.c.test.test_newgc:1483)f_nursery_hash_base [flowgraph] (rpython.translator.c.test.test_newgc:673)f_object_alignment [flowgraph] (rpython.translator.c.test.test_newgc:706)f_open_read_write_seek_close [flowgraph] (rpython.translator.c.test.test_newgc:589)f_prebuilt_dicts_of_all_sizes [flowgraph] (rpython.translator.c.test.test_newgc:554)f_prebuilt_weakref [flowgraph] (rpython.translator.c.test.test_newgc:1561)f_rerased [flowgraph] (rpython.translator.c.test.test_newgc:793)f_resizable_buffer [flowgraph] (rpython.translator.c.test.test_newgc:2004)f_tagged [flowgraph] (rpython.translator.c.test.test_newgc:1065)f_try_cast_gcref_to_instance [flowgraph] (rpython.translator.c.test.test_newgc:695)f_void_list [flowgraph] (rpython.translator.c.test.test_newgc:516)f_weakref [flowgraph] (rpython.translator.c.test.test_newgc:1209)f_write_typeids_z [flowgraph] (rpython.translator.c.test.test_newgc:653)f_zero_raw_malloc [flowgraph] (rpython.rlib.rposix:461)open [flowgraph] (rpython.rlib.rposix:402)_as_utf80 [flowgraph] (rpython.rlib.rposix:392)_as_utf8 [flowgraph] (rpython.translator.c.test.test_newgc:693)E.__init__ [flowgraph] (rpython.rlib.rgc:953)cast_instance_to_gcref [flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr [flowgraph] (rpython.translator.c.test.test_newgc:1995)fn [flowgraph] (rpython.translator.c.test.test_newgc:2059)BoxedObject.__init__ [flowgraph] (rpython.translator.c.test.test_newgc:2061)BoxedObject.meth [flowgraph] (?:2)ll_shrink_array [flowgraph] (rpython.rlib.rgc:468)ll_shrink_array [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.rlib.rerased:128)try_cast_erased [flowgraph] (rpython.rtyper.rclass:1143)ll_isinstance [flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass [flowgraph] (rpython.translator.c.test.test_newgc:575)keq [flowgraph] (rpython.translator.c.test.test_newgc:577)khash [flowgraph] (rpython.translator.c.test.test_newgc:1643)A.__del__ [flowgraph] (rpython.translator.c.test.test_newgc:1640)A.__init__ [flowgraph] (rpython.rlib.rzlib:267)deflateInit [flowgraph] (rpython.rlib.rzlib:149)_deflateInit2 [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)deflateInit2_ [flowgraph] (rpython.rtyper.lltypesystem.rffi:926)get_nonmovingbuffer_ll_final_null [flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll [flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c [flowgraph] (rpython.translator.c.test.test_newgc:1614)A.__del__ [flowgraph] (rpython.translator.c.test.test_newgc:1611)A.__init__ [flowgraph] (rpython.translator.c.test.test_newgc:1036)check [flowgraph] (rpython.rlib.rposix:500)write [flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__ [flowgraph] (rpython.translator.c.test.test_newgc:985)g [flowgraph] (rpython.translator.c.test.test_newgc:1360)g [flowgraph] (rpython.memory.test.snippet:177)g [flowgraph] (rpython.rlib.rgc:617)register_finalizer [flowgraph] (rpython.memory.test.snippet:169)finalizer_trigger [flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref [flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr [flowgraph] (rpython.rlib.rgc:600)next_dead [flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance [flowgraph] (rpython.translator.c.test.test_newgc:290)make [flowgraph] (rpython.translator.c.test.test_newgc:286)A.__init__ [flowgraph] (rpython.translator.c.test.test_newgc:160)make [flowgraph] (rpython.translator.c.test.test_newgc:156)g [flowgraph] (rpython.translator.c.test.test_newgc:188)make [flowgraph] (rpython.translator.c.test.test_newgc:180)g [flowgraph] (rpython.translator.c.test.test_newgc:212)prepare [flowgraph] (rpython.translator.c.test.test_newgc:358)gethidden [flowgraph] (rpython.translator.c.test.test_newgc:391)A.__del__ [flowgraph] (rpython.translator.c.test.test_newgc:388)A.__init__ [flowgraph] (rpython.translator.c.test.test_newgc:625)A.__del__ [flowgraph] (rpython.translator.c.test.test_newgc:1530)check [flowgraph] (rpython.rlib.rgc:1612)ll_write_final_null_char [flowgraph] (rpython.translator.c.test.test_newgc:2024)fn [flowgraph] (rpython.translator.c.test.test_newgc:441)B.__del__ [flowgraph] (rpython.rlib.clibffi:310)get_libc_name [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)pypy_get_libc_handle [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_pypy_get_libc_handle [flowgraph] (rpython.rlib.rgil:160)release [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.translator.c.test.test_newgc:499)f_custom_light_finalizer [flowgraph] (rpython.translator.c.test.test_newgc:474)f_custom_trace [flowgraph] (rpython.translator.c.test.test_newgc:426)f_del_catches [flowgraph] (rpython.translator.c.test.test_newgc:1673)f_limited_memory [flowgraph] (rpython.translator.c.test.test_newgc:1667)g [flowgraph] (rpython.translator.c.test.test_newgc:1665)A.__init__ [flowgraph] (rpython.translator.c.test.test_newgc:420)f [flowgraph] (rpython.translator.c.test.test_newgc:412)A.__del__ [flowgraph] (rpython.translator.c.test.test_newgc:417)f1 [flowgraph] (rpython.translator.c.test.test_newgc:409)g [flowgraph] (rpython.translator.c.test.test_newgc:460)setup [flowgraph] (rpython.translator.c.test.test_newgc:495)setup [flowgraph] (rpython.memory.test.snippet:92)f_finalizer_order [flowgraph] (rpython.translator.c.test.test_newgc:1414)f_string_builder [flowgraph] (rpython.translator.c.test.test_newgc:1446)f_string_builder_multiple_builds [flowgraph] (rpython.translator.c.test.test_newgc:1462)f_string_builder_multiple_builds_2 [flowgraph] (rpython.translator.c.test.test_newgc:1428)f_string_builder_over_allocation [flowgraph] (rpython.memory.test.snippet:83)build_example [flowgraph] (rpython.memory.test.snippet:64)A.__init__ [flowgraph] (rpython.rlib.rgc:617)register_finalizer [flowgraph] (rpython.memory.test.snippet:71)finalizer_trigger [flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref [flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr [flowgraph] (rpython.rlib.rgc:600)next_dead [flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance [flowgraph] (rpython.translator.c.test.test_newgc:468)measure_length [flowgraph] (rpython.rlib.rgil:171)acquire [flowgraph] (rpython.translator.c.test.test_newgc:217)g [flowgraph] (rpython.rlib.rgc:953)cast_instance_to_gcref [flowgraph] (rpython.flowspace.specialcase:95)rpython_print_newline [flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end [flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw [flowgraph] (rpython.rtyper.lltypesystem.rstr:63)_get_raw_buf [flowgraph] (rpython.rtyper.lltypesystem.rstr:57)_str_ofs [flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr [flowgraph] (rpython.translator.c.test.test_newgc:363)reveal [flowgraph] (rpython.translator.c.test.test_newgc:365)overwrite [flowgraph] (?:2)mallocstr [flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr [flowgraph] (rpython.rlib.rthread:282)gc_thread_run [flowgraph] (rpython.memory.test.snippet:136)error [flowgraph] (rpython.memory.test.snippet:53)age_of [flowgraph] (rpython.rlib.rgc:964)try_cast_gcref_to_instance [flowgraph] (rpython.rtyper.lltypesystem.rffi:1410)scoped_utf82wcharp.__init__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:1418)scoped_utf82wcharp.__enter__ [flowgraph] (rpython.rlib.rutf8:470)codepoints_in_utf8 [flowgraph] (rpython.memory.test.snippet:55)set_age_of [flowgraph] (rpython.rtyper.lltypesystem.rffi:1138)utf82wcharp [flowgraph] (rpython.rlib.rutf8:799)Utf8StringIterator.__init__ [flowgraph] (rpython.rlib.rutf8:804)Utf8StringIterator.__iter__ [flowgraph] (rpython.rlib.objectmodel:766)UnboxedObject.__init__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_deflateInit2_ [flowgraph] (rpython.rlib.rutf8:813)Utf8StringIterator.next [flowgraph] (rpython.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll [flowgraph] (rpython.rlib.rzlib:239)fromstream [flowgraph] (rpython.rtyper.lltypesystem.rffi:854)charp2str [flowgraph] (rpython.rtyper.lltypesystem.rffi:1030)charpsize2str [flowgraph] (rpython.rtyper.lltypesystem.rstr:145)copy_raw_to_string [flowgraph] (rpython.rlib.rzlib:233)RZlibError.__init__ [flowgraph] (rpython.rlib.rzlib:309)deflateEnd [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)deflateEnd [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_deflateEnd [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)wrap_write [flowgraph] (rpython.translator.c.test.test_newgc:2066)UnboxedObject.meth [flowgraph] (rpython.translator.c.test.test_newgc:2054)TaggedBase.meth [flowgraph] (rpython.rlib.rgc:964)try_cast_gcref_to_instance [flowgraph] (rpython.rtyper.lltypesystem.rffi:1433)scoped_nonmovingbuffer.__exit__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_wrap_write [flowgraph] (rpython.rlib.rposix:151)_errno_before [flowgraph] (rpython.rlib.rthread:349)getraw [flowgraph] (rpython.rlib.rthread:349)getraw [flowgraph] (rpython.rlib.rthread:349)getraw [flowgraph] (rpython.rlib.rthread:349)getraw [flowgraph] (rpython.rlib.rposix:170)_errno_after [flowgraph] (rpython.rlib.rgc:964)try_cast_gcref_to_instance [flowgraph] (rpython.rlib.rthread:364)setraw [flowgraph] (rpython.rlib.rthread:364)setraw [flowgraph] (rpython.rlib.rthread:364)setraw [flowgraph] (rpython.rlib.rthread:364)setraw [flowgraph] (rpython.rlib.rwin32:394)GetModuleFileName [flowgraph] (rpython.rlib.rgc:953)cast_instance_to_gcref [flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)GetModuleFileNameA [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_GetModuleFileNameA [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)_wopen [flowgraph] (rpython.rtyper.lltypesystem.rffi:1420)scoped_utf82wcharp.__exit__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:831)free_charp [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall__wopen [flowgraph] (rpython.rlib.rposix:151)_errno_before [flowgraph] (rpython.rlib.clibffi:704)CDLL.__del__ [flowgraph] (rpython.rlib.clibffi:699)CDLL.__init__ [flowgraph] (rpython.rlib.clibffi:675)RawCDLL.getpointer [flowgraph] (rpython.rlib.rposix:170)_errno_after [flowgraph] (rpython.rlib.clibffi:672)RawCDLL.__init__ [flowgraph] (rpython.rlib.rdynload:259)dlclose [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)FreeLibrary [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_FreeLibrary [flowgraph] (rpython.rlib.rdynload:233)dlopen [flowgraph] (rpython.rlib.rdynload:266)dlsym [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)GetProcAddress [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_GetProcAddress [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)LoadLibraryW [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_LoadLibraryW [flowgraph] (rpython.rlib.rposix:151)_errno_before [flowgraph] (rpython.rlib.rdynload:66)DLOpenError.__init__ [flowgraph] (rpython.rlib.rposix:170)_errno_after [flowgraph] (rpython.rlib.clibffi:516)AbstractFuncPtr.__del__ [flowgraph] (rpython.rlib.clibffi:658)FuncPtr.__del__ [flowgraph] (rpython.rlib.clibffi:588)FuncPtr.__init__ [flowgraph] (rpython.rlib.clibffi:480)AbstractFuncPtr.__init__ [flowgraph] (rpython.rlib.clibffi:466)get_call_conv [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_prep_cif [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_prep_cif [flowgraph] (rpython.rlib.rwin32:172)GetLastError_saved [flowgraph] (rpython.rlib.rwin32:311)FormatErrorW [flowgraph] (rpython.rlib.rwin32:348)llimpl_FormatErrorW [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)LocalFree [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_LocalFree [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)FormatMessageW [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_FormatMessageW [flowgraph] (rpython.rtyper.lltypesystem.rffi:1100)wcharpsize2utf8 [flowgraph] (rpython.rlib.rutf8:63)unichr_as_utf8_append [flowgraph] (rpython.rlib.rutf8:80)_nonascii_unichr_as_utf8_append [flowgraph] (rpython.rlib.rutf8:35)OutOfRange.__init__ [flowgraph] (rpython.rlib.clibffi:553)CallbackFuncPtr.__del__ [flowgraph] (rpython.rlib.clibffi:532)CallbackFuncPtr.__init__ [flowgraph] (rpython.rlib.clibffi:610)FuncPtr.push_arg [flowgraph] (rpython.translator.c.test.test_newgc:734)callback [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_prep_closure_loc [flowgraph] (rpython.rlib.clibffi:389)push_arg_as_ffiptr [flowgraph] (?:6)wrapper [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_prep_closure_loc [flowgraph] (rpython.rlib.rgil:183)acquire_maybe_in_new_thread [flowgraph] (rpython.rlib.rthread:124)get_or_make_ident [flowgraph] (rpython.rlib.rthread:356)get_or_make_raw [flowgraph] (rpython.rlib.clibffi:446)ll_callback [flowgraph] (rpython.rlib.rposix:170)_errno_after [flowgraph] (?:1)callback_with_jitdriver [flowgraph] (rpython.rlib.jit:442)get_printable_location [flowgraph] (rpython.rlib.clibffi:433)_ll_callback [flowgraph] (rpython.rlib.rposix:151)_errno_before [flowgraph] (rpython.rlib.clibffi:610)FuncPtr.push_arg [flowgraph] (rpython.rlib.rposix:430)handle_posix_error [flowgraph] (rpython.rlib.rarithmetic:139)widen [flowgraph] (rpython.rlib.rposix:430)handle_posix_error [flowgraph] (rpython.rlib.rposix:113)get_saved_errno [flowgraph] (rpython.rlib.clibffi:389)push_arg_as_ffiptr [flowgraph] (rpython.rlib.rposix:508)close [flowgraph] (rpython.rlib.rposix:255)SuppressIPH.__init__ [flowgraph] (rpython.rlib.rposix:258)SuppressIPH.__enter__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)enter_suppress_iph [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_enter_suppress_iph [flowgraph] (rpython.translator.c.test.test_newgc:892)h [flowgraph] (rpython.translator.c.test.test_newgc:859)g [flowgraph] (rpython.translator.c.test.test_newgc:870)build [flowgraph] (rpython.translator.c.test.test_newgc:880)check [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)_close [flowgraph] (rpython.rlib.rposix:262)SuppressIPH.__exit__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)exit_suppress_iph [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_exit_suppress_iph [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall__close [flowgraph] (rpython.rlib.rposix:151)_errno_before [flowgraph] (rpython.rlib.rposix:170)_errno_after [flowgraph] (rpython.rlib.rposix:430)handle_posix_error [flowgraph] (rpython.rlib.rposix:518)lseek [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)_lseeki64 [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall__lseeki64 [flowgraph] (rpython.rlib.rposix:151)_errno_before [flowgraph] (rpython.rlib.rposix:170)_errno_after [flowgraph] (rpython.rlib.rposix:430)handle_posix_error [flowgraph] (rpython.rlib.rposix:490)read [flowgraph] (rpython.rtyper.lltypesystem.rffi:1469)scoped_alloc_buffer.__init__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:1471)scoped_alloc_buffer.__enter__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:953)alloc_buffer [flowgraph] (rpython.rtyper.lltypesystem.rffi:1474)scoped_alloc_buffer.__exit__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:1008)keep_buffer_alive_until_here [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)wrap_read [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_wrap_read [flowgraph] (rpython.rlib.rposix:151)_errno_before [flowgraph] (rpython.rlib.rposix:170)_errno_after [flowgraph] (rpython.rlib.rposix:430)handle_posix_error [flowgraph] (rpython.rtyper.lltypesystem.rffi:1476)scoped_alloc_buffer.str [flowgraph] (?:2)str_from_buffer [flowgraph] (rpython.rtyper.lltypesystem.rffi:988)str_from_buffer [flowgraph] (rpython.rlib.clibffi:550)CallbackFuncPtr.get_closure [flowgraph] (rpython.rlib.clibffi:638)FuncPtr.call [flowgraph] (rpython.rlib.clibffi:631)FuncPtr._check_args [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_call [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_call [flowgraph] (rpython.rlib.rposix:151)_errno_before [flowgraph] (rpython.rlib.rposix:170)_errno_after [flowgraph] (rpython.rlib.clibffi:635)FuncPtr._clean_args [flowgraph] (rpython.rlib.clibffi:263)check_fficall_result [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo_sizeof_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo_has_final_null_char_0 [flowgraph] (?:1)memo__contains_gcptr_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo__contains_gcptr_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo_offsetof_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo_CArray_0 [flowgraph] (?:1)memo_sizeof_0 [flowgraph] (?:1)memo_CArray_0 [flowgraph] (?:1)memo_sizeof_0 [flowgraph] (?:1)memo_sizeof_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__make_wrapper_for_0 [flowgraph] (?:1)memo__should_widen_type_0 [flowgraph] (?:1)memo_CArray_0 [flowgraph] (?:1)memo_sizeof_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [translation:info] RTyping... [flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info [flowgraph] (rpython.rtyper.rlist:690)ll_getitem_nonneg [flowgraph] (rpython.rtyper.rlist:719)ll_getitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items [flowgraph] (rpython.rtyper.lltypesystem.rstr:1058)ll_int [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem [flowgraph] (rpython.rtyper.lltypesystem.rstr:394)ll_strhash [flowgraph] (rpython.rlib.jit:1321)conditional_call_elidable [flowgraph] (rpython.rtyper.lltypesystem.rstr:402)_ll_strhash [flowgraph] (rpython.rlib.objectmodel:620)ll_hash_string [flowgraph] (rpython.rlib.objectmodel:595)_hash_string [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash [flowgraph] (?:11)ll_call_lookup_function_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed [flowgraph] (rpython.rtyper.lltypesystem.rstr:420)ll_strfasthash [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:602)ll_valid_from_key [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes [flowgraph] (rpython.rlib.rgc:508)ll_arrayclear [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.rlib.rgc:508)ll_arrayclear [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.rlib.rgc:508)ll_arrayclear [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.rlib.rgc:508)ll_arrayclear [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (?:2)ll_call_lookup_function_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rstr:601)ll_streq [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_create_initial_index_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (?:1)memo__ll_ptr_to_array_of_0 [flowgraph] (?:1)memo__ll_ptr_to_array_of_0 [flowgraph] (?:1)memo__ll_ptr_to_array_of_0 [flowgraph] (?:1)memo__ll_ptr_to_array_of_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (rpython.rtyper.rlist:690)ll_getitem_nonneg [flowgraph] (rpython.rtyper.rlist:723)ll_getitem_foldable_nonneg [flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter [flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext [flowgraph] (rpython.rtyper.rlist:590)ll_append [flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length [flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:1300)conditional_call [flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rlist:198) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really [flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)_ll_list_resize_hint_really_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really [flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items [flowgraph] (?:1)memo__ll_prebuilt_empty_array_0 [flowgraph] (?:1)memo__contains_gcptr_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (rpython.rtyper.rlist:690)ll_getitem_nonneg [flowgraph] (rpython.rtyper.rlist:723)ll_getitem_foldable_nonneg [flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast [flowgraph] (rpython.rtyper.rint:149)ll_str [flowgraph] (rpython.rtyper.lltypesystem.ll_str:13)ll_int2dec [flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned [flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange [flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter [flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist [flowgraph] (rpython.rtyper.rlist:728)ll_setitem_nonneg [flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist [flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array [flowgraph] (?:1)memo__ll_prebuilt_empty_array_0 [flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist [flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array [flowgraph] (?:1)memo__ll_prebuilt_empty_array_0 [flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter [flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set [flowgraph] (rpython.rlib.rarithmetic:741)int_force_ge_zero [flowgraph] (rpython.rtyper.rlist:510)_ll_alloc_and_set_jit [flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null [flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit [flowgraph] (rpython.rtyper.lltypesystem.rlist:324)ll_newlist [flowgraph] (rpython.rtyper.rlist:522)_ll_alloc_and_clear [flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items [flowgraph] (rpython.rlib.rgc:508)ll_arrayclear [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set [flowgraph] (rpython.rtyper.rlist:510)_ll_alloc_and_set_jit [flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null [flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit [flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist [flowgraph] (rpython.rtyper.rlist:522)_ll_alloc_and_clear [flowgraph] (rpython.rtyper.lltypesystem.rlist:399)ll_fixed_items [flowgraph] (?:11)_ll_alloc_and_set_nonnull_look_inside_iff [flowgraph] (rpython.rtyper.rlist:530) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.rlist:530)_ll_alloc_and_set_nonnull [flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast [flowgraph] (rpython.rlib.rgc:508)ll_arrayclear [flowgraph] (rpython.rlib.rgc:538)ll_arrayfill [flowgraph] (?:2)_ll_alloc_and_set_nonnull_trampoline [flowgraph] (rpython.rtyper.rlist:530)_ll_alloc_and_set_nonnull [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (rpython.rtyper.rlist:582)ll_len_foldable [flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length [flowgraph] (rpython.rtyper.rlist:690)ll_getitem_nonneg [flowgraph] (rpython.rtyper.rlist:723)ll_getitem_foldable_nonneg [flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast [flowgraph] (rpython.rtyper.rlist:1001)ll_listcontains [flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length [flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast [flowgraph] (rpython.rtyper.rlist:728)ll_setitem_nonneg [flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash [flowgraph] (rpython.rtyper.rlist:582)ll_len_foldable [flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length [flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist [flowgraph] (rpython.rtyper.rrange:172)ll_rangenext_up [flowgraph] (?:11)ll_join_chars_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rstr:821) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (?:2)ll_join_chars_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars [flowgraph] (rpython.rtyper.rint:502)ll_int_py_mod_nonnegargs [flowgraph] (rpython.rtyper.rlist:590)ll_append [flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length [flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:1300)conditional_call [flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rlist:198) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)_ll_list_resize_hint_really_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really [flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast [flowgraph] (?:1)memo__contains_gcptr_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (rpython.rtyper.lltypesystem.rlist:391)ll_fixed_newemptylist [flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist [flowgraph] (rpython.rtyper.lltypesystem.rtagged:155)ll_unboxed_getclass [flowgraph] (rpython.rtyper.rlist:690)ll_getitem_nonneg [flowgraph] (rpython.rtyper.rlist:723)ll_getitem_foldable_nonneg [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:648)ll_dict_len [flowgraph] (rpython.rtyper.rlist:582)ll_len_foldable [flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:640)ll_keyhash_custom [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash [flowgraph] (?:11)ll_call_lookup_function_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:625)ll_hash_from_cache [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:644)ll_keyeq_custom [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:602)ll_valid_from_key [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes [flowgraph] (?:2)ll_call_lookup_function_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_create_initial_index_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter [flowgraph] (rpython.rtyper.lltypesystem.rlist:484)ll_listnext_foldable [flowgraph] (rpython.rtyper.lltypesystem.rstr:425)ll_strconcat [flowgraph] (rpython.rtyper.lltypesystem.rstr:416)ll_length [flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents [flowgraph] (rpython.rtyper.rlist:590)ll_append [flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length [flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:1300)conditional_call [flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rlist:198) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)_ll_list_resize_hint_really_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really [flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index [flowgraph] (?:1)memo__ll_empty_array_0 [flowgraph] (rpython.rtyper.rlist:574)ll_len [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:648)ll_dict_len [flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen [rtyper] specializing: 200 / 3478 blocks (5%) [flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash [flowgraph] (rpython.rtyper.rtuple:62)ll_hash [flowgraph] (rpython.rtyper.rnone:42)ll_none_hash [flowgraph] (rpython.rtyper.rtuple:62)ll_hash [flowgraph] (rpython.rlib.objectmodel:623)_hash_float [flowgraph] (rpython.rtyper.rint:619)ll_hash_int [flowgraph] (rpython.rtyper.lltypesystem.rlist:484)ll_listnext_foldable [flowgraph] (?:11)ll_join_strs_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rstr:785) [flowgraph] (rpython.rlib.jit:294)loop_unrolling_heuristic [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs [flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (?:2)ll_join_strs_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs [flowgraph] (rpython.rtyper.lltypesystem.rlist:476)ll_listnext [flowgraph] (rpython.rtyper.lltypesystem.rstr:333)ll_char_mul [flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist [flowgraph] (rpython.rtyper.rlist:728)ll_setitem_nonneg [flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter [flowgraph] (rpython.rtyper.lltypesystem.rlist:476)ll_listnext [flowgraph] (rpython.rtyper.rlist:590)ll_append [flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length [flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:1300)conditional_call [flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rlist:198) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really [flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)_ll_list_resize_hint_really_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really [flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast [flowgraph] (?:1)memo__ll_prebuilt_empty_array_0 [flowgraph] (?:1)memo__contains_gcptr_0 [flowgraph] (rpython.rtyper.rlist:574)ll_len [flowgraph] (rpython.rtyper.rlist:699)ll_getitem [flowgraph] (rpython.rtyper.rlist:719)ll_getitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rlist:493)ll_getnextindex [flowgraph] (rpython.rlib.rerased:196)ll_unerase_int [rtyper] specializing: 400 / 3664 blocks (10%) [flowgraph] (rpython.rtyper.rlist:690)ll_getitem_nonneg [flowgraph] (rpython.rtyper.rlist:723)ll_getitem_foldable_nonneg [flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast [flowgraph] (rpython.translator.c.test.test_newgc:491)customlightfinlz [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:445)ll_new [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:178)ll_append_char [flowgraph] (rpython.rlib.jit:1300)conditional_call [flowgraph] (?:2)ll_grow_by [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:94)ll_grow_by [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:155)ll_append [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:163)ll_jit_append [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:233)ll_jit_try_append_slice [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:80)_ll_append [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:117)ll_grow_and_append [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:171)ll_append_res0 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_2 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_2 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_3 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_3 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_4 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_4 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_5 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_5 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_6 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_6 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_7 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_7 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_8 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_8 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_9 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_9 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_10 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_10 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:189)ll_append_slice [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:197)ll_jit_append_slice [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:205)ll_append_res_slice [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:275)ll_append_multiple_char [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:299)ll_jit_try_append_multiple_char [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:282)_ll_append_multiple_char [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:11)ll_build_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:374)ll_fold_pieces [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:346)ll_getlength [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:365)ll_shrink_final [flowgraph] (?:2)ll_build_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build [flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange [flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter [flowgraph] (rpython.rtyper.lltypesystem.rstr:539)ll_join [flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr [flowgraph] (?:1)memo_emptystrfun_0 [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index [flowgraph] (?:1)memo__ll_empty_array_0 [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem [flowgraph] (rpython.rtyper.rstr:937)ll_char_hash [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash [flowgraph] (?:11)ll_call_lookup_function_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:607)ll_valid_from_value [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (?:2)ll_call_lookup_function_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_create_initial_index_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done [flowgraph] (?:11)ll_dict_grow_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:745)_overallocate_entries_len [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function [flowgraph] (?:2)ll_dict_grow_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow [flowgraph] (?:1)memo__contains_gcptr_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash [flowgraph] (rpython.rtyper.lltypesystem.rlist:493)ll_getnextindex [flowgraph] (rpython.rtyper.rlist:690)ll_getitem_nonneg [flowgraph] (?:11)ll_listdelslice_startonly_look_inside_iff [flowgraph] (rpython.rtyper.rlist:914) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.rlist:914)ll_listdelslice_startonly [flowgraph] (rpython.rtyper.rlist:541)ll_null_item [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)ll_listdelslice_startonly_trampoline [flowgraph] (rpython.rtyper.rlist:914)ll_listdelslice_startonly [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:1300)conditional_call [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash [flowgraph] (?:11)ll_call_lookup_function_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (?:2)ll_call_lookup_function_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_create_initial_index_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done [flowgraph] (?:11)ll_dict_grow_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function [flowgraph] (?:2)ll_dict_grow_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow [flowgraph] (?:1)memo__contains_gcptr_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (rpython.rtyper.rstr:555)ll_str [flowgraph] (rpython.rtyper.lltypesystem.rstr:362)ll_chr2str [flowgraph] (rpython.rtyper.rlist:1001)ll_listcontains [flowgraph] (rpython.rtyper.rstr:426)ll_str [flowgraph] (?:1)memo_ll_constant_0 [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index [flowgraph] (?:1)memo__ll_empty_array_0 [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1218)ll_dictiter [flowgraph] (?:11)_ll_dictnext_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)_ll_dictnext [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (?:2)_ll_dictnext_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)_ll_dictnext [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1462)ll_dict_contains [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1465)ll_dict_contains_with_hash [flowgraph] (?:11)ll_call_lookup_function_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (?:2)ll_call_lookup_function_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_create_initial_index_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (rpython.rtyper.rlist:699)ll_getitem [flowgraph] (rpython.rtyper.rlist:719)ll_getitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash [flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done [flowgraph] (?:11)ll_dict_grow_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function [flowgraph] (?:2)ll_dict_grow_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow [flowgraph] (?:1)memo__contains_gcptr_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (rpython.rtyper.lltypesystem.rstr:354)ll_stritem_nonneg [flowgraph] (rpython.rtyper.rlist:737)ll_setitem [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash [rtyper] specializing: 900 / 5801 blocks (15%) [flowgraph] (rpython.rtyper.rlist:582)ll_len_foldable [flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length [flowgraph] (rpython.rtyper.rlist:690)ll_getitem_nonneg [flowgraph] (rpython.rtyper.rlist:723)ll_getitem_foldable_nonneg [flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast [rtyper] specializing: 1200 / 5812 blocks (20%) [flowgraph] (rpython.rtyper.rclass:870)ll_str [flowgraph] (rpython.rtyper.lltypesystem.ll_str:47)ll_int2hex [flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned [flowgraph] (?:1)memo_conststr_0 [flowgraph] (?:1)memo_conststr_0 [flowgraph] (?:1)memo_conststr_0 [flowgraph] (?:1)memo_conststr_0 [flowgraph] (rpython.rtyper.rint:410)ll_int_py_div_nonnegargs [rtyper] specializing: 1500 / 5846 blocks (25%) [flowgraph] (?:11)ll_listeq_look_inside_iff [flowgraph] (rpython.rtyper.rlist:972)listeq_unroll_case [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.rlist:979)ll_listeq [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (?:2)ll_listeq_trampoline [flowgraph] (rpython.rtyper.rlist:979)ll_listeq [rtyper] specializing: 1800 / 5882 blocks (30%) [rtyper] specializing: 2100 / 5882 blocks (35%) [rtyper] specializing: 2400 / 5882 blocks (40%) [flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div [flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod [rtyper] specializing: 2700 / 5886 blocks (45%) [rtyper] specializing: 3000 / 5886 blocks (50%) [rtyper] specializing: 3300 / 5886 blocks (56%) [flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:106)ll_math_isfinite [flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:98)ll_math_isinf [flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:158)ll_math_frexp [rtyper] specializing: 3600 / 5886 blocks (61%) [flowgraph] (rpython.rtyper.rbuiltin:240)ll_min [rtyper] specializing: 3900 / 5888 blocks (66%) [rtyper] specializing: 4200 / 5888 blocks (71%) [flowgraph] (rpython.rtyper.rint:398)ll_int_py_div [flowgraph] (rpython.rtyper.rbuiltin:240)ll_min [rtyper] specializing: 4500 / 5895 blocks (76%) [rtyper] specializing: 4800 / 5895 blocks (81%) [rtyper] specializing: 5100 / 5895 blocks (86%) [rtyper] specializing: 5400 / 5895 blocks (91%) [rtyper] specializing: 5700 / 5895 blocks (96%) [rtyper] -=- specialized 5895 blocks -=- [flowgraph] (rpython.rlib.objectmodel:397)revdb_flag_io_disabled [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)_finite [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall__finite [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)frexp [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_frexp [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)_isnan [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall__isnan [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [rtyper] specializing: 5900 / 5947 blocks (99%) [rtyper] -=- specialized 52 more blocks -=- [rtyper] -=- specialized 0 more blocks -=- [flowgraph] (rpython.rtyper.rclass:1130)ll_type [rtyper] -=- specialized 2 more blocks -=- [translation:info] usession directory: c:\users\runner~1\appdata\local\temp\usession-pypy-HEAD-12 [translation:info] already done: Annotating&simplifying [translation:info] already done: RTyping [translation:info] inserting stack checks... [flowgraph] (rpython.rlib.rstack:42)stack_check [flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath [rtyper] -=- specialized 8 more blocks -=- [translation:info] inserted 16 stack checks. [translation:info] Creating database for generating c source... [flowgraph] (rpython.translator.exceptiontransform:100)rpyexc_occurred [flowgraph] (rpython.translator.exceptiontransform:104)rpyexc_fetch_type [flowgraph] (rpython.translator.exceptiontransform:107)rpyexc_fetch_value [flowgraph] (rpython.translator.exceptiontransform:110)rpyexc_clear [flowgraph] (rpython.translator.exceptiontransform:114)rpyexc_raise [flowgraph] (rpython.translator.exceptiontransform:128)rpyexc_reraise [flowgraph] (rpython.translator.exceptiontransform:133)rpyexc_fetch_exception [flowgraph] (rpython.translator.exceptiontransform:138)rpyexc_restore_exception [flowgraph] (rpython.translator.exceptiontransform:539)rpyexc_get_exception_addr [flowgraph] (rpython.translator.exceptiontransform:543)rpyexc_get_exc_value_addr [flowgraph] (rpython.rtyper.rclass:1173)ll_inst_type [rtyper] -=- specialized 25 more blocks -=- [flowgraph] (rpython.memory.gctransform.transform:447)_ll_malloc_fixedsize [flowgraph] (rpython.memory.gctransform.transform:454)_ll_malloc_fixedsize_zero [flowgraph] (rpython.memory.gctransform.transform:470)_ll_malloc_varsize_no_length [flowgraph] (rpython.memory.gctransform.transform:487)ll_malloc_varsize [flowgraph] (rpython.memory.gctransform.transform:493)_ll_malloc_varsize_no_length_zero [flowgraph] (rpython.memory.gctransform.framework:178)frameworkgc_setup [flowgraph] (rpython.memory.gctransform.framework:184)frameworkgc__teardown [flowgraph] (rpython.memory.gctransform.shadowstack:80)incr_stack [flowgraph] (rpython.memory.gctransform.shadowstack:86)decr_stack [flowgraph] (rpython.memory.gctypelayout:594)ll_weakref_deref [flowgraph] (rpython.memory.gc.minimark:520)MiniMarkGC.malloc_fixedsize_clear [flowgraph] (rpython.memory.gc.minimark:575)MiniMarkGC.malloc_varsize_clear [flowgraph] (rpython.memory.gc.minimark:637)MiniMarkGC.collect [flowgraph] (rpython.memory.gc.base:165)GCBase.collect_step [flowgraph] (rpython.memory.gc.base:156)GCBase.enable [flowgraph] (rpython.memory.gc.base:159)GCBase.disable [flowgraph] (rpython.memory.gc.base:162)GCBase.isenabled [flowgraph] (rpython.memory.gc.minimark:849)MiniMarkGC.can_move [flowgraph] (rpython.memory.gc.minimark:854)MiniMarkGC.shrink_array [flowgraph] (rpython.memory.gc.base:149)GCBase.get_type_id_cast [flowgraph] (rpython.memory.gc.minimark:1193)MiniMarkGC.writebarrier_before_copy [flowgraph] (rpython.memory.gc.minimark:1239)MiniMarkGC.writebarrier_before_move [flowgraph] (rpython.memory.gc.minimark:520)MiniMarkGC.malloc_fast [flowgraph] (rpython.memory.gc.minimark:575)MiniMarkGC.malloc_varsize_clear_fast [flowgraph] (rpython.memory.gctransform.framework:411)raw_malloc_memory_pressure_varsize [flowgraph] (rpython.memory.gctransform.framework:417)raw_malloc_memory_pressure [flowgraph] (rpython.memory.gc.minimark:1914)MiniMarkGC.identityhash [flowgraph] (rpython.memory.gc.minimark:1911)MiniMarkGC.id [flowgraph] (rpython.memory.gc.inspector:32)get_rpy_roots [flowgraph] (rpython.memory.gc.inspector:63)get_rpy_referents [flowgraph] (rpython.memory.gc.inspector:76)get_rpy_memory_usage [flowgraph] (rpython.memory.gc.inspector:79)get_rpy_type_index [flowgraph] (rpython.memory.gc.inspector:83)is_rpy_instance [flowgraph] (rpython.memory.gc.inspector:265)dump_rpy_heap [flowgraph] (rpython.memory.gc.inspector:281)get_typeids_z [flowgraph] (rpython.memory.gc.inspector:285)get_typeids_list [flowgraph] (rpython.memory.gc.minimark:828)MiniMarkGC.set_max_heap_size [flowgraph] (rpython.memory.gc.minimark:1065)MiniMarkGC.write_barrier [flowgraph] (rpython.memory.gc.minimark:1082)remember_young_pointer [flowgraph] (rpython.memory.gc.minimark:1069)MiniMarkGC.write_barrier_from_array [flowgraph] (rpython.memory.gc.minimark:1171)jit_remember_young_pointer_from_array [flowgraph] (rpython.memory.gc.minimark:631)MiniMarkGC.malloc_fixed_or_varsize_nonmovable [flowgraph] (rpython.memory.gc.minimark:1272)MiniMarkGC.register_finalizer [flowgraph] (rpython.memory.gctransform.shadowstack:258)gc_increase_root_stack_depth [flowgraph] (rpython.memory.gctransform.shadowstack:351)ShadowStackPool.increase_root_stack_depth [flowgraph] (rpython.memory.gc.minimark:695)MiniMarkGC.external_malloc [flowgraph] (rpython.memory.gc.minimark:887)MiniMarkGC.combine [flowgraph] (rpython.memory.gc.base:130)GCBase.header [flowgraph] (rpython.memory.gc.minimark:1123)remember_young_pointer_from_array2 [flowgraph] (rpython.memory.support:122)AddressStack.append [flowgraph] (rpython.memory.gc.minimark:1187)MiniMarkGC.get_card [flowgraph] (rpython.memory.gc.inspector:201)HeapDumper.__init__ [flowgraph] (rpython.memory.gc.inspector:173)BaseWalker.process [flowgraph] (rpython.memory.gc.inspector:112)BaseWalker.add_roots [flowgraph] (rpython.memory.gc.inspector:99)BaseWalker.__init__ [flowgraph] (rpython.memory.support:307)AddressDict [flowgraph] (rpython.memory.lldict:17)newdict [flowgraph] (rpython.rtyper.lltypesystem.rdict:667)ll_newdict_size [flowgraph] (rpython.memory.lldict:20)dict_allocate [flowgraph] (rpython.memory.support:101)AddressStack.__init__ [flowgraph] (rpython.memory.support:40)FreeList.get [flowgraph] (rpython.memory.gc.minimark:883)MiniMarkGC.get_type_id [flowgraph] (rpython.memory.gc.base:118)GCBase.get_member_index [flowgraph] (rpython.memory.gctypelayout:131)GCData.q_member_index [flowgraph] (rpython.memory.gctypelayout:59)GCData.get [flowgraph] (rpython.memory.gctypelayout:204)_check_valid_type_info [flowgraph] (rpython.memory.gc.base:152)GCBase.get_size_incl_hash [flowgraph] (rpython.memory.gc.base:146)GCBase.get_size [flowgraph] (rpython.memory.gc.base:134)GCBase._get_size_for_typeid [flowgraph] (rpython.memory.gctypelayout:110)GCData.q_fixed_size [flowgraph] (rpython.memory.gc.inspector:56)_do_append_rpy_referents [flowgraph] (rpython.memory.gc.base:259)GCBase.trace [flowgraph] (rpython.memory.gctypelayout:143)GCData.q_fast_path_tracing [flowgraph] (rpython.memory.gc.inspector:25)_do_append_rpy_roots [flowgraph] (rpython.memory.gc.minimark:1803)MiniMarkGC.enumerate_all_roots [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.inspector:14)_append_rpy_root [flowgraph] (rpython.memory.gc.minimark:1900)MiniMarkGC.id_or_identityhash [flowgraph] (rpython.memory.gc.base:380)GCBase.is_valid_gc_object [flowgraph] (rpython.memory.gc.minimark:836)MiniMarkGC.raw_malloc_memory_pressure [flowgraph] (rpython.rtyper.lltypesystem.llarena:365)round_up_for_allocation [flowgraph] (rpython.memory.gc.minimark:653)MiniMarkGC.collect_and_reserve [flowgraph] (rpython.memory.gc.minimark:1282)MiniMarkGC.minor_collection [flowgraph] (?:2)debug_start [flowgraph] (rpython.rlib.debug:126)debug_start [flowgraph] (rpython.memory.gc.minimark:890)MiniMarkGC.init_gc_object [flowgraph] (rpython.memory.gc.minimark:1251)MiniMarkGC.manually_copy_card_bits [flowgraph] (rpython.memory.gc.minimark:976)MiniMarkGC.card_marking_bytes_for_length [flowgraph] (rpython.memory.gc.minimark:903)MiniMarkGC.is_in_nursery [flowgraph] (rpython.memory.gc.base:64)GCBase._teardown [flowgraph] (rpython.memory.gctransform.shadowstack:108)setup_root_walker [flowgraph] (rpython.memory.gctransform.shadowstack:288)ShadowStackPool.initial_setup [flowgraph] (rpython.memory.gctransform.shadowstack:344)ShadowStackPool._prepare_unused_stack [flowgraph] (rpython.memory.gctransform.shadowstack:335)ShadowStackPool.start_fresh_new_state [flowgraph] (rpython.memory.gc.base:385)GCBase.enumerate_all_roots [flowgraph] (rpython.memory.gctypelayout:135)GCData.q_is_rpython_class [flowgraph] (rpython.memory.lldict:29)dict_allocate_entries [flowgraph] (rpython.memory.gc.minimark:1803)MiniMarkGC.enumerate_all_roots [flowgraph] (rpython.memory.support:108)AddressStack.enlarge [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.inspector:259)_hd_add_root [flowgraph] (rpython.memory.gc.inspector:123)BaseWalker.add [flowgraph] (rpython.memory.gctransform.framework:1758)walk_roots [flowgraph] (rpython.memory.gc.base:377)GCBase.points_to_valid_gc_object [flowgraph] (rpython.memory.gc.base:600)callback2 [flowgraph] (rpython.memory.gctransform.shadowstack:112)walk_stack_roots [flowgraph] (rpython.memory.gc.minimark:1883)MiniMarkGC._find_shadow [flowgraph] (rpython.memory.gc.minimark:1859)MiniMarkGC._allocate_shadow [flowgraph] (rpython.memory.gctransform.shadowstack:43)walk_stack_root [flowgraph] (rpython.memory.support:10)mangle_hash [flowgraph] (rpython.memory.gc.base:385)GCBase.enumerate_all_roots [flowgraph] (rpython.memory.gctransform.shadowstack:93) [flowgraph] (rpython.memory.gctypelayout:113)GCData.q_varsize_item_sizes [flowgraph] (rpython.memory.gctypelayout:73)GCData.q_is_varsize [flowgraph] (rpython.memory.gctypelayout:66)GCData.get_varsize [flowgraph] (rpython.memory.gctypelayout:207)_check_valid_type_info_varsize [flowgraph] (rpython.memory.gctypelayout:107)GCData.q_offsets_to_gc_pointers [flowgraph] (rpython.memory.gctypelayout:85)GCData.q_is_gcarrayofgcptr [flowgraph] (rpython.memory.gc.inspector:44)_append_rpy_referent [flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path [flowgraph] (rpython.memory.gctypelayout:77)GCData.q_has_gcptr_in_varsize [flowgraph] (rpython.memory.gctypelayout:119)GCData.q_varsize_offset_to_length [flowgraph] (rpython.memory.gctypelayout:139)GCData.q_has_custom_trace [flowgraph] (rpython.memory.gctypelayout:116)GCData.q_varsize_offset_to_variable_part [flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.gctypelayout:122)GCData.q_varsize_offsets_to_gcpointers_in_var_part [flowgraph] (rpython.memory.gc.base:600)callback2 [flowgraph] (rpython.memory.gctransform.shadowstack:376)ShadowStackPool._resize [flowgraph] (rpython.memory.gc.minimark:961)MiniMarkGC.get_total_memory_used [flowgraph] (rpython.memory.gctransform.framework:1754)setup_root_walker [flowgraph] (rpython.memory.gc.minimark:1582)MiniMarkGC._malloc_out_of_nursery [flowgraph] (rpython.memory.gc.minimarkpage:154)ArenaCollection.malloc [flowgraph] (rpython.memory.gc.minimarkpage:197)ArenaCollection.allocate_new_page [flowgraph] (rpython.memory.gc.minimarkpage:278)ArenaCollection.allocate_new_arena [flowgraph] (rpython.memory.gc.minimarkpage:259)ArenaCollection._pick_next_arena [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.memory.gc.minimarkpage:604)_dummy_size [flowgraph] (rpython.memory.gc.minimark:1593)MiniMarkGC._malloc_out_of_nursery_nonsmall [flowgraph] (rpython.rtyper.lltypesystem.rdict:866)ll_contains [flowgraph] (rpython.memory.lldict:47)dict_keyhash [flowgraph] (rpython.memory.lldict:44)_hash [flowgraph] (rpython.memory.gc.minimarkpage:386)ArenaCollection._rehash_arenas_lists [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rdict:576) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rdict:576)ll_dict_lookup [flowgraph] (rpython.memory.lldict:50)dict_entry_valid [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.memory.gc.minimarkpage:589)start_of_page [flowgraph] (rpython.memory.gc.minimarkpage:611)out_of_memory [flowgraph] (rpython.rtyper.debug:49)fatalerror [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rdict:576)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.memory.gc.minimark:302)MiniMarkGC.setup [flowgraph] (rpython.memory.gc.minimark:1808)MiniMarkGC.enum_live_with_finalizers [flowgraph] (rpython.memory.gc.minimark:1808)MiniMarkGC.enum_live_with_finalizers [flowgraph] (rpython.memory.gc.base:45)GCBase.setup [flowgraph] (rpython.memory.support:228)AddressDeque.__init__ [flowgraph] (rpython.memory.support:314)null_address_dict [flowgraph] (rpython.rtyper.lltypesystem.rdict:459)ll_dict_setitem [flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rdict:466) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rdict:466)_ll_dict_setitem_lookup_done [flowgraph] (rpython.rtyper.lltypesystem.rdict:544)ll_dict_resize [flowgraph] (rpython.rtyper.lltypesystem.rdict:554)_ll_dict_resize_to [flowgraph] (rpython.memory.lldict:53)dict_entry_hash [flowgraph] (rpython.memory.lldict:40)dict_delete_entries [flowgraph] (rpython.memory.gc.minimark:1359)MiniMarkGC.collect_roots_in_nursery [flowgraph] (?:2)debug_stop [flowgraph] (rpython.rlib.debug:137)debug_stop [flowgraph] (rpython.memory.gc.minimark:430)MiniMarkGC.allocate_nursery [flowgraph] (rpython.memory.gc.minimark:420)MiniMarkGC._alloc_nursery [flowgraph] (rpython.memory.gc.minimark:416)MiniMarkGC._nursery_memory_size [flowgraph] (rpython.rtyper.lltypesystem.rdict:495)ll_dict_insertclean [flowgraph] (rpython.memory.lldict:56)dict_get [flowgraph] (rpython.memory.support:272)AddressDeque.foreach [flowgraph] (rpython.memory.support:272)AddressDeque.foreach [flowgraph] (rpython.memory.support:250)AddressDeque.append [flowgraph] (rpython.rtyper.lltypesystem.rdict:735)ll_get [flowgraph] (rpython.rtyper.lltypesystem.rdict:434)ll_get_value [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rdict:639)ll_dict_lookup_clean [flowgraph] (rpython.memory.gc.minimark:454)MiniMarkGC.set_major_threshold_from [flowgraph] (rpython.memory.support:235)AddressDeque.enlarge [flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rdict:466)_ll_dict_setitem_lookup_done [flowgraph] (rpython.memory.support:258)AddressDeque.non_empty [flowgraph] (rpython.memory.gc.minimark:643)MiniMarkGC.move_nursery_top [flowgraph] (rpython.memory.gc.minimark:967)MiniMarkGC.card_marking_words_for_length [flowgraph] (rpython.memory.lldict:59)dict_add [flowgraph] (rpython.memory.gc.minimark:1950)MiniMarkGC.deal_with_young_objects_with_finalizers [flowgraph] (rpython.memory.support:262)AddressDeque.popleft [flowgraph] (rpython.memory.gc.minimark:1372)MiniMarkGC.collect_cardrefs_to_nursery [flowgraph] (rpython.memory.support:130)AddressStack.non_empty [flowgraph] (rpython.memory.gc.minimark:1475)MiniMarkGC._trace_drag_out1 [flowgraph] (rpython.memory.support:243)AddressDeque.shrink [flowgraph] (rpython.memory.support:52)FreeList.put [flowgraph] (rpython.memory.gc.minimark:1478)MiniMarkGC._trace_drag_out [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.memory.gc.minimark:938)MiniMarkGC.is_forwarded [flowgraph] (rpython.memory.gc.minimark:1553)MiniMarkGC._visit_young_rawmalloced_object [flowgraph] (rpython.memory.support:133)AddressStack.pop [flowgraph] (rpython.memory.support:115)AddressStack.shrink [flowgraph] (rpython.memory.gctypelayout:81)GCData.q_has_gcptr [flowgraph] (rpython.memory.gc.minimark:953)MiniMarkGC.get_forwarding_address [flowgraph] (rpython.memory.gc.minimark:1464)MiniMarkGC.trace_and_drag_out_of_nursery_partial [flowgraph] (rpython.memory.gc.base:343)GCBase.trace_partial [flowgraph] (rpython.memory.gc.base:252)gc_callback__trace_drag_out [flowgraph] (rpython.memory.gc.minimark:1436)MiniMarkGC.collect_oldrefs_to_nursery [flowgraph] (rpython.memory.gc.minimark:1458)MiniMarkGC.trace_and_drag_out_of_nursery [flowgraph] (rpython.memory.gc.base:259)GCBase.trace [flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path [flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.gc.minimark:2071)MiniMarkGC.invalidate_young_weakrefs [flowgraph] (rpython.memory.gctypelayout:125)GCData.q_weakpointer_offset [flowgraph] (rpython.memory.gc.minimark:1920)MiniMarkGC.deal_with_young_objects_with_destructors [flowgraph] (rpython.memory.gc.base:437)GCBase.call_destructor [flowgraph] (rpython.memory.gctypelayout:98)GCData.q_destructor_or_custom_trace [flowgraph] (rpython.rtyper.lltypesystem.rdict:445)ll_dict_len [flowgraph] (rpython.rtyper.lltypesystem.rdict:774)ll_clear [flowgraph] (rpython.memory.gc.minimark:1608)MiniMarkGC.free_young_rawmalloced_objects [flowgraph] (rpython.memory.lldict:65)dict_foreach [flowgraph] (rpython.memory.gc.minimark:1614)MiniMarkGC._free_young_rawmalloced_obj [flowgraph] (rpython.memory.gc.minimark:1749)MiniMarkGC.free_rawmalloced_object_if_unvisited [flowgraph] (rpython.memory.gc.minimark:496)MiniMarkGC.debug_rotate_nursery [flowgraph] (rpython.memory.lldict:24)dict_delete [flowgraph] (rpython.memory.gc.minimark:1635)MiniMarkGC.major_collection [flowgraph] (rpython.memory.gc.minimark:985)MiniMarkGC.debug_check_consistency [flowgraph] (rpython.memory.gc.minimark:1786)MiniMarkGC.collect_roots [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.minimark:1813)_collect_obj [flowgraph] (rpython.memory.gc.base:401)GCBase.enum_pending_finalizers [flowgraph] (rpython.memory.support:272)AddressDeque.foreach [flowgraph] (rpython.memory.gctypelayout:94)GCData.q_finalizer_handlers [flowgraph] (rpython.memory.gc.env:38)read_from_env [flowgraph] (rpython.memory.gc.base:401)GCBase.enum_pending_finalizers [flowgraph] (rpython.memory.gc.base:401)GCBase.enum_pending_finalizers [flowgraph] (rpython.memory.gc.base:482)GCBase._adr2deque [flowgraph] (rpython.rtyper.annlowlevel:546)cast_adr_to_nongc_instance [flowgraph] (rpython.memory.gc.env:17)_read_float_and_factor_from_env [flowgraph] (rpython.rtyper.controllerentry:80)getattr [flowgraph] (rpython.rlib.rposix_environ:66)get_get [flowgraph] (rpython.memory.gc.minimark:1825)MiniMarkGC.visit_all_objects [flowgraph] (rpython.memory.gc.minimark:1831)MiniMarkGC.visit [flowgraph] (rpython.memory.gc.base:259)GCBase.trace [flowgraph] (rpython.memory.gc.base:252)gc_callback__collect_ref_rec [flowgraph] (rpython.memory.gc.minimark:1822)MiniMarkGC._collect_ref_rec [flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path [flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.gc.minimark:1619)MiniMarkGC.remove_young_arrays_from_old_objects_pointing_to_young [flowgraph] (rpython.memory.support:142)AddressStack.delete [flowgraph] (rpython.memory.gc.env:570)estimate_best_nursery_size [flowgraph] (rpython.memory.gc.env:533)get_L2cache_win32 [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)pypy_get_l2_cache_size [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_pypy_get_l2_cache_size [flowgraph] (rpython.memory.gc.env:46)read_float_from_env [flowgraph] (rpython.memory.gc.minimark:1960)MiniMarkGC.deal_with_objects_with_finalizers [flowgraph] (rpython.memory.gc.minimark:2020)MiniMarkGC._finalization_state [flowgraph] (rpython.memory.gc.base:51)GCBase.mark_finalizer_to_run [flowgraph] (rpython.memory.support:291)AddressDeque.delete [flowgraph] (rpython.memory.gc.minimark:2113)MiniMarkGC.invalidate_old_weakrefs [flowgraph] (rpython.memory.gc.minimark:1933)MiniMarkGC.deal_with_old_objects_with_destructors [flowgraph] (rpython.memory.gc.minimark:1776)MiniMarkGC.free_unvisited_rawmalloc_objects [flowgraph] (rpython.memory.gc.minimarkpage:376)ArenaCollection.mass_free [flowgraph] (rpython.memory.gc.minimark:2042)MiniMarkGC._recursively_bump_finalization_state_from_2_to_3 [flowgraph] (rpython.memory.gc.env:42)read_uint_from_env [flowgraph] (rpython.memory.gc.minimark:2033)MiniMarkGC._bump_finalization_state_from_0_to_1 [flowgraph] (rpython.memory.gc.minimark:2055)MiniMarkGC._recursively_bump_finalization_state_from_1_to_2 [flowgraph] (rpython.memory.gc.base:259)GCBase.trace [flowgraph] (rpython.memory.gc.minimark:2016)_append_if_nonnull [flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path [flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.gc.minimarkpage:326)ArenaCollection.mass_free_prepare [flowgraph] (rpython.memory.gc.minimarkpage:346)ArenaCollection.mass_free_incremental [flowgraph] (rpython.memory.gc.env:125)get_total_memory [flowgraph] (rpython.memory.gc.env:480)get_win32_total_phys_memory [flowgraph] (rpython.rtyper.lltypesystem.lltype:2296)scoped_alloc [flowgraph] (rpython.rtyper.lltypesystem.lltype:2280)ScopedAlloc_Struct MEMORYSTATUSEX { c_dwLength, c_dwMemoryLoad, c_ullTotalPhys, c_ullAvailPhys, c_ullTotalPageFile, c_ullAvailPageFile, c_ullTotalVirtual, c_ullAvailVirtual, c_ullAvailExtendedVirtual }.__init__ [flowgraph] (rpython.memory.gc.minimarkpage:427)ArenaCollection.mass_free_in_pages [flowgraph] (rpython.memory.gc.minimarkpage:506)ArenaCollection.walk_page [flowgraph] (rpython.memory.gc.minimark:1738)MiniMarkGC._free_if_unvisited [flowgraph] (rpython.rtyper.lltypesystem.lltype:2286)ScopedAlloc_Struct MEMORYSTATUSEX { c_dwLength, c_dwMemoryLoad, c_ullTotalPhys, c_ullAvailPhys, c_ullTotalPageFile, c_ullAvailPageFile, c_ullTotalVirtual, c_ullAvailVirtual, c_ullAvailExtendedVirtual }.__enter__ [flowgraph] (rpython.memory.gc.env:561)best_nursery_size_for_L2cache [flowgraph] (rpython.memory.gc.minimarkpage:490)ArenaCollection.free_page [flowgraph] (rpython.memory.gc.minimark:476)MiniMarkGC.post_setup [flowgraph] (rpython.memory.gc.minimark:1817)MiniMarkGC._collect_ref_stk [flowgraph] (rpython.memory.gc.base:58)GCBase.post_setup [flowgraph] (rpython.rtyper.lltypesystem.lltype:2289)ScopedAlloc_Struct MEMORYSTATUSEX { c_dwLength, c_dwMemoryLoad, c_ullTotalPhys, c_ullAvailPhys, c_ullTotalPageFile, c_ullAvailPageFile, c_ullTotalVirtual, c_ullAvailVirtual, c_ullAvailExtendedVirtual }.__exit__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)GlobalMemoryStatusEx [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_GlobalMemoryStatusEx [flowgraph] (rpython.memory.gc.base:442)GCBase.debug_check_consistency [flowgraph] (rpython.memory.gc.minimark:1803)MiniMarkGC.enumerate_all_roots [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.base:470)_debug_callback [flowgraph] (rpython.memory.gc.base:463)GCBase._debug_record [flowgraph] (rpython.memory.gc.minimark:993)MiniMarkGC.debug_check_object [flowgraph] (rpython.memory.gc.base:385)GCBase.enumerate_all_roots [flowgraph] (rpython.memory.gc.minimark:1808)MiniMarkGC.enum_live_with_finalizers [flowgraph] (rpython.memory.support:272)AddressDeque.foreach [flowgraph] (rpython.memory.gc.env:100)clamp_total_memory [flowgraph] (rpython.memory.gc.base:401)GCBase.enum_pending_finalizers [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.inspector:134)BaseWalker.walk [flowgraph] (rpython.memory.gc.inspector:243)HeapDumper.writeobj [flowgraph] (rpython.memory.gc.inspector:225)HeapDumper.write [flowgraph] (rpython.memory.gc.inspector:212)HeapDumper.flush [flowgraph] (rpython.memory.gc.minimark:1746)MiniMarkGC._reset_gcflag_visited [flowgraph] (rpython.memory.gc.base:259)GCBase.trace [flowgraph] (rpython.memory.gc.base:252)gc_callback__writeref [flowgraph] (rpython.memory.gc.inspector:253)HeapDumper._writeref [flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path [flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.gc.base:259)GCBase.trace [flowgraph] (rpython.memory.gc.base:252)gc_callback__debug_callback2 [flowgraph] (rpython.memory.gc.base:474)GCBase._debug_callback2 [flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path [flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.gc.inspector:236)HeapDumper.write_marker [flowgraph] (rpython.memory.gc.base:485)GCBase.execute_finalizers [flowgraph] (rpython.memory.gc.base:600)callback2 [flowgraph] (rpython.memory.gc.inspector:168)BaseWalker.finish_processing [flowgraph] (rpython.memory.gc.inspector:157)BaseWalker.clear_gcflag_again [flowgraph] (rpython.memory.gc.minimark:1803)MiniMarkGC.enumerate_all_roots [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.inspector:262)_hd_unadd_root [flowgraph] (rpython.memory.gc.inspector:150)BaseWalker.unadd [flowgraph] (rpython.memory.gc.base:385)GCBase.enumerate_all_roots [flowgraph] (rpython.memory.gc.minimark:1808)MiniMarkGC.enum_live_with_finalizers [flowgraph] (rpython.memory.support:272)AddressDeque.foreach [flowgraph] (rpython.memory.gc.base:401)GCBase.enum_pending_finalizers [flowgraph] (rpython.memory.gc.inspector:164)BaseWalker.unwalk [flowgraph] (rpython.memory.gc.inspector:142)BaseWalker.unobj [flowgraph] (rpython.memory.gc.base:259)GCBase.trace [flowgraph] (rpython.memory.gc.base:252)gc_callback__unref [flowgraph] (rpython.memory.gc.inspector:146)BaseWalker._unref [flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path [flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.gc.inspector:208)HeapDumper.delete [flowgraph] (rpython.memory.gc.inspector:106)BaseWalker.delete [flowgraph] (rpython.memory.gc.base:600)callback2 [flowgraph] (?:1)memo_assert_callback_is_a_function_0 [flowgraph] (?:1)memo__convert_callback_formats_0 [flowgraph] (?:1)memo__convert_callback_formats_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo_make_callback_0 [flowgraph] (?:1)memo_assert_callback_is_a_function_0 [flowgraph] (?:1)memo_make_callback_0 [flowgraph] (?:1)memo_assert_callback_is_a_function_0 [flowgraph] (?:1)memo_assert_callback_is_a_function_0 [flowgraph] (?:1)memo__make_scoped_allocator_0 [flowgraph] (?:1)memo_sizeof_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__convert_callback_formats_0 [flowgraph] (?:1)memo_make_callback_0 [flowgraph] (?:1)memo_assert_callback_is_a_function_0 [flowgraph] (?:1)memo_make_callback_0 [flowgraph] (?:1)memo_assert_callback_is_a_function_0 [flowgraph] (?:1)memo__convert_callback_formats_0 [flowgraph] (?:1)memo_make_callback_0 [flowgraph] (?:1)memo_assert_callback_is_a_function_0 [rtyper] specializing: 6000 / 7710 blocks (77%) [flowgraph] (rpython.rtyper.lltypesystem.rlist:391)ll_fixed_newemptylist [flowgraph] (rpython.rtyper.lltypesystem.llarena:594)llimpl_getfakearenaaddress [flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set [flowgraph] (rpython.rtyper.rlist:510)_ll_alloc_and_set_jit [flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null [flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit [flowgraph] (rpython.rtyper.lltypesystem.rlist:399)ll_fixed_items [flowgraph] (rpython.rlib.rgc:538)ll_arrayfill [flowgraph] (rpython.rtyper.rlist:522)_ll_alloc_and_clear [flowgraph] (rpython.rlib.rgc:508)ll_arrayclear [flowgraph] (?:11)_ll_alloc_and_set_nonnull_look_inside_iff [flowgraph] (rpython.rtyper.rlist:530) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.rlist:530)_ll_alloc_and_set_nonnull [flowgraph] (?:2)_ll_alloc_and_set_nonnull_trampoline [flowgraph] (rpython.rtyper.rlist:530)_ll_alloc_and_set_nonnull [flowgraph] (rpython.rtyper.lltypesystem.llarena:565)llimpl_round_up_for_allocation [flowgraph] (rpython.rtyper.lltypesystem.llarena:549)llimpl_arena_reserve [flowgraph] (rpython.rtyper.lltypesystem.llarena:557)llimpl_arena_shrink_obj [flowgraph] (rpython.rtyper.rlist:893)ll_listslice_startstop [flowgraph] (rpython.rtyper.rlist:554)ll_arraycopy [rtyper] specializing: 6400 / 7769 blocks (82%) [flowgraph] (rpython.rtyper.lltypesystem.llarena:532)llimpl_arena_reset [flowgraph] (rpython.rtyper.lltypesystem.llarena:514)llimpl_arena_malloc [flowgraph] (rpython.rtyper.rbuiltin:252)ll_max [flowgraph] (rpython.rtyper.rint:495)ll_int_py_mod [flowgraph] (rpython.rtyper.rbuiltin:252)ll_max [rtyper] specializing: 6800 / 7777 blocks (87%) [flowgraph] (rpython.rlib.rposix_environ:173)getenv_llimpl [flowgraph] (rpython.rtyper.rstr:945)ll_str_is_true [flowgraph] (rpython.rtyper.lltypesystem.rstr:873)ll_stringslice_minusone [flowgraph] (rpython.rtyper.lltypesystem.rstr:840)_ll_stringslice [flowgraph] (rpython.rtyper.rstr:956)ll_stritem [flowgraph] (rpython.rtyper.lltypesystem.rstr:1046)ll_contains [flowgraph] (rpython.rtyper.rstr:997)ll_float [flowgraph] (rpython.rlib.rfloat:87)rstring_to_float [flowgraph] (rpython.rlib.rdtoa:54)strtod [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)_PyPy_dg_strtod [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall__PyPy_dg_strtod [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [rtyper] specializing: 7300 / 7854 blocks (92%) [flowgraph] (rpython.rtyper.lltypesystem.llarena:579)llimpl_arena_protect [flowgraph] (rpython.rtyper.rbuiltin:240)ll_min [rtyper] specializing: 7700 / 7856 blocks (98%) [rtyper] specializing: 7800 / 7856 blocks (99%) [flowgraph] (rpython.rtyper.lltypesystem.rstr:860)ll_stringslice_startstop [rtyper] -=- specialized 1882 more blocks -=- [flowgraph] (rpython.rtyper.lltypesystem.llarena:488)llimpl_protect [flowgraph] (rpython.rlib.rmmap:280)VirtualProtect [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)VirtualProtect [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_VirtualProtect [flowgraph] (rpython.rtyper.lltypesystem.rffi:1382)scoped_str2charp.__init__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:1388)scoped_str2charp.__enter__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:817)str2charp [flowgraph] (rpython.rtyper.lltypesystem.llarena:456)madvise_arena_free [flowgraph] (rpython.rtyper.lltypesystem.llarena:451)PosixPageSize.get [flowgraph] (rpython.rlib.rmmap:1044)madvise_free [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)getenv [flowgraph] (rpython.rtyper.lltypesystem.rffi:1390)scoped_str2charp.__exit__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:831)free_charp [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_getenv [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (rpython.rtyper.rbuiltin:252)ll_max [rtyper] specializing: 7900 / 7959 blocks (99%) [rtyper] -=- specialized 95 more blocks -=- [backendopt:removecasts] removed 4 cast_pointers in MiniMarkGC.external_malloc [backendopt:removecasts] removed 1 cast_pointers in ShadowStackPool._prepare_unused_stack [backendopt:removecasts] removed 1 cast_pointers in custom_trace_dispatcher___append_rpy_referent [backendopt:removecasts] removed 1 cast_pointers in ShadowStackPool._resize [backendopt:removecasts] removed 1 cast_pointers in MiniMarkGC._malloc_out_of_nursery_nonsmall [backendopt:removecasts] removed 1 cast_pointers in MiniMarkGC._alloc_nursery [backendopt:removecasts] removed 1 cast_pointers in MiniMarkGC.is_forwarded [backendopt:removecasts] removed 1 cast_pointers in custom_trace_dispatcher__gc_callback__trace_drag_out [backendopt:removecasts] removed 1 cast_pointers in MiniMarkGC.major_collection [backendopt:removecasts] removed 1 cast_pointers in custom_trace_dispatcher__gc_callback__collect_ref_rec [backendopt:removecasts] removed 1 cast_pointers in custom_trace_dispatcher___append_if_nonnull [backendopt:removecasts] removed 3 cast_pointers in HeapDumper.flush [backendopt:removecasts] removed 1 cast_pointers in custom_trace_dispatcher__gc_callback__writeref [backendopt:removecasts] removed 1 cast_pointers in custom_trace_dispatcher__gc_callback__debug_callback2 [backendopt:removecasts] removed 1 cast_pointers in BaseWalker.unadd [backendopt:removecasts] removed 1 cast_pointers in custom_trace_dispatcher__gc_callback__unref [backendopt:removecasts] removed 1 cast_pointers in _ll_stringslice__rpy_stringPtr_Signed_Signed [backendopt:removecasts] removed 3 cast_pointers in ll_float__rpy_stringPtr [backendopt:removecasts] removed 2 cast_pointers in strtod__SomeString [backendopt:inlining] phase with threshold factor: 32.4 [backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic [backendopt:inlining] 0.00 debug_stop [backendopt:inlining] 0.00 llimpl_arena_malloc [backendopt:inlining] 0.00 llimpl_arena_reset [backendopt:inlining] 0.00 MiniMarkGC.id_or_identityhash [backendopt:inlining] 0.00 debug_start [backendopt:inlining] 0.00 isconstant__v86561___simple_call__function [backendopt:inlining] 0.00 isconstant__v86557___simple_call__function [backendopt:inlining] 0.00 gc_callback__writeref [backendopt:inlining] 0.00 VirtualProtect__arrayPtr_Unsigned_UINT_arrayPtr_star_4 [backendopt:inlining] 0.00 HeapDumper.write [backendopt:inlining] 0.00 isvirtual__v86549___simple_call__function [backendopt:inlining] 0.00 isconstant__v86551___simple_call__function [backendopt:inlining] 0.00 getenv__arrayPtr_star_1 [backendopt:inlining] 0.00 MiniMarkGC.move_nursery_top [backendopt:inlining] 0.00 gc_callback__unref [backendopt:inlining] 0.00 ll_setitem_nonneg__dum_nocheckConst_arrayPtr_Signed_GCREFPtr [backendopt:inlining] 0.00 _dummy_size [backendopt:inlining] 0.00 GlobalMemoryStatusEx__MEMORYSTATUSEXPtr_star_1 [backendopt:inlining] 0.00 memo_sizeof_0 [backendopt:inlining] 0.00 memo__sizeof_none_0 [backendopt:inlining] 0.00 pypy_get_l2_cache_size___star_0 [backendopt:inlining] 0.00 _PyPy_dg_strtod__arrayPtr_arrayPtr_star_2 [backendopt:inlining] 0.00 llimpl_getfakearenaaddress [backendopt:inlining] 0.00 gc_callback__trace_drag_out [backendopt:inlining] 0.00 copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed [backendopt:inlining] 0.00 memo_emptystrfun_0 [backendopt:inlining] 0.00 MiniMarkGC._malloc_out_of_nursery [backendopt:inlining] 0.00 get_get [backendopt:inlining] 0.00 gc_callback__debug_callback2 [backendopt:inlining] 0.00 memo__sizeof_none_0 [backendopt:inlining] 0.00 memo__sizeof_none_0 [backendopt:inlining] 0.00 MiniMarkGC._trace_drag_out [backendopt:inlining] 0.00 gc_callback__collect_ref_rec [backendopt:inlining] 0.00 get_nonmovingbuffer_ll_final_null [backendopt:inlining] 0.00 ll_fixed_items__arrayPtr [backendopt:inlining] 0.00 isvirtual__v86555___simple_call__function [backendopt:inlining] 0.00 copy_string_to_raw [backendopt:inlining] 2.00 debug_stop [backendopt:inlining] 2.00 debug_start [backendopt:inlining] 2.00 ll_fixed_newlist__GcArray_Ptr_GCREF__gcopaque_Ll_Signed [backendopt:inlining] 2.00 ll_strlen__rpy_stringPtr [backendopt:inlining] 2.00 ll_int_py_div_nonnegargs__Signed_Signed [backendopt:inlining] 2.00 dict_delete_entries [backendopt:inlining] 2.00 MiniMarkGC.combine [backendopt:inlining] 2.00 free_charp [backendopt:inlining] 2.00 ScopedAlloc_Struct MEMORYSTATUSEX { c_dwLength, c_dwMemoryLoad, c_ullTotalPhys, c_ullAvailPhys, c_ullTotalPageFile, c_ullAvailPageFile, c_ullTotalVirtual, c_ullAvailVirtual, c_ullAvailExtendedVirtual }.__enter__ [backendopt:inlining] 2.00 scoped_str2charp.__enter__ [backendopt:inlining] 2.00 cast_adr_to_nongc_instance__AddressDeque [backendopt:inlining] 2.00 ll_fixed_length__arrayPtr [backendopt:inlining] 2.00 ll_int_py_mod_nonnegargs__Signed_Signed [backendopt:inlining] 2.00 ll_dict_len__DICTPtr [backendopt:inlining] 3.50 __v86560___simple_call__function [backendopt:inlining] 4.00 GCBase.header [backendopt:inlining] 4.00 AddressStack.non_empty [backendopt:inlining] 4.00 GCData.q_finalizer_handlers [backendopt:inlining] 4.00 MiniMarkGC.get_forwarding_address [backendopt:inlining] 4.00 ll_fixed_setitem_fast__arrayPtr_Signed_GCREFPtr [backendopt:inlining] 4.00 mangle_hash [backendopt:inlining] 4.00 ll_stritem_nonneg__rpy_stringPtr_Signed [backendopt:inlining] 4.00 ll_max__Unsigned_Unsigned [backendopt:inlining] 4.00 _ll_zero_or_null__GCREFPtr [backendopt:inlining] 4.00 _check_valid_type_info_varsize [backendopt:inlining] 4.00 ll_max__Signed_Signed [backendopt:inlining] 4.00 ll_min__Float_Float [backendopt:inlining] 4.00 __exit____star_3 [backendopt:inlining] 4.00 ll_max__Float_Float [backendopt:inlining] 4.00 ll_min__Signed_Signed [backendopt:inlining] 4.00 _check_valid_type_info [backendopt:inlining] 4.00 dict_allocate [backendopt:inlining] 5.00 release [backendopt:inlining] 6.00 FreeList.put [backendopt:inlining] 6.00 MiniMarkGC.get_total_memory_used [backendopt:inlining] 6.00 MiniMarkGC._nursery_memory_size [backendopt:inlining] 6.00 ScopedAlloc_Struct MEMORYSTATUSEX { c_dwLength, c_dwMemoryLoad, c_ullTotalPhys, c_ullAvailPhys, c_ullTotalPageFile, c_ullAvailPageFile, c_ullTotalVirtual, c_ullAvailVirtual, c_ullAvailExtendedVirtual }.__init__ [backendopt:inlining] 2.00 GCBase._adr2deque [backendopt:inlining] 7.00 round_up_for_allocation [backendopt:inlining] 7.00 AddressDict [backendopt:inlining] 7.00 ll_len_foldable__arrayPtr [backendopt:inlining] 7.00 dict_keyhash [backendopt:inlining] 7.00 _debug_callback [backendopt:inlining] 7.00 _hd_unadd_root [backendopt:inlining] 7.00 _hd_add_root [backendopt:inlining] 7.00 _collect_obj [backendopt:inlining] 7.00 GCBase.get_size_incl_hash [backendopt:inlining] 7.00 ccall_getenv [backendopt:inlining] 0.00 getenv__arrayPtr_star_1 [backendopt:inlining] 2.00 ll_fixed_newemptylist__GcArray_Ptr_GCREF__gcopaque_Ll [backendopt:inlining] 7.00 out_of_memory [backendopt:inlining] 7.00 setup_root_walker [backendopt:inlining] 7.00 newdict [backendopt:inlining] 7.00 ccall__PyPy_dg_strtod__arrayPtr_arrayPtr [backendopt:inlining] 0.00 _PyPy_dg_strtod__arrayPtr_arrayPtr_star_2 [backendopt:inlining] 7.00 rstring_to_float__SomeString [backendopt:inlining] 7.00 MiniMarkGC._free_young_rawmalloced_obj [backendopt:inlining] 7.00 mallocstr [backendopt:inlining] 7.50 int_force_ge_zero__Signed [backendopt:inlining] 8.00 dict_entry_valid [backendopt:inlining] 8.00 ll_get_value__DICTPtr_Unsigned [backendopt:inlining] 8.50 GCBase.is_valid_gc_object [backendopt:inlining] 9.00 GCData.q_varsize_offset_to_length [backendopt:inlining] 6.00 GCData.get [backendopt:inlining] 9.00 GCData.q_varsize_item_sizes [backendopt:inlining] 9.00 GCData.q_varsize_offset_to_variable_part [backendopt:inlining] 9.00 GCData.q_varsize_offsets_to_gcpointers_in_var_part [backendopt:inlining] 8.00 GCData.q_offsets_to_gc_pointers [backendopt:inlining] 6.00 GCData.get_varsize [backendopt:inlining] 8.00 GCData.q_fixed_size [backendopt:inlining] 9.00 dict_get [backendopt:inlining] 6.00 _hash [backendopt:inlining] 9.00 dict_add [backendopt:inlining] 9.00 GCBase.get_member_index [backendopt:inlining] 9.00 _ll_alloc_and_set_nonnull_trampoline__v86563___simple_call__function [backendopt:inlining] 9.00 GCBase.post_setup [backendopt:inlining] 9.00 ccall_VirtualProtect [backendopt:inlining] 9.00 ll_dict_lookup_trampoline__v86552___simple_call__function [backendopt:inlining] 2.00 __v86554___simple_call__function [backendopt:inlining] 5.50 best_nursery_size_for_L2cache [backendopt:inlining] 10.00 acquire [backendopt:inlining] 10.00 __v86547___simple_call_invoke_4_ [backendopt:inlining] 10.00 ShadowStackPool.start_fresh_new_state [backendopt:inlining] 7.00 ll_str_is_true__LLHelpersConst_rpy_stringPtr [backendopt:inlining] 8.00 MiniMarkGC.get_type_id [backendopt:inlining] 11.00 BaseWalker._unref [backendopt:inlining] 11.00 _append_if_nonnull [backendopt:inlining] 6.00 dict_delete [backendopt:inlining] 11.00 GCBase._debug_callback2 [backendopt:inlining] 8.00 llimpl_round_up_for_allocation [backendopt:inlining] 10.00 dict_entry_hash [backendopt:inlining] 11.00 _ll_dict_setitem_lookup_done_trampoline__v86558___simple_call__function [backendopt:inlining] 11.00 HeapDumper.delete [backendopt:inlining] 11.00 start_of_page [backendopt:inlining] 10.00 GCData.q_member_index [backendopt:inlining] 11.00 MiniMarkGC.trace_and_drag_out_of_nursery [backendopt:inlining] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed [backendopt:inlining] 12.00 get_total_memory [backendopt:inlining] 10.50 estimate_best_nursery_size [backendopt:inlining] 12.00 ll_arrayclear__arrayPtr [backendopt:inlining] 12.25 scoped_str2charp.__init__ [backendopt:inlining] 12.50 GCBase.points_to_valid_gc_object [backendopt:inlining] 12.50 AddressDeque.non_empty [backendopt:inlining] 12.50 ShadowStackPool._resize [backendopt:inlining] 9.00 __exit____star_3 [backendopt:inlining] 12.00 GCData.q_has_gcptr_in_varsize [backendopt:inlining] 12.00 GCData.q_is_gcarrayofgcptr [backendopt:inlining] 12.00 GCData.q_has_custom_trace [backendopt:inlining] 12.00 GCData.q_fast_path_tracing [backendopt:inlining] 6.00 MiniMarkGC.init_gc_object [backendopt:inlining] 12.00 GCData.q_is_varsize [backendopt:inlining] 12.00 GCData.q_has_gcptr [backendopt:inlining] 6.00 MiniMarkGC.get_card [backendopt:inlining] 13.00 customtrace__gc_callback__writeref [backendopt:inlining] 13.00 ll_stringslice_minusone__rpy_stringPtr [backendopt:inlining] 13.00 BaseWalker.unobj [backendopt:inlining] 13.00 customtrace___append_rpy_referent [backendopt:inlining] 13.00 customtrace__gc_callback__unref [backendopt:inlining] 13.00 customtrace___append_if_nonnull [backendopt:inlining] 12.00 scoped_alloc__MEMORYSTATUSEX_False [backendopt:inlining] 13.00 customtrace__gc_callback__debug_callback2 [backendopt:inlining] 10.00 MiniMarkGC._reset_gcflag_visited [backendopt:inlining] 13.00 customtrace__gc_callback__collect_ref_rec [backendopt:inlining] 13.00 MiniMarkGC._collect_ref_rec [backendopt:inlining] 13.00 MiniMarkGC.trace_and_drag_out_of_nursery_partial [backendopt:inlining] 12.00 GCData.q_is_rpython_class [backendopt:inlining] 13.00 customtrace__gc_callback__trace_drag_out [backendopt:inlining] 13.00 MiniMarkGC.is_in_nursery [backendopt:inlining] 13.00 free_nonmovingbuffer_ll [backendopt:inlining] 13.50 ll_int_py_mod__Signed_Signed [backendopt:inlining] 13.50 FreeList.get [backendopt:inlining] 14.00 ArenaCollection.mass_free [backendopt:inlining] 0.00 __v86548___simple_call__function [backendopt:inlining] 14.00 GCData.q_weakpointer_offset [backendopt:inlining] 15.00 read_float_from_env [backendopt:inlining] 15.00 ll_int_py_div__Signed_Signed [backendopt:inlining] 16.00 MiniMarkGC.card_marking_words_for_length [backendopt:inlining] 16.00 MiniMarkGC.card_marking_bytes_for_length [backendopt:inlining] 16.00 MiniMarkGC._recursively_bump_finalization_state_from_1_to_2 [backendopt:inlining] 16.00 BaseWalker.process [backendopt:inlining] 16.25 MiniMarkGC.collect [backendopt:inlining] 17.00 ll_contains__rpy_stringPtr_Char [backendopt:inlining] 17.00 GCBase.get_size [backendopt:inlining] 17.00 read_from_env [backendopt:inlining] 17.00 ShadowStackPool.initial_setup [backendopt:inlining] 17.00 madvise_free [backendopt:inlining] 17.00 llimpl_protect [backendopt:inlining] 17.00 read_uint_from_env [backendopt:inlining] 17.00 _do_append_rpy_roots [backendopt:inlining] 17.00 HeapDumper.__init__ [backendopt:inlining] 17.00 GCBase.setup [backendopt:inlining] 11.00 ll_stritem__LLHelpersConst_rpy_stringPtr_Signed [backendopt:inlining] 17.75 ShadowStackPool._prepare_unused_stack [backendopt:inlining] 15.00 ll_dict_resize__DICTPtr [backendopt:inlining] 18.00 enumerate_all_roots___debug_callback [backendopt:inlining] 18.00 enumerate_all_roots___hd_unadd_root [backendopt:inlining] 18.00 enumerate_all_roots___hd_add_root [backendopt:inlining] 18.00 enumerate_all_roots___append_rpy_root [backendopt:inlining] 18.00 BaseWalker.finish_processing [backendopt:inlining] 19.00 walk_stack_roots [backendopt:inlining] 19.25 custom_trace_dispatcher__gc_callback__writeref [backendopt:inlining] 19.25 custom_trace_dispatcher___append_if_nonnull [backendopt:inlining] 19.25 custom_trace_dispatcher___append_rpy_referent [backendopt:inlining] 19.25 custom_trace_dispatcher__gc_callback__unref [backendopt:inlining] 19.25 custom_trace_dispatcher__gc_callback__debug_callback2 [backendopt:inlining] 19.25 custom_trace_dispatcher__gc_callback__collect_ref_rec [backendopt:inlining] 19.25 custom_trace_dispatcher__gc_callback__trace_drag_out [backendopt:inlining] 20.00 MiniMarkGC.raw_malloc_memory_pressure [backendopt:inlining] 17.25 MiniMarkGC.write_barrier [backendopt:inlining] 20.67 dict_allocate_entries [backendopt:inlining] 21.00 _do_append_rpy_referents [backendopt:inlining] 18.00 _ll_alloc_and_set_jit__GcArray_Ptr_GCREF__gcopaque_Ll_Signed_GCREFPtr [backendopt:inlining] 18.75 MiniMarkGC.debug_check_consistency [backendopt:inlining] 21.25 AddressStack.append [backendopt:inlining] 21.25 AddressDeque.append [backendopt:inlining] 19.50 GCData.q_destructor_or_custom_trace [backendopt:inlining] 21.25 _trace_callback__gc_callback__writeref [backendopt:inlining] 21.25 _trace_callback___append_rpy_referent [backendopt:inlining] 21.33 ll_arrayfill__arrayPtr_GCREFPtr [backendopt:inlining] 21.50 AddressStack.__init__ [backendopt:inlining] 15.00 _ll_alloc_and_clear__GcArray_Ptr_GCREF__gcopaque_Ll_Signed [backendopt:inlining] 21.00 ll_contains__DICTPtr_Address [backendopt:inlining] 22.00 enum_live_with_finalizers___hd_unadd_root [backendopt:inlining] 22.00 enum_live_with_finalizers___debug_callback [backendopt:inlining] 21.00 MiniMarkGC.free_young_rawmalloced_objects [backendopt:inlining] 22.00 enum_live_with_finalizers___hd_add_root [backendopt:inlining] 22.00 enum_live_with_finalizers___append_rpy_root [backendopt:inlining] 22.75 _trace_callback__gc_callback__unref [backendopt:inlining] 22.75 _trace_callback__gc_callback__debug_callback2 [backendopt:inlining] 23.33 charp2str [backendopt:inlining] 23.50 AddressDeque.__init__ [backendopt:inlining] 23.00 BaseWalker.delete [backendopt:inlining] 21.00 MiniMarkGC._finalization_state [backendopt:inlining] 15.00 MiniMarkGC.collect_roots_in_nursery [backendopt:inlining] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed [backendopt:inlining] 19.00 ll_dict_lookup_look_inside_iff__DICTPtr_Address_Signed [backendopt:inlining] 25.75 ll_join_strs_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT [backendopt:inlining] 19.00 _ll_alloc_and_set_nonnull_look_inside_iff__GcArray_Ptr_GCREF__gcopaque_Ll_Signed_GCREFPtr [backendopt:inlining] 26.31 ll_stringslice_startstop__rpy_stringPtr_Signed_Signed [backendopt:inlining] 26.37 AddressStack.pop [backendopt:inlining] 21.50 MiniMarkGC._free_if_unvisited [backendopt:inlining] 16.75 clamp_total_memory [backendopt:inlining] 26.75 MiniMarkGC.is_forwarded [backendopt:inlining] 26.00 AddressStack.delete [backendopt:inlining] 26.00 AddressDeque.delete [backendopt:inlining] 20.50 get_L2cache_win32 [backendopt:inlining] 27.50 MiniMarkGC._alloc_nursery [backendopt:inlining] 28.75 _append_rpy_root [backendopt:inlining] 29.00 ll_dict_insertclean__DICTPtr_Address_Address_Signed [backendopt:inlining] 25.17 _ll_alloc_and_set_nojit__GcArray_Ptr_GCREF__gcopaque_Ll_Signed_GCREFPtr [backendopt:inlining] 29.75 llimpl_arena_protect [backendopt:inlining] 22.00 _ll_dict_setitem_lookup_done_look_inside_iff__DICTPtr_Address_Address_Signed_Unsigned [backendopt:inlining] 21.00 ll_listslice_startstop__GcArray_Ptr_GCREF__gcopaque_Ll_arrayPtr_Signed_Signed [backendopt:inlining] 31.21 ArenaCollection._pick_next_arena [backendopt:inlining] 31.75 AddressDeque.popleft [backendopt:inlining] 31.75 _append_rpy_referent [backendopt:inlining] 32.25 HeapDumper._writeref [backendopt:inlining] 20.67 _ll_alloc_and_set_nonnull__v86564___simple_call__function [backendopt:inlining] 20.67 _ll_alloc_and_set_nonnull__v86562___simple_call__function [backendopt:inlining] inlined 1173 callsites. [backendopt:removecasts] removed 2 cast_pointers in get_win32_total_phys_memory [backendopt:removecasts] removed 1 cast_pointers in ll_alloc_and_set__GcArray_Ptr_GCREF__gcopaque_Ll_Signed_GCREFPtr [backendopt:removecasts] removed 1 cast_pointers in _ll_stringslice__rpy_stringPtr_Signed_Signed [backendopt:removecasts] removed 2 cast_pointers in strtod__SomeString [backendopt:malloc] starting malloc removal [backendopt:malloc] 1 simple mallocs removed in 'get_win32_total_phys_memory' [backendopt:malloc] 3 simple mallocs removed in 'GlobalMemoryStatusEx__MEMORYSTATUSEXPtr_star_1' [backendopt:malloc] 1 simple mallocs removed in 'getenv_llimpl' [backendopt:malloc] 1 simple mallocs removed in 'strtod__SomeString' [backendopt:malloc] 5 simple mallocs removed in '_PyPy_dg_strtod__arrayPtr_arrayPtr_star_2' [backendopt:malloc] 9 simple mallocs removed in 'VirtualProtect__arrayPtr_Signed_Signed_arrayPtr' [backendopt:malloc] 9 simple mallocs removed in 'VirtualProtect__arrayPtr_Unsigned_UINT_arrayPtr_star_4' [backendopt:malloc] 3 simple mallocs removed in 'getenv__arrayPtr_star_1' [backendopt:malloc] removed 32 simple mallocs in total [backendopt:mergeifblocks] starting to merge if blocks [backendopt] merging blocks in _trace_slow_path___append_rpy_referent [backendopt] merging blocks in _trace_slow_path__gc_callback__trace_drag_out [backendopt] merging blocks in _trace_slow_path__gc_callback__collect_ref_rec [backendopt] merging blocks in _trace_slow_path___append_if_nonnull [backendopt] merging blocks in _trace_slow_path__gc_callback__writeref [backendopt] merging blocks in _trace_slow_path__gc_callback__debug_callback2 [backendopt] merging blocks in _trace_slow_path__gc_callback__unref [backendopt] merging blocks in llimpl_arena_reset [flowgraph] (rpython.memory.gctransform.framework:620)ll_check_no_collect [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.gctransform.framework:618)no_op_callback [rtyper] -=- specialized 9 more blocks -=- [flowgraph] (rpython.translator.c.genc:261)entrypoint_wrapper [flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set [flowgraph] (rpython.rtyper.rlist:510)_ll_alloc_and_set_jit [flowgraph] (rpython.rtyper.rlist:522)_ll_alloc_and_clear [flowgraph] (rpython.rtyper.lltypesystem.rlist:324)ll_newlist [flowgraph] (?:11)_ll_alloc_and_set_nonnull_look_inside_iff [flowgraph] (rpython.rtyper.rlist:530) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.rlist:530)_ll_alloc_and_set_nonnull [flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit [flowgraph] (?:2)_ll_alloc_and_set_nonnull_trampoline [flowgraph] (rpython.rtyper.rlist:530)_ll_alloc_and_set_nonnull [flowgraph] (rpython.rtyper.rlist:728)ll_setitem_nonneg [rtyper] specializing: 8000 / 8014 blocks (99%) [rtyper] -=- specialized 46 more blocks -=- [rtyper] -=- specialized 0 more blocks -=- [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1604)ll_finalizer_trigger [flowgraph] (rpython.memory.gctransform.framework:1611)ll_next_dead [c] 1000 nodes [ array: 212 framework rtti: 17 func: 634 group: 1 struct: 604 ] [flowgraph] (rpython.memory.gctransform.framework:1604)ll_finalizer_trigger [flowgraph] (rpython.memory.gctransform.framework:1611)ll_next_dead [c] 2000 nodes [ array: 323 framework rtti: 29 func: 850 group: 1 struct: 31470 ] [c] 3000 nodes [ array: 323 framework rtti: 29 func: 850 group: 1 struct: 32470 ] [c] 4000 nodes [ array: 323 framework rtti: 29 func: 850 group: 1 struct: 33470 ] [c] 5000 nodes [ array: 323 framework rtti: 29 func: 850 group: 1 struct: 34470 ] [c] 6000 nodes [ array: 323 framework rtti: 29 func: 850 group: 1 struct: 35470 ] [c] 7000 nodes [ array: 323 framework rtti: 29 func: 850 group: 1 struct: 36470 ] [c] 8000 nodes [ array: 323 framework rtti: 29 func: 850 group: 1 struct: 37470 ] [c] 9000 nodes [ array: 323 framework rtti: 29 func: 850 group: 1 struct: 38470 ] [c] 10000 nodes [ array: 323 framework rtti: 29 func: 850 group: 1 struct: 39470 ] [c] 11000 nodes [ array: 323 framework rtti: 29 func: 850 group: 1 struct: 40470 ] [c] 12000 nodes [ array: 323 framework rtti: 29 func: 850 group: 1 struct: 41470 ] [c] 13000 nodes [ array: 323 framework rtti: 29 func: 850 group: 1 struct: 42470 ] [c] 14000 nodes [ array: 323 framework rtti: 29 func: 850 group: 1 struct: 43470 ] [c] 15000 nodes [ array: 323 framework rtti: 29 func: 850 group: 1 struct: 44470 ] [c] 16000 nodes [ array: 323 framework rtti: 29 func: 850 group: 1 struct: 45470 ] [c] 17000 nodes [ array: 331 framework rtti: 30 func: 969 group: 1 struct: 47097 ] [c] 18000 nodes [ array: 442 framework rtti: 32 func: 996 group: 1 struct: 47100 ] [c] 19000 nodes [ array: 442 framework rtti: 32 func: 996 group: 1 struct: 47100 ] [c] 20000 nodes [ array: 442 framework rtti: 32 func: 996 group: 1 struct: 47100 ] [c] 21000 nodes [ array: 442 framework rtti: 32 func: 996 group: 1 struct: 47100 ] [c] 22000 nodes [ array: 442 framework rtti: 32 func: 996 group: 1 struct: 47100 ] [c] 23000 nodes [ array: 442 framework rtti: 32 func: 996 group: 1 struct: 47100 ] [c] 24000 nodes [ array: 442 framework rtti: 32 func: 996 group: 1 struct: 47100 ] [c] 25000 nodes [ array: 442 framework rtti: 32 func: 996 group: 1 struct: 47100 ] [c] 26000 nodes [ array: 442 framework rtti: 32 func: 996 group: 1 struct: 47100 ] [c] 27000 nodes [ array: 442 framework rtti: 32 func: 996 group: 1 struct: 47100 ] [c] 28000 nodes [ array: 442 framework rtti: 32 func: 996 group: 1 struct: 47100 ] [c] 29000 nodes [ array: 442 framework rtti: 32 func: 996 group: 1 struct: 47100 ] [c] 30000 nodes [ array: 442 framework rtti: 32 func: 996 group: 1 struct: 47100 ] [c] 31000 nodes [ array: 442 framework rtti: 32 func: 996 group: 1 struct: 47100 ] [c] 32000 nodes [ array: 442 framework rtti: 32 func: 996 group: 1 struct: 47100 ] [c] 33000 nodes [ array: 442 framework rtti: 32 func: 996 group: 1 struct: 47102 ] [c] 34000 nodes [ array: 442 framework rtti: 32 func: 996 group: 1 struct: 47102 ] [c] 35000 nodes [ array: 442 framework rtti: 32 func: 996 group: 1 struct: 47102 ] [c] 36000 nodes [ array: 442 framework rtti: 32 func: 996 group: 1 struct: 47102 ] [c] 37000 nodes [ array: 442 framework rtti: 32 func: 996 group: 1 struct: 47102 ] [c] 38000 nodes [ array: 442 framework rtti: 32 func: 996 group: 1 struct: 47102 ] [c] 39000 nodes [ array: 442 framework rtti: 32 func: 996 group: 1 struct: 47102 ] [c] 40000 nodes [ array: 442 framework rtti: 32 func: 996 group: 1 struct: 47102 ] [c] 41000 nodes [ array: 442 framework rtti: 32 func: 996 group: 1 struct: 47102 ] [c] 42000 nodes [ array: 442 framework rtti: 32 func: 996 group: 1 struct: 47102 ] [c] 43000 nodes [ array: 442 framework rtti: 32 func: 996 group: 1 struct: 47102 ] [c] 44000 nodes [ array: 442 framework rtti: 32 func: 996 group: 1 struct: 47102 ] [c] 45000 nodes [ array: 442 framework rtti: 32 func: 996 group: 1 struct: 47102 ] [c] 46000 nodes [ array: 442 framework rtti: 32 func: 996 group: 1 struct: 47102 ] [c] 47000 nodes [ array: 442 framework rtti: 32 func: 996 group: 1 struct: 47102 ] [c] 48000 nodes [ array: 646 framework rtti: 33 func: 1024 group: 1 struct: 47102 ] [c] 49000 nodes [ array: 833 framework rtti: 36 func: 1135 group: 1 struct: 47603 ] [c] 50000 nodes [ array: 836 framework rtti: 36 func: 1338 group: 1 struct: 47790 ] [c] 51000 nodes [ array: 836 framework rtti: 36 func: 1338 group: 1 struct: 48790 ] [c] 52000 nodes [ array: 836 framework rtti: 36 func: 1338 group: 1 struct: 49790 ] [c:database] GC transformer: finished helpers [c] 53000 nodes [ array: 898 framework rtti: 36 func: 1338 group: 1 struct: 50901 ] [flowgraph] (rpython.memory.gctransform.support:95)ll_report_finalizer_error [flowgraph] (rpython.memory.gctransform.support:77)write [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)wrap_write [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.transform:461)_ll_compute_size [rtyper] specializing: 8100 / 8180 blocks (99%) [rtyper] -=- specialized 166 more blocks -=- [backendopt:removecasts] removed 1 cast_pointers in _ll_malloc_fixedsize__Signed [backendopt:removecasts] removed 1 cast_pointers in _ll_malloc_fixedsize_zero__Signed [backendopt:removecasts] removed 1 cast_pointers in _ll_malloc_varsize_no_length__Signed_Signed_Signed [backendopt:removecasts] removed 1 cast_pointers in _ll_malloc_varsize_no_length_zero__Signed_Signed_Signed [backendopt:removecasts] removed 1 cast_pointers in _ll_compute_size__Signed_Signed_Signed [backendopt:inlining] phase with threshold factor: 32.4 [backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic [backendopt:inlining] 0.00 _ll_compute_size__Signed_Signed_Signed [backendopt:inlining] 0.00 wrap_write__Signed_SomeString_Signed_star_3 [backendopt:inlining] 12.50 AddressDeque.non_empty [backendopt:inlining] 16.50 _ll_malloc_varsize_no_length__Signed_Signed_Signed [backendopt:inlining] 26.62 ll_report_finalizer_error__SomeInstance [backendopt:inlining] 31.75 AddressDeque.popleft [backendopt:inlining] inlined 10 callsites. [backendopt:malloc] starting malloc removal [backendopt:malloc] 8 simple mallocs removed in 'write' [backendopt:malloc] 8 simple mallocs removed in 'wrap_write__Signed_SomeString_Signed_star_3' [backendopt:malloc] removed 16 simple mallocs in total [backendopt:mergeifblocks] starting to merge if blocks [c:database] GC transformer: finished tables [gctransform:info] assigned 298 typeids [gctransform:info] added 1889 push/pop stack root instructions [gctransform:info] inserted 75 write barrier calls [gctransform:info] inserted 41 write_barrier_from_array calls [gctransform:info] found 3 static roots [c:database] Inlining GC helpers and postprocessing [c] 53356 nodes [ array: 950 framework rtti: 72 func: 1380 group: 1 struct: 50953 ] [c:database] Completed [translation:info] database for generating C source was created [translation:info] Generating c source... [c:writing] structdef.h [c:writing] forwarddecl.h [c:writing] preimpl.h [c:writing] data_rpython_flowspace.c [c:writing] data_rpython_memory_gc.c [c:writing] data_rpython_memory_gctransform.c [c:writing] data_rpython_memory_test.c [c:writing] data_rpython_rlib.c [c:writing] data_rpython_rtyper.c [c:writing] data_rpython_rtyper_lltypesystem.c [c:writing] data_rpython_translator_c_test.c [c:writing] nonfuncnodes.c [c:writing] nonfuncnodes_1.c [c:writing] nonfuncnodes_2.c [c:writing] nonfuncnodes_3.c [c:writing] data_rpython_memory_gc_1.c [c:writing] data_rpython_rlib_1.c [c:writing] data_rpython_rtyper_lltypesystem_1.c [c:writing] implement.c [c:writing] rpython_flowspace.c [c:writing] rpython_memory.c [c:writing] rpython_memory_gc.c [c:writing] rpython_memory_gctransform.c [c:writing] rpython_memory_test.c [c:writing] rpython_rlib.c [c:writing] rpython_rtyper.c [c:writing] rpython_rtyper_lltypesystem.c [c:writing] rpython_rtyper_lltypesystem_1.c [c:writing] rpython_rtyper_lltypesystem_module.c [c:writing] rpython_translator.c [c:writing] rpython_translator_c.c [c:writing] rpython_translator_c_test.c [translation:info] written: c:\users\runner~1\appdata\local\temp\usession-pypy-HEAD-12\testing_3\testing_3.c [translation:info] Compiling c source... [platform:execute] nmake in c:\users\runner~1\appdata\local\temp\usession-pypy-HEAD-12\testing_3 [platform:Error] cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] stdafx.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] testing_3.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_flowspace.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_memory_gc.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_memory_gctransform.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_memory_test.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_rlib.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_rtyper.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_rtyper_lltypesystem.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_translator_c_test.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] nonfuncnodes.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] nonfuncnodes_1.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] nonfuncnodes_2.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] nonfuncnodes_3.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_memory_gc_1.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_rlib_1.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_rtyper_lltypesystem_1.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] implement.c [platform:Error] implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' [platform:Error] implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' [platform:Error] implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] rpython_flowspace.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] rpython_memory.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] rpython_memory_gc.c [platform:Error] rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' [platform:Error] c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' [platform:Error] rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' [platform:Error] c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' [platform:Error] rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' [platform:Error] rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' [platform:Error] NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' [platform:Error] Stop. E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_from_objwithfinalizer_to_youngobj cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_empty_collect cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_framework_simple cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_framework_safe_pushpop cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_framework_protect_getfield cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_framework_varsized cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_framework_using_lists cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_framework_static_roots cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_framework_nongc_static_root cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_framework_void_array cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_framework_malloc_failure cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_framework_array_of_void cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_framework_opaque cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_framework_finalizer cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_del_catches cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_del_raises cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_custom_trace cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_custom_light_finalizer cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_weakref cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_prebuilt_weakref cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_prebuilt_dicts_of_all_sizes cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_framework_malloc_raw cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_framework_del_seeing_new_types cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_framework_late_filling_pointers cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_zero_raw_malloc cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_object_alignment cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_void_list cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_open_read_write_seek_close cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_callback_with_collect cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_can_move cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_resizable_buffer cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_hash_preservation cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_hash_overflow cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_hash_varsized cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_arraycopy_writebarrier_int cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_arraycopy_writebarrier_ptr cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_get_rpy_roots cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_get_rpy_referents cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_is_rpy_instance cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_try_cast_gcref_to_instance cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_get_rpy_memory_usage cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_get_rpy_type_index cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_dump_rpy_heap cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_write_typeids_z cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_gcflag_extra cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_check_zero_works cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_long_chain_of_instances cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_many_ids cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_gc_set_max_heap_size cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_string_builder cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_string_builder_over_allocation cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_string_builder_multiple_builds cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_string_builder_multiple_builds_2 cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_nursery_hash_base cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_extra_item_after_alloc cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_rerased cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_gc_heap_stats cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_nongc_attached_to_gc cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_nongc_opaque_attached_to_gc cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_limited_memory cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_tagged cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestMiniMarkGCMostCompact::()::test_erased cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(1834): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_3\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_3.obj /c testing_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4052): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4052): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(1800): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1826): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_3\singleheader.h(4888): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(1827): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(1834): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_finalizer_order cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError ---------- Captured stderr setup ---------- [platform:msg] Updated environment with vsver 160, using x64 True [flowgraph] (rpython.translator.c.test.test_newgc:39)main [translation:info] Annotating&simplifying... [translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy [flowgraph] (rpython.translator.c.test.test_newgc:104)allfuncs [flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item [flowgraph] (rpython.translator.c.test.test_newgc:944)f_arraycopy_writebarrier_int [flowgraph] (rpython.translator.c.test.test_newgc:965)f_arraycopy_writebarrier_ptr [flowgraph] (rpython.translator.c.test.test_newgc:750)f_callback_with_collect [flowgraph] (rpython.translator.c.test.test_newgc:783)f_can_move [flowgraph] (rpython.translator.c.test.test_newgc:1277)f_check_zero_works [flowgraph] (rpython.translator.c.test.test_newgc:1891)f_collect_step [flowgraph] (rpython.translator.c.test.test_newgc:443)f_del_raises [flowgraph] (rpython.translator.c.test.test_newgc:1163)f_dump_rpy_heap [flowgraph] (rpython.translator.c.test.test_newgc:146)f_empty_collect [flowgraph] (rpython.translator.c.test.test_newgc:2037)f_erased [flowgraph] (rpython.translator.c.test.test_newgc:1537)f_extra_item_after_alloc [flowgraph] (rpython.translator.c.test.test_newgc:341)f_framework_array_of_void [flowgraph] (rpython.translator.c.test.test_newgc:627)f_framework_del_seeing_new_types [flowgraph] (rpython.translator.c.test.test_newgc:393)f_framework_finalizer [flowgraph] (rpython.translator.c.test.test_newgc:640)f_framework_late_filling_pointers [flowgraph] (rpython.translator.c.test.test_newgc:332)f_framework_malloc_failure [flowgraph] (rpython.translator.c.test.test_newgc:608)f_framework_malloc_raw [flowgraph] (rpython.translator.c.test.test_newgc:307)f_framework_nongc_static_root [flowgraph] (rpython.translator.c.test.test_newgc:368)f_framework_opaque [flowgraph] (rpython.translator.c.test.test_newgc:223)f_framework_protect_getfield [flowgraph] (rpython.translator.c.test.test_newgc:197)f_framework_safe_pushpop [flowgraph] (rpython.translator.c.test.test_newgc:165)f_framework_simple [flowgraph] (rpython.translator.c.test.test_newgc:293)f_framework_static_roots [flowgraph] (rpython.translator.c.test.test_newgc:267)f_framework_using_lists [flowgraph] (rpython.translator.c.test.test_newgc:241)f_framework_varsized [flowgraph] (rpython.translator.c.test.test_newgc:323)f_framework_void_array [flowgraph] (rpython.memory.test.snippet:190)f_from_objwithfinalizer_to_youngobj [flowgraph] (rpython.translator.c.test.test_newgc:1387)f_gc_heap_stats [flowgraph] (rpython.translator.c.test.test_newgc:1362)f_gc_set_max_heap_size [flowgraph] (rpython.translator.c.test.test_newgc:1244)f_gcflag_extra [flowgraph] (rpython.translator.c.test.test_newgc:1103)f_get_rpy_memory_usage [flowgraph] (rpython.translator.c.test.test_newgc:1015)f_get_rpy_referents [flowgraph] (rpython.translator.c.test.test_newgc:996)f_get_rpy_roots [flowgraph] (rpython.translator.c.test.test_newgc:1128)f_get_rpy_type_index [flowgraph] (rpython.translator.c.test.test_newgc:912)f_hash_overflow [flowgraph] (rpython.translator.c.test.test_newgc:829)f_hash_preservation [flowgraph] (rpython.translator.c.test.test_newgc:932)f_hash_varsized [flowgraph] (rpython.translator.c.test.test_newgc:1828)f_ignore_finalizer [flowgraph] (rpython.translator.c.test.test_newgc:1040)f_is_rpy_instance [flowgraph] (rpython.translator.c.test.test_newgc:1303)f_long_chain_of_instances [flowgraph] (rpython.translator.c.test.test_newgc:1330)f_many_ids [flowgraph] (rpython.translator.c.test.test_newgc:1617)f_nongc_attached_to_gc [flowgraph] (rpython.translator.c.test.test_newgc:1646)f_nongc_opaque_attached_to_gc [flowgraph] (rpython.translator.c.test.test_newgc:1483)f_nursery_hash_base [flowgraph] (rpython.translator.c.test.test_newgc:673)f_object_alignment [flowgraph] (rpython.translator.c.test.test_newgc:706)f_open_read_write_seek_close [flowgraph] (rpython.translator.c.test.test_newgc:589)f_prebuilt_dicts_of_all_sizes [flowgraph] (rpython.translator.c.test.test_newgc:554)f_prebuilt_weakref [flowgraph] (rpython.translator.c.test.test_newgc:1740)f_random_pin [flowgraph] (rpython.translator.c.test.test_newgc:1561)f_rerased [flowgraph] (rpython.translator.c.test.test_newgc:793)f_resizable_buffer [flowgraph] (rpython.translator.c.test.test_newgc:2004)f_tagged [flowgraph] (rpython.translator.c.test.test_newgc:1932)f_total_gc_time [flowgraph] (rpython.translator.c.test.test_newgc:1723)f_total_memory_pressure [flowgraph] (rpython.translator.c.test.test_newgc:1065)f_try_cast_gcref_to_instance [flowgraph] (rpython.translator.c.test.test_newgc:695)f_void_list [flowgraph] (rpython.translator.c.test.test_newgc:516)f_weakref [flowgraph] (rpython.translator.c.test.test_newgc:1209)f_write_typeids_z [flowgraph] (rpython.translator.c.test.test_newgc:653)f_zero_raw_malloc [flowgraph] (rpython.rlib.rposix:461)open [flowgraph] (rpython.rlib.rposix:402)_as_utf80 [flowgraph] (rpython.rlib.rposix:392)_as_utf8 [flowgraph] (rpython.translator.c.test.test_newgc:693)E.__init__ [flowgraph] (rpython.rlib.rgc:953)cast_instance_to_gcref [flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr [flowgraph] (rpython.translator.c.test.test_newgc:1709)A.__del__ [flowgraph] (rpython.translator.c.test.test_newgc:1706)A.__init__ [flowgraph] (rpython.translator.c.test.test_newgc:1713)B.__init__ [flowgraph] (rpython.translator.c.test.test_newgc:1995)fn [flowgraph] (rpython.translator.c.test.test_newgc:2059)BoxedObject.__init__ [flowgraph] (rpython.translator.c.test.test_newgc:2061)BoxedObject.meth [flowgraph] (?:2)ll_shrink_array [flowgraph] (rpython.rlib.rgc:468)ll_shrink_array [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.rlib.rerased:128)try_cast_erased [flowgraph] (rpython.rtyper.rclass:1143)ll_isinstance [flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass [flowgraph] (rpython.translator.c.test.test_newgc:575)keq [flowgraph] (rpython.translator.c.test.test_newgc:577)khash [flowgraph] (rpython.translator.c.test.test_newgc:1643)A.__del__ [flowgraph] (rpython.translator.c.test.test_newgc:1640)A.__init__ [flowgraph] (rpython.rlib.rzlib:267)deflateInit [flowgraph] (rpython.rlib.rzlib:149)_deflateInit2 [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)deflateInit2_ [flowgraph] (rpython.rtyper.lltypesystem.rffi:926)get_nonmovingbuffer_ll_final_null [flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll [flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c [flowgraph] (rpython.translator.c.test.test_newgc:1614)A.__del__ [flowgraph] (rpython.translator.c.test.test_newgc:1611)A.__init__ [flowgraph] (rpython.translator.c.test.test_newgc:1036)check [flowgraph] (rpython.translator.c.test.test_newgc:1821)g [flowgraph] (rpython.rlib.rgc:617)register_finalizer [flowgraph] (rpython.translator.c.test.test_newgc:1818)finalizer_trigger [flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref [flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr [flowgraph] (rpython.rlib.rposix:500)write [flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__ [flowgraph] (rpython.translator.c.test.test_newgc:985)g [flowgraph] (rpython.translator.c.test.test_newgc:1360)g [flowgraph] (rpython.memory.test.snippet:177)g [flowgraph] (rpython.rlib.rgc:617)register_finalizer [flowgraph] (rpython.memory.test.snippet:169)finalizer_trigger [flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref [flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr [flowgraph] (rpython.rlib.rgc:600)next_dead [flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance [flowgraph] (rpython.translator.c.test.test_newgc:290)make [flowgraph] (rpython.translator.c.test.test_newgc:286)A.__init__ [flowgraph] (rpython.translator.c.test.test_newgc:160)make [flowgraph] (rpython.translator.c.test.test_newgc:156)g [flowgraph] (rpython.translator.c.test.test_newgc:188)make [flowgraph] (rpython.translator.c.test.test_newgc:180)g [flowgraph] (rpython.translator.c.test.test_newgc:212)prepare [flowgraph] (rpython.translator.c.test.test_newgc:358)gethidden [flowgraph] (rpython.translator.c.test.test_newgc:391)A.__del__ [flowgraph] (rpython.translator.c.test.test_newgc:388)A.__init__ [flowgraph] (rpython.translator.c.test.test_newgc:625)A.__del__ [flowgraph] (rpython.translator.c.test.test_newgc:1530)check [flowgraph] (rpython.rlib.rgc:1612)ll_write_final_null_char [flowgraph] (rpython.translator.c.test.test_newgc:2024)fn [flowgraph] (rpython.translator.c.test.test_newgc:441)B.__del__ [flowgraph] (rpython.translator.c.test.test_newgc:1889)X.__del__ [flowgraph] (rpython.rlib.rgc:36)old_state [flowgraph] (rpython.rlib.clibffi:310)get_libc_name [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)pypy_get_libc_handle [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_pypy_get_libc_handle [flowgraph] (rpython.rlib.rgil:160)release [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.translator.c.test.test_newgc:499)f_custom_light_finalizer [flowgraph] (rpython.translator.c.test.test_newgc:474)f_custom_trace [flowgraph] (rpython.translator.c.test.test_newgc:426)f_del_catches [flowgraph] (rpython.translator.c.test.test_newgc:1852)f_enable_disable [flowgraph] (rpython.translator.c.test.test_newgc:1956)f_increase_root_stack_depth [flowgraph] (rpython.translator.c.test.test_newgc:1673)f_limited_memory [flowgraph] (rpython.translator.c.test.test_newgc:1673)f_limited_memory_linux [flowgraph] (rpython.translator.c.test.test_newgc:1667)g [flowgraph] (rpython.translator.c.test.test_newgc:1665)A.__init__ [flowgraph] (rpython.translator.c.test.test_newgc:1667)g [flowgraph] (rpython.translator.c.test.test_newgc:1665)A.__init__ [flowgraph] (rpython.rlib.rgc:774)increase_root_stack_depth [flowgraph] (rpython.translator.c.test.test_newgc:1850)X.__del__ [flowgraph] (rpython.translator.c.test.test_newgc:420)f [flowgraph] (rpython.translator.c.test.test_newgc:412)A.__del__ [flowgraph] (rpython.translator.c.test.test_newgc:417)f1 [flowgraph] (rpython.translator.c.test.test_newgc:409)g [flowgraph] (rpython.translator.c.test.test_newgc:460)setup [flowgraph] (rpython.translator.c.test.test_newgc:495)setup [flowgraph] (rpython.memory.test.snippet:92)f_finalizer_order [flowgraph] (rpython.translator.c.test.test_newgc:1414)f_string_builder [flowgraph] (rpython.translator.c.test.test_newgc:1446)f_string_builder_multiple_builds [flowgraph] (rpython.translator.c.test.test_newgc:1462)f_string_builder_multiple_builds_2 [flowgraph] (rpython.translator.c.test.test_newgc:1428)f_string_builder_over_allocation [flowgraph] (rpython.memory.test.snippet:83)build_example [flowgraph] (rpython.memory.test.snippet:64)A.__init__ [flowgraph] (rpython.rlib.rgc:617)register_finalizer [flowgraph] (rpython.memory.test.snippet:71)finalizer_trigger [flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref [flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr [flowgraph] (rpython.rlib.rgc:600)next_dead [flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance [flowgraph] (rpython.translator.c.test.test_newgc:468)measure_length [flowgraph] (rpython.translator.c.test.test_newgc:1949)g [flowgraph] (rpython.rlib.rgil:171)acquire [flowgraph] (rpython.rlib.rgc:39)new_state [flowgraph] (rpython.translator.c.test.test_newgc:217)g [flowgraph] (rpython.rlib.rgc:953)cast_instance_to_gcref [flowgraph] (rpython.flowspace.specialcase:95)rpython_print_newline [flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end [flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw [flowgraph] (rpython.rtyper.lltypesystem.rstr:63)_get_raw_buf [flowgraph] (rpython.rtyper.lltypesystem.rstr:57)_str_ofs [flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr [flowgraph] (rpython.translator.c.test.test_newgc:363)reveal [flowgraph] (rpython.translator.c.test.test_newgc:365)overwrite [flowgraph] (?:2)mallocstr [flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr [flowgraph] (rpython.rlib.rthread:282)gc_thread_run [flowgraph] (rpython.memory.test.snippet:136)error [flowgraph] (rpython.memory.test.snippet:53)age_of [flowgraph] (rpython.rlib.rgc:964)try_cast_gcref_to_instance [flowgraph] (rpython.rtyper.lltypesystem.rffi:1410)scoped_utf82wcharp.__init__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:1418)scoped_utf82wcharp.__enter__ [flowgraph] (rpython.rlib.rutf8:470)codepoints_in_utf8 [flowgraph] (rpython.memory.test.snippet:55)set_age_of [flowgraph] (rpython.rlib.rgc:741)may_ignore_finalizer [flowgraph] (rpython.rtyper.lltypesystem.rffi:1138)utf82wcharp [flowgraph] (rpython.rlib.rutf8:799)Utf8StringIterator.__init__ [flowgraph] (rpython.rlib.rutf8:804)Utf8StringIterator.__iter__ [flowgraph] (rpython.rlib.objectmodel:766)UnboxedObject.__init__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_deflateInit2_ [flowgraph] (rpython.rlib.rutf8:813)Utf8StringIterator.next [flowgraph] (rpython.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll [flowgraph] (rpython.rlib.rzlib:239)fromstream [flowgraph] (rpython.rtyper.lltypesystem.rffi:854)charp2str [flowgraph] (rpython.rtyper.lltypesystem.rffi:1030)charpsize2str [flowgraph] (rpython.rtyper.lltypesystem.rstr:145)copy_raw_to_string [flowgraph] (rpython.rlib.rzlib:233)RZlibError.__init__ [flowgraph] (rpython.rlib.rzlib:309)deflateEnd [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)deflateEnd [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_deflateEnd [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)wrap_write [flowgraph] (rpython.translator.c.test.test_newgc:2066)UnboxedObject.meth [flowgraph] (rpython.translator.c.test.test_newgc:2054)TaggedBase.meth [flowgraph] (rpython.rlib.rgc:42)is_done [flowgraph] (rpython.rlib.rgc:51)is_done__states [flowgraph] (rpython.rlib.rgc:964)try_cast_gcref_to_instance [flowgraph] (rpython.rtyper.lltypesystem.rffi:1433)scoped_nonmovingbuffer.__exit__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_wrap_write [flowgraph] (rpython.rlib.rposix:151)_errno_before [flowgraph] (rpython.rlib.rthread:349)getraw [flowgraph] (rpython.rlib.rthread:349)getraw [flowgraph] (rpython.rlib.rthread:349)getraw [flowgraph] (rpython.rlib.rthread:349)getraw [flowgraph] (rpython.rlib.rposix:170)_errno_after [flowgraph] (rpython.rlib.rgc:964)try_cast_gcref_to_instance [flowgraph] (rpython.rlib.rthread:364)setraw [flowgraph] (rpython.rlib.rthread:364)setraw [flowgraph] (rpython.rlib.rthread:364)setraw [flowgraph] (rpython.rlib.rthread:364)setraw [flowgraph] (rpython.rlib.rgc:600)next_dead [flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance [flowgraph] (rpython.rlib.rwin32:394)GetModuleFileName [flowgraph] (rpython.rlib.rgc:953)cast_instance_to_gcref [flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)GetModuleFileNameA [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_GetModuleFileNameA [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)_wopen [flowgraph] (rpython.rtyper.lltypesystem.rffi:1420)scoped_utf82wcharp.__exit__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:831)free_charp [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall__wopen [flowgraph] (rpython.rlib.rposix:151)_errno_before [flowgraph] (rpython.rlib.clibffi:704)CDLL.__del__ [flowgraph] (rpython.rlib.clibffi:699)CDLL.__init__ [flowgraph] (rpython.rlib.clibffi:675)RawCDLL.getpointer [flowgraph] (rpython.rlib.rposix:170)_errno_after [flowgraph] (rpython.rlib.clibffi:672)RawCDLL.__init__ [flowgraph] (rpython.rlib.rdynload:259)dlclose [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)FreeLibrary [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_FreeLibrary [flowgraph] (rpython.rlib.rdynload:233)dlopen [flowgraph] (rpython.rlib.rdynload:266)dlsym [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)GetProcAddress [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_GetProcAddress [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)LoadLibraryW [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_LoadLibraryW [flowgraph] (rpython.rlib.rposix:151)_errno_before [flowgraph] (rpython.rlib.rdynload:66)DLOpenError.__init__ [flowgraph] (rpython.rlib.rposix:170)_errno_after [flowgraph] (rpython.rlib.clibffi:516)AbstractFuncPtr.__del__ [flowgraph] (rpython.rlib.clibffi:658)FuncPtr.__del__ [flowgraph] (rpython.rlib.clibffi:588)FuncPtr.__init__ [flowgraph] (rpython.rlib.clibffi:480)AbstractFuncPtr.__init__ [flowgraph] (rpython.rlib.clibffi:466)get_call_conv [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_prep_cif [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_prep_cif [flowgraph] (rpython.rlib.rwin32:172)GetLastError_saved [flowgraph] (rpython.rlib.rwin32:311)FormatErrorW [flowgraph] (rpython.rlib.rwin32:348)llimpl_FormatErrorW [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)LocalFree [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_LocalFree [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)FormatMessageW [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_FormatMessageW [flowgraph] (rpython.rtyper.lltypesystem.rffi:1100)wcharpsize2utf8 [flowgraph] (rpython.rlib.rutf8:63)unichr_as_utf8_append [flowgraph] (rpython.rlib.rutf8:80)_nonascii_unichr_as_utf8_append [flowgraph] (rpython.rlib.rutf8:35)OutOfRange.__init__ [flowgraph] (rpython.rlib.clibffi:553)CallbackFuncPtr.__del__ [flowgraph] (rpython.rlib.clibffi:532)CallbackFuncPtr.__init__ [flowgraph] (rpython.rlib.clibffi:610)FuncPtr.push_arg [flowgraph] (rpython.translator.c.test.test_newgc:734)callback [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_prep_closure_loc [flowgraph] (rpython.rlib.clibffi:389)push_arg_as_ffiptr [flowgraph] (?:6)wrapper [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_prep_closure_loc [flowgraph] (rpython.rlib.rgil:183)acquire_maybe_in_new_thread [flowgraph] (rpython.rlib.rthread:124)get_or_make_ident [flowgraph] (rpython.rlib.rthread:356)get_or_make_raw [flowgraph] (rpython.rlib.clibffi:446)ll_callback [flowgraph] (rpython.rlib.rposix:170)_errno_after [flowgraph] (?:1)callback_with_jitdriver [flowgraph] (rpython.rlib.jit:442)get_printable_location [flowgraph] (rpython.rlib.clibffi:433)_ll_callback [flowgraph] (rpython.rlib.rposix:151)_errno_before [flowgraph] (rpython.rlib.clibffi:610)FuncPtr.push_arg [flowgraph] (rpython.rlib.rposix:430)handle_posix_error [flowgraph] (rpython.rlib.rarithmetic:139)widen [flowgraph] (rpython.rlib.rposix:430)handle_posix_error [flowgraph] (rpython.rlib.rposix:113)get_saved_errno [flowgraph] (rpython.rlib.clibffi:389)push_arg_as_ffiptr [flowgraph] (rpython.rlib.rposix:508)close [flowgraph] (rpython.rlib.rposix:255)SuppressIPH.__init__ [flowgraph] (rpython.rlib.rposix:258)SuppressIPH.__enter__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)enter_suppress_iph [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_enter_suppress_iph [flowgraph] (rpython.translator.c.test.test_newgc:892)h [flowgraph] (rpython.translator.c.test.test_newgc:859)g [flowgraph] (rpython.translator.c.test.test_newgc:870)build [flowgraph] (rpython.translator.c.test.test_newgc:880)check [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)_close [flowgraph] (rpython.rlib.rposix:262)SuppressIPH.__exit__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)exit_suppress_iph [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_exit_suppress_iph [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall__close [flowgraph] (rpython.rlib.rposix:151)_errno_before [flowgraph] (rpython.rlib.rposix:170)_errno_after [flowgraph] (rpython.rlib.rposix:430)handle_posix_error [flowgraph] (rpython.rlib.rposix:518)lseek [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)_lseeki64 [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall__lseeki64 [flowgraph] (rpython.rlib.rposix:151)_errno_before [flowgraph] (rpython.rlib.rposix:170)_errno_after [flowgraph] (rpython.rlib.rposix:430)handle_posix_error [flowgraph] (rpython.rlib.rposix:490)read [flowgraph] (rpython.rtyper.lltypesystem.rffi:1469)scoped_alloc_buffer.__init__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:1471)scoped_alloc_buffer.__enter__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:953)alloc_buffer [flowgraph] (rpython.rtyper.lltypesystem.rffi:1474)scoped_alloc_buffer.__exit__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:1008)keep_buffer_alive_until_here [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)wrap_read [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_wrap_read [flowgraph] (rpython.rlib.rposix:151)_errno_before [flowgraph] (rpython.rlib.rposix:170)_errno_after [flowgraph] (rpython.rlib.rposix:430)handle_posix_error [flowgraph] (rpython.rtyper.lltypesystem.rffi:1476)scoped_alloc_buffer.str [flowgraph] (?:2)str_from_buffer [flowgraph] (rpython.rtyper.lltypesystem.rffi:988)str_from_buffer [flowgraph] (rpython.rlib.clibffi:550)CallbackFuncPtr.get_closure [flowgraph] (rpython.rlib.clibffi:638)FuncPtr.call [flowgraph] (rpython.rlib.clibffi:631)FuncPtr._check_args [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_call [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_call [flowgraph] (rpython.rlib.rposix:151)_errno_before [flowgraph] (rpython.rlib.rposix:170)_errno_after [flowgraph] (rpython.rlib.clibffi:635)FuncPtr._clean_args [flowgraph] (rpython.rlib.clibffi:263)check_fficall_result [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo_sizeof_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo_has_final_null_char_0 [flowgraph] (?:1)memo__contains_gcptr_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo__contains_gcptr_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo_offsetof_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo_CArray_0 [flowgraph] (?:1)memo_sizeof_0 [flowgraph] (?:1)memo_CArray_0 [flowgraph] (?:1)memo_sizeof_0 [flowgraph] (?:1)memo_sizeof_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__make_wrapper_for_0 [flowgraph] (?:1)memo__should_widen_type_0 [flowgraph] (?:1)memo_CArray_0 [flowgraph] (?:1)memo_sizeof_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [translation:info] RTyping... [flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info [flowgraph] (rpython.rtyper.rlist:690)ll_getitem_nonneg [flowgraph] (rpython.rtyper.rlist:719)ll_getitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items [flowgraph] (rpython.rtyper.lltypesystem.rstr:1058)ll_int [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem [flowgraph] (rpython.rtyper.lltypesystem.rstr:394)ll_strhash [flowgraph] (rpython.rlib.jit:1321)conditional_call_elidable [flowgraph] (rpython.rtyper.lltypesystem.rstr:402)_ll_strhash [flowgraph] (rpython.rlib.objectmodel:620)ll_hash_string [flowgraph] (rpython.rlib.objectmodel:595)_hash_string [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash [flowgraph] (?:11)ll_call_lookup_function_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed [flowgraph] (rpython.rtyper.lltypesystem.rstr:420)ll_strfasthash [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:602)ll_valid_from_key [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes [flowgraph] (rpython.rlib.rgc:508)ll_arrayclear [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.rlib.rgc:508)ll_arrayclear [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.rlib.rgc:508)ll_arrayclear [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.rlib.rgc:508)ll_arrayclear [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (?:2)ll_call_lookup_function_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rstr:601)ll_streq [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_create_initial_index_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (?:1)memo__ll_ptr_to_array_of_0 [flowgraph] (?:1)memo__ll_ptr_to_array_of_0 [flowgraph] (?:1)memo__ll_ptr_to_array_of_0 [flowgraph] (?:1)memo__ll_ptr_to_array_of_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (rpython.rtyper.rlist:690)ll_getitem_nonneg [flowgraph] (rpython.rtyper.rlist:723)ll_getitem_foldable_nonneg [flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter [flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext [flowgraph] (rpython.rtyper.rlist:590)ll_append [flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length [flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:1300)conditional_call [flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rlist:198) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really [flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)_ll_list_resize_hint_really_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really [flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items [flowgraph] (?:1)memo__ll_prebuilt_empty_array_0 [flowgraph] (?:1)memo__contains_gcptr_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (rpython.rtyper.rlist:690)ll_getitem_nonneg [flowgraph] (rpython.rtyper.rlist:723)ll_getitem_foldable_nonneg [flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast [flowgraph] (rpython.rtyper.rint:149)ll_str [flowgraph] (rpython.rtyper.lltypesystem.ll_str:13)ll_int2dec [flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned [flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange [flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter [flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist [flowgraph] (rpython.rtyper.rlist:728)ll_setitem_nonneg [flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist [flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array [flowgraph] (?:1)memo__ll_prebuilt_empty_array_0 [flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist [flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array [flowgraph] (?:1)memo__ll_prebuilt_empty_array_0 [flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter [flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set [flowgraph] (rpython.rlib.rarithmetic:741)int_force_ge_zero [flowgraph] (rpython.rtyper.rlist:510)_ll_alloc_and_set_jit [flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null [flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit [flowgraph] (rpython.rtyper.lltypesystem.rlist:324)ll_newlist [flowgraph] (rpython.rtyper.rlist:522)_ll_alloc_and_clear [flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items [flowgraph] (rpython.rlib.rgc:508)ll_arrayclear [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set [flowgraph] (rpython.rtyper.rlist:510)_ll_alloc_and_set_jit [flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null [flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit [flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist [flowgraph] (rpython.rtyper.rlist:522)_ll_alloc_and_clear [flowgraph] (rpython.rtyper.lltypesystem.rlist:399)ll_fixed_items [flowgraph] (?:11)_ll_alloc_and_set_nonnull_look_inside_iff [flowgraph] (rpython.rtyper.rlist:530) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.rlist:530)_ll_alloc_and_set_nonnull [flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast [flowgraph] (rpython.rlib.rgc:508)ll_arrayclear [flowgraph] (rpython.rlib.rgc:538)ll_arrayfill [flowgraph] (?:2)_ll_alloc_and_set_nonnull_trampoline [flowgraph] (rpython.rtyper.rlist:530)_ll_alloc_and_set_nonnull [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (rpython.rtyper.rlist:582)ll_len_foldable [flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length [flowgraph] (rpython.rtyper.rlist:690)ll_getitem_nonneg [flowgraph] (rpython.rtyper.rlist:723)ll_getitem_foldable_nonneg [flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast [flowgraph] (rpython.rtyper.rlist:1001)ll_listcontains [flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length [flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast [flowgraph] (rpython.rtyper.rlist:728)ll_setitem_nonneg [flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash [flowgraph] (rpython.rtyper.lltypesystem.rlist:324)ll_newlist [flowgraph] (rpython.rtyper.rlist:728)ll_setitem_nonneg [flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast [flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set [flowgraph] (rpython.rtyper.rlist:510)_ll_alloc_and_set_jit [flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null [flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit [flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist [flowgraph] (rpython.rtyper.rlist:522)_ll_alloc_and_clear [flowgraph] (rpython.rtyper.lltypesystem.rlist:399)ll_fixed_items [flowgraph] (?:11)_ll_alloc_and_set_nonnull_look_inside_iff [flowgraph] (rpython.rtyper.rlist:530) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.rlist:530)_ll_alloc_and_set_nonnull [flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast [flowgraph] (rpython.rlib.rgc:538)ll_arrayfill [flowgraph] (rpython.rlib.rgc:508)ll_arrayclear [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (?:2)_ll_alloc_and_set_nonnull_trampoline [flowgraph] (rpython.rtyper.rlist:530)_ll_alloc_and_set_nonnull [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (rpython.rtyper.rlist:582)ll_len_foldable [flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length [flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist [flowgraph] (rpython.rtyper.rrange:172)ll_rangenext_up [flowgraph] (?:11)ll_join_chars_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rstr:821) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (?:2)ll_join_chars_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars [flowgraph] (rpython.rtyper.rint:502)ll_int_py_mod_nonnegargs [flowgraph] (rpython.rtyper.rlist:590)ll_append [flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length [flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:1300)conditional_call [flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rlist:198) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)_ll_list_resize_hint_really_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really [flowgraph] (?:1)memo__contains_gcptr_0 [flowgraph] (rpython.rtyper.lltypesystem.rlist:391)ll_fixed_newemptylist [flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist [flowgraph] (rpython.rtyper.rlist:728)ll_setitem_nonneg [flowgraph] (rpython.rtyper.lltypesystem.rtagged:155)ll_unboxed_getclass [flowgraph] (rpython.rtyper.rlist:574)ll_len [flowgraph] (rpython.rtyper.rlist:690)ll_getitem_nonneg [flowgraph] (rpython.rtyper.rlist:723)ll_getitem_foldable_nonneg [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:648)ll_dict_len [flowgraph] (rpython.rtyper.rlist:582)ll_len_foldable [flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:640)ll_keyhash_custom [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash [flowgraph] (?:11)ll_call_lookup_function_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:625)ll_hash_from_cache [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:644)ll_keyeq_custom [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:602)ll_valid_from_key [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes [flowgraph] (?:2)ll_call_lookup_function_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_create_initial_index_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter [flowgraph] (rpython.rtyper.lltypesystem.rlist:484)ll_listnext_foldable [flowgraph] (rpython.rtyper.lltypesystem.rstr:425)ll_strconcat [flowgraph] (rpython.rtyper.lltypesystem.rstr:416)ll_length [flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents [flowgraph] (rpython.rtyper.rlist:590)ll_append [flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length [flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:1300)conditional_call [flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rlist:198) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)_ll_list_resize_hint_really_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really [flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index [flowgraph] (?:1)memo__ll_empty_array_0 [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:648)ll_dict_len [rtyper] specializing: 200 / 3678 blocks (5%) [flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen [flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash [flowgraph] (rpython.rtyper.rtuple:62)ll_hash [flowgraph] (rpython.rtyper.rnone:42)ll_none_hash [flowgraph] (rpython.rtyper.rtuple:62)ll_hash [flowgraph] (rpython.rlib.objectmodel:623)_hash_float [flowgraph] (rpython.rtyper.rint:619)ll_hash_int [flowgraph] (rpython.rtyper.lltypesystem.rlist:484)ll_listnext_foldable [flowgraph] (?:11)ll_join_strs_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rstr:785) [flowgraph] (rpython.rlib.jit:294)loop_unrolling_heuristic [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs [flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (?:2)ll_join_strs_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs [flowgraph] (rpython.rtyper.lltypesystem.rlist:476)ll_listnext [flowgraph] (rpython.rtyper.lltypesystem.rstr:333)ll_char_mul [flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter [flowgraph] (rpython.rtyper.lltypesystem.rlist:476)ll_listnext [rtyper] specializing: 400 / 3768 blocks (10%) [flowgraph] (rpython.rtyper.rlist:590)ll_append [flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length [flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:1300)conditional_call [flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rlist:198) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really [flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)_ll_list_resize_hint_really_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really [flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast [flowgraph] (?:1)memo__ll_prebuilt_empty_array_0 [flowgraph] (?:1)memo__contains_gcptr_0 [flowgraph] (rpython.rtyper.rlist:574)ll_len [flowgraph] (rpython.rtyper.rlist:699)ll_getitem [flowgraph] (rpython.rtyper.rlist:719)ll_getitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rlist:493)ll_getnextindex [flowgraph] (rpython.rlib.rerased:196)ll_unerase_int [flowgraph] (rpython.rtyper.rlist:690)ll_getitem_nonneg [flowgraph] (rpython.rtyper.rlist:723)ll_getitem_foldable_nonneg [flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast [flowgraph] (rpython.translator.c.test.test_newgc:491)customlightfinlz [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:445)ll_new [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:178)ll_append_char [flowgraph] (rpython.rlib.jit:1300)conditional_call [flowgraph] (?:2)ll_grow_by [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:94)ll_grow_by [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:155)ll_append [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:163)ll_jit_append [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:233)ll_jit_try_append_slice [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:80)_ll_append [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:117)ll_grow_and_append [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:171)ll_append_res0 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_2 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_2 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_3 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_3 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_4 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_4 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_5 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_5 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_6 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_6 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_7 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_7 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_8 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_8 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_9 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_9 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_10 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_10 [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:189)ll_append_slice [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:197)ll_jit_append_slice [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:205)ll_append_res_slice [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:275)ll_append_multiple_char [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:299)ll_jit_try_append_multiple_char [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:282)_ll_append_multiple_char [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:11)ll_build_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:374)ll_fold_pieces [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:346)ll_getlength [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:365)ll_shrink_final [flowgraph] (?:2)ll_build_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build [flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange [flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter [flowgraph] (rpython.rtyper.lltypesystem.rstr:539)ll_join [flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr [flowgraph] (?:1)memo_emptystrfun_0 [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index [flowgraph] (?:1)memo__ll_empty_array_0 [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem [flowgraph] (rpython.rtyper.rstr:937)ll_char_hash [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash [flowgraph] (?:11)ll_call_lookup_function_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:607)ll_valid_from_value [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (?:2)ll_call_lookup_function_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_create_initial_index_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done [flowgraph] (?:11)ll_dict_grow_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:745)_overallocate_entries_len [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function [flowgraph] (?:2)ll_dict_grow_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow [flowgraph] (?:1)memo__contains_gcptr_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash [flowgraph] (rpython.rtyper.lltypesystem.rlist:493)ll_getnextindex [flowgraph] (rpython.rtyper.rlist:690)ll_getitem_nonneg [flowgraph] (?:11)ll_listdelslice_startonly_look_inside_iff [flowgraph] (rpython.rtyper.rlist:914) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.rlist:914)ll_listdelslice_startonly [flowgraph] (rpython.rtyper.rlist:541)ll_null_item [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)ll_listdelslice_startonly_trampoline [flowgraph] (rpython.rtyper.rlist:914)ll_listdelslice_startonly [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:1300)conditional_call [flowgraph] (rpython.rtyper.lltypesystem.rstr:362)ll_chr2str [flowgraph] (rpython.rtyper.rlist:635)ll_pop_default [flowgraph] (rpython.rtyper.rlist:541)ll_null_item [flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:1300)conditional_call [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash [flowgraph] (?:11)ll_call_lookup_function_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (?:2)ll_call_lookup_function_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_create_initial_index_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done [flowgraph] (?:11)ll_dict_grow_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function [flowgraph] (?:2)ll_dict_grow_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow [flowgraph] (?:1)memo__contains_gcptr_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (rpython.rtyper.rstr:555)ll_str [flowgraph] (rpython.rtyper.rlist:1001)ll_listcontains [flowgraph] (rpython.rtyper.rstr:426)ll_str [flowgraph] (?:1)memo_ll_constant_0 [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index [flowgraph] (?:1)memo__ll_empty_array_0 [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1218)ll_dictiter [flowgraph] (?:11)_ll_dictnext_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)_ll_dictnext [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (?:2)_ll_dictnext_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)_ll_dictnext [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1462)ll_dict_contains [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1465)ll_dict_contains_with_hash [flowgraph] (?:11)ll_call_lookup_function_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes [flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean [flowgraph] (?:2)ll_call_lookup_function_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup [flowgraph] (?:2)ll_dict_create_initial_index_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index [flowgraph] (rpython.rtyper.rlist:699)ll_getitem [flowgraph] (rpython.rtyper.rlist:719)ll_getitem_fast [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash [flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done [flowgraph] (?:11)ll_dict_grow_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)ll_arraycopy [flowgraph] (rpython.rlib.rgc:362)ll_arraycopy [flowgraph] (rpython.rlib.rgc:342)copy_item [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function [flowgraph] (?:2)ll_dict_grow_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow [flowgraph] (?:1)memo__contains_gcptr_0 [flowgraph] (?:1)memo_itemoffsetof_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (rpython.rtyper.lltypesystem.rstr:354)ll_stritem_nonneg [flowgraph] (rpython.rtyper.rlist:737)ll_setitem [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem [flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash [rtyper] specializing: 1000 / 6022 blocks (16%) [flowgraph] (rpython.rtyper.rlist:582)ll_len_foldable [flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length [flowgraph] (rpython.rtyper.rlist:690)ll_getitem_nonneg [flowgraph] (rpython.rtyper.rlist:723)ll_getitem_foldable_nonneg [flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast [rtyper] specializing: 1300 / 6033 blocks (21%) [flowgraph] (rpython.rtyper.rclass:870)ll_str [flowgraph] (rpython.rtyper.lltypesystem.ll_str:47)ll_int2hex [flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned [flowgraph] (?:1)memo_conststr_0 [flowgraph] (?:1)memo_conststr_0 [flowgraph] (?:1)memo_conststr_0 [flowgraph] (?:1)memo_conststr_0 [flowgraph] (rpython.rtyper.rint:410)ll_int_py_div_nonnegargs [rtyper] specializing: 1600 / 6067 blocks (26%) [flowgraph] (?:11)ll_listeq_look_inside_iff [flowgraph] (rpython.rtyper.rlist:972)listeq_unroll_case [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.rlist:979)ll_listeq [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (?:2)ll_listeq_trampoline [flowgraph] (rpython.rtyper.rlist:979)ll_listeq [rtyper] specializing: 1900 / 6103 blocks (31%) [rtyper] specializing: 2000 / 6103 blocks (32%) [rtyper] specializing: 2300 / 6103 blocks (37%) [rtyper] specializing: 2600 / 6103 blocks (42%) [flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div [flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod [rtyper] specializing: 2900 / 6107 blocks (47%) [rtyper] specializing: 3200 / 6107 blocks (52%) [rtyper] specializing: 3500 / 6107 blocks (57%) [flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:106)ll_math_isfinite [flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:98)ll_math_isinf [flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:158)ll_math_frexp [rtyper] specializing: 3800 / 6107 blocks (62%) [flowgraph] (rpython.rtyper.rbuiltin:240)ll_min [rtyper] specializing: 4100 / 6109 blocks (67%) [rtyper] specializing: 4400 / 6109 blocks (72%) [flowgraph] (rpython.rtyper.rint:398)ll_int_py_div [flowgraph] (rpython.rtyper.rbuiltin:240)ll_min [rtyper] specializing: 4800 / 6116 blocks (78%) [rtyper] specializing: 5100 / 6116 blocks (83%) [rtyper] specializing: 5400 / 6116 blocks (88%) [rtyper] specializing: 5700 / 6116 blocks (93%) [rtyper] specializing: 6000 / 6116 blocks (98%) [rtyper] -=- specialized 6116 blocks -=- [flowgraph] (rpython.rlib.objectmodel:397)revdb_flag_io_disabled [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)_finite [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall__finite [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)frexp [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_frexp [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)_isnan [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall__isnan [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [rtyper] -=- specialized 52 more blocks -=- [rtyper] -=- specialized 0 more blocks -=- [flowgraph] (rpython.rtyper.rclass:1130)ll_type [rtyper] -=- specialized 2 more blocks -=- [translation:info] usession directory: c:\users\runner~1\appdata\local\temp\usession-pypy-HEAD-12 [translation:info] already done: Annotating&simplifying [translation:info] already done: RTyping [translation:info] inserting stack checks... [flowgraph] (rpython.rlib.rstack:42)stack_check [flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath [rtyper] -=- specialized 8 more blocks -=- [translation:info] inserted 17 stack checks. [translation:info] Creating database for generating c source... [flowgraph] (rpython.translator.exceptiontransform:100)rpyexc_occurred [flowgraph] (rpython.translator.exceptiontransform:104)rpyexc_fetch_type [flowgraph] (rpython.translator.exceptiontransform:107)rpyexc_fetch_value [flowgraph] (rpython.translator.exceptiontransform:110)rpyexc_clear [flowgraph] (rpython.translator.exceptiontransform:114)rpyexc_raise [flowgraph] (rpython.translator.exceptiontransform:128)rpyexc_reraise [flowgraph] (rpython.translator.exceptiontransform:133)rpyexc_fetch_exception [flowgraph] (rpython.translator.exceptiontransform:138)rpyexc_restore_exception [flowgraph] (rpython.translator.exceptiontransform:539)rpyexc_get_exception_addr [flowgraph] (rpython.translator.exceptiontransform:543)rpyexc_get_exc_value_addr [flowgraph] (rpython.rtyper.rclass:1173)ll_inst_type [rtyper] specializing: 6200 / 6203 blocks (99%) [rtyper] -=- specialized 25 more blocks -=- [flowgraph] (rpython.memory.gctransform.transform:447)_ll_malloc_fixedsize [flowgraph] (rpython.memory.gctransform.transform:454)_ll_malloc_fixedsize_zero [flowgraph] (rpython.memory.gctransform.transform:470)_ll_malloc_varsize_no_length [flowgraph] (rpython.memory.gctransform.transform:487)ll_malloc_varsize [flowgraph] (rpython.memory.gctransform.transform:493)_ll_malloc_varsize_no_length_zero [flowgraph] (rpython.memory.gctransform.framework:178)frameworkgc_setup [flowgraph] (rpython.memory.gctransform.framework:184)frameworkgc__teardown [flowgraph] (rpython.memory.gctransform.shadowstack:80)incr_stack [flowgraph] (rpython.memory.gctransform.shadowstack:86)decr_stack [flowgraph] (rpython.memory.gctypelayout:594)ll_weakref_deref [flowgraph] (rpython.memory.gc.incminimark:640)IncrementalMiniMarkGC.malloc_fixedsize [flowgraph] (rpython.memory.gc.incminimark:696)IncrementalMiniMarkGC.malloc_varsize [flowgraph] (rpython.memory.gc.incminimark:783)IncrementalMiniMarkGC.collect [flowgraph] (rpython.memory.gc.incminimark:810)IncrementalMiniMarkGC.collect_step [flowgraph] (rpython.memory.gc.incminimark:530)IncrementalMiniMarkGC.enable [flowgraph] (rpython.memory.gc.incminimark:533)IncrementalMiniMarkGC.disable [flowgraph] (rpython.memory.gc.incminimark:536)IncrementalMiniMarkGC.isenabled [flowgraph] (rpython.memory.gc.incminimark:1117)IncrementalMiniMarkGC.can_move [flowgraph] (rpython.memory.gc.incminimark:1160)IncrementalMiniMarkGC.shrink_array [flowgraph] (rpython.memory.gc.base:149)GCBase.get_type_id_cast [flowgraph] (rpython.memory.gc.incminimark:1628)IncrementalMiniMarkGC.writebarrier_before_copy [flowgraph] (rpython.memory.gc.incminimark:1701)IncrementalMiniMarkGC.writebarrier_before_move [flowgraph] (rpython.memory.gc.incminimark:640)IncrementalMiniMarkGC.malloc_fast [flowgraph] (rpython.memory.gc.incminimark:696)IncrementalMiniMarkGC.malloc_varsize_fast [flowgraph] (rpython.memory.gctransform.framework:411)raw_malloc_memory_pressure_varsize [flowgraph] (rpython.memory.gctransform.framework:417)raw_malloc_memory_pressure [flowgraph] (rpython.memory.gctransform.framework:430)get_stats [flowgraph] (rpython.memory.gc.incminimark:2878)IncrementalMiniMarkGC.identityhash [flowgraph] (rpython.memory.gc.incminimark:2875)IncrementalMiniMarkGC.id [flowgraph] (rpython.memory.gc.inspector:32)get_rpy_roots [flowgraph] (rpython.memory.gc.inspector:63)get_rpy_referents [flowgraph] (rpython.memory.gc.inspector:76)get_rpy_memory_usage [flowgraph] (rpython.memory.gc.inspector:79)get_rpy_type_index [flowgraph] (rpython.memory.gc.inspector:83)is_rpy_instance [flowgraph] (rpython.memory.gc.inspector:265)dump_rpy_heap [flowgraph] (rpython.memory.gc.inspector:281)get_typeids_z [flowgraph] (rpython.memory.gc.inspector:285)get_typeids_list [flowgraph] (rpython.memory.gc.incminimark:1094)IncrementalMiniMarkGC.set_max_heap_size [flowgraph] (rpython.memory.gc.incminimark:3172)IncrementalMiniMarkGC.rawrefcount_init [flowgraph] (rpython.memory.gc.incminimark:3196)IncrementalMiniMarkGC.rawrefcount_create_link_pypy [flowgraph] (rpython.memory.gc.incminimark:3212)IncrementalMiniMarkGC.rawrefcount_create_link_pyobj [flowgraph] (rpython.memory.gc.incminimark:3223)IncrementalMiniMarkGC.rawrefcount_mark_deallocating [flowgraph] (rpython.memory.gc.incminimark:3229)IncrementalMiniMarkGC.rawrefcount_from_obj [flowgraph] (rpython.memory.gc.incminimark:3237)IncrementalMiniMarkGC.rawrefcount_to_obj [flowgraph] (rpython.memory.gc.incminimark:3241)IncrementalMiniMarkGC.rawrefcount_next_dead [flowgraph] (rpython.memory.gc.incminimark:1121)IncrementalMiniMarkGC.pin [flowgraph] (rpython.memory.gc.incminimark:1150)IncrementalMiniMarkGC.unpin [flowgraph] (rpython.memory.gc.incminimark:1157)IncrementalMiniMarkGC._is_pinned [flowgraph] (rpython.memory.gc.incminimark:1489)IncrementalMiniMarkGC.write_barrier [flowgraph] (rpython.memory.gc.incminimark:1538)remember_young_pointer [flowgraph] (rpython.memory.gc.incminimark:1495)IncrementalMiniMarkGC.write_barrier_from_array [flowgraph] (rpython.memory.gc.incminimark:1606)jit_remember_young_pointer_from_array [flowgraph] (rpython.memory.gc.incminimark:765)IncrementalMiniMarkGC.malloc_fixed_or_varsize_nonmovable [flowgraph] (rpython.memory.gc.incminimark:1755)IncrementalMiniMarkGC.register_finalizer [flowgraph] (rpython.memory.gc.incminimark:3043)IncrementalMiniMarkGC.ignore_finalizer [flowgraph] (rpython.memory.gc.incminimark:770)IncrementalMiniMarkGC.move_out_of_nursery [flowgraph] (rpython.memory.gctransform.shadowstack:258)gc_increase_root_stack_depth [flowgraph] (rpython.memory.gctransform.shadowstack:351)ShadowStackPool.increase_root_stack_depth [flowgraph] (rpython.memory.gc.incminimark:1208)IncrementalMiniMarkGC.is_in_nursery [flowgraph] (rpython.memory.gc.base:130)GCBase.header [flowgraph] (rpython.memory.gc.incminimark:955)IncrementalMiniMarkGC.external_malloc [flowgraph] (rpython.memory.gc.incminimark:1192)IncrementalMiniMarkGC.combine [flowgraph] (rpython.memory.gc.incminimark:1503)IncrementalMiniMarkGC._remember_young_pointer_inlined [flowgraph] (rpython.memory.support:122)AddressStack.append [flowgraph] (rpython.memory.gc.incminimark:3169)IncrementalMiniMarkGC._pyobj [flowgraph] (rpython.memory.gc.incminimark:1213)IncrementalMiniMarkGC.is_young_object [flowgraph] (rpython.memory.gc.base:380)GCBase.is_valid_gc_object [flowgraph] (rpython.memory.support:101)AddressStack.__init__ [flowgraph] (rpython.memory.support:307)AddressDict [flowgraph] (rpython.memory.lldict:17)newdict [flowgraph] (rpython.rtyper.lltypesystem.rdict:667)ll_newdict_size [flowgraph] (rpython.memory.lldict:20)dict_allocate [flowgraph] (rpython.memory.support:40)FreeList.get [flowgraph] (rpython.memory.gc.inspector:201)HeapDumper.__init__ [flowgraph] (rpython.memory.gc.inspector:173)BaseWalker.process [flowgraph] (rpython.memory.gc.inspector:112)BaseWalker.add_roots [flowgraph] (rpython.memory.gc.inspector:99)BaseWalker.__init__ [flowgraph] (rpython.memory.gc.incminimark:1188)IncrementalMiniMarkGC.get_type_id [flowgraph] (rpython.memory.gc.base:152)GCBase.get_size_incl_hash [flowgraph] (rpython.memory.gc.base:146)GCBase.get_size [flowgraph] (rpython.memory.gc.inspector:56)_do_append_rpy_referents [flowgraph] (rpython.memory.gc.base:259)GCBase.trace [flowgraph] (rpython.memory.gc.inspector:25)_do_append_rpy_roots [flowgraph] (rpython.memory.gc.incminimark:2729)IncrementalMiniMarkGC.enumerate_all_roots [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.inspector:14)_append_rpy_root [flowgraph] (rpython.memory.gc.incminimark:2864)IncrementalMiniMarkGC.id_or_identityhash [flowgraph] (rpython.memory.support:10)mangle_hash [flowgraph] (rpython.memory.gc.incminimark:3128)IncrementalMiniMarkGC.get_stats [flowgraph] (rpython.memory.gc.incminimark:1264)IncrementalMiniMarkGC.get_total_memory_used [flowgraph] (rpython.memory.gc.incminimark:1281)IncrementalMiniMarkGC.get_peak_memory_used [flowgraph] (rpython.memory.gc.incminimark:1275)IncrementalMiniMarkGC.get_peak_memory_alloced [flowgraph] (rpython.memory.gc.incminimark:1270)IncrementalMiniMarkGC.get_total_memory_alloced [flowgraph] (rpython.memory.gc.inspector:273)count_memory_pressure [flowgraph] (rpython.memory.gc.inspector:180)MemoryPressureCounter.__init__ [flowgraph] (rpython.memory.gc.incminimark:1102)IncrementalMiniMarkGC.raw_malloc_memory_pressure [flowgraph] (rpython.rtyper.lltypesystem.llarena:365)round_up_for_allocation [flowgraph] (rpython.memory.gc.incminimark:752)IncrementalMiniMarkGC._bump_pointer [flowgraph] (rpython.memory.gc.incminimark:1765)IncrementalMiniMarkGC._minor_collection [flowgraph] (rpython.rlib.rtime:146)time [flowgraph] (rpython.memory.gc.incminimark:824)IncrementalMiniMarkGC.minor_collection_with_major_progress [flowgraph] (rpython.memory.gc.incminimark:2366)IncrementalMiniMarkGC.minor_and_major_collection [flowgraph] (rpython.memory.gc.incminimark:2375)IncrementalMiniMarkGC.gc_step_until [flowgraph] (rpython.memory.gc.incminimark:865)IncrementalMiniMarkGC.collect_and_reserve [flowgraph] (rpython.memory.gc.incminimark:1195)IncrementalMiniMarkGC.init_gc_object [flowgraph] (rpython.memory.gc.base:64)GCBase._teardown [flowgraph] (rpython.memory.gctransform.shadowstack:108)setup_root_walker [flowgraph] (rpython.memory.gctransform.shadowstack:288)ShadowStackPool.initial_setup [flowgraph] (rpython.memory.gctransform.shadowstack:344)ShadowStackPool._prepare_unused_stack [flowgraph] (rpython.memory.gctransform.shadowstack:335)ShadowStackPool.start_fresh_new_state [flowgraph] (?:2)debug_start [flowgraph] (rpython.memory.gc.base:385)GCBase.enumerate_all_roots [flowgraph] (rpython.memory.gc.incminimark:2729)IncrementalMiniMarkGC.enumerate_all_roots [flowgraph] (rpython.memory.lldict:29)dict_allocate_entries [flowgraph] (rpython.memory.gctypelayout:110)GCData.q_fixed_size [flowgraph] (rpython.memory.gctypelayout:59)GCData.get [flowgraph] (rpython.memory.gctypelayout:204)_check_valid_type_info [flowgraph] (rpython.memory.support:108)AddressStack.enlarge [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.inspector:259)_hd_add_root [flowgraph] (rpython.memory.gc.inspector:123)BaseWalker.add [flowgraph] (rpython.memory.gctransform.framework:1758)walk_roots [flowgraph] (rpython.memory.gc.base:377)GCBase.points_to_valid_gc_object [flowgraph] (rpython.memory.gc.base:600)callback2 [flowgraph] (rpython.memory.gctransform.shadowstack:112)walk_stack_roots [flowgraph] (rpython.rlib.debug:126)debug_start [flowgraph] (rpython.memory.gctransform.shadowstack:43)walk_stack_root [flowgraph] (rpython.memory.gc.base:385)GCBase.enumerate_all_roots [flowgraph] (rpython.memory.gc.incminimark:1557)remember_young_pointer_from_array2 [flowgraph] (rpython.memory.gc.incminimark:1622)IncrementalMiniMarkGC.get_card [flowgraph] (rpython.memory.gc.incminimark:2847)IncrementalMiniMarkGC._find_shadow [flowgraph] (rpython.memory.gc.incminimark:2818)IncrementalMiniMarkGC._allocate_shadow [flowgraph] (rpython.memory.gctransform.shadowstack:93) [flowgraph] (rpython.memory.gctypelayout:143)GCData.q_fast_path_tracing [flowgraph] (rpython.memory.gc.base:134)GCBase._get_size_for_typeid [flowgraph] (rpython.memory.gc.base:118)GCBase.get_member_index [flowgraph] (rpython.memory.gctypelayout:135)GCData.q_is_rpython_class [flowgraph] (rpython.memory.gctypelayout:131)GCData.q_member_index [flowgraph] (rpython.memory.gctypelayout:73)GCData.q_is_varsize [flowgraph] (rpython.memory.gctypelayout:113)GCData.q_varsize_item_sizes [flowgraph] (rpython.memory.gctypelayout:66)GCData.get_varsize [flowgraph] (rpython.memory.gctypelayout:207)_check_valid_type_info_varsize [flowgraph] (rpython.memory.gctypelayout:119)GCData.q_varsize_offset_to_length [flowgraph] (rpython.memory.gc.base:600)callback2 [flowgraph] (rpython.memory.gctransform.shadowstack:376)ShadowStackPool._resize [flowgraph] (rpython.memory.gc.incminimark:1288)IncrementalMiniMarkGC.threshold_reached [flowgraph] (rpython.memory.gctypelayout:107)GCData.q_offsets_to_gc_pointers [flowgraph] (rpython.memory.gctypelayout:85)GCData.q_is_gcarrayofgcptr [flowgraph] (rpython.memory.gc.incminimark:2301)IncrementalMiniMarkGC._malloc_out_of_nursery [flowgraph] (rpython.memory.gctransform.framework:1754)setup_root_walker [flowgraph] (rpython.memory.gc.inspector:44)_append_rpy_referent [flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path [flowgraph] (rpython.memory.gctypelayout:77)GCData.q_has_gcptr_in_varsize [flowgraph] (rpython.memory.gc.minimarkpage:154)ArenaCollection.malloc [flowgraph] (rpython.memory.gc.minimarkpage:197)ArenaCollection.allocate_new_page [flowgraph] (rpython.memory.gc.minimarkpage:278)ArenaCollection.allocate_new_arena [flowgraph] (rpython.memory.gc.minimarkpage:259)ArenaCollection._pick_next_arena [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.memory.gc.minimarkpage:604)_dummy_size [flowgraph] (rpython.memory.gc.incminimark:2313)IncrementalMiniMarkGC._malloc_out_of_nursery_nonsmall [flowgraph] (rpython.memory.gc.minimarkpage:611)out_of_memory [flowgraph] (rpython.rtyper.debug:49)fatalerror [flowgraph] (rpython.memory.gctypelayout:116)GCData.q_varsize_offset_to_variable_part [flowgraph] (rpython.memory.gctypelayout:139)GCData.q_has_custom_trace [flowgraph] (rpython.memory.gc.minimarkpage:386)ArenaCollection._rehash_arenas_lists [flowgraph] (rpython.memory.gctypelayout:122)GCData.q_varsize_offsets_to_gcpointers_in_var_part [flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.gc.minimarkpage:589)start_of_page [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.memory.gc.incminimark:374)IncrementalMiniMarkGC.setup [flowgraph] (rpython.memory.gc.incminimark:2734)IncrementalMiniMarkGC.enum_live_with_finalizers [flowgraph] (rpython.memory.gc.incminimark:2734)IncrementalMiniMarkGC.enum_live_with_finalizers [flowgraph] (rpython.rtyper.lltypesystem.rdict:866)ll_contains [flowgraph] (rpython.memory.lldict:47)dict_keyhash [flowgraph] (rpython.memory.lldict:44)_hash [flowgraph] (rpython.memory.lldict:56)dict_get [flowgraph] (rpython.rtyper.lltypesystem.rdict:735)ll_get [flowgraph] (rpython.rtyper.lltypesystem.rdict:459)ll_dict_setitem [flowgraph] (rpython.memory.support:130)AddressStack.non_empty [flowgraph] (rpython.memory.gc.base:45)GCBase.setup [flowgraph] (rpython.memory.support:228)AddressDeque.__init__ [flowgraph] (rpython.memory.support:314)null_address_dict [flowgraph] (rpython.memory.support:133)AddressStack.pop [flowgraph] (rpython.memory.support:115)AddressStack.shrink [flowgraph] (rpython.memory.support:52)FreeList.put [flowgraph] (?:11)ll_dict_lookup_look_inside_iff [flowgraph] (rpython.rtyper.lltypesystem.rdict:576) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rdict:576)ll_dict_lookup [flowgraph] (rpython.memory.lldict:50)dict_entry_valid [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (?:2)ll_dict_lookup_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rdict:576)ll_dict_lookup [flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff [flowgraph] (rpython.memory.gc.incminimark:553)IncrementalMiniMarkGC.allocate_nursery [flowgraph] (rpython.memory.gc.incminimark:543)IncrementalMiniMarkGC._alloc_nursery [flowgraph] (rpython.memory.gc.incminimark:539)IncrementalMiniMarkGC._nursery_memory_size [flowgraph] (rpython.rtyper.lltypesystem.rdict:466) [flowgraph] (rpython.rlib.jit:281)isvirtual [flowgraph] (rpython.rtyper.lltypesystem.rdict:466)_ll_dict_setitem_lookup_done [flowgraph] (rpython.rtyper.lltypesystem.rdict:544)ll_dict_resize [flowgraph] (rpython.rtyper.lltypesystem.rdict:554)_ll_dict_resize_to [flowgraph] (rpython.memory.lldict:53)dict_entry_hash [flowgraph] (rpython.memory.lldict:40)dict_delete_entries [flowgraph] (rpython.rtyper.lltypesystem.rdict:434)ll_get_value [flowgraph] (rpython.rtyper.lltypesystem.rdict:495)ll_dict_insertclean [flowgraph] (rpython.memory.support:258)AddressDeque.non_empty [flowgraph] (rpython.memory.support:272)AddressDeque.foreach [flowgraph] (rpython.memory.support:272)AddressDeque.foreach [flowgraph] (rpython.memory.support:250)AddressDeque.append [flowgraph] (rpython.memory.gctypelayout:89)GCData.q_cannot_pin [flowgraph] (rpython.memory.gc.incminimark:1713)IncrementalMiniMarkGC.manually_copy_card_bits [flowgraph] (rpython.memory.gc.incminimark:1301)IncrementalMiniMarkGC.card_marking_bytes_for_length [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.lltypesystem.rdict:639)ll_dict_lookup_clean [flowgraph] (rpython.memory.gc.incminimark:575)IncrementalMiniMarkGC.set_major_threshold_from [flowgraph] (rpython.memory.support:235)AddressDeque.enlarge [flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline [flowgraph] (rpython.rtyper.lltypesystem.rdict:466)_ll_dict_setitem_lookup_done [flowgraph] (rpython.memory.gc.incminimark:3248)IncrementalMiniMarkGC.rrc_invoke_callback [flowgraph] (rpython.memory.gc.incminimark:1292)IncrementalMiniMarkGC.card_marking_words_for_length [flowgraph] (rpython.memory.lldict:59)dict_add [flowgraph] (?:2)debug_stop [flowgraph] (rpython.memory.support:262)AddressDeque.popleft [flowgraph] (rpython.rlib.debug:137)debug_stop [flowgraph] (rpython.memory.support:243)AddressDeque.shrink [flowgraph] (rpython.memory.gc.base:401)GCBase.enum_pending_finalizers [flowgraph] (rpython.memory.gc.base:401)GCBase.enum_pending_finalizers [flowgraph] (rpython.memory.gctypelayout:94)GCData.q_finalizer_handlers [flowgraph] (rpython.memory.gc.base:482)GCBase._adr2deque [flowgraph] (rpython.rtyper.annlowlevel:546)cast_adr_to_nongc_instance [flowgraph] (rpython.memory.support:291)AddressDeque.delete [flowgraph] (rpython.memory.gc.env:38)read_from_env [flowgraph] (rpython.memory.gc.env:17)_read_float_and_factor_from_env [flowgraph] (rpython.rtyper.controllerentry:80)getattr [flowgraph] (rpython.rlib.rposix_environ:66)get_get [flowgraph] (rpython.memory.gc.inspector:134)BaseWalker.walk [flowgraph] (rpython.memory.gc.inspector:243)HeapDumper.writeobj [flowgraph] (rpython.memory.gc.inspector:184)MemoryPressureCounter.processobj [flowgraph] (rpython.memory.gctypelayout:152)GCData.q_has_memory_pressure [flowgraph] (rpython.memory.gc.inspector:225)HeapDumper.write [flowgraph] (rpython.memory.gc.inspector:212)HeapDumper.flush [flowgraph] (rpython.memory.gc.base:259)GCBase.trace [flowgraph] (rpython.memory.gctypelayout:156)GCData.q_get_memory_pressure_ofs [flowgraph] (rpython.memory.gc.base:259)GCBase.trace [flowgraph] (rpython.memory.gc.base:252)gc_callback__ref [flowgraph] (rpython.memory.gc.inspector:193)MemoryPressureCounter._ref [flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path [flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.gc.base:252)gc_callback__writeref [flowgraph] (rpython.memory.gc.inspector:253)HeapDumper._writeref [flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path [flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.support:142)AddressStack.delete [flowgraph] (rpython.memory.gc.env:570)estimate_best_nursery_size [flowgraph] (rpython.memory.gc.env:533)get_L2cache_win32 [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)pypy_get_l2_cache_size [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_pypy_get_l2_cache_size [flowgraph] (rpython.memory.gc.env:46)read_float_from_env [flowgraph] (rpython.memory.gc.env:42)read_uint_from_env [flowgraph] (rpython.memory.gc.env:125)get_total_memory [flowgraph] (rpython.memory.gc.env:480)get_win32_total_phys_memory [flowgraph] (rpython.rtyper.lltypesystem.lltype:2296)scoped_alloc [flowgraph] (rpython.rtyper.lltypesystem.lltype:2280)ScopedAlloc_Struct MEMORYSTATUSEX { c_dwLength, c_dwMemoryLoad, c_ullTotalPhys, c_ullAvailPhys, c_ullTotalPageFile, c_ullAvailPageFile, c_ullTotalVirtual, c_ullAvailVirtual, c_ullAvailExtendedVirtual }.__init__ [flowgraph] (rpython.rtyper.lltypesystem.lltype:2286)ScopedAlloc_Struct MEMORYSTATUSEX { c_dwLength, c_dwMemoryLoad, c_ullTotalPhys, c_ullAvailPhys, c_ullTotalPageFile, c_ullAvailPageFile, c_ullTotalVirtual, c_ullAvailVirtual, c_ullAvailExtendedVirtual }.__enter__ [flowgraph] (rpython.memory.gc.env:561)best_nursery_size_for_L2cache [flowgraph] (rpython.rtyper.lltypesystem.lltype:2289)ScopedAlloc_Struct MEMORYSTATUSEX { c_dwLength, c_dwMemoryLoad, c_ullTotalPhys, c_ullAvailPhys, c_ullTotalPageFile, c_ullAvailPageFile, c_ullTotalVirtual, c_ullAvailVirtual, c_ullAvailExtendedVirtual }.__exit__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)GlobalMemoryStatusEx [flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_GlobalMemoryStatusEx [flowgraph] (rpython.memory.gc.env:100)clamp_total_memory [flowgraph] (rpython.memory.gc.inspector:236)HeapDumper.write_marker [flowgraph] (rpython.memory.gc.inspector:120)BaseWalker.end_add_roots_marker [flowgraph] (rpython.memory.gc.incminimark:2344)IncrementalMiniMarkGC.remove_young_arrays_from_old_objects_pointing_to_young [flowgraph] (rpython.memory.gc.incminimark:1984)IncrementalMiniMarkGC.collect_roots_in_nursery [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.incminimark:1981)IncrementalMiniMarkGC._visit_old_objects_pointing_to_pinned [flowgraph] (rpython.memory.gc.base:259)GCBase.trace [flowgraph] (rpython.memory.gc.base:252)gc_callback__trace_drag_out [flowgraph] (rpython.memory.gc.incminimark:2145)IncrementalMiniMarkGC._trace_drag_out [flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof [flowgraph] (rpython.memory.gc.incminimark:1235)IncrementalMiniMarkGC.is_forwarded [flowgraph] (rpython.memory.gc.incminimark:2267)IncrementalMiniMarkGC._visit_young_rawmalloced_object [flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path [flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.gc.incminimark:3252)IncrementalMiniMarkGC.rrc_minor_collection_trace [flowgraph] (rpython.rtyper.lltypesystem.rdict:445)ll_dict_len [flowgraph] (rpython.memory.gc.incminimark:2914)IncrementalMiniMarkGC.deal_with_young_objects_with_finalizers [flowgraph] (rpython.memory.gc.incminimark:1259)IncrementalMiniMarkGC.get_possibly_forwarded_tid [flowgraph] (rpython.memory.gc.incminimark:1251)IncrementalMiniMarkGC.get_forwarding_address [flowgraph] (rpython.memory.gc.incminimark:2009)IncrementalMiniMarkGC.collect_cardrefs_to_nursery [flowgraph] (rpython.memory.gc.incminimark:2114)IncrementalMiniMarkGC.trace_and_drag_out_of_nursery_partial [flowgraph] (rpython.memory.gc.base:343)GCBase.trace_partial [flowgraph] (rpython.memory.lldict:24)dict_delete [flowgraph] (rpython.memory.gctypelayout:81)GCData.q_has_gcptr [flowgraph] (rpython.memory.gc.incminimark:2125)IncrementalMiniMarkGC._trace_drag_out1 [flowgraph] (rpython.memory.gc.incminimark:2086)IncrementalMiniMarkGC.collect_oldrefs_to_nursery [flowgraph] (rpython.memory.gc.incminimark:2108)IncrementalMiniMarkGC.trace_and_drag_out_of_nursery [flowgraph] (rpython.memory.gc.incminimark:3058)IncrementalMiniMarkGC.invalidate_young_weakrefs [flowgraph] (rpython.memory.gctypelayout:125)GCData.q_weakpointer_offset [flowgraph] (rpython.memory.gc.incminimark:2884)IncrementalMiniMarkGC.deal_with_young_objects_with_destructors [flowgraph] (rpython.memory.gc.base:437)GCBase.call_destructor [flowgraph] (rpython.memory.gctypelayout:98)GCData.q_destructor_or_custom_trace [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.incminimark:1738)IncrementalMiniMarkGC.record_pinned_object_with_shadow [flowgraph] (rpython.rtyper.lltypesystem.rdict:774)ll_clear [flowgraph] (rpython.memory.gc.incminimark:3272)IncrementalMiniMarkGC.rrc_minor_collection_free [flowgraph] (rpython.memory.gc.incminimark:3284)IncrementalMiniMarkGC._rrc_minor_free [flowgraph] (rpython.memory.gc.incminimark:3320)IncrementalMiniMarkGC._rrc_free [flowgraph] (rpython.memory.gc.incminimark:2333)IncrementalMiniMarkGC.free_young_rawmalloced_objects [flowgraph] (rpython.memory.lldict:65)dict_foreach [flowgraph] (rpython.memory.gc.incminimark:2339)IncrementalMiniMarkGC._free_young_rawmalloced_obj [flowgraph] (rpython.memory.gc.incminimark:2661)IncrementalMiniMarkGC.free_rawmalloced_object_if_unvisited [flowgraph] (rpython.memory.support:203)AddressStack.sort [flowgraph] (rpython.memory.support:84)sort_chunk [flowgraph] (rpython.memory.support:77)quicksort [flowgraph] (rpython.memory.support:65)partition [flowgraph] (rpython.memory.support:150)AddressStack.length [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.incminimark:1735)IncrementalMiniMarkGC._wb_old_object_pointing_to_pinned [flowgraph] (rpython.memory.gc.incminimark:3259)IncrementalMiniMarkGC._rrc_minor_trace [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.incminimark:1976)IncrementalMiniMarkGC._reset_flag_old_objects_pointing_to_pinned [flowgraph] (rpython.memory.gc.incminimark:617)IncrementalMiniMarkGC.debug_rotate_nursery [flowgraph] (rpython.memory.gctransform.framework:1783)finished_minor_collection [flowgraph] (rpython.memory.gc.hook:51)GcHooks.fire_gc_minor [flowgraph] (rpython.memory.gc.hook:15)GcHooks.is_gc_minor_enabled [flowgraph] (rpython.memory.gc.incminimark:2390)IncrementalMiniMarkGC.major_collection_step [flowgraph] (rpython.memory.gc.incminimark:1310)IncrementalMiniMarkGC.debug_check_consistency [flowgraph] (rpython.memory.gc.incminimark:2719)IncrementalMiniMarkGC.collect_roots [flowgraph] (rpython.memory.gc.incminimark:2705)IncrementalMiniMarkGC.collect_nonstack_roots [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.incminimark:2739)IncrementalMiniMarkGC._collect_obj [flowgraph] (rpython.memory.gc.base:401)GCBase.enum_pending_finalizers [flowgraph] (rpython.memory.support:272)AddressDeque.foreach [flowgraph] (rpython.memory.gc.incminimark:597)IncrementalMiniMarkGC.post_setup [flowgraph] (rpython.memory.gc.base:58)GCBase.post_setup [flowgraph] (rpython.memory.gc.base:442)GCBase.debug_check_consistency [flowgraph] (rpython.memory.gc.incminimark:2729)IncrementalMiniMarkGC.enumerate_all_roots [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.base:470)_debug_callback [flowgraph] (rpython.memory.gc.base:463)GCBase._debug_record [flowgraph] (rpython.memory.gc.incminimark:1342)IncrementalMiniMarkGC.debug_check_object [flowgraph] (rpython.memory.gc.incminimark:1447)IncrementalMiniMarkGC._debug_check_object_scanning [flowgraph] (rpython.memory.gc.incminimark:1401)IncrementalMiniMarkGC._debug_check_object_sweeping [flowgraph] (rpython.memory.gc.base:385)GCBase.enumerate_all_roots [flowgraph] (rpython.memory.gc.incminimark:2734)IncrementalMiniMarkGC.enum_live_with_finalizers [flowgraph] (rpython.memory.support:272)AddressDeque.foreach [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.incminimark:2362)IncrementalMiniMarkGC._add_to_more_objects_to_trace_if_black [flowgraph] (rpython.memory.gc.incminimark:2357)IncrementalMiniMarkGC._add_to_more_objects_to_trace [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.incminimark:1338)IncrementalMiniMarkGC._check_not_in_nursery [flowgraph] (rpython.memory.gc.incminimark:1368)IncrementalMiniMarkGC._debug_check_object_marking [flowgraph] (rpython.memory.gc.base:259)GCBase.trace [flowgraph] (rpython.memory.gc.base:252)gc_callback__debug_check_not_white [flowgraph] (rpython.memory.gc.incminimark:1382)IncrementalMiniMarkGC._debug_check_not_white [flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path [flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.gc.incminimark:1443)IncrementalMiniMarkGC._debug_check_object_finalizing [flowgraph] (rpython.memory.gc.hook:56)GcHooks.fire_gc_collect_step [flowgraph] (rpython.memory.gc.hook:18)GcHooks.is_gc_collect_step_enabled [flowgraph] (rpython.memory.support:174)AddressStack.stack2dict [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.support:213)_add_in_dict [flowgraph] (rpython.memory.gc.base:401)GCBase.enum_pending_finalizers [flowgraph] (rpython.memory.gc.base:259)GCBase.trace [flowgraph] (rpython.memory.gc.base:252)gc_callback__debug_callback2 [flowgraph] (rpython.memory.gc.base:474)GCBase._debug_callback2 [flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path [flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.rlib.rgc:33)_encode_states [flowgraph] (rpython.memory.gc.incminimark:2767)IncrementalMiniMarkGC.visit_all_objects_step [flowgraph] (rpython.memory.gc.incminimark:2777)IncrementalMiniMarkGC.visit [flowgraph] (rpython.memory.gc.base:259)GCBase.trace [flowgraph] (rpython.memory.gc.base:252)gc_callback__collect_ref_rec [flowgraph] (rpython.memory.gc.incminimark:2758)IncrementalMiniMarkGC._collect_ref_rec [flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path [flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.gc.incminimark:2696)IncrementalMiniMarkGC.free_unvisited_rawmalloc_objects_step [flowgraph] (rpython.memory.gc.minimarkpage:346)ArenaCollection.mass_free_incremental [flowgraph] (rpython.memory.gc.base:485)GCBase.execute_finalizers [flowgraph] (rpython.memory.gc.incminimark:2761)IncrementalMiniMarkGC.visit_all_objects [flowgraph] (rpython.memory.gc.incminimark:3356)IncrementalMiniMarkGC.rrc_major_collection_trace [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.incminimark:3359)IncrementalMiniMarkGC._rrc_major_trace [flowgraph] (rpython.memory.gc.incminimark:2926)IncrementalMiniMarkGC.deal_with_objects_with_finalizers [flowgraph] (rpython.memory.gc.incminimark:2994)IncrementalMiniMarkGC._finalization_state [flowgraph] (rpython.memory.gc.incminimark:3105)IncrementalMiniMarkGC.invalidate_old_weakrefs [flowgraph] (rpython.memory.gc.incminimark:2897)IncrementalMiniMarkGC.deal_with_old_objects_with_destructors [flowgraph] (rpython.memory.gc.minimarkpage:326)ArenaCollection.mass_free_prepare [flowgraph] (rpython.memory.gc.incminimark:2688)IncrementalMiniMarkGC.start_free_rawmalloc_objects [flowgraph] (rpython.memory.gc.incminimark:3007)IncrementalMiniMarkGC._bump_finalization_state_from_0_to_1 [flowgraph] (rpython.memory.gc.incminimark:3022)IncrementalMiniMarkGC._recursively_bump_finalization_state_from_2_to_3 [flowgraph] (rpython.memory.gc.base:259)GCBase.trace [flowgraph] (rpython.memory.gc.incminimark:2990)_append_if_nonnull [flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path [flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.gc.incminimark:3035)IncrementalMiniMarkGC._recursively_bump_finalization_state_from_1_to_2 [flowgraph] (rpython.memory.gc.base:51)GCBase.mark_finalizer_to_run [flowgraph] (rpython.memory.gc.minimarkpage:427)ArenaCollection.mass_free_in_pages [flowgraph] (rpython.memory.gc.minimarkpage:506)ArenaCollection.walk_page [flowgraph] (rpython.memory.gc.incminimark:2650)IncrementalMiniMarkGC._free_if_unvisited [flowgraph] (rpython.memory.gc.minimarkpage:490)ArenaCollection.free_page [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.incminimark:2658)IncrementalMiniMarkGC._reset_gcflag_visited [flowgraph] (rpython.memory.gc.incminimark:2755)IncrementalMiniMarkGC._collect_ref_stk [flowgraph] (rpython.memory.gc.incminimark:2128)IncrementalMiniMarkGC._trace_drag_out1_marking_phase [flowgraph] (rpython.memory.gc.base:600)callback2 [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.incminimark:2646)IncrementalMiniMarkGC._sweep_old_objects_pointing_to_pinned [flowgraph] (rpython.memory.gc.incminimark:3377)IncrementalMiniMarkGC.rrc_major_collection_free [flowgraph] (rpython.memory.gc.incminimark:3397)IncrementalMiniMarkGC._rrc_major_free [flowgraph] (rpython.memory.lldict:62)dict_insertclean [flowgraph] (rpython.memory.gc.hook:61)GcHooks.fire_gc_collect [flowgraph] (rpython.memory.gc.hook:21)GcHooks.is_gc_collect_enabled [flowgraph] (rpython.memory.gc.inspector:168)BaseWalker.finish_processing [flowgraph] (rpython.memory.gc.inspector:157)BaseWalker.clear_gcflag_again [flowgraph] (rpython.memory.gc.incminimark:2729)IncrementalMiniMarkGC.enumerate_all_roots [flowgraph] (rpython.memory.support:160)AddressStack.foreach [flowgraph] (rpython.memory.gc.inspector:262)_hd_unadd_root [flowgraph] (rpython.memory.gc.inspector:150)BaseWalker.unadd [flowgraph] (rpython.memory.gc.base:385)GCBase.enumerate_all_roots [flowgraph] (rpython.memory.gc.incminimark:2734)IncrementalMiniMarkGC.enum_live_with_finalizers [flowgraph] (rpython.memory.support:272)AddressDeque.foreach [flowgraph] (rpython.memory.gc.base:401)GCBase.enum_pending_finalizers [flowgraph] (rpython.memory.gc.inspector:164)BaseWalker.unwalk [flowgraph] (rpython.memory.gc.inspector:142)BaseWalker.unobj [flowgraph] (rpython.memory.gc.base:259)GCBase.trace [flowgraph] (rpython.memory.gc.base:252)gc_callback__unref [flowgraph] (rpython.memory.gc.inspector:146)BaseWalker._unref [flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path [flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.gc.inspector:208)HeapDumper.delete [flowgraph] (rpython.memory.gc.inspector:106)BaseWalker.delete [flowgraph] (rpython.memory.gc.base:600)callback2 [flowgraph] (?:1)memo_assert_callback_is_a_function_0 [flowgraph] (?:1)memo__convert_callback_formats_0 [flowgraph] (?:1)memo__convert_callback_formats_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo_make_callback_0 [flowgraph] (?:1)memo_make_callback_0 [flowgraph] (?:1)memo_assert_callback_is_a_function_0 [flowgraph] (?:1)memo_assert_callback_is_a_function_0 [flowgraph] (?:1)memo__make_scoped_allocator_0 [flowgraph] (?:1)memo_sizeof_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo_make_callback_0 [flowgraph] (?:1)memo_assert_callback_is_a_function_0 [flowgraph] (?:1)memo__sizeof_none_0 [flowgraph] (?:1)memo__convert_callback_formats_0 [flowgraph] (?:1)memo_make_callback_0 [flowgraph] (?:1)memo_assert_callback_is_a_function_0 [flowgraph] (?:1)memo_make_callback_0 [flowgraph] (?:1)memo_assert_callback_is_a_function_0 [flowgraph] (?:1)memo_make_callback_0 [flowgraph] (?:1)memo_assert_callback_is_a_function_0 [flowgraph] (?:1)memo_assert_callback_is_a_function_0 [flowgraph] (?:1)memo__convert_callback_formats_0 [flowgraph] (?:1)memo_make_callback_0 [flowgraph] (?:1)memo_assert_callback_is_a_function_0 [flowgraph] (rpython.rtyper.lltypesystem.rlist:391)ll_fixed_newemptylist [rtyper] specializing: 6300 / 8500 blocks (74%) [flowgraph] (rpython.rtyper.rbuiltin:252)ll_max [flowgraph] (rpython.rtyper.lltypesystem.llarena:565)llimpl_round_up_for_allocation [flowgraph] (rpython.rtyper.lltypesystem.llarena:549)llimpl_arena_reserve [flowgraph] (rpython.rtyper.lltypesystem.llarena:594)llimpl_getfakearenaaddress [flowgraph] (rpython.rtyper.lltypesystem.llarena:557)llimpl_arena_shrink_obj [flowgraph] (rpython.rtyper.lltypesystem.llarena:532)llimpl_arena_reset [flowgraph] (rpython.rtyper.lltypesystem.llarena:514)llimpl_arena_malloc [flowgraph] (rpython.rtyper.rlist:893)ll_listslice_startstop [flowgraph] (rpython.rtyper.rlist:554)ll_arraycopy [flowgraph] (rpython.rtyper.rint:495)ll_int_py_mod [rtyper] specializing: 6800 / 8511 blocks (79%) [flowgraph] (rpython.rtyper.rbuiltin:252)ll_max [flowgraph] (rpython.rlib.rposix_environ:173)getenv_llimpl [flowgraph] (rpython.rtyper.rstr:945)ll_str_is_true [flowgraph] (rpython.rtyper.lltypesystem.rstr:873)ll_stringslice_minusone [flowgraph] (rpython.rtyper.lltypesystem.rstr:840)_ll_stringslice [flowgraph] (rpython.rtyper.rstr:956)ll_stritem [flowgraph] (rpython.rtyper.lltypesystem.rstr:1046)ll_contains [flowgraph] (rpython.rtyper.rstr:997)ll_float [flowgraph] (rpython.rlib.rfloat:87)rstring_to_float [flowgraph] (rpython.rlib.rdtoa:54)strtod [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)_PyPy_dg_strtod [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall__PyPy_dg_strtod [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [rtyper] specializing: 7300 / 8590 blocks (84%) [rtyper] specializing: 7700 / 8590 blocks (89%) [flowgraph] (rpython.rtyper.lltypesystem.llarena:579)llimpl_arena_protect [rtyper] specializing: 8100 / 8590 blocks (94%) [flowgraph] (rpython.rtyper.rbuiltin:240)ll_min [rtyper] specializing: 8500 / 8592 blocks (98%) [flowgraph] (rpython.rtyper.lltypesystem.rstr:860)ll_stringslice_startstop [rtyper] specializing: 8600 / 8600 blocks (100%) [rtyper] -=- specialized 2397 more blocks -=- [flowgraph] (rpython.rtyper.lltypesystem.llarena:488)llimpl_protect [flowgraph] (rpython.rlib.rmmap:280)VirtualProtect [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)VirtualProtect [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_VirtualProtect [flowgraph] (rpython.rtyper.lltypesystem.rffi:1382)scoped_str2charp.__init__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:1388)scoped_str2charp.__enter__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:817)str2charp [flowgraph] (rpython.rtyper.lltypesystem.llarena:456)madvise_arena_free [flowgraph] (rpython.rtyper.lltypesystem.llarena:451)PosixPageSize.get [flowgraph] (rpython.rlib.rmmap:1044)madvise_free [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)getenv [flowgraph] (rpython.rtyper.lltypesystem.rffi:1390)scoped_str2charp.__exit__ [flowgraph] (rpython.rtyper.lltypesystem.rffi:831)free_charp [flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_getenv [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (?:1)memo__isfunctype_0 [flowgraph] (rpython.rtyper.rbuiltin:252)ll_max [rtyper] -=- specialized 95 more blocks -=- [backendopt:removecasts] removed 1 cast_pointers in dump_rpy_heap [backendopt:removecasts] removed 4 cast_pointers in IncrementalMiniMarkGC.external_malloc [backendopt:removecasts] removed 2 cast_pointers in count_memory_pressure [backendopt:removecasts] removed 2 cast_pointers in time [backendopt:removecasts] removed 1 cast_pointers in ShadowStackPool._prepare_unused_stack [backendopt:removecasts] removed 1 cast_pointers in ShadowStackPool._resize [backendopt:removecasts] removed 1 cast_pointers in custom_trace_dispatcher___append_rpy_referent [backendopt:removecasts] removed 1 cast_pointers in HeapDumper.writeobj [backendopt:removecasts] removed 1 cast_pointers in MemoryPressureCounter.processobj [backendopt:removecasts] removed 3 cast_pointers in HeapDumper.flush [backendopt:removecasts] removed 1 cast_pointers in GCData.q_get_memory_pressure_ofs [backendopt:removecasts] removed 1 cast_pointers in custom_trace_dispatcher__gc_callback__ref [backendopt:removecasts] removed 1 cast_pointers in custom_trace_dispatcher__gc_callback__writeref [backendopt:removecasts] removed 1 cast_pointers in custom_trace_dispatcher__gc_callback__trace_drag_out [backendopt:removecasts] removed 1 cast_pointers in IncrementalMiniMarkGC.major_collection_step [backendopt:removecasts] removed 1 cast_pointers in custom_trace_dispatcher__gc_callback__debug_check_not_white [backendopt:removecasts] removed 1 cast_pointers in custom_trace_dispatcher__gc_callback__debug_callback2 [backendopt:removecasts] removed 1 cast_pointers in custom_trace_dispatcher__gc_callback__collect_ref_rec [backendopt:removecasts] removed 1 cast_pointers in custom_trace_dispatcher___append_if_nonnull [backendopt:removecasts] removed 1 cast_pointers in BaseWalker.unadd [backendopt:removecasts] removed 1 cast_pointers in custom_trace_dispatcher__gc_callback__unref [backendopt:removecasts] removed 1 cast_pointers in _ll_stringslice__rpy_stringPtr_Signed_Signed [backendopt:removecasts] removed 3 cast_pointers in ll_float__rpy_stringPtr [backendopt:removecasts] removed 2 cast_pointers in strtod__SomeString [backendopt:inlining] phase with threshold factor: 32.4 [backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic [backendopt:inlining] 0.00 llimpl_getfakearenaaddress [backendopt:inlining] 0.00 llimpl_arena_malloc [backendopt:inlining] 0.00 gc_callback__writeref [backendopt:inlining] 0.00 IncrementalMiniMarkGC.id_or_identityhash [backendopt:inlining] 0.00 debug_start [backendopt:inlining] 0.00 isvirtual__v126891___simple_call__functio [backendopt:inlining] 0.00 copy_string_to_raw [backendopt:inlining] 0.00 gc_callback__ref [backendopt:inlining] 0.00 copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed [backendopt:inlining] 0.00 VirtualProtect__arrayPtr_Unsigned_UINT_arrayPtr_star_4 [backendopt:inlining] 0.00 IncrementalMiniMarkGC._bump_pointer [backendopt:inlining] 0.00 IncrementalMiniMarkGC._remember_young_pointer_inlined [backendopt:inlining] 0.00 IncrementalMiniMarkGC._collect_obj [backendopt:inlining] 0.00 gc_callback__debug_check_not_white [backendopt:inlining] 0.00 _PyPy_dg_strtod__arrayPtr_arrayPtr_star_2 [backendopt:inlining] 0.00 ll_getitem_nonneg__dum_nocheckConst_ll_getitem_foldable_nonnegCons_arrayPtr_Signed [backendopt:inlining] 0.00 memo_emptystrfun_0 [backendopt:inlining] 0.00 _dummy_size [backendopt:inlining] 0.00 ll_fixed_items__arrayPtr [backendopt:inlining] 0.00 getenv__arrayPtr_star_1 [backendopt:inlining] 0.00 IncrementalMiniMarkGC._malloc_out_of_nursery [backendopt:inlining] 0.00 gc_callback__debug_callback2 [backendopt:inlining] 0.00 memo__sizeof_none_0 [backendopt:inlining] 0.00 memo_sizeof_0 [backendopt:inlining] 0.00 isconstant__v126893___simple_call__functio [backendopt:inlining] 0.00 isconstant__v126887___simple_call__functio [backendopt:inlining] 0.00 IncrementalMiniMarkGC._rrc_free [backendopt:inlining] 0.00 pypy_get_l2_cache_size___star_0 [backendopt:inlining] 0.00 memo__sizeof_none_0 [backendopt:inlining] 0.00 GlobalMemoryStatusEx__MEMORYSTATUSEXPtr_star_1 [backendopt:inlining] 0.00 memo__sizeof_none_0 [backendopt:inlining] 0.00 gc_callback__collect_ref_rec [backendopt:inlining] 0.00 gc_callback__trace_drag_out [backendopt:inlining] 0.00 IncrementalMiniMarkGC._trace_drag_out [backendopt:inlining] 0.00 ll_setitem_nonneg__dum_nocheckConst_arrayPtr_Signed_GCREFPtr [backendopt:inlining] 0.00 __v126890___simple_call__functio [backendopt:inlining] 0.00 isvirtual__v126885___simple_call__functio [backendopt:inlining] 0.00 debug_stop [backendopt:inlining] 0.00 gc_callback__unref [backendopt:inlining] 0.00 llimpl_arena_reset [backendopt:inlining] 0.00 HeapDumper.write [backendopt:inlining] 0.00 get_nonmovingbuffer_ll_final_null [backendopt:inlining] 0.00 get_get [backendopt:inlining] 2.00 debug_start [backendopt:inlining] 2.00 IncrementalMiniMarkGC._pyobj [backendopt:inlining] 2.00 ll_int_py_div_nonnegargs__Signed_Signed [backendopt:inlining] 2.00 ll_strlen__rpy_stringPtr [backendopt:inlining] 2.00 ll_dict_len__DICTPtr [backendopt:inlining] 2.00 dict_delete_entries [backendopt:inlining] 2.00 ll_fixed_newlist__GcArray_Ptr_GCREF__gcopaque_Ll_Signed [backendopt:inlining] 2.00 IncrementalMiniMarkGC.combine [backendopt:inlining] 2.00 ll_fixed_length__arrayPtr [backendopt:inlining] 2.00 free_charp [backendopt:inlining] 2.00 scoped_str2charp.__enter__ [backendopt:inlining] 2.00 debug_stop [backendopt:inlining] 2.00 cast_adr_to_nongc_instance__AddressDeque [backendopt:inlining] 2.00 ScopedAlloc_Struct MEMORYSTATUSEX { c_dwLength, c_dwMemoryLoad, c_ullTotalPhys, c_ullAvailPhys, c_ullTotalPageFile, c_ullAvailPageFile, c_ullTotalVirtual, c_ullAvailVirtual, c_ullAvailExtendedVirtual }.__enter__ [backendopt:inlining] 4.00 GCBase.header [backendopt:inlining] 4.00 AddressStack.non_empty [backendopt:inlining] 4.00 GCData.q_finalizer_handlers [backendopt:inlining] 4.00 ll_max__Unsigned_Unsigned [backendopt:inlining] 4.00 IncrementalMiniMarkGC.get_forwarding_address [backendopt:inlining] 4.00 ll_stritem_nonneg__rpy_stringPtr_Signed [backendopt:inlining] 4.00 mangle_hash [backendopt:inlining] 4.00 ll_min__Signed_Signed [backendopt:inlining] 4.00 ll_min__Float_Float [backendopt:inlining] 4.00 _check_valid_type_info_varsize [backendopt:inlining] 4.00 dict_allocate [backendopt:inlining] 4.00 ll_max__Float_Float [backendopt:inlining] 4.00 ll_max__Signed_Signed [backendopt:inlining] 4.00 _check_valid_type_info [backendopt:inlining] 4.00 __exit____star_3 [backendopt:inlining] 4.00 _encode_states [backendopt:inlining] 5.00 release [backendopt:inlining] 6.00 FreeList.put [backendopt:inlining] 6.00 IncrementalMiniMarkGC.get_total_memory_used [backendopt:inlining] 6.00 IncrementalMiniMarkGC._nursery_memory_size [backendopt:inlining] 6.00 IncrementalMiniMarkGC.get_card [backendopt:inlining] 6.00 ScopedAlloc_Struct MEMORYSTATUSEX { c_dwLength, c_dwMemoryLoad, c_ullTotalPhys, c_ullAvailPhys, c_ullTotalPageFile, c_ullAvailPageFile, c_ullTotalVirtual, c_ullAvailVirtual, c_ullAvailExtendedVirtual }.__init__ [backendopt:inlining] 6.00 IncrementalMiniMarkGC.get_peak_memory_alloced [backendopt:inlining] 6.00 IncrementalMiniMarkGC.get_total_memory_alloced [backendopt:inlining] 7.00 AddressDict [backendopt:inlining] 2.00 GCBase._adr2deque [backendopt:inlining] 7.00 ll_len_foldable__arrayPtr [backendopt:inlining] 7.00 out_of_memory [backendopt:inlining] 7.00 round_up_for_allocation [backendopt:inlining] 7.00 _debug_callback [backendopt:inlining] 7.00 dict_keyhash [backendopt:inlining] 7.00 _hd_add_root [backendopt:inlining] 7.00 _hd_unadd_root [backendopt:inlining] 7.00 GCBase.get_size_incl_hash [backendopt:inlining] 2.00 ll_fixed_newemptylist__GcArray_Ptr_GCREF__gcopaque_Ll [backendopt:inlining] 7.00 mallocstr [backendopt:inlining] 7.00 IncrementalMiniMarkGC._wb_old_object_pointing_to_pinned [backendopt:inlining] 7.00 ccall__PyPy_dg_strtod__arrayPtr_arrayPtr [backendopt:inlining] 0.00 _PyPy_dg_strtod__arrayPtr_arrayPtr_star_2 [backendopt:inlining] 7.00 newdict [backendopt:inlining] 7.00 rstring_to_float__SomeString [backendopt:inlining] 7.00 ccall_getenv [backendopt:inlining] 0.00 getenv__arrayPtr_star_1 [backendopt:inlining] 7.00 setup_root_walker [backendopt:inlining] 7.00 IncrementalMiniMarkGC._debug_check_object_finalizing [backendopt:inlining] 7.00 _add_in_dict [backendopt:inlining] 8.00 dict_entry_valid [backendopt:inlining] 8.00 ll_newrange__Ptr_GcStruct_rangeLlT_Signed_Signed [backendopt:inlining] 8.00 ll_get_value__DICTPtr_Unsigned [backendopt:inlining] 8.50 GCBase.is_valid_gc_object [backendopt:inlining] 9.00 GCData.q_varsize_offset_to_length [backendopt:inlining] 6.00 GCData.get [backendopt:inlining] 9.00 GCData.q_varsize_item_sizes [backendopt:inlining] 9.00 GCData.q_varsize_offset_to_variable_part [backendopt:inlining] 9.00 GCData.q_varsize_offsets_to_gcpointers_in_var_part [backendopt:inlining] 8.00 GCData.q_offsets_to_gc_pointers [backendopt:inlining] 9.00 dict_get [backendopt:inlining] 6.00 GCData.get_varsize [backendopt:inlining] 6.00 _hash [backendopt:inlining] 8.00 GCData.q_fixed_size [backendopt:inlining] 9.00 dict_add [backendopt:inlining] 9.00 GCBase.get_member_index [backendopt:inlining] 9.00 ccall_VirtualProtect [backendopt:inlining] 9.00 GCBase.post_setup [backendopt:inlining] 9.00 IncrementalMiniMarkGC._free_young_rawmalloced_obj [backendopt:inlining] 9.00 ll_dict_lookup_trampoline__v126888___simple_call__functio [backendopt:inlining] 2.00 __v126884___simple_call__functio [backendopt:inlining] 9.00 IncrementalMiniMarkGC._check_not_in_nursery [backendopt:inlining] 9.00 MemoryPressureCounter.__init__ [backendopt:inlining] 5.50 best_nursery_size_for_L2cache [backendopt:inlining] 10.00 acquire [backendopt:inlining] 10.00 __v126883___simple_call_invoke_6 [backendopt:inlining] 10.00 ShadowStackPool.start_fresh_new_state [backendopt:inlining] 7.00 ll_str_is_true__LLHelpersConst_rpy_stringPtr [backendopt:inlining] 8.00 IncrementalMiniMarkGC.get_type_id [backendopt:inlining] 6.00 dict_delete [backendopt:inlining] 11.00 GCBase._debug_callback2 [backendopt:inlining] 11.00 BaseWalker._unref [backendopt:inlining] 11.00 MemoryPressureCounter._ref [backendopt:inlining] 11.00 _append_if_nonnull [backendopt:inlining] 10.00 dict_entry_hash [backendopt:inlining] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed [backendopt:inlining] 11.00 start_of_page [backendopt:inlining] 10.00 GCData.q_member_index [backendopt:inlining] 11.00 HeapDumper.delete [backendopt:inlining] 11.00 _ll_dict_setitem_lookup_done_trampoline__v126894___simple_call__functio [backendopt:inlining] 11.00 IncrementalMiniMarkGC._visit_old_objects_pointing_to_pinned [backendopt:inlining] 11.00 IncrementalMiniMarkGC.trace_and_drag_out_of_nursery [backendopt:inlining] 8.00 llimpl_round_up_for_allocation [backendopt:inlining] 11.00 IncrementalMiniMarkGC.rrc_major_collection_trace [backendopt:inlining] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed [backendopt:inlining] 12.00 ll_rangeiter__Ptr_GcStruct_rangeLlT_rangePtr [backendopt:inlining] 12.00 get_total_memory [backendopt:inlining] 10.50 estimate_best_nursery_size [backendopt:inlining] 12.25 scoped_str2charp.__init__ [backendopt:inlining] 12.50 GCBase.points_to_valid_gc_object [backendopt:inlining] 12.50 AddressDeque.non_empty [backendopt:inlining] 12.50 ll_rangenext_up__rangePtr_Signed [backendopt:inlining] 12.50 ShadowStackPool._resize [backendopt:inlining] 9.00 __exit____star_3 [backendopt:inlining] 12.00 GCData.q_has_gcptr_in_varsize [backendopt:inlining] 12.00 GCData.q_is_gcarrayofgcptr [backendopt:inlining] 12.00 GCData.q_fast_path_tracing [backendopt:inlining] 12.00 GCData.q_has_custom_trace [backendopt:inlining] 10.00 IncrementalMiniMarkGC._is_pinned [backendopt:inlining] 6.00 IncrementalMiniMarkGC.init_gc_object [backendopt:inlining] 12.00 GCData.q_has_gcptr [backendopt:inlining] 12.00 GCData.q_is_varsize [backendopt:inlining] 12.00 GCData.q_is_rpython_class [backendopt:inlining] 10.00 IncrementalMiniMarkGC._reset_gcflag_visited [backendopt:inlining] 13.00 sort_chunk [backendopt:inlining] 13.00 customtrace___append_rpy_referent [backendopt:inlining] 13.00 customtrace__gc_callback__ref [backendopt:inlining] 13.00 customtrace__gc_callback__trace_drag_out [backendopt:inlining] 13.00 ll_stringslice_minusone__rpy_stringPtr [backendopt:inlining] 13.00 customtrace__gc_callback__unref [backendopt:inlining] 13.00 customtrace___append_if_nonnull [backendopt:inlining] 13.00 customtrace__gc_callback__collect_ref_rec [backendopt:inlining] 12.00 scoped_alloc__MEMORYSTATUSEX_False [backendopt:inlining] 13.00 customtrace__gc_callback__writeref [backendopt:inlining] 13.00 customtrace__gc_callback__debug_callback2 [backendopt:inlining] 13.00 customtrace__gc_callback__debug_check_not_white [backendopt:inlining] 13.00 IncrementalMiniMarkGC.trace_and_drag_out_of_nursery_partial [backendopt:inlining] 13.00 BaseWalker.unobj [backendopt:inlining] 12.00 GCData.q_has_memory_pressure [backendopt:inlining] 13.00 free_nonmovingbuffer_ll [backendopt:inlining] 13.50 ll_int_py_mod__Signed_Signed [backendopt:inlining] 13.50 FreeList.get [backendopt:inlining] 14.00 GCData.q_weakpointer_offset [backendopt:inlining] 15.00 read_float_from_env [backendopt:inlining] 12.00 IncrementalMiniMarkGC.get_peak_memory_used [backendopt:inlining] 15.00 ll_int_py_div__Signed_Signed [backendopt:inlining] 16.00 IncrementalMiniMarkGC.card_marking_words_for_length [backendopt:inlining] 16.00 BaseWalker.process [backendopt:inlining] 16.00 IncrementalMiniMarkGC.card_marking_bytes_for_length [backendopt:inlining] 15.00 dict_insertclean [backendopt:inlining] 16.00 IncrementalMiniMarkGC.is_in_nursery [backendopt:inlining] 17.00 ll_contains__rpy_stringPtr_Char [backendopt:inlining] 17.00 GCBase.get_size [backendopt:inlining] 16.00 IncrementalMiniMarkGC.threshold_reached [backendopt:inlining] 17.00 ShadowStackPool.initial_setup [backendopt:inlining] 17.00 read_from_env [backendopt:inlining] 17.00 llimpl_protect [backendopt:inlining] 17.00 GCBase.setup [backendopt:inlining] 17.00 HeapDumper.__init__ [backendopt:inlining] 17.00 madvise_free [backendopt:inlining] 14.00 IncrementalMiniMarkGC.start_free_rawmalloc_objects [backendopt:inlining] 17.00 read_uint_from_env [backendopt:inlining] 17.00 _do_append_rpy_roots [backendopt:inlining] 11.00 ll_stritem__LLHelpersConst_rpy_stringPtr_Signed [backendopt:inlining] 17.75 ShadowStackPool._prepare_unused_stack [backendopt:inlining] 15.00 ll_dict_resize__DICTPtr [backendopt:inlining] 15.00 IncrementalMiniMarkGC._debug_check_object_scanning [backendopt:inlining] 18.00 enumerate_all_roots___debug_callback [backendopt:inlining] 18.00 IncrementalMiniMarkGC.collect_roots [backendopt:inlining] 18.00 enumerate_all_roots___hd_add_root [backendopt:inlining] 18.00 enumerate_all_roots___append_rpy_root [backendopt:inlining] 18.00 enumerate_all_roots___hd_unadd_root [backendopt:inlining] 17.00 GCData.q_cannot_pin [backendopt:inlining] 18.00 BaseWalker.finish_processing [backendopt:inlining] 15.25 IncrementalMiniMarkGC.write_barrier [backendopt:inlining] 16.25 IncrementalMiniMarkGC.rrc_invoke_callback [backendopt:inlining] 19.00 walk_stack_roots [backendopt:inlining] 19.00 IncrementalMiniMarkGC.raw_malloc_memory_pressure [backendopt:inlining] 19.25 custom_trace_dispatcher__gc_callback__debug_callback2 [backendopt:inlining] 19.25 custom_trace_dispatcher___append_rpy_referent [backendopt:inlining] 19.25 custom_trace_dispatcher__gc_callback__ref [backendopt:inlining] 19.25 custom_trace_dispatcher__gc_callback__trace_drag_out [backendopt:inlining] 19.25 custom_trace_dispatcher__gc_callback__unref [backendopt:inlining] 19.25 custom_trace_dispatcher___append_if_nonnull [backendopt:inlining] 19.25 custom_trace_dispatcher__gc_callback__collect_ref_rec [backendopt:inlining] 19.25 custom_trace_dispatcher__gc_callback__writeref [backendopt:inlining] 19.25 custom_trace_dispatcher__gc_callback__debug_check_not_white [backendopt:inlining] 19.33 AddressStack.length [backendopt:inlining] 17.25 IncrementalMiniMarkGC._sweep_old_objects_pointing_to_pinned [backendopt:inlining] 20.67 dict_allocate_entries [backendopt:inlining] 21.00 IncrementalMiniMarkGC.minor_and_major_collection [backendopt:inlining] 21.00 AddressStack.sort [backendopt:inlining] 21.00 _do_append_rpy_referents [backendopt:inlining] 21.25 AddressStack.append [backendopt:inlining] 21.25 AddressDeque.append [backendopt:inlining] 19.50 GCData.q_destructor_or_custom_trace [backendopt:inlining] 21.25 _trace_callback___append_rpy_referent [backendopt:inlining] 21.25 _trace_callback__gc_callback__collect_ref_rec [backendopt:inlining] 21.25 _trace_callback__gc_callback__writeref [backendopt:inlining] 21.25 _trace_callback__gc_callback__debug_check_not_white [backendopt:inlining] 21.50 AddressStack.__init__ [backendopt:inlining] 18.75 IncrementalMiniMarkGC._add_to_more_objects_to_trace_if_black [backendopt:inlining] 21.00 ll_contains__DICTPtr_Address [backendopt:inlining] 21.00 IncrementalMiniMarkGC.free_young_rawmalloced_objects [backendopt:inlining] 22.00 enum_live_with_finalizers___hd_add_root [backendopt:inlining] 22.00 enum_live_with_finalizers___append_rpy_root [backendopt:inlining] 22.00 enum_live_with_finalizers___debug_callback [backendopt:inlining] 22.00 enum_live_with_finalizers___hd_unadd_root [backendopt:inlining] 20.50 _ll_dict_setitem_lookup_done_look_inside_iff__DICTPtr_Address_Address_Signed_Unsigned [backendopt:inlining] 22.75 _trace_callback__gc_callback__ref [backendopt:inlining] 22.75 _trace_callback__gc_callback__unref [backendopt:inlining] 22.75 _trace_callback__gc_callback__debug_callback2 [backendopt:inlining] 23.33 charp2str [backendopt:inlining] 23.50 AddressDeque.__init__ [backendopt:inlining] 23.00 BaseWalker.delete [backendopt:inlining] 18.00 IncrementalMiniMarkGC._reset_flag_old_objects_pointing_to_pinned [backendopt:inlining] 21.00 IncrementalMiniMarkGC._finalization_state [backendopt:inlining] 24.50 ll_alloc_and_set__GcArray_Ptr_GCREF__gcopaque_Ll_Signed_GCREFPtr [backendopt:inlining] 23.00 GCData.q_get_memory_pressure_ofs [backendopt:inlining] 20.50 ll_dict_lookup_look_inside_iff__DICTPtr_Address_Signed [backendopt:inlining] 25.75 ll_join_strs_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT [backendopt:inlining] 26.31 ll_stringslice_startstop__rpy_stringPtr_Signed_Signed [backendopt:inlining] 26.37 AddressStack.pop [backendopt:inlining] 26.50 time [backendopt:inlining] 21.50 IncrementalMiniMarkGC._free_if_unvisited [backendopt:inlining] 16.75 clamp_total_memory [backendopt:inlining] 27.25 quicksort [backendopt:inlining] 27.50 IncrementalMiniMarkGC.is_forwarded [backendopt:inlining] 26.00 AddressStack.delete [backendopt:inlining] 26.00 AddressDeque.delete [backendopt:inlining] 28.75 _append_rpy_root [backendopt:inlining] 29.00 ll_dict_insertclean__DICTPtr_Address_Address_Signed [backendopt:inlining] 29.00 IncrementalMiniMarkGC.collect_nonstack_roots [backendopt:inlining] 29.75 llimpl_arena_protect [backendopt:inlining] 21.62 IncrementalMiniMarkGC._rrc_minor_trace [backendopt:inlining] 20.50 get_L2cache_win32 [backendopt:inlining] 29.75 IncrementalMiniMarkGC._alloc_nursery [backendopt:inlining] 21.00 ll_listslice_startstop__GcArray_Ptr_GCREF__gcopaque_Ll_arrayPtr_Signed_Signed [backendopt:inlining] 31.21 ArenaCollection._pick_next_arena [backendopt:inlining] 31.75 AddressDeque.popleft [backendopt:inlining] 31.75 _append_rpy_referent [backendopt:inlining] 32.25 HeapDumper._writeref [backendopt:inlining] 23.00 IncrementalMiniMarkGC.collect_roots_in_nursery [backendopt:inlining] 29.00 IncrementalMiniMarkGC.visit_all_objects [backendopt:inlining] inlined 1645 callsites. [backendopt:removecasts] removed 1 cast_pointers in dump_rpy_heap [backendopt:removecasts] removed 1 cast_pointers in count_memory_pressure [backendopt:removecasts] removed 2 cast_pointers in get_win32_total_phys_memory [backendopt:removecasts] removed 1 cast_pointers in partition [backendopt:removecasts] removed 1 cast_pointers in _ll_stringslice__rpy_stringPtr_Signed_Signed [backendopt:removecasts] removed 2 cast_pointers in strtod__SomeString [backendopt:malloc] starting malloc removal [backendopt:malloc] 1 simple mallocs removed in 'get_win32_total_phys_memory' [backendopt:malloc] 3 simple mallocs removed in 'GlobalMemoryStatusEx__MEMORYSTATUSEXPtr_star_1' [backendopt:malloc] 2 simple mallocs removed in 'partition' [backendopt:malloc] 1 simple mallocs removed in 'getenv_llimpl' [backendopt:malloc] 1 simple mallocs removed in 'strtod__SomeString' [backendopt:malloc] 5 simple mallocs removed in '_PyPy_dg_strtod__arrayPtr_arrayPtr_star_2' [backendopt:malloc] 9 simple mallocs removed in 'VirtualProtect__arrayPtr_Signed_Signed_arrayPtr' [backendopt:malloc] 9 simple mallocs removed in 'VirtualProtect__arrayPtr_Unsigned_UINT_arrayPtr_star_4' [backendopt:malloc] 3 simple mallocs removed in 'getenv__arrayPtr_star_1' [backendopt:malloc] removed 34 simple mallocs in total [backendopt:mergeifblocks] starting to merge if blocks [backendopt] merging blocks in IncrementalMiniMarkGC.collect [backendopt] merging blocks in IncrementalMiniMarkGC.get_stats [backendopt] merging blocks in _trace_slow_path___append_rpy_referent [backendopt] merging blocks in _trace_slow_path__gc_callback__ref [backendopt] merging blocks in _trace_slow_path__gc_callback__writeref [backendopt] merging blocks in _trace_slow_path__gc_callback__trace_drag_out [backendopt] merging blocks in foreach___rrc_minor_trace [backendopt] merging blocks in IncrementalMiniMarkGC._rrc_minor_trace [backendopt] merging blocks in IncrementalMiniMarkGC.major_collection_step [backendopt] merging blocks in IncrementalMiniMarkGC.debug_check_object [backendopt] merging blocks in _trace_slow_path__gc_callback__debug_check_not_white [backendopt] merging blocks in _trace_slow_path__gc_callback__debug_callback2 [backendopt] merging blocks in _trace_slow_path__gc_callback__collect_ref_rec [backendopt] merging blocks in IncrementalMiniMarkGC._rrc_major_trace [backendopt] merging blocks in _trace_slow_path___append_if_nonnull [backendopt] merging blocks in _trace_slow_path__gc_callback__unref [backendopt] merging blocks in llimpl_arena_reset [flowgraph] (rpython.memory.gctransform.framework:620)ll_check_no_collect [flowgraph] (rpython.translator.c.test.test_newgc:456)customtrace [flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback [flowgraph] (rpython.memory.gctransform.framework:618)no_op_callback [rtyper] specializing: 8700 / 8704 blocks (99%) [rtyper] -=- specialized 9 more blocks -=- [flowgraph] (rpython.translator.c.genc:261)entrypoint_wrapper [flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set [flowgraph] (rpython.rtyper.rlist:510)_ll_alloc_and_set_jit [flowgraph] (rpython.rtyper.rlist:522)_ll_alloc_and_clear [flowgraph] (?:11)_ll_alloc_and_set_nonnull_look_inside_iff [flowgraph] (rpython.rtyper.rlist:530) [flowgraph] (rpython.rlib.jit:269)isconstant [flowgraph] (rpython.rtyper.rlist:530)_ll_alloc_and_set_nonnull [flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit [flowgraph] (?:2)_ll_alloc_and_set_nonnull_trampoline [flowgraph] (rpython.rtyper.rlist:530)_ll_alloc_and_set_nonnull [rtyper] -=- specialized 41 more blocks -=- [rtyper] -=- specialized 0 more blocks -=- [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1604)ll_finalizer_trigger [flowgraph] (rpython.memory.gctransform.framework:1611)ll_next_dead [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1713)ll_finalizer [flowgraph] (rpython.memory.gctransform.framework:1604)ll_finalizer_trigger [flowgraph] (rpython.memory.gctransform.framework:1611)ll_next_dead [c] 1000 nodes [ array: 167 framework rtti: 18 func: 662 group: 1 struct: 648 ] [flowgraph] (rpython.memory.gctransform.framework:1604)ll_finalizer_trigger [flowgraph] (rpython.memory.gctransform.framework:1611)ll_next_dead [c] 2000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 123596 ] [c] 3000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 124596 ] [c] 4000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 125596 ] [c] 5000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 126596 ] [c] 6000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 127596 ] [c] 7000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 128596 ] [c] 8000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 129596 ] [c] 9000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 130596 ] [c] 10000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 131596 ] [c] 11000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 132596 ] [c] 12000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 133596 ] [c] 13000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 134596 ] [c] 14000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 135596 ] [c] 15000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 136596 ] [c] 16000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 137596 ] [c] 17000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 138596 ] [c] 18000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 139596 ] [c] 19000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 140596 ] [c] 20000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 141596 ] [c] 21000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 142596 ] [c] 22000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 143596 ] [c] 23000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 144596 ] [c] 24000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 145596 ] [c] 25000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 146596 ] [c] 26000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 147596 ] [c] 27000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 148596 ] [c] 28000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 149596 ] [c] 29000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 150596 ] [c] 30000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 151596 ] [c] 31000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 152596 ] [c] 32000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 153596 ] [c] 33000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 154596 ] [c] 34000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 155596 ] [c] 35000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 156596 ] [c] 36000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 157596 ] [c] 37000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 158596 ] [c] 38000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 159596 ] [c] 39000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 160596 ] [c] 40000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 161596 ] [c] 41000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 162596 ] [c] 42000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 163596 ] [c] 43000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 164596 ] [c] 44000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 165596 ] [c] 45000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 166596 ] [c] 46000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 167596 ] [c] 47000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 168596 ] [c] 48000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 169596 ] [c] 49000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 170596 ] [c] 50000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 171596 ] [c] 51000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 172596 ] [c] 52000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 173596 ] [c] 53000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 174596 ] [c] 54000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 175596 ] [c] 55000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 176596 ] [c] 56000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 177596 ] [c] 57000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 178596 ] [c] 58000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 179596 ] [c] 59000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 180596 ] [c] 60000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 181596 ] [c] 61000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 182596 ] [c] 62000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 183596 ] [c] 63000 nodes [ array: 361 framework rtti: 31 func: 933 group: 1 struct: 184596 ] [c] 64000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 65000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 66000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 67000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 68000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 69000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 70000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 71000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 72000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 73000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 74000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 75000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 76000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 77000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 78000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 79000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 80000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 81000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 82000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 83000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 84000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 85000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 86000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 87000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 88000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 89000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 90000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 91000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 92000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 93000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 94000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 95000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 96000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 97000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 98000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 99000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 100000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 101000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 102000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 103000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 104000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 105000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 106000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 107000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 108000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 109000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 110000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 111000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 112000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 113000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 114000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 115000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 116000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 117000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 118000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 119000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 120000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 121000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 122000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 123000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 124000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185418 ] [c] 125000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 126000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 127000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 128000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 129000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 130000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 131000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 132000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 133000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 134000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 135000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 136000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 137000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 138000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 139000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 140000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 141000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 142000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 143000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 144000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 145000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 146000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 147000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 148000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 149000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 150000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 151000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 152000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 153000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 154000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 155000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 156000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 157000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 158000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 159000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 160000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 161000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 162000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 163000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 164000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 165000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 166000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 167000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 168000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 169000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 170000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 171000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 172000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 173000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 174000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 175000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 176000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 177000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 178000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 179000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 180000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 181000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 182000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 183000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 184000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 185000 nodes [ array: 485 framework rtti: 36 func: 1086 group: 1 struct: 185420 ] [c] 186000 nodes [ array: 488 framework rtti: 37 func: 1114 group: 1 struct: 185420 ] [c] 187000 nodes [ array: 851 framework rtti: 39 func: 1139 group: 1 struct: 185424 ] [c] 188000 nodes [ array: 854 framework rtti: 40 func: 1355 group: 1 struct: 185923 ] [c] 189000 nodes [ array: 855 framework rtti: 40 func: 1430 group: 1 struct: 186676 ] [c] 190000 nodes [ array: 855 framework rtti: 40 func: 1430 group: 1 struct: 187676 ] [c] 191000 nodes [ array: 855 framework rtti: 40 func: 1430 group: 1 struct: 188676 ] [c:database] GC transformer: finished helpers [flowgraph] (rpython.memory.gctransform.support:95)ll_report_finalizer_error [flowgraph] (rpython.memory.gctransform.support:77)write [flowgraph] (rpython.rtyper.lltypesystem.rffi:278)wrap_write [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.support:81)ll_call_destructor [flowgraph] (rpython.memory.gctransform.transform:461)_ll_compute_size [rtyper] specializing: 8800 / 8948 blocks (98%) [rtyper] -=- specialized 203 more blocks -=- [backendopt:removecasts] removed 1 cast_pointers in _ll_malloc_fixedsize__Signed [backendopt:removecasts] removed 1 cast_pointers in _ll_malloc_fixedsize_zero__Signed [backendopt:removecasts] removed 1 cast_pointers in _ll_malloc_varsize_no_length__Signed_Signed_Signed [backendopt:removecasts] removed 1 cast_pointers in _ll_malloc_varsize_no_length_zero__Signed_Signed_Signed [backendopt:removecasts] removed 1 cast_pointers in _ll_compute_size__Signed_Signed_Signed [backendopt:inlining] phase with threshold factor: 32.4 [backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic [backendopt:inlining] 0.00 _ll_compute_size__Signed_Signed_Signed [backendopt:inlining] 0.00 finalizer_trigger [backendopt:inlining] 0.00 wrap_write__Signed_SomeString_Signed_star_3 [backendopt:inlining] 12.50 AddressDeque.non_empty [backendopt:inlining] 16.50 _ll_malloc_varsize_no_length__Signed_Signed_Signed [backendopt:inlining] 26.62 ll_report_finalizer_error__SomeInstance [backendopt:inlining] 31.75 AddressDeque.popleft [backendopt:inlining] inlined 13 callsites. [backendopt:malloc] starting malloc removal [backendopt:malloc] 8 simple mallocs removed in 'write' [backendopt:malloc] 8 simple mallocs removed in 'wrap_write__Signed_SomeString_Signed_star_3' [backendopt:malloc] removed 16 simple mallocs in total [backendopt:mergeifblocks] starting to merge if blocks [c:database] GC transformer: finished tables [gctransform:info] assigned 325 typeids [gctransform:info] added 1980 push/pop stack root instructions [gctransform:info] inserted 80 write barrier calls [gctransform:info] inserted 39 write_barrier_from_array calls [gctransform:info] found 4 static roots [c:database] Inlining GC helpers and postprocessing [c] 191861 nodes [ array: 978 framework rtti: 85 func: 1482 group: 1 struct: 189315 ] [c:database] Completed [translation:info] database for generating C source was created [translation:info] Generating c source... [c:writing] structdef.h [c:writing] forwarddecl.h [c:writing] preimpl.h [c:writing] data_rpython_flowspace.c [c:writing] data_rpython_memory_gc.c [c:writing] data_rpython_memory_gctransform.c [c:writing] data_rpython_memory_test.c [c:writing] data_rpython_rlib.c [c:writing] data_rpython_rtyper.c [c:writing] data_rpython_rtyper_lltypesystem.c [c:writing] data_rpython_translator_c_test.c [c:writing] nonfuncnodes.c [c:writing] nonfuncnodes_1.c [c:writing] nonfuncnodes_2.c [c:writing] nonfuncnodes_3.c [c:writing] nonfuncnodes_4.c [c:writing] nonfuncnodes_5.c [c:writing] nonfuncnodes_6.c [c:writing] nonfuncnodes_7.c [c:writing] nonfuncnodes_8.c [c:writing] nonfuncnodes_9.c [c:writing] data_rpython_memory_gc_1.c [c:writing] data_rpython_rlib_1.c [c:writing] data_rpython_rtyper_lltypesystem_1.c [c:writing] data_rpython_translator_c_test_1.c [c:writing] implement.c [c:writing] rpython_flowspace.c [c:writing] rpython_memory.c [c:writing] rpython_memory_gc.c [c:computedgoto] pypy_g_IncrementalMiniMarkGC_get_stats: 11 cases [c:writing] rpython_memory_gctransform.c [c:writing] rpython_memory_test.c [c:writing] rpython_rlib.c [c:writing] rpython_rtyper.c [c:writing] rpython_rtyper_lltypesystem.c [c:writing] rpython_rtyper_lltypesystem_1.c [c:writing] rpython_rtyper_lltypesystem_module.c [c:writing] rpython_translator.c [c:writing] rpython_translator_c.c [c:writing] rpython_translator_c_test.c [translation:info] written: c:\users\runner~1\appdata\local\temp\usession-pypy-HEAD-12\testing_4\testing_4.c [translation:info] Compiling c source... [platform:execute] nmake in c:\users\runner~1\appdata\local\temp\usession-pypy-HEAD-12\testing_4 [platform:Error] cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] stdafx.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] testing_4.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_flowspace.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_memory_gc.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_memory_gctransform.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_memory_test.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_rlib.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_rtyper.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_rtyper_lltypesystem.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_translator_c_test.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] nonfuncnodes.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] nonfuncnodes_1.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] nonfuncnodes_2.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] nonfuncnodes_3.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] nonfuncnodes_4.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] nonfuncnodes_5.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] nonfuncnodes_6.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] nonfuncnodes_7.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] nonfuncnodes_8.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] nonfuncnodes_9.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_memory_gc_1.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_rlib_1.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_rtyper_lltypesystem_1.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_translator_c_test_1.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] implement.c [platform:Error] implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' [platform:Error] implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' [platform:Error] implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] rpython_flowspace.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] rpython_memory.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] rpython_memory_gc.c [platform:Error] rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' [platform:Error] c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' [platform:Error] rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' [platform:Error] c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' [platform:Error] rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' [platform:Error] rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' [platform:Error] NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' [platform:Error] Stop. E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_from_objwithfinalizer_to_youngobj cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_empty_collect cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_framework_simple cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_framework_safe_pushpop cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_framework_protect_getfield cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_framework_varsized cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_framework_using_lists cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_framework_static_roots cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_framework_nongc_static_root cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_framework_void_array cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_framework_malloc_failure cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_framework_array_of_void cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_framework_opaque cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_framework_finalizer cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_del_catches cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_del_raises cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_custom_trace cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_custom_light_finalizer cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_weakref cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_prebuilt_weakref cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_prebuilt_dicts_of_all_sizes cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_framework_malloc_raw cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_framework_del_seeing_new_types cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_framework_late_filling_pointers cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_zero_raw_malloc cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_object_alignment cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_void_list cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_open_read_write_seek_close cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_callback_with_collect cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_can_move cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_resizable_buffer cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_hash_preservation cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_hash_overflow cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_hash_varsized cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_arraycopy_writebarrier_int cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_arraycopy_writebarrier_ptr cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_get_rpy_roots cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_get_rpy_referents cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_is_rpy_instance cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_try_cast_gcref_to_instance cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_get_rpy_memory_usage cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_get_rpy_type_index cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_dump_rpy_heap cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_write_typeids_z cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_gcflag_extra cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_check_zero_works cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_long_chain_of_instances cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_many_ids cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_string_builder cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_string_builder_over_allocation cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_string_builder_multiple_builds cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_string_builder_multiple_builds_2 cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_nursery_hash_base cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_extra_item_after_alloc cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_rerased cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_gc_heap_stats cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_nongc_attached_to_gc cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_nongc_opaque_attached_to_gc cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_limited_memory cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_gc_set_max_heap_size cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_total_memory_pressure cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_random_pin cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_limited_memory_linux cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_ignore_finalizer cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_enable_disable cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_collect_step cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_total_gc_time cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_increase_root_stack_depth cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_tagged cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError E translator/c/test/test_newgc.py::TestIncrementalMiniMarkGCMostCompact::()::test_erased cls = def setup_class(cls): funcs0 = [] funcs1 = [] funcsstr = [] name_to_func = {} for fullname in dir(cls): if not fullname.startswith('define'): continue keyword = option.keyword if keyword.startswith('test_') and not keyword.endswith(':'): keyword = keyword[len('test_'):] if keyword not in fullname: continue prefix, name = fullname.split('_', 1) definefunc = getattr(cls, fullname) func = definefunc.im_func(cls) func.__name__ = 'f_' + name if prefix == 'definestr': funcsstr.append(func) funcs0.append(None) funcs1.append(None) else: numargs = len(inspect.getargspec(func)[0]) funcsstr.append(None) if numargs == 0: funcs0.append(func) funcs1.append(None) else: assert numargs == 1 funcs0.append(None) funcs1.append(func) assert name not in name_to_func name_to_func[name] = len(name_to_func) assert name_to_func def allfuncs(name, arg): num = name_to_func[name] func0 = funcs0[num] if func0: return str(func0()) func1 = funcs1[num] if func1: return str(func1(arg)) funcstr = funcsstr[num] if funcstr: return funcstr(arg) assert 0, 'unreachable' cls.funcsstr = funcsstr > cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs)) translator\c\test\test_newgc.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_newgc.py:58: in _makefunc_str_int exename = t.compile() translator\interactive.py:117: in compile getattr(self.driver, 'compile_' + backend)() translator\driver.py:108: in proc return self.proceed(backend_goal) translator\driver.py:569: in proceed result = self._execute(goals, task_skip = self._maybe_skip()) translator\tool\taskengine.py:114: in _execute res = self._do(goal, taskcallable, *args, **kwds) translator\driver.py:278: in _do res = func() translator\driver.py:536: in task_compile_c cbuilder.compile(**kwds) translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2169): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-12\\testing_4\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_4.obj /c testing_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_flowspace.obj /c data_rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_test.obj /c data_rpython_memory_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_1.obj /c nonfuncnodes_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_2.obj /c nonfuncnodes_2.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_2.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_3.obj /c nonfuncnodes_3.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_3.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_4.obj /c nonfuncnodes_4.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_4.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_5.obj /c nonfuncnodes_5.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_5.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_6.obj /c nonfuncnodes_6.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_6.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_7.obj /c nonfuncnodes_7.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_7.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_8.obj /c nonfuncnodes_8.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_8.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes_9.obj /c nonfuncnodes_9.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes_9.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test_1.obj /c data_rpython_translator_c_test_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(154): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E implement.c(4168): warning C4047: 'function': 'va_list *' differs in levels of indirection from 'char *' E implement.c(4168): warning C4024: 'FormatMessageW': different types for formal and actual parameter 7 E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_flowspace.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2135): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-12\testing_4\singleheader.h(5186): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2162): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2169): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError (somefailed=True in translator/c/test/test_newgc.py) . translator/c/test/test_standalone_print_function.py::TestStandalonePrintFunction::()::test_print_function . translator/c/test/test_support.py::test_gen_simple_assignments::[0] . translator/c/test/test_support.py::test_gen_simple_assignments::[1] . translator/c/test/test_support.py::test_gen_simple_assignments::[2] . translator/c/test/test_support.py::test_gen_simple_assignments::[3] . translator/c/test/test_support.py::test_gen_simple_assignments::[4] . translator/c/test/test_support.py::test_gen_simple_assignments::[5] . translator/c/test/test_support.py::test_gen_simple_assignments::[6] . translator/c/test/test_support.py::test_gen_check::[0] . translator/c/test/test_support.py::test_gen_check::[1] . translator/c/test/test_support.py::test_gen_check::[2] . translator/c/test/test_support.py::test_gen_check::[3] . translator/c/test/test_support.py::test_gen_check::[4] . translator/c/test/test_support.py::test_gen_check::[5] . translator/c/test/test_support.py::test_gen_check::[6] . translator/c/test/test_support.py::test_gen_check::[7] . translator/c/test/test_support.py::test_gen_check::[8] . translator/c/test/test_support.py::test_gen_check::[9] . translator/c/test/test_support.py::test_gen_check::[10] . translator/c/test/test_support.py::test_gen_check::[11] . translator/c/test/test_support.py::test_gen_check::[12] . translator/c/test/test_support.py::test_gen_check::[13] . translator/c/test/test_support.py::test_gen_check::[14] . translator/c/test/test_support.py::test_gen_check::[15] . translator/c/test/test_support.py::test_gen_check::[16] . translator/c/test/test_support.py::test_gen_check::[17] . translator/c/test/test_support.py::test_gen_check::[18] . translator/c/test/test_support.py::test_gen_check::[19] . translator/c/test/test_support.py::test_gen_check::[20] . translator/c/test/test_support.py::test_gen_check::[21] . translator/c/test/test_support.py::test_gen_check::[22] . translator/c/test/test_support.py::test_gen_check::[23] . translator/c/test/test_support.py::test_gen_check::[24] . translator/c/test/test_support.py::test_gen_check::[25] . translator/c/test/test_support.py::test_gen_check::[26] . translator/c/test/test_support.py::test_gen_check::[27] . translator/c/test/test_support.py::test_gen_check::[28] . translator/c/test/test_support.py::test_gen_check::[29] . translator/c/test/test_support.py::test_gen_check::[30] . translator/c/test/test_support.py::test_gen_check::[31] . translator/c/test/test_support.py::test_gen_check::[32] . translator/c/test/test_support.py::test_gen_check::[33] . translator/c/test/test_support.py::test_gen_check::[34] . translator/c/test/test_support.py::test_gen_check::[35] . translator/c/test/test_support.py::test_gen_check::[36] . translator/c/test/test_support.py::test_gen_check::[37] . translator/c/test/test_support.py::test_gen_check::[38] . translator/c/test/test_support.py::test_gen_check::[39] . translator/c/test/test_support.py::test_gen_check::[40] . translator/c/test/test_support.py::test_gen_check::[41] . translator/c/test/test_support.py::test_gen_check::[42] . translator/c/test/test_support.py::test_gen_check::[43] . translator/c/test/test_support.py::test_gen_check::[44] . translator/c/test/test_support.py::test_gen_check::[45] . translator/c/test/test_support.py::test_gen_check::[46] . translator/c/test/test_support.py::test_gen_check::[47] . translator/c/test/test_support.py::test_gen_check::[48] . translator/c/test/test_support.py::test_gen_check::[49] . translator/c/test/test_support.py::test_gen_check::[50] . translator/c/test/test_support.py::test_gen_check::[51] . translator/c/test/test_support.py::test_gen_check::[52] . translator/c/test/test_support.py::test_gen_check::[53] . translator/c/test/test_support.py::test_gen_check::[54] . translator/c/test/test_support.py::test_gen_check::[55] . translator/c/test/test_support.py::test_gen_check::[56] . translator/c/test/test_support.py::test_gen_check::[57] . translator/c/test/test_support.py::test_gen_check::[58] . translator/c/test/test_support.py::test_gen_check::[59] . translator/c/test/test_support.py::test_gen_check::[60] . translator/c/test/test_support.py::test_gen_check::[61] . translator/c/test/test_support.py::test_gen_check::[62] . translator/c/test/test_support.py::test_gen_check::[63] . translator/c/test/test_support.py::test_gen_check::[64] . translator/c/test/test_support.py::test_gen_check::[65] . translator/c/test/test_support.py::test_gen_check::[66] . translator/c/test/test_support.py::test_gen_check::[67] . translator/c/test/test_support.py::test_gen_check::[68] . translator/c/test/test_support.py::test_gen_check::[69] . translator/c/test/test_support.py::test_gen_check::[70] . translator/c/test/test_support.py::test_gen_check::[71] . translator/c/test/test_support.py::test_gen_check::[72] . translator/c/test/test_support.py::test_gen_check::[73] . translator/c/test/test_support.py::test_gen_check::[74] . translator/c/test/test_support.py::test_gen_check::[75] . translator/c/test/test_support.py::test_gen_check::[76] . translator/c/test/test_support.py::test_gen_check::[77] . translator/c/test/test_support.py::test_gen_check::[78] . translator/c/test/test_support.py::test_gen_check::[79] . translator/c/test/test_support.py::test_gen_check::[80] . translator/c/test/test_support.py::test_gen_check::[81] . translator/c/test/test_support.py::test_gen_check::[82] . translator/c/test/test_support.py::test_gen_check::[83] . translator/c/test/test_support.py::test_gen_check::[84] . translator/c/test/test_support.py::test_gen_check::[85] . translator/c/test/test_support.py::test_gen_check::[86] . translator/c/test/test_support.py::test_gen_check::[87] . translator/c/test/test_support.py::test_gen_check::[88] . translator/c/test/test_support.py::test_gen_check::[89] . translator/c/test/test_support.py::test_gen_check::[90] . translator/c/test/test_support.py::test_gen_check::[91] . translator/c/test/test_support.py::test_gen_check::[92] . translator/c/test/test_support.py::test_gen_check::[93] . translator/c/test/test_support.py::test_gen_check::[94] . translator/c/test/test_support.py::test_gen_check::[95] . translator/c/test/test_support.py::test_gen_check::[96] . translator/c/test/test_support.py::test_gen_check::[97] . translator/c/test/test_support.py::test_gen_check::[98] . translator/c/test/test_support.py::test_gen_check::[99] . translator/c/test/test_symbolic.py::test_offsetof . translator/c/test/test_symbolic.py::test_offsetof_nogc . translator/c/test/test_symbolic.py::test_sizeof_array_with_no_length . translator/c/test/test_symbolic.py::test_itemoffsetof . translator/c/test/test_symbolic.py::test_itemoffsetof_fixedsizearray . translator/c/test/test_symbolic.py::test_sizeof_constsize_struct . translator/c/test/test_symbolic.py::test_computed_int_symbolic . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_simple . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_simple2 . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_fixedsizearray . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_recursivearray . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_prebuilt_array . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_call_with_fixedsizearray . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_more_prebuilt_arrays . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_fnptr_with_fixedsizearray . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_direct_arrayitems . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_structarray_add . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_direct_fieldptr . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_prebuilt_subarrays . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_union . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_sizeof_void_array . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_cast_primitive . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_prebuilt_integers . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_force_cast . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_array_nolength s translator/c/test/test_lltyped.py::TestLowLevelType::()::test_gcarray_nolength Skipped: GcArrays should never be 'nolength' . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_structarray_nolength . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_zero_raw_malloc . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_zero_raw_malloc_varsize . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_arithmetic_cornercases . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_direct_ptradd_barebone . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_r_singlefloat . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_array_of_array . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_array_of_array_write . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_prebuilt_nolength_array . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_prebuilt_nolength_char_array . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_prebuilt_raw_arrays . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_prebuilt_ll2ctypes_array . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_ll2ctypes_array_from_c . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_cast_to_void_array . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_llgroup s translator/c/test/test_lltyped.py::TestLowLevelType::()::test_llgroup_size_limit::[0] Skipped: not easy to test groups too big on 64-bit platforms . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_llgroup_size_limit::[1] . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_round_up_for_allocation . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_llarena . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_padding_in_prebuilt_struct . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_render_immortal . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_rstring_to_float . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_raw_array_field . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_raw_array_field_prebuilt . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_const_char_star . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_call_null_funcptr . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_likely_unlikely . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_cast_to_bool_1 . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_cast_to_bool_1_longlong . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_cast_to_bool_2 . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_cast_to_bool_2_longlong . translator/c/test/test_lltyped.py::TestLowLevelType::()::test_extra_item_after_alloc s translator/platform/arch/test/test_s390x.py D:\a\pypy\pypy\rpython\translator\platform\arch\test\test_s390x.py:7: Skipped: s390x tests only . translator/c/test/test_standalone.py::TestStandalone::()::test_hello_world . translator/c/test/test_standalone.py::TestStandalone::()::test_print . translator/c/test/test_standalone.py::TestStandalone::()::test_counters s translator/c/test/test_standalone.py::TestStandalone::()::test_prof_inline Skipped: broken by 5b0e029514d4, but we don't use it any more . translator/c/test/test_standalone.py::TestStandalone::()::test_frexp s translator/c/test/test_standalone.py::TestStandalone::()::test_profopt Skipped: no profopt on win32 s translator/c/test/test_standalone.py::TestStandalone::()::test_profopt_mac_osx_bug Skipped: no profopt on win32 . translator/c/test/test_standalone.py::TestStandalone::()::test_standalone_large_files . translator/c/test/test_standalone.py::TestStandalone::()::test_separate_files . translator/c/test/test_standalone.py::TestStandalone::()::test_debug_print_start_stop . translator/c/test/test_standalone.py::TestStandalone::()::test_debug_start_stop_timestamp . translator/c/test/test_standalone.py::TestStandalone::()::test_debug_print_start_stop_nonconst s translator/c/test/test_standalone.py::TestStandalone::()::test_debug_print_fork Skipped: requires fork() . translator/c/test/test_standalone.py::TestStandalone::()::test_debug_flush_at_exit . translator/c/test/test_standalone.py::TestStandalone::()::test_fatal_error . translator/c/test/test_standalone.py::TestStandalone::()::test_fatal_error_finally_1 . translator/c/test/test_standalone.py::TestStandalone::()::test_fatal_error_finally_2 s translator/c/test/test_standalone.py::TestStandalone::()::test_fatal_error_finally_3 Skipped: not implemented: a try:finally: in which we raise the *same* exception . translator/c/test/test_standalone.py::TestStandalone::()::test_fatal_error_finally_4 . translator/c/test/test_standalone.py::TestStandalone::()::test_assertion_error_debug . translator/c/test/test_standalone.py::TestStandalone::()::test_assertion_error_nondebug . translator/c/test/test_standalone.py::TestStandalone::()::test_int_lshift_too_large . translator/c/test/test_standalone.py::TestStandalone::()::test_llong_rshift_too_large . translator/c/test/test_standalone.py::TestStandalone::()::test_ll_assert_error_debug s translator/c/test/test_standalone.py::TestStandalone::()::test_ll_assert_error_nondebug Skipped: implement later, maybe: tracebacks even with ll_assert . translator/c/test/test_standalone.py::TestStandalone::()::test_shared1 . translator/c/test/test_standalone.py::TestStandalone::()::test_shared2 s translator/c/test/test_standalone.py::TestStandalone::()::test_gcc_options Skipped: only for gcc . translator/c/test/test_standalone.py::TestStandalone::()::test_inhibit_tail_call . translator/c/test/test_standalone.py::TestStandalone::()::test_set_length_fraction s translator/c/test/test_standalone.py::TestStandalone::()::test_set_length_fraction_clamped_to_os_stack Skipped: requires the resource module to bound RLIMIT_STACK . translator/c/test/test_standalone.py::TestStandalone::()::test_stack_criticalcode . translator/c/test/test_standalone.py::TestStandalone::()::test_llhelper_stored_in_struct . translator/c/test/test_standalone.py::TestStandalone::()::test_unicode_builder . translator/c/test/test_standalone.py::TestStandalone::()::test_call_at_startup s translator/c/test/test_standalone.py::TestStandalone::()::test_gcc_precompiled_header Skipped: no win . translator/c/test/test_standalone.py::TestStandalone::()::test_field_access_stats F translator/c/test/test_standalone.py::TestThread::()::test_stack_size self = def test_stack_size(self): import time from rpython.rlib import rthread from rpython.rtyper.lltypesystem import lltype class State: pass state = State() def recurse(n): if n > 0: return recurse(n-1)+1 else: time.sleep(0.2) # invokes before/after return 0 # recurse a lot RECURSION = 19500 if sys.platform == 'win32': # If I understand it correctly: # - The stack size "reserved" for a new thread is a compile-time # option (by default: 1Mb). This is a minimum that user code # cannot control. # - set_stacksize() only sets the initially "committed" size, # which eventually requires a larger "reserved" size. # - The limit below is large enough to exceed the "reserved" size, # for small values of set_stacksize(). RECURSION = 150 * 1000 def bootstrap(): recurse(RECURSION) state.count += 1 def entry_point(argv): os.write(1, "hello world\n") error = rthread.set_stacksize(int(argv[1])) if error != 0: os.write(2, "set_stacksize(%d) returned %d\n" % ( int(argv[1]), error)) raise AssertionError # malloc a bit s1 = State(); s2 = State(); s3 = State() s1.x = 0x11111111; s2.x = 0x22222222; s3.x = 0x33333333 # start 3 new threads state.count = 0 ident1 = rthread.start_new_thread(bootstrap, ()) ident2 = rthread.start_new_thread(bootstrap, ()) ident3 = rthread.start_new_thread(bootstrap, ()) # wait for the 3 threads to finish while True: if state.count == 3: break time.sleep(0.1) # invokes before/after # check that the malloced structures were not overwritten assert s1.x == 0x11111111 assert s2.x == 0x22222222 assert s3.x == 0x33333333 os.write(1, "done\n") return 0 > t, cbuilder = self.compile(entry_point) translator\c\test\test_standalone.py:1350: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_standalone.py:1285: in compile cbuilder.compile() translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2147): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-15\\testing_30\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_30.obj /c testing_30.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_30.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(233): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2113): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-15\testing_30\singleheader.h(2184): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2139): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-15\testing_30\singleheader.h(2184): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2140): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2147): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError ---------- Captured stderr call ---------- [platform:msg] Updated environment with vsver 160, using x64 True [rtyper] specializing: 100 / 274 blocks (36%) [rtyper] specializing: 200 / 393 blocks (50%) [rtyper] specializing: 300 / 393 blocks (76%) [rtyper] -=- specialized 397 blocks -=- [rtyper] specializing: 400 / 401 blocks (99%) [rtyper] -=- specialized 4 more blocks -=- [rtyper] -=- specialized 25 more blocks -=- [rtyper] specializing: 500 / 2884 blocks (17%) [rtyper] specializing: 700 / 2965 blocks (23%) [rtyper] specializing: 1100 / 3722 blocks (29%) [rtyper] specializing: 1300 / 3726 blocks (34%) [rtyper] specializing: 1500 / 3836 blocks (39%) [rtyper] specializing: 1700 / 3836 blocks (44%) [rtyper] specializing: 1900 / 3836 blocks (49%) [rtyper] specializing: 2100 / 3848 blocks (54%) [rtyper] specializing: 2300 / 3848 blocks (59%) [rtyper] specializing: 2500 / 3848 blocks (64%) [rtyper] specializing: 2700 / 3850 blocks (70%) [rtyper] specializing: 2900 / 3850 blocks (75%) [rtyper] specializing: 3100 / 3850 blocks (80%) [rtyper] specializing: 3300 / 3850 blocks (85%) [rtyper] specializing: 3500 / 3850 blocks (90%) [rtyper] specializing: 3700 / 3850 blocks (96%) [rtyper] -=- specialized 3432 more blocks -=- [rtyper] specializing: 3900 / 3968 blocks (98%) [rtyper] -=- specialized 110 more blocks -=- [backendopt:inlining] phase with threshold factor: 32.4 [backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic [backendopt:inlining] inlined 1869 callsites. [backendopt:malloc] starting malloc removal [backendopt:malloc] removed 81 simple mallocs in total [backendopt:mergeifblocks] starting to merge if blocks [rtyper] -=- specialized 21 more blocks -=- [rtyper] specializing: 4000 / 4037 blocks (99%) [rtyper] -=- specialized 48 more blocks -=- [rtyper] -=- specialized 0 more blocks -=- [c:database] GC transformer: finished helpers [rtyper] -=- specialized 62 more blocks -=- [backendopt:inlining] phase with threshold factor: 32.4 [backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic [backendopt:inlining] inlined 4 callsites. [backendopt:malloc] starting malloc removal [backendopt:malloc] removed 16 simple mallocs in total [backendopt:mergeifblocks] starting to merge if blocks [c:database] GC transformer: finished tables [gctransform:info] assigned 71 typeids [gctransform:info] added 109 push/pop stack root instructions [gctransform:info] inserted 11 write barrier calls [gctransform:info] inserted 14 write_barrier_from_array calls [gctransform:info] found 4 static roots [c:database] Inlining GC helpers and postprocessing [c] 883 nodes [ array: 144 framework rtti: 22 func: 331 group: 1 struct: 385 ] [c:database] Completed [c:writing] structdef.h [c:writing] forwarddecl.h [c:writing] preimpl.h [c:writing] data_rpython_memory_gc.c [c:writing] data_rpython_memory_gctransform.c [c:writing] data_rpython_rlib.c [c:writing] data_rpython_rtyper.c [c:writing] data_rpython_rtyper_lltypesystem.c [c:writing] data_rpython_translator_c_test.c [c:writing] nonfuncnodes.c [c:writing] data_rpython_memory_gc_1.c [c:writing] data_rpython_rlib_1.c [c:writing] data_rpython_rtyper_lltypesystem_1.c [c:writing] implement.c [c:writing] rpython_memory.c [c:writing] rpython_memory_gc.c [c:writing] rpython_memory_gctransform.c [c:writing] rpython_rlib.c [c:writing] rpython_rtyper.c [c:writing] rpython_rtyper_lltypesystem.c [c:writing] rpython_translator.c [c:writing] rpython_translator_c.c [c:writing] rpython_translator_c_test.c [platform:execute] nmake in c:\users\runner~1\appdata\local\temp\usession-pypy-HEAD-15\testing_30 [platform:Error] cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] stdafx.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_30.obj /c testing_30.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] testing_30.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_memory_gc.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_memory_gctransform.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_rlib.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_rtyper.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_rtyper_lltypesystem.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_translator_c_test.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] nonfuncnodes.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_memory_gc_1.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_rlib_1.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_rtyper_lltypesystem_1.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] implement.c [platform:Error] implement.c(233): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] rpython_memory.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] rpython_memory_gc.c [platform:Error] rpython_memory_gc.c(2113): error C2027: use of undefined type 'MEMORYSTATUSEX' [platform:Error] c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-15\testing_30\singleheader.h(2184): note: see declaration of 'MEMORYSTATUSEX' [platform:Error] rpython_memory_gc.c(2139): error C2027: use of undefined type 'MEMORYSTATUSEX' [platform:Error] c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-15\testing_30\singleheader.h(2184): note: see declaration of 'MEMORYSTATUSEX' [platform:Error] rpython_memory_gc.c(2140): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' [platform:Error] rpython_memory_gc.c(2147): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' [platform:Error] NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' [platform:Error] Stop. F translator/c/test/test_standalone.py::TestThread::()::test_thread_and_gc self = def test_thread_and_gc(self): import time, gc from rpython.rlib import rthread, rposix from rpython.rtyper.lltypesystem import lltype class State: pass state = State() class Cons: def __init__(self, head, tail): self.head = head self.tail = tail def check_errno(value): rposix.set_saved_errno(value) for i in range(10000000): pass assert rposix.get_saved_errno() == value def bootstrap(): rthread.gc_thread_start() check_errno(42) state.xlist.append(Cons(123, Cons(456, None))) gc.collect() rthread.gc_thread_die() def new_thread(): ident = rthread.start_new_thread(bootstrap, ()) check_errno(41) time.sleep(0.5) # enough time to start, hopefully return ident def entry_point(argv): os.write(1, "hello world\n") state.xlist = [] x2 = Cons(51, Cons(62, Cons(74, None))) # start 5 new threads ident1 = new_thread() ident2 = new_thread() # gc.collect() # ident3 = new_thread() ident4 = new_thread() ident5 = new_thread() # wait for the 5 threads to finish while True: gc.collect() if len(state.xlist) == 5: break time.sleep(0.1) # invokes before/after # check that the malloced structures were not overwritten assert x2.head == 51 assert x2.tail.head == 62 assert x2.tail.tail.head == 74 assert x2.tail.tail.tail is None # check the structures produced by the threads for i in range(5): assert state.xlist[i].head == 123 assert state.xlist[i].tail.head == 456 assert state.xlist[i].tail.tail is None os.write(1, "%d ok\n" % (i+1)) return 0 def runme(no__thread): t, cbuilder = self.compile(entry_point, no__thread=no__thread) data = cbuilder.cmdexec('') assert data.splitlines() == ['hello world', '1 ok', '2 ok', '3 ok', '4 ok', '5 ok'] if SUPPORT__THREAD: runme(no__thread=False) > runme(no__thread=True) translator\c\test\test_standalone.py:1451: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ translator\c\test\test_standalone.py:1440: in runme t, cbuilder = self.compile(entry_point, no__thread=no__thread) translator\c\test\test_standalone.py:1285: in compile cbuilder.compile() translator\c\genc.py:341: in compile extra_opts) translator\platform\windows.py:574: in execute_makefile self._handle_error(returncode, stdout, stderr, path.join('make')) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , returncode = 2 stdout = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...ython_memory_gc.c(2168): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n' stderr = '\tcl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n' outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-15\\testing_31\\make') def _handle_error(self, returncode, stdout, stderr, outname): if returncode != 0: # Microsoft compilers write compilation errors to stdout stderr = stdout + stderr errorfile = outname.new(ext='errors') errorfile.write(stderr, mode='wb') if self.log_errors: stderrlines = stderr.splitlines() for line in stderrlines: log.Error(line) # ^^^ don't use ERROR, because it might actually be fine. # Also, ERROR confuses lib-python/conftest.py. > raise CompilationError(stdout, stderr) E CompilationError: CompilationError(err=""" E cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E stdafx.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_31.obj /c testing_31.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E testing_31.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gctransform.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_translator_c_test.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E nonfuncnodes.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_memory_gc_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rlib_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E data_rpython_rtyper_lltypesystem_1.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E implement.c E implement.c(198): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory.c E cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src E rpython_memory_gc.c E rpython_memory_gc.c(2134): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-15\testing_31\singleheader.h(2221): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2160): error C2027: use of undefined type 'MEMORYSTATUSEX' E c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-15\testing_31\singleheader.h(2221): note: see declaration of 'MEMORYSTATUSEX' E rpython_memory_gc.c(2161): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' E rpython_memory_gc.c(2168): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' E NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' E Stop. E """) translator\platform\windows.py:319: CompilationError ---------- Captured stderr call ---------- [platform:msg] Updated environment with vsver 160, using x64 True [rtyper] specializing: 100 / 239 blocks (41%) [rtyper] specializing: 300 / 460 blocks (65%) [rtyper] specializing: 400 / 460 blocks (86%) [rtyper] -=- specialized 464 blocks -=- [rtyper] -=- specialized 4 more blocks -=- [rtyper] -=- specialized 25 more blocks -=- [rtyper] specializing: 500 / 2947 blocks (16%) [rtyper] specializing: 700 / 3023 blocks (23%) [rtyper] specializing: 1100 / 3764 blocks (29%) [rtyper] specializing: 1300 / 3768 blocks (34%) [rtyper] specializing: 1600 / 3878 blocks (41%) [rtyper] specializing: 1800 / 3878 blocks (46%) [rtyper] specializing: 2000 / 3878 blocks (51%) [rtyper] specializing: 2200 / 3923 blocks (56%) [rtyper] specializing: 2400 / 3923 blocks (61%) [rtyper] specializing: 2600 / 3923 blocks (66%) [rtyper] specializing: 2800 / 3925 blocks (71%) [rtyper] specializing: 3000 / 3925 blocks (76%) [rtyper] specializing: 3200 / 3925 blocks (81%) [rtyper] specializing: 3400 / 3925 blocks (86%) [rtyper] specializing: 3600 / 3925 blocks (91%) [rtyper] specializing: 3800 / 3925 blocks (96%) [rtyper] -=- specialized 3440 more blocks -=- [rtyper] specializing: 4000 / 4043 blocks (98%) [rtyper] -=- specialized 110 more blocks -=- [backendopt:inlining] phase with threshold factor: 32.4 [backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic [backendopt:inlining] inlined 1836 callsites. [backendopt:malloc] starting malloc removal [backendopt:malloc] removed 81 simple mallocs in total [backendopt:mergeifblocks] starting to merge if blocks [rtyper] -=- specialized 21 more blocks -=- [rtyper] specializing: 4100 / 4110 blocks (99%) [rtyper] -=- specialized 46 more blocks -=- [rtyper] -=- specialized 0 more blocks -=- [c:database] GC transformer: finished helpers [rtyper] -=- specialized 62 more blocks -=- [backendopt:inlining] phase with threshold factor: 32.4 [backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic [backendopt:inlining] inlined 4 callsites. [backendopt:malloc] starting malloc removal [backendopt:malloc] removed 16 simple mallocs in total [backendopt:mergeifblocks] starting to merge if blocks [c:database] GC transformer: finished tables [gctransform:info] assigned 74 typeids [gctransform:info] added 123 push/pop stack root instructions [gctransform:info] inserted 15 write barrier calls [gctransform:info] inserted 14 write_barrier_from_array calls [gctransform:info] found 4 static roots [c:database] Inlining GC helpers and postprocessing [c] 929 nodes [ array: 147 framework rtti: 23 func: 370 group: 1 struct: 388 ] [c:database] Completed [c:writing] structdef.h [c:writing] forwarddecl.h [c:writing] preimpl.h [c:writing] data_rpython_memory_gc.c [c:writing] data_rpython_memory_gctransform.c [c:writing] data_rpython_rlib.c [c:writing] data_rpython_rtyper.c [c:writing] data_rpython_rtyper_lltypesystem.c [c:writing] data_rpython_translator_c_test.c [c:writing] nonfuncnodes.c [c:writing] data_rpython_memory_gc_1.c [c:writing] data_rpython_rlib_1.c [c:writing] data_rpython_rtyper_lltypesystem_1.c [c:writing] implement.c [c:writing] rpython_memory.c [c:writing] rpython_memory_gc.c [c:writing] rpython_memory_gctransform.c [c:writing] rpython_rlib.c [c:writing] rpython_rtyper.c [c:writing] rpython_rtyper_lltypesystem.c [c:writing] rpython_translator.c [c:writing] rpython_translator_c.c [c:writing] rpython_translator_c_test.c [platform:execute] nmake in c:\users\runner~1\appdata\local\temp\usession-pypy-HEAD-15\testing_31 [platform:Error] cl.exe stdafx.c /c /nologo /MD /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] stdafx.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fotesting_31.obj /c testing_31.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] testing_31.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc.obj /c data_rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_memory_gc.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gctransform.obj /c data_rpython_memory_gctransform.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_memory_gctransform.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib.obj /c data_rpython_rlib.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_rlib.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_rtyper.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_rtyper_lltypesystem.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_translator_c_test.obj /c data_rpython_translator_c_test.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_translator_c_test.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] nonfuncnodes.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_memory_gc_1.obj /c data_rpython_memory_gc_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_memory_gc_1.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_1.obj /c data_rpython_rlib_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_rlib_1.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem_1.obj /c data_rpython_rtyper_lltypesystem_1.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] data_rpython_rtyper_lltypesystem_1.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Foimplement.obj /c implement.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] implement.c [platform:Error] implement.c(198): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX' [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] rpython_memory.c [platform:Error] cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src [platform:Error] rpython_memory_gc.c [platform:Error] rpython_memory_gc.c(2134): error C2027: use of undefined type 'MEMORYSTATUSEX' [platform:Error] c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-15\testing_31\singleheader.h(2221): note: see declaration of 'MEMORYSTATUSEX' [platform:Error] rpython_memory_gc.c(2160): error C2027: use of undefined type 'MEMORYSTATUSEX' [platform:Error] c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-15\testing_31\singleheader.h(2221): note: see declaration of 'MEMORYSTATUSEX' [platform:Error] rpython_memory_gc.c(2161): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX' [platform:Error] rpython_memory_gc.c(2168): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX' [platform:Error] NMAKE : fatal error U1077: 'cl.exe /nologo /MD /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include /I"D:\a\pypy\pypy\rpython"\translator\c /I"D:\a\pypy\pypy\rpython"\rlib\src' : return code '0x2' [platform:Error] Stop. s translator/c/test/test_standalone.py::TestThread::()::test_gc_with_fork_without_threads Skipped: requires fork() s translator/c/test/test_standalone.py::TestThread::()::test_thread_and_gc_with_fork Skipped: requires fork() . translator/c/test/test_standalone.py::TestShared::()::test_entrypoint (somefailed=True in translator/c/test/test_standalone.py) s translator/sandbox/test/test_sandbox.py D:\a\pypy\pypy\rpython\translator\sandbox\test\__init__.py:5: Skipped: sandbox not supported on windows s translator/sandbox/test/test_sandlib.py D:\a\pypy\pypy\rpython\translator\sandbox\test\__init__.py:5: Skipped: sandbox not supported on windows s translator/sandbox/test/test_vfs.py D:\a\pypy\pypy\rpython\translator\sandbox\test\__init__.py:5: Skipped: sandbox not supported on windows s translator/platform/test/test_darwin.py D:\a\pypy\pypy\rpython\translator\platform\test\test_darwin.py:7: Skipped: Darwin only . translator/platform/test/test_makefile.py::test_simple_makefile . translator/platform/test/test_makefile.py::test_redefinition . translator/platform/test/test_makefile.py::TestMakefile::()::test_900_files . translator/platform/test/test_makefile.py::TestMakefile::()::test_precompiled_headers . translator/platform/test/test_platform.py::test_compilationerror_repr . translator/platform/test/test_platform.py::TestPlatform::()::test_simple_enough . translator/platform/test/test_platform.py::TestPlatform::()::test_two_files . translator/platform/test/test_platform.py::TestPlatform::()::test_nice_errors . translator/platform/test/test_platform.py::TestPlatform::()::test_use_eci . translator/platform/test/test_platform.py::TestPlatform::()::test_standalone_library . translator/platform/test/test_platform.py::TestPlatform::()::test_environment_inheritance . translator/platform/test/test_platform.py::TestPlatform::()::test_key . translator/platform/test/test_platform.py::test_equality . translator/platform/test/test_platform.py::test_is_host_build . translator/platform/test/test_posix.py::test_echo . translator/platform/test/test_posix.py::TestMakefile::()::test_simple_makefile . translator/platform/test/test_posix.py::TestMakefile::()::test_link_files . translator/platform/test/test_posix.py::TestMakefile::()::test_preprocess_localbase . translator/platform/test/test_windows.py::TestWindows::()::test_manifest_exe . translator/platform/test/test_windows.py::TestWindows::()::test_manifest_dll . translator/platform/test/test_windows.py::TestMakefile::()::test_manifest . translator/tool/test/test_cbuild.py::TestEci::()::test_merge . translator/tool/test/test_cbuild.py::TestEci::()::test_merge2 . translator/tool/test/test_cbuild.py::TestEci::()::test_convert_sources_to_c_files . translator/tool/test/test_cbuild.py::TestEci::()::test_make_shared_lib . translator/tool/test/test_cbuild.py::TestEci::()::test_from_compiler_flags . translator/tool/test/test_cbuild.py::TestEci::()::test_from_linker_flags s translator/tool/test/test_cbuild.py::TestEci::()::test_from_config_tool Skipped: sdl-config not installed . translator/tool/test/test_cbuild.py::TestEci::()::test_from_missing_config_tool s translator/tool/test/test_cbuild.py::TestEci::()::test_from_pkg_config Skipped: failed: 'pkg-config ncurses --exists' . translator/tool/test/test_cbuild.py::TestEci::()::test_platforms . translator/tool/test/test_staticsizereport.py::TestStaticSizeReport::()::test_simple . translator/tool/test/test_staticsizereport.py::TestStaticSizeReport::()::test_large_dict . translator/tool/test/test_taskengine.py::test_simple . translator/tool/test/test_taskengine.py::test_execute . translator/tool/test/test_taskengine.py::test_driver . translator/test/test_driver.py::test_ctr . translator/test/test_driver.py::test_compile_c[windows] . translator/test/test_driver.py::test_compile_c[macOS] . translator/test/test_driver.py::test_compile_c[linux] s translator/test/test_driver.py::test_shutil_copy Skipped: Windows cannot copy or rename to an in-use file . translator/test/test_exceptiontransform.py::TestExceptionTransform::()::test_simple . translator/test/test_exceptiontransform.py::TestExceptionTransform::()::test_passthrough . translator/test/test_exceptiontransform.py::TestExceptionTransform::()::test_catches . translator/test/test_exceptiontransform.py::TestExceptionTransform::()::test_type_checking_catching_does_no_calls . translator/test/test_exceptiontransform.py::TestExceptionTransform::()::test_bare_except . translator/test/test_exceptiontransform.py::TestExceptionTransform::()::test_raises . translator/test/test_exceptiontransform.py::TestExceptionTransform::()::test_no_multiple_transform . translator/test/test_exceptiontransform.py::TestExceptionTransform::()::test_preserve_can_raise . translator/test/test_exceptiontransform.py::TestExceptionTransform::()::test_reraise_is_not_raise s translator/test/test_exceptiontransform.py::TestExceptionTransform::()::test_needs_keepalive Skipped: test needs a debug build of Python . translator/test/test_exceptiontransform.py::TestExceptionTransform::()::test_inserting_zeroing_op . translator/test/test_exceptiontransform.py::TestExceptionTransform::()::test_llexternal . translator/test/test_exceptiontransform.py::TestExceptionTransform::()::test_get_exception_addr . translator/test/test_exceptiontransform.py::TestExceptionTransform::()::test_default_error_value . translator/test/test_exceptiontransform.py::TestExceptionTransform::()::test_llhelper_error_value . translator/test/test_exceptiontransform.py::TestExceptionTransform::()::test_enforce_llhelper_error_value_in_case_of_nested_exception . translator/test/test_interactive.py::test_simple_annotate . translator/test/test_interactive.py::test_simple_rtype . translator/test/test_interactive.py::test_simple_backendopt . translator/test/test_interactive.py::test_simple_source . translator/test/test_interactive.py::test_disable_logic . translator/test/test_interactive.py::test_simple_compile_c . translator/test/test_interactive.py::test_check_that_driver_uses_replace_we_are_jitted . translator/test/test_simplify.py::test_remove_ovfcheck_1 . translator/test/test_simplify.py::test_remove_ovfcheck_bug . translator/test/test_simplify.py::test_remove_ovfcheck_floordiv . translator/test/test_simplify.py::test_remove_ovfcheck_floordiv_2 . translator/test/test_simplify.py::test_remove_direct_call_without_side_effects . translator/test/test_simplify.py::test_dont_remove_external_calls . translator/test/test_simplify.py::test_remove_recursive_call . translator/test/test_simplify.py::test_remove_call_with_indirect_call . translator/test/test_simplify.py::test_dont_remove_if_exception_guarded . translator/test/test_simplify.py::test_remove_identical_variables . translator/test/test_simplify.py::test_get_graph . translator/test/test_simplify.py::test_huge_func . translator/test/test_simplify.py::test_join_blocks_cleans_links . translator/test/test_simplify.py::test_join_blocks_propagates_source_attribution . translator/test/test_simplify.py::test_transform_dead_op_vars_bug . translator/test/test_simplify.py::TestDetectListComprehension::()::test_simple . translator/test/test_simplify.py::TestDetectListComprehension::()::test_with_exc . translator/test/test_simplify.py::TestDetectListComprehension::()::test_canraise_before_iter . translator/test/test_simplify.py::TestDetectListComprehension::()::test_iterate_over_list . translator/test/test_simplify.py::TestLLSpecializeListComprehension::()::test_simple . translator/test/test_simplify.py::TestLLSpecializeListComprehension::()::test_str2list . translator/test/test_simplify.py::TestLLSpecializeListComprehension::()::test_simple_non_exact . translator/test/test_simplify.py::TestLLSpecializeListComprehension::()::test_mutated_after_listcomp . translator/test/test_simplify.py::TestLLSpecializeListComprehension::()::test_two_loops . translator/test/test_simplify.py::TestLLSpecializeListComprehension::()::test_dict . translator/test/test_simplify.py::TestLLSpecializeListComprehension::()::test_list_iterator . translator/test/test_simplify.py::TestLLSpecializeListComprehension::()::test_list_iterator_mutated_after_listcomp . translator/test/test_simplify.py::TestLLSpecializeListComprehension::()::test_dict_iterator . translator/test/test_simplify.py::TestLLSpecializeListComprehension::()::test_iterate_over_constant . translator/test/test_stackcheck.py::test_simple . translator/test/test_stackcheck.py::test_gctransformed . translator/test/test_stackcheck.py::test_fastpath_inlined . translator/test/test_timing.py::test_timing . translator/test/test_translator.py::test_example . translator/test/test_translator.py::test_annotate_blocks_sets_source_func_and_line . translator/test/test_translator.py::test_annotate_blocks_skips_graph_without_func . translator/test/test_translator.py::test_annotate_blocks_skips_function_without_code . translator/test/test_translator.py::test_annotate_blocks_skips_empty_blocks . translator/test/test_translator.py::test_annotate_blocks_skips_negative_offset . translator/test/test_uniquename.py::test_unique . translator/test/test_unsimplify.py::test_split_blocks_simple . translator/test/test_unsimplify.py::test_split_blocks_conditional . translator/test/test_unsimplify.py::test_split_block_exceptions . translator/test/test_unsimplify.py::test_split_block_preserves_source_attribution . translator/test/test_unsimplify.py::test_split_block_no_source_attribution . translator/test/test_unsimplify.py::test_call_initial_function . translator/test/test_unsimplify.py::test_call_final_function . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_remove_same_as . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test__del__ . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_del_inheritance . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_set_attr . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_inheritance2 . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_factorial2 . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_factorial . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_simple_method . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_sieve_of_eratosthenes . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_nested_whiles . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_call_unpack_56 . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_class_defaultattr . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_tuple_repr . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_classattribute . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_type_conversion . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_do_try_raise_choose . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_is_perfect_number . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_prime . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_mutate_global . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_float_ops . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_memoryerror . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_chr . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_unichr . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_UNICHR . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_list_indexerror . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_long_long . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_specializing_int_functions . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_downcast_int . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_upcast_int . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_function_ptr . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_call_five . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_get_set_del_slice . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_is . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_str_compare . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_str_methods . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_str_join . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_unichr_eq . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_unichr_ne . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_unichr_ord . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_unichr_unichr . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_int_overflow . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_int_floordiv_ovf_zer . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_int_mul_ovf . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_int_mod_ovf_zer . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_int_lshift_ovf . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_int_unary_ovf . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_float_operations . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_rpbc_bound_method_static_call . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_constant_return_disagreement . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_stringformatting . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_int2str . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_float2str . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_uint_arith . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_ord_returns_a_positive . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_hash_preservation . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_hash_string_fnv . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_hash_string_siphash24 . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_iterkeys_with_hash_on_prebuilt_dict . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_list_basic_ops . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_range2list . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_range_idx . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_range_step . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_range_iter . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_list_len_is_true . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_recursion_detection . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_infinite_recursion . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_r_dict_exceptions . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_float . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_swap . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_ovfcheck_float_to_int . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_context_manager . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_longlongmask s translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_int128 Skipped: no '__int128_t' s translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_uint128 Skipped: no '__uint128_t' s translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_uint128_constant Skipped: no '__uint128_t' s translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_int128_constant Skipped: no '__int128_t' . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_bool_2 . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_mulmod . translator/c/test/test_backendoptimized.py::TestTypedOptimizedTestCase::()::test_long_float . translator/c/test/test_backendoptimized.py::TestTypedOptimizedSwitchTestCase::()::test_int_switch . translator/c/test/test_backendoptimized.py::TestTypedOptimizedSwitchTestCase::()::test_int_switch_nonsparse . translator/c/test/test_backendoptimized.py::TestTypedOptimizedSwitchTestCase::()::test_int_switch_nonsparse_neg . translator/c/test/test_backendoptimized.py::TestTypedOptimizedSwitchTestCase::()::test_uint_switch . translator/c/test/test_backendoptimized.py::TestTypedOptimizedSwitchTestCase::()::test_longlong_switch . translator/c/test/test_backendoptimized.py::TestTypedOptimizedSwitchTestCase::()::test_ulonglong_switch . translator/c/test/test_backendoptimized.py::TestTypedOptimizedSwitchTestCase::()::test_chr_switch . translator/c/test/test_backendoptimized.py::TestTypedOptimizedSwitchTestCase::()::test_char_may_be_signed . translator/c/test/test_backendoptimized.py::TestTypedOptimizedSwitchTestCase::()::test_unichr_switch . translator/c/test/test_backendoptimized.py::TestTypedOptimizedRaisingOps::()::test_int_floordiv_zer . translator/c/test/test_backendoptimized.py::TestTypedOptimizedRaisingOps::()::test_ovf_op_in_loop . translator/c/test/test_typed.py::TestTypedTestCase::()::test_set_attr . translator/c/test/test_typed.py::TestTypedTestCase::()::test_inheritance2 . translator/c/test/test_typed.py::TestTypedTestCase::()::test_factorial2 . translator/c/test/test_typed.py::TestTypedTestCase::()::test_factorial . translator/c/test/test_typed.py::TestTypedTestCase::()::test_simple_method . translator/c/test/test_typed.py::TestTypedTestCase::()::test_sieve_of_eratosthenes . translator/c/test/test_typed.py::TestTypedTestCase::()::test_nested_whiles . translator/c/test/test_typed.py::TestTypedTestCase::()::test_call_unpack_56 . translator/c/test/test_typed.py::TestTypedTestCase::()::test_class_defaultattr . translator/c/test/test_typed.py::TestTypedTestCase::()::test_tuple_repr . translator/c/test/test_typed.py::TestTypedTestCase::()::test_classattribute . translator/c/test/test_typed.py::TestTypedTestCase::()::test_type_conversion . translator/c/test/test_typed.py::TestTypedTestCase::()::test_do_try_raise_choose . translator/c/test/test_typed.py::TestTypedTestCase::()::test_is_perfect_number . translator/c/test/test_typed.py::TestTypedTestCase::()::test_prime . translator/c/test/test_typed.py::TestTypedTestCase::()::test_mutate_global . translator/c/test/test_typed.py::TestTypedTestCase::()::test_float_ops . translator/c/test/test_typed.py::TestTypedTestCase::()::test_memoryerror . translator/c/test/test_typed.py::TestTypedTestCase::()::test_chr . translator/c/test/test_typed.py::TestTypedTestCase::()::test_unichr . translator/c/test/test_typed.py::TestTypedTestCase::()::test_UNICHR . translator/c/test/test_typed.py::TestTypedTestCase::()::test_list_indexerror . translator/c/test/test_typed.py::TestTypedTestCase::()::test_long_long . translator/c/test/test_typed.py::TestTypedTestCase::()::test_specializing_int_functions . translator/c/test/test_typed.py::TestTypedTestCase::()::test_downcast_int . translator/c/test/test_typed.py::TestTypedTestCase::()::test_upcast_int . translator/c/test/test_typed.py::TestTypedTestCase::()::test_function_ptr . translator/c/test/test_typed.py::TestTypedTestCase::()::test_call_five . translator/c/test/test_typed.py::TestTypedTestCase::()::test_get_set_del_slice . translator/c/test/test_typed.py::TestTypedTestCase::()::test_is . translator/c/test/test_typed.py::TestTypedTestCase::()::test_str_compare . translator/c/test/test_typed.py::TestTypedTestCase::()::test_str_methods . translator/c/test/test_typed.py::TestTypedTestCase::()::test_str_join . translator/c/test/test_typed.py::TestTypedTestCase::()::test_unichr_eq . translator/c/test/test_typed.py::TestTypedTestCase::()::test_unichr_ne . translator/c/test/test_typed.py::TestTypedTestCase::()::test_unichr_ord . translator/c/test/test_typed.py::TestTypedTestCase::()::test_unichr_unichr . translator/c/test/test_typed.py::TestTypedTestCase::()::test_int_overflow . translator/c/test/test_typed.py::TestTypedTestCase::()::test_int_floordiv_ovf_zer . translator/c/test/test_typed.py::TestTypedTestCase::()::test_int_mul_ovf . translator/c/test/test_typed.py::TestTypedTestCase::()::test_int_mod_ovf_zer . translator/c/test/test_typed.py::TestTypedTestCase::()::test_int_lshift_ovf . translator/c/test/test_typed.py::TestTypedTestCase::()::test_int_unary_ovf . translator/c/test/test_typed.py::TestTypedTestCase::()::test_float_operations . translator/c/test/test_typed.py::TestTypedTestCase::()::test_rpbc_bound_method_static_call . translator/c/test/test_typed.py::TestTypedTestCase::()::test_constant_return_disagreement . translator/c/test/test_typed.py::TestTypedTestCase::()::test_stringformatting . translator/c/test/test_typed.py::TestTypedTestCase::()::test_int2str . translator/c/test/test_typed.py::TestTypedTestCase::()::test_float2str . translator/c/test/test_typed.py::TestTypedTestCase::()::test_uint_arith . translator/c/test/test_typed.py::TestTypedTestCase::()::test_ord_returns_a_positive . translator/c/test/test_typed.py::TestTypedTestCase::()::test_hash_preservation . translator/c/test/test_typed.py::TestTypedTestCase::()::test_hash_string_fnv . translator/c/test/test_typed.py::TestTypedTestCase::()::test_hash_string_siphash24 . translator/c/test/test_typed.py::TestTypedTestCase::()::test_iterkeys_with_hash_on_prebuilt_dict . translator/c/test/test_typed.py::TestTypedTestCase::()::test_list_basic_ops . translator/c/test/test_typed.py::TestTypedTestCase::()::test_range2list . translator/c/test/test_typed.py::TestTypedTestCase::()::test_range_idx . translator/c/test/test_typed.py::TestTypedTestCase::()::test_range_step . translator/c/test/test_typed.py::TestTypedTestCase::()::test_range_iter . translator/c/test/test_typed.py::TestTypedTestCase::()::test_list_len_is_true . translator/c/test/test_typed.py::TestTypedTestCase::()::test_recursion_detection . translator/c/test/test_typed.py::TestTypedTestCase::()::test_infinite_recursion . translator/c/test/test_typed.py::TestTypedTestCase::()::test_r_dict_exceptions . translator/c/test/test_typed.py::TestTypedTestCase::()::test_float . translator/c/test/test_typed.py::TestTypedTestCase::()::test_swap . translator/c/test/test_typed.py::TestTypedTestCase::()::test_ovfcheck_float_to_int . translator/c/test/test_typed.py::TestTypedTestCase::()::test_context_manager . translator/c/test/test_typed.py::TestTypedTestCase::()::test_longlongmask s translator/c/test/test_typed.py::TestTypedTestCase::()::test_int128 Skipped: no '__int128_t' s translator/c/test/test_typed.py::TestTypedTestCase::()::test_uint128 Skipped: no '__uint128_t' s translator/c/test/test_typed.py::TestTypedTestCase::()::test_uint128_constant Skipped: no '__uint128_t' s translator/c/test/test_typed.py::TestTypedTestCase::()::test_int128_constant Skipped: no '__int128_t' . translator/c/test/test_typed.py::TestTypedTestCase::()::test_bool_2 . translator/c/test/test_typed.py::TestTypedTestCase::()::test_mulmod . translator/c/test/test_typed.py::TestTypedTestCase::()::test_long_float