Home - Summaries: (main) : (py3.11) : (py3.12) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

rlib/test/test_rawrefcount.py::TestTranslated::()::test_full_translation

self = <rpython.rlib.test.test_rawrefcount.TestTranslated object at 0x0000022ec80c6f70>

    def test_full_translation(self):
        class State:
            pass
        state = State()
        state.seen = []
        def dealloc_trigger():
            state.seen.append(1)
        w_marker = W_Root(-1)
    
        def make_p():
            p = W_Root(42)
            ob = lltype.malloc(PyObjectS, flavor='raw', zero=True)
            rawrefcount.create_link_pypy(p, ob)
            ob.c_ob_refcnt += REFCNT_FROM_PYPY
            assert rawrefcount.from_obj(PyObject, p) == ob
            assert rawrefcount.to_obj(W_Root, ob) == p
            return ob, p
    
        FTYPE = rawrefcount.RAWREFCOUNT_DEALLOC_TRIGGER
    
        def entry_point(argv):
            ll_dealloc_trigger_callback = llhelper(FTYPE, dealloc_trigger)
            rawrefcount.init(ll_dealloc_trigger_callback)
            ob, p = make_p()
            if state.seen != []:
                print "OB COLLECTED REALLY TOO SOON"
                return 1
            rgc.collect()
            if state.seen != []:
                print "OB COLLECTED TOO SOON"
                return 1
            objectmodel.keepalive_until_here(p)
            p = None
            rgc.collect()
            if state.seen != [1]:
                print "OB NOT COLLECTED"
                return 1
            if rawrefcount.next_dead(PyObject) != ob:
                print "NEXT_DEAD != OB"
                return 1
            if ob.c_ob_refcnt != 1:
                print "next_dead().ob_refcnt != 1"
                return 1
            if rawrefcount.next_dead(PyObject) != lltype.nullptr(PyObjectS):
                print "NEXT_DEAD second time != NULL"
                return 1
            if rawrefcount.to_obj(W_Root, ob) is not None:
                print "to_obj(dead) is not None?"
                return 1
            rawrefcount.mark_deallocating(w_marker, ob)
            if rawrefcount.to_obj(W_Root, ob) is not w_marker:
                print "to_obj(marked-dead) is not w_marker"
                return 1
            print "OK!"
            lltype.free(ob, flavor='raw')
            return 0
    
        self.config = get_combined_translation_config(translating=True)
        self.config.translation.gc = "incminimark"
>       t, cbuilder = self.compile(entry_point)

