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

jit/backend/x86/test/test_ztranslation_jit_stats.py::TestTranslationJITStatsX86::()::test_flush_trace_counts

self = <rpython.jit.backend.x86.test.test_ztranslation_jit_stats.TestTranslationJITStatsX86 object at 0x00007fec98fdead8>

    def test_flush_trace_counts(self):
        driver = JitDriver(greens = [], reds = ['i'])
    
        def f():
            i = 0
            while i < 100000:
                driver.jit_merge_point(i=i)
                i += 1
    
        def main():
            jit_hooks.stats_set_debug(None, True)
            f()
            jl.stats_flush_trace_counts(None)
            return 0
    
>       res = self.meta_interp(main, [])

jit/backend/llsupport/test/ztranslation_test.py:270: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
jit/backend/test/support.py:75: in meta_interp
    return self._compile_and_run(t, entry_point, entry_point_graph, args)
jit/backend/test/support.py:132: in _compile_and_run
    exe_name = cbuilder.compile()
translator/c/genc.py:341: in compile
    extra_opts)
translator/platform/posix.py:277: in execute_makefile
    self._handle_error(returncode, stdout, stderr, path.join('make'))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <Darwin_x86_64 cc=clang>, returncode = 2
stdout = 'clang -O3 -fomit-frame-pointer -Wno-duplicate-decl-specifier -mmacosx-version-min=10.13 -arch x86_64 -mdynamic-no-pic.../rpython"/rlib/rjitlog/src -I"/Users/matti/build-worker-x86_64/rpython-macos-x86-64/build/rpython"/rlib/rvmprof/src \n'
stderr = "testing_1.c:55:2: warning: 'GC_all_interior_pointers' is deprecated [-Wdeprecated-declarations]\n   55 |         GC_a...memcpy;\n       |                  ^ ~~~~~~\n1 error generated.\nmake: *** [rpython_jit_backend_llsupport.o] Error 1\n"
outname = local('/tmp/buildbot-x86_64/usession-main-6456/testing_1/make')

    def _handle_error(self, returncode, stdout, stderr, outname):
        if returncode != 0:
            errorfile = outname.new(ext='errors')
            errorfile.write(stderr, 'wb')
            if self.log_errors:
                stderrlines = stderr.splitlines()
                for line in stderrlines:
                    log.Error(line)
                # ^^^ don't use ERROR, because it might actually be fine.
                # Also, ERROR confuses lib-python/conftest.py.
>           raise CompilationError(stdout, stderr)
E           CompilationError: CompilationError(err="""
E           	testing_1.c:55:2: warning: 'GC_all_interior_pointers' is deprecated [-Wdeprecated-declarations]
E           	   55 |         GC_all_interior_pointers = 0;
E           	      |         ^
E           	/opt/homebrew_x86_64/Cellar/bdw-gc/8.2.12/include/gc/gc.h:193:8: note: 'GC_all_interior_pointers' has been explicitly marked deprecated here
E           	  193 | GC_API GC_ATTR_DEPRECATED int GC_all_interior_pointers;
E           	      |        ^
E           	/opt/homebrew_x86_64/Cellar/bdw-gc/8.2.12/include/gc/gc_config_macros.h:309:46: note: expanded from macro 'GC_ATTR_DEPRECATED'
E           	  309 | #   define GC_ATTR_DEPRECATED __attribute__((__deprecated__))
E           	      |                                              ^
E           	1 warning generated.
E           	rpython_jit_backend_llsupport.c:12388:11: error: incompatible function pointer types assigning to 'void (*)(void *, void *, size_t)' (aka 'void (*)(void *, void *, unsigned long)') from 'void *(void *, const void *, unsigned long)' [-Wincompatible-function-pointer-types]
E           	 12388 |         l_v14618 = memcpy;
E           	       |                  ^ ~~~~~~
E           	1 error generated.
E           	make: *** [rpython_jit_backend_llsupport.o] Error 1
E           	""")

