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 0x000000003d9348a8>
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:280: in execute_makefile
self._handle_error(returncode, stdout, stderr, path.join('make'))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Linux cc=gcc>, returncode = 2
stdout = 'make: Entering directory \'/tmp/pytest/usession-main-3145/testing_1\'\ngcc -O3 -pthread -fomit-frame-pointer -Wall -W...-linux-x86-64/build/rpython"/rlib/rvmprof/src \nmake: Leaving directory \'/tmp/pytest/usession-main-3145/testing_1\'\n'
stderr = 'testing_1.c: In function \xe2\x80\x98RPython_StartupCode\xe2\x80\x99:\ntesting_1.c:55:9: warning: \xe2\x80\x98GC_all_...2\x80\x99: posix_spawn: Operation not permitted\ncompilation terminated.\nmake: *** [Makefile:183: rtyper.o] Error 1\n'
outname = local('/tmp/pytest/usession-main-3145/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: In function ‘RPython_StartupCode’:
E testing_1.c:55:9: warning: ‘GC_all_interior_pointers’ is deprecated [-Wdeprecated-declarations]
E 55 | GC_all_interior_pointers = 0;
E | ^~~~~~~~~~~~~~~~~~~~~~~~
E In file included from common_header.h:105,
E from testing_1.c:1:
E /usr/include/gc/gc.h:188:31: note: declared here
E 188 | GC_API GC_ATTR_DEPRECATED int GC_all_interior_pointers;
E | ^~~~~~~~~~~~~~~~~~~~~~~~
E mem.c: In function ‘boehm_gc_startup_code’:
E mem.c:120:5: warning: ‘GC_finalizer_notifier’ is deprecated [-Wdeprecated-declarations]
E 120 | GC_finalizer_notifier = &boehm_gc_finalizer_notifier;
E | ^~~~~~~~~~~~~~~~~~~~~
E In file included from common_header.h:105,
E from mem.c:1:
E /usr/include/gc/gc.h:227:54: note: declared here
E 227 | GC_API GC_ATTR_DEPRECATED GC_finalizer_notifier_proc GC_finalizer_notifier;
E | ^~~~~~~~~~~~~~~~~~~~~
E mem.c:121:5: warning: ‘GC_finalize_on_demand’ is deprecated [-Wdeprecated-declarations]
E 121 | GC_finalize_on_demand = 1;
E | ^~~~~~~~~~~~~~~~~~~~~
E /usr/include/gc/gc.h:204:31: note: declared here
E 204 | GC_API GC_ATTR_DEPRECATED int GC_finalize_on_demand;
E | ^~~~~~~~~~~~~~~~~~~~~
E gcc: fatal error: cannot execute ‘/opt/rh/gcc-toolset-14/root/usr/libexec/gcc/x86_64-redhat-linux/14/cc1’: posix_spawn: Operation not permitted
E compilation terminated.
E make: *** [Makefile:183: rtyper.o] Error 1
E """)
translator/platform/__init__.py:155: CompilationError
---------- 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 / 49187 blocks (5%)
[rtyper] specializing: 5400 / 53883 blocks (10%)
[rtyper] specializing: 8200 / 54612 blocks (15%)
[rtyper] specializing: 11000 / 54612 blocks (20%)
[rtyper] specializing: 13700 / 54622 blocks (25%)
[rtyper] specializing: 17100 / 56720 blocks (30%)
[rtyper] specializing: 21300 / 60687 blocks (35%)
[rtyper] specializing: 24300 / 60714 blocks (40%)
[rtyper] specializing: 27400 / 60734 blocks (45%)
[rtyper] specializing: 30400 / 60749 blocks (50%)
[rtyper] specializing: 33800 / 61282 blocks (55%)
[rtyper] specializing: 37000 / 61541 blocks (60%)
[rtyper] specializing: 40100 / 61541 blocks (65%)
[rtyper] specializing: 43100 / 61541 blocks (70%)
[rtyper] specializing: 46200 / 61541 blocks (75%)
[rtyper] specializing: 47200 / 61541 blocks (76%)
[rtyper] specializing: 49900 / 61541 blocks (81%)
[rtyper] specializing: 53000 / 61541 blocks (86%)
[rtyper] specializing: 56100 / 61646 blocks (91%)
[rtyper] specializing: 59200 / 61646 blocks (96%)
[rtyper] specializing: 61600 / 61648 blocks (99%)
[rtyper] -=- specialized 61163 more blocks -=-
[rtyper] -=- specialized 24 more blocks -=-
[rtyper] -=- specialized 0 more blocks -=-
[rtyper] -=- specialized 25 more blocks -=-
[rtyper] specializing: 61700 / 61761 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: 944 boehm rtti: 27 func: 264 struct: 2430 ]
[c] 2000 nodes [ array: 2944 boehm rtti: 27 func: 264 struct: 2430 ]
[c] 3000 nodes [ array: 4285 boehm rtti: 29 func: 305 struct: 2465 ]
[c] 4000 nodes [ array: 4285 boehm rtti: 29 func: 305 struct: 2465 ]
[c] 5000 nodes [ array: 4285 boehm rtti: 29 func: 305 struct: 2465 ]
[c] 6000 nodes [ array: 4285 boehm rtti: 29 func: 305 struct: 2465 ]
[c] 7000 nodes [ array: 4295 boehm rtti: 31 func: 363 struct: 2493 ]
[c] 8000 nodes [ array: 4414 boehm rtti: 53 func: 1060 struct: 3390 ]
[c] 9000 nodes [ array: 4721 boehm rtti: 64 func: 1351 struct: 5297 ]
[c] 10000 nodes [ array: 4781 boehm rtti: 132 func: 1534 struct: 5452 ]
[c] 11000 nodes [ array: 4781 boehm rtti: 273 func: 1727 struct: 5593 ]
[c] 12000 nodes [ array: 4937 boehm rtti: 299 func: 1913 struct: 5757 ]
[c] 13000 nodes [ array: 5146 boehm rtti: 304 func: 2159 struct: 5879 ]
[c] 14000 nodes [ array: 5202 boehm rtti: 320 func: 2849 struct: 6160 ]
[c] 15000 nodes [ array: 5261 boehm rtti: 345 func: 3583 struct: 6434 ]
[c] 16000 nodes [ array: 5351 boehm rtti: 358 func: 4510 struct: 6681 ]
[c] 17000 nodes [ array: 5413 boehm rtti: 373 func: 7521 struct: 7357 ]
[c] 18000 nodes [ array: 5443 boehm rtti: 382 func: 7953 struct: 7525 ]
[c] 19000 nodes [ array: 5465 boehm rtti: 382 func: 8111 struct: 7604 ]
[c] 20000 nodes [ array: 5485 boehm rtti: 382 func: 8271 struct: 7683 ]
[c] 21000 nodes [ array: 5575 boehm rtti: 397 func: 9070 struct: 8626 ]
[c] 22000 nodes [ array: 5806 boehm rtti: 397 func: 9212 struct: 8714 ]
[c] 23000 nodes [ array: 5848 boehm rtti: 400 func: 10890 struct: 8781 ]
[c] 24000 nodes [ array: 5892 boehm rtti: 404 func: 11903 struct: 8848 ]
[c] 25000 nodes [ array: 5935 boehm rtti: 409 func: 11960 struct: 8881 ]
[c] 26000 nodes [ array: 5935 boehm rtti: 409 func: 12028 struct: 8881 ]
[c] 27000 nodes [ array: 5943 boehm rtti: 415 func: 12159 struct: 8926 ]
[c] 28000 nodes [ array: 6002 boehm rtti: 439 func: 12675 struct: 9071 ]
[rtyper] specializing: 61800 / 61804 blocks (99%)
[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] 28739 nodes [ array: 6020 boehm rtti: 445 func: 13125 struct: 9149 ]
[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/pytest/usession-main-3145/testing_1
[platform:Error] testing_1.c: In function ‘RPython_StartupCode’:
[platform:Error] testing_1.c:55:9: warning: ‘GC_all_interior_pointers’ is deprecated [-Wdeprecated-declarations]
[platform:Error] 55 | GC_all_interior_pointers = 0;
[platform:Error] | ^~~~~~~~~~~~~~~~~~~~~~~~
[platform:Error] In file included from common_header.h:105,
[platform:Error] from testing_1.c:1:
[platform:Error] /usr/include/gc/gc.h:188:31: note: declared here
[platform:Error] 188 | GC_API GC_ATTR_DEPRECATED int GC_all_interior_pointers;
[platform:Error] | ^~~~~~~~~~~~~~~~~~~~~~~~
[platform:Error] mem.c: In function ‘boehm_gc_startup_code’:
[platform:Error] mem.c:120:5: warning: ‘GC_finalizer_notifier’ is deprecated [-Wdeprecated-declarations]
[platform:Error] 120 | GC_finalizer_notifier = &boehm_gc_finalizer_notifier;
[platform:Error] | ^~~~~~~~~~~~~~~~~~~~~
[platform:Error] In file included from common_header.h:105,
[platform:Error] from mem.c:1:
[platform:Error] /usr/include/gc/gc.h:227:54: note: declared here
[platform:Error] 227 | GC_API GC_ATTR_DEPRECATED GC_finalizer_notifier_proc GC_finalizer_notifier;
[platform:Error] | ^~~~~~~~~~~~~~~~~~~~~
[platform:Error] mem.c:121:5: warning: ‘GC_finalize_on_demand’ is deprecated [-Wdeprecated-declarations]
[platform:Error] 121 | GC_finalize_on_demand = 1;
[platform:Error] | ^~~~~~~~~~~~~~~~~~~~~
[platform:Error] /usr/include/gc/gc.h:204:31: note: declared here
[platform:Error] 204 | GC_API GC_ATTR_DEPRECATED int GC_finalize_on_demand;
[platform:Error] | ^~~~~~~~~~~~~~~~~~~~~
[platform:Error] gcc: fatal error: cannot execute ‘/opt/rh/gcc-toolset-14/root/usr/libexec/gcc/x86_64-redhat-linux/14/cc1’: posix_spawn: Operation not permitted
[platform:Error] compilation terminated.
[platform:Error] make: *** [Makefile:183: rtyper.o] Error 1
(somefailed=True in jit/backend/x86/test/test_ztranslation_jit_stats.py)
builder: rpython-linux-x86-64 build #948+
test: jit/backend/x86/test/test_ztranslation_jit_stats.py::TestTranslationJITStatsX86::()::test_flush_trace_counts