rlib\test\test_rawrefcount.py:289: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator\c\test\test_standalone.py:75: 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 = <MsvcPlatform cc=cl.exe>, returncode = 2
stdout = '\tcl.exe stdafx.c /c /nologo /MD  /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include  /I"D:\\a\\pyp...ython_memory_gc.c(2124): error C2037: left of \'ullTotalPhys\' specifies undefined struct/union \'MEMORYSTATUSEX\'\r\n'
stderr = '\tcl.exe stdafx.c /c /nologo /MD  /O2 -DPYPY_MAKEFILE /Ycstdafx.h /Fpstdafx.pch /FIstdafx.h /I/include  /I"D:\\a\\pyp...a\\pypy\\pypy\\rpython"\\translator\\c  /I"D:\\a\\pypy\\pypy\\rpython"\\rlib\\src\' : return code \'0x2\'\r\nStop.\r\n'
outname = local('c:\\users\\runner~1\\appdata\\local\\temp\\usession-pypy-HEAD-50\\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_rlib.obj /c data_rpython_rlib.c /I/include  /I"D:\a\pypy\pypy\rpython"\translator\c  /I"D:\a\pypy\pypy\rpython"\rlib\src
E           	data_rpython_rlib.c
E           		cl.exe /nologo /MD  /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rlib_test.obj /c data_rpython_rlib_test.c /I/include  /I"D:\a\pypy\pypy\rpython"\translator\c  /I"D:\a\pypy\pypy\rpython"\rlib\src
E           	data_rpython_rlib_test.c
E           		cl.exe /nologo /MD  /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper.obj /c data_rpython_rtyper.c /I/include  /I"D:\a\pypy\pypy\rpython"\translator\c  /I"D:\a\pypy\pypy\rpython"\rlib\src
E           	data_rpython_rtyper.c
E           		cl.exe /nologo /MD  /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fodata_rpython_rtyper_lltypesystem.obj /c data_rpython_rtyper_lltypesystem.c /I/include  /I"D:\a\pypy\pypy\rpython"\translator\c  /I"D:\a\pypy\pypy\rpython"\rlib\src
E           	data_rpython_rtyper_lltypesystem.c
E           		cl.exe /nologo /MD  /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Fononfuncnodes.obj /c nonfuncnodes.c /I/include  /I"D:\a\pypy\pypy\rpython"\translator\c  /I"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(179): warning C4133: 'function': incompatible types - from 'MEMORYSTATUSEX *' to 'LPMEMORYSTATUSEX'
E           		cl.exe /nologo /MD  /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_flowspace.obj /c rpython_flowspace.c /I/include  /I"D:\a\pypy\pypy\rpython"\translator\c  /I"D:\a\pypy\pypy\rpython"\rlib\src
E           	rpython_flowspace.c
E           		cl.exe /nologo /MD  /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory.obj /c rpython_memory.c /I/include  /I"D:\a\pypy\pypy\rpython"\translator\c  /I"D:\a\pypy\pypy\rpython"\rlib\src
E           	rpython_memory.c
E           		cl.exe /nologo /MD  /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include  /I"D:\a\pypy\pypy\rpython"\translator\c  /I"D:\a\pypy\pypy\rpython"\rlib\src
E           	rpython_memory_gc.c
E           	rpython_memory_gc.c(2090): error C2027: use of undefined type 'MEMORYSTATUSEX'
E           	c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-50\testing_1\singleheader.h(2179): note: see declaration of 'MEMORYSTATUSEX'
E           	rpython_memory_gc.c(2116): error C2027: use of undefined type 'MEMORYSTATUSEX'
E           	c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-50\testing_1\singleheader.h(2179): note: see declaration of 'MEMORYSTATUSEX'
E           	rpython_memory_gc.c(2117): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX'
E           	rpython_memory_gc.c(2124): error C2037: left of 'ullTotalPhys' specifies undefined struct/union 'MEMORYSTATUSEX'
E           	NMAKE : fatal error U1077: 'cl.exe /nologo /MD  /O2 -DPYPY_MAKEFILE /Yustdafx.h /Fpstdafx.pch /FIstdafx.h /Forpython_memory_gc.obj /c rpython_memory_gc.c /I/include  /I"D:\a\pypy\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 / 476 blocks   (21%)
[rtyper] specializing: 200 / 535 blocks   (37%)
[rtyper] specializing: 300 / 535 blocks   (56%)
[rtyper] specializing: 400 / 535 blocks   (74%)
[rtyper] specializing: 500 / 535 blocks   (93%)
[rtyper] -=- specialized 535 blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
[rtyper] -=- specialized 25 more blocks -=-
[rtyper] specializing: 600 / 2788 blocks   (21%)
[rtyper] specializing: 800 / 2873 blocks   (27%)
[rtyper] specializing: 1000 / 2873 blocks   (34%)
[rtyper] specializing: 1200 / 2900 blocks   (41%)
[rtyper] specializing: 1400 / 2904 blocks   (48%)
[rtyper] specializing: 1600 / 2989 blocks   (53%)
[rtyper] specializing: 1800 / 2989 blocks   (60%)
[rtyper] specializing: 2000 / 2998 blocks   (66%)
[rtyper] specializing: 2200 / 3047 blocks   (72%)
[rtyper] specializing: 2400 / 3047 blocks   (78%)
[rtyper] specializing: 2600 / 3049 blocks   (85%)
[rtyper] specializing: 2800 / 3049 blocks   (91%)
[rtyper] specializing: 3000 / 3073 blocks   (97%)
[rtyper] -=- specialized 2513 more blocks -=-
[rtyper] specializing: 3100 / 3187 blocks   (97%)
[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 1612 callsites.
[backendopt:malloc] starting malloc removal
[backendopt:malloc] removed 34 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[rtyper] specializing: 3200 / 3237 blocks   (98%)
[rtyper] -=- specialized 50 more blocks -=-
[rtyper] -=- specialized 0 more blocks -=-
[c:database] GC transformer: finished helpers
[rtyper] -=- specialized 30 more blocks -=-
[backendopt:inlining] phase with threshold factor: 32.4
[backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic
[backendopt:inlining] inlined 3 callsites.
[backendopt:malloc] starting malloc removal
[backendopt:malloc] removed 0 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[c:database] GC transformer: finished tables
[gctransform:info] assigned 61 typeids
[gctransform:info] added 70 push/pop stack root instructions
[gctransform:info] inserted 6 write barrier calls
[gctransform:info] inserted 3 write_barrier_from_array calls
[gctransform:info] found 3 static roots
[c:database] Inlining GC helpers and postprocessing
[c]      854 nodes  [ array: 140  framework rtti: 20  func: 337  group: 1  struct: 356 ]
[c:database] Completed
[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_rlib.c
[c:writing] data_rpython_rlib_test.c
[c:writing] data_rpython_rtyper.c
[c:writing] data_rpython_rtyper_lltypesystem.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_flowspace.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_rlib_test.c
[c:writing] rpython_rtyper.c
[c:writing] rpython_rtyper_lltypesystem.c
[c:writing] rpython_translator.c
[c:writing] rpython_translator_c.c
[platform:execute] nmake  in c:\users\runner~1\appdata\local\temp\usession-pypy-HEAD-50\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_rlib.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_rlib_test.obj /c data_rpython_rlib_test.c /I/include  /I"D:\a\pypy\pypy\rpython"\translator\c  /I"D:\a\pypy\pypy\rpython"\rlib\src
[platform:Error] data_rpython_rlib_test.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 /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(179): 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_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(2090): error C2027: use of undefined type 'MEMORYSTATUSEX'
[platform:Error] c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-50\testing_1\singleheader.h(2179): note: see declaration of 'MEMORYSTATUSEX'
[platform:Error] rpython_memory_gc.c(2116): error C2027: use of undefined type 'MEMORYSTATUSEX'
[platform:Error] c:\Users\runneradmin\AppData\Local\Temp\usession-pypy-HEAD-50\testing_1\singleheader.h(2179): note: see declaration of 'MEMORYSTATUSEX'
[platform:Error] rpython_memory_gc.c(2117): error C2037: left of 'dwLength' specifies undefined struct/union 'MEMORYSTATUSEX'
[platform:Error] rpython_memory_gc.c(2124): 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.
 (somefailed=True in rlib/test/test_rawrefcount.py)
builder: rpython-win-x86-64 build #765*
test: rlib/test/test_rawrefcount.py::TestTranslated::()::test_full_translation