translator/platform/__init__.py:155: CompilationError
---------- Captured stdout call ----------
in get_rpath_flags, rel_libdirs is not fixed up [u'/opt/homebrew_x86_64/Cellar/bdw-gc/8.2.12/lib']
---------- Captured stderr call ----------
[rtyper] -=- specialized 7 blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
[rtyper] specializing: 100 / 369 blocks   (27%)
[rtyper] specializing: 200 / 422 blocks   (47%)
[rtyper] specializing: 300 / 422 blocks   (71%)
[rtyper] specializing: 400 / 422 blocks   (94%)
[rtyper] -=- specialized 411 more blocks -=-
[rtyper] -=- specialized 26 more blocks -=-
[rtyper] -=- specialized 2 more blocks -=-
[rtyper] -=- specialized 7 more blocks -=-
[rtyper] -=- specialized 6 more blocks -=-
[rtyper] -=- specialized 17 more blocks -=-
[rtyper] -=- specialized 2 more blocks -=-
[backendopt:inlining] phase with threshold factor: 32.4
[backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic
[backendopt:inlining] inlined 1 callsites.
[backendopt:malloc] starting malloc removal
[backendopt:malloc] removed 0 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[rtyper] -=- specialized 3 more blocks -=-
[jitcodewriter:info] making JitCodes...
[jitcodewriter:info] There are 1 JitCode instances.
[jitcodewriter:info] There are 3 -live- ops. Size of liveness is 4 bytes
[jitcodewriter] compute_bitstrings:
[jitcodewriter]   1 effectinfos:
[jitcodewriter]     0 descrs for arrays
[jitcodewriter]     0 descrs for fields
[jitcodewriter]     0 descrs for interiorfields
[jitcodewriter] -> 1 bitstrings, mean length 0.0, max length 0
[rtyper] specializing: 2500 / 49047 blocks   (5%)
[rtyper] specializing: 5400 / 53743 blocks   (10%)
[rtyper] specializing: 8200 / 54462 blocks   (15%)
[rtyper] specializing: 10900 / 54462 blocks   (20%)
[rtyper] specializing: 13700 / 54472 blocks   (25%)
[rtyper] specializing: 17000 / 56570 blocks   (30%)
[rtyper] specializing: 21200 / 60537 blocks   (35%)
[rtyper] specializing: 24300 / 60564 blocks   (40%)
[rtyper] specializing: 27300 / 60584 blocks   (45%)
[rtyper] specializing: 30300 / 60599 blocks   (50%)
[rtyper] specializing: 33700 / 61126 blocks   (55%)
[rtyper] specializing: 36900 / 61385 blocks   (60%)
[rtyper] specializing: 40000 / 61385 blocks   (65%)
[rtyper] specializing: 43000 / 61385 blocks   (70%)
[rtyper] specializing: 46100 / 61385 blocks   (75%)
[rtyper] specializing: 47100 / 61385 blocks   (76%)
[rtyper] specializing: 49800 / 61385 blocks   (81%)
[rtyper] specializing: 52800 / 61385 blocks   (86%)
[rtyper] specializing: 56000 / 61490 blocks   (91%)
[rtyper] specializing: 59100 / 61490 blocks   (96%)
[rtyper] specializing: 61400 / 61492 blocks   (99%)
[rtyper] -=- specialized 61007 more blocks -=-
[rtyper] specializing: 61500 / 61516 blocks   (99%)
[rtyper] -=- specialized 24 more blocks -=-
[rtyper] -=- specialized 0 more blocks -=-
[rtyper] -=- specialized 25 more blocks -=-
[rtyper] specializing: 61600 / 61605 blocks   (99%)
[rtyper] -=- specialized 64 more blocks -=-
[backendopt:inlining] phase with threshold factor: 32.4
[backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic
[backendopt:inlining] inlined 8 callsites.
[backendopt:malloc] starting malloc removal
[backendopt:malloc] removed 0 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[rtyper] -=- specialized 14 more blocks -=-
[rtyper] -=- specialized 0 more blocks -=-
[c]     1000 nodes  [ array: 952  boehm rtti: 27  func: 260  struct: 2418 ]
[c]     2000 nodes  [ array: 2952  boehm rtti: 27  func: 260  struct: 2418 ]
[c]     3000 nodes  [ array: 4273  boehm rtti: 29  func: 301  struct: 2453 ]
[c]     4000 nodes  [ array: 4273  boehm rtti: 29  func: 301  struct: 2453 ]
[c]     5000 nodes  [ array: 4273  boehm rtti: 29  func: 301  struct: 2453 ]
[c]     6000 nodes  [ array: 4273  boehm rtti: 29  func: 301  struct: 2453 ]
[c]     7000 nodes  [ array: 4283  boehm rtti: 31  func: 359  struct: 2481 ]
[c]     8000 nodes  [ array: 4404  boehm rtti: 53  func: 1058  struct: 3378 ]
[c]     9000 nodes  [ array: 4709  boehm rtti: 64  func: 1343  struct: 5285 ]
[c]    10000 nodes  [ array: 4769  boehm rtti: 136  func: 1535  struct: 5444 ]
[c]    11000 nodes  [ array: 4769  boehm rtti: 277  func: 1723  struct: 5585 ]
[c]    12000 nodes  [ array: 4936  boehm rtti: 299  func: 1901  struct: 5745 ]
[c]    13000 nodes  [ array: 5134  boehm rtti: 304  func: 2151  struct: 5867 ]
[c]    14000 nodes  [ array: 5193  boehm rtti: 320  func: 2845  struct: 6149 ]
[c]    15000 nodes  [ array: 5251  boehm rtti: 345  func: 3572  struct: 6423 ]
[c]    16000 nodes  [ array: 5339  boehm rtti: 358  func: 4545  struct: 6674 ]
[c]    17000 nodes  [ array: 5402  boehm rtti: 373  func: 7517  struct: 7356 ]
[c]    18000 nodes  [ array: 5432  boehm rtti: 382  func: 7944  struct: 7515 ]
[c]    19000 nodes  [ array: 5454  boehm rtti: 382  func: 8102  struct: 7594 ]
[c]    20000 nodes  [ array: 5476  boehm rtti: 382  func: 8262  struct: 7676 ]
[c]    21000 nodes  [ array: 5563  boehm rtti: 397  func: 9076  struct: 8614 ]
[c]    22000 nodes  [ array: 5795  boehm rtti: 397  func: 9204  struct: 8705 ]
[c]    23000 nodes  [ array: 5836  boehm rtti: 400  func: 10930  struct: 8769 ]
[c]    24000 nodes  [ array: 5880  boehm rtti: 404  func: 11889  struct: 8836 ]
[c]    25000 nodes  [ array: 5923  boehm rtti: 409  func: 11949  struct: 8869 ]
[c]    26000 nodes  [ array: 5923  boehm rtti: 409  func: 12014  struct: 8869 ]
[c]    27000 nodes  [ array: 5931  boehm rtti: 415  func: 12147  struct: 8914 ]
[c]    28000 nodes  [ array: 5993  boehm rtti: 439  func: 12673  struct: 9060 ]
[rtyper] -=- specialized 29 more blocks -=-
[backendopt:inlining] phase with threshold factor: 32.4
[backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic
[backendopt:inlining] inlined 1 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 helpers
[c:database] GC transformer: finished tables
[c:database] Inlining GC helpers and postprocessing
[c]    28701 nodes  [ array: 6008  boehm rtti: 445  func: 13111  struct: 9137 ]
[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_jit_backend.c
[c:writing] data_rpython_jit_backend_llsupport.c
[c:writing] data_rpython_jit_backend_x86.c
[c:writing] data_rpython_jit_codewriter.c
[c:writing] data_rpython_jit_metainterp.c
[c:writing] data_rpython_jit_metainterp_optimizeopt.c
[c:writing] data_rpython_memory_gctransform.c
[c:writing] data_rpython_rlib.c
[c:writing] data_rpython_rlib_rjitlog.c
[c:writing] data_rpython_rtyper.c
[c:writing] data_rpython_rtyper_lltypesystem.c
[c:writing] data_rpython_translator_c.c
[c:writing] nonfuncnodes.c
[c:writing] data_rpython_jit_backend_llsupport_1.c
[c:writing] data_rpython_jit_backend_x86_1.c
[c:writing] data_rpython_jit_codewriter_1.c
[c:writing] data_rpython_jit_metainterp_1.c
[c:writing] data_rpython_rlib_1.c
[c:writing] data_rpython_rlib_rvmprof.c
[c:writing] data_rpython_rtyper_lltypesystem_1.c
[c:writing] implement.c
[c:writing] rpython_flowspace.c
[c:writing] rpython_jit_backend.c
[c:writing] rpython_jit_backend_llsupport.c
[c:writing] rpython_jit_backend_llsupport_test.c
[c:writing] rpython_jit_backend_x86.c
[c:writing] rpython_jit_codewriter.c
[c:writing] rpython_jit_metainterp.c
[c:writing] rpython_jit_metainterp_optimizeopt.c
[c:writing] rpython_memory_gctransform.c
[c:writing] rpython_rlib.c
[c:writing] rpython_rlib_rjitlog.c
[c:writing] rpython_rlib_rvmprof.c
[c:writing] rpython_rtyper.c
[c:writing] rpython_rtyper_lltypesystem.c
[c:writing] rpython_rtyper_lltypesystem_module.c
[c:writing] rpython_tool_algo.c
[c:writing] rpython_translator.c
[c:writing] rpython_translator_c.c
[platform:execute] make  in /tmp/buildbot-x86_64/usession-main-6456/testing_1
[platform:Error] testing_1.c:55:2: warning: 'GC_all_interior_pointers' is deprecated [-Wdeprecated-declarations]
[platform:Error]    55 |         GC_all_interior_pointers = 0;
[platform:Error]       |         ^
[platform:Error] /opt/homebrew_x86_64/Cellar/bdw-gc/8.2.12/include/gc/gc.h:193:8: note: 'GC_all_interior_pointers' has been explicitly marked deprecated here
[platform:Error]   193 | GC_API GC_ATTR_DEPRECATED int GC_all_interior_pointers;
[platform:Error]       |        ^
[platform:Error] /opt/homebrew_x86_64/Cellar/bdw-gc/8.2.12/include/gc/gc_config_macros.h:309:46: note: expanded from macro 'GC_ATTR_DEPRECATED'
[platform:Error]   309 | #   define GC_ATTR_DEPRECATED __attribute__((__deprecated__))
[platform:Error]       |                                              ^
[platform:Error] 1 warning generated.
[platform:Error] rpython_jit_backend_llsupport.c:12388:11: error: incompatible function pointer types assigning to 'void (*)(void *, void *, size_t)' (aka 'void (*)(void *, void *, unsigned long)') from 'void *(void *, const void *, unsigned long)' [-Wincompatible-function-pointer-types]
[platform:Error]  12388 |         l_v14618 = memcpy;
[platform:Error]        |                  ^ ~~~~~~
[platform:Error] 1 error generated.
[platform:Error] make: *** [rpython_jit_backend_llsupport.o] Error 1
 (somefailed=True in jit/backend/x86/test/test_ztranslation_jit_stats.py)
builder: rpython-macos-x86-64 build #274
test: jit/backend/x86/test/test_ztranslation_jit_stats/py/TestTranslationJITStatsX86/()/test_flush_trace_counts