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

rlib/test/test_rstacklet.py::TestStackletShadowStack::()::test_demo1

self = <rpython.rlib.test.test_rstacklet.TestStackletShadowStack object at 0x0a24ad70>

    def test_demo1(self):
>       t, cbuilder = self.compile(entry_point)

rlib/test/test_rstacklet.py:325: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
translator/c/test/test_standalone.py:75: in compile
    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 = <Linux cc=gcc>, returncode = 2
stdout = 'make: Entering directory \'/tmp/usession-pypy-HEAD-126/testing_1\'\ngcc -O3 -pthread -fomit-frame-pointer -Wall -Wno-...ce/rpython"/rlib/rvmprof/src/shared/libbacktrace \nmake: Leaving directory \'/tmp/usession-pypy-HEAD-126/testing_1\'\n'
stderr = 'rpython_memory_gc.c: In function \xe2\x80\x98pypy_g_MiniMarkGC_minor_collection\xe2\x80\x99:\nrpython_memory_gc.c:237...l_v9384 = vmprof_stop_sampling;\n      |                 ^\nmake: *** [Makefile:185: rpython_rlib_rvmprof.o] Error 1\n'
outname = local('/tmp/usession-pypy-HEAD-126/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           	rpython_memory_gc.c: In function ‘pypy_g_MiniMarkGC_minor_collection’:
E           	rpython_memory_gc.c:2379:101: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
E           	 2379 |         if (PYPY_HAVE_DEBUG_PRINTS) { fprintf(PYPY_DEBUG_FILE, "minor collect, total memory used: %lu\012", l_v1283); }
E           	      |                                                                                                   ~~^       ~~~~~~~
E           	      |                                                                                                     |       |
E           	      |                                                                                                     |       size_t {aka unsigned int}
E           	      |                                                                                                     long unsigned int
E           	      |                                                                                                   %u
E           	rpython_memory_gc.c: In function ‘pypy_g_MiniMarkGC_major_collection’:
E           	rpython_memory_gc.c:11150:103: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
E           	11150 |         if (PYPY_HAVE_DEBUG_PRINTS) { fprintf(PYPY_DEBUG_FILE, "|          in ArenaCollection:      %lu bytes\012", l_v3672); }
E           	      |                                                                                                     ~~^             ~~~~~~~
E           	      |                                                                                                       |             |
E           	      |                                                                                                       |             size_t {aka unsigned int}
E           	      |                                                                                                       long unsigned int
E           	      |                                                                                                     %u
E           	rpython_memory_gc.c:11152:103: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
E           	11152 |         if (PYPY_HAVE_DEBUG_PRINTS) { fprintf(PYPY_DEBUG_FILE, "|          raw_malloced:            %lu bytes\012", l_v3674); }
E           	      |                                                                                                     ~~^             ~~~~~~~
E           	      |                                                                                                       |             |
E           	      |                                                                                                       |             size_t {aka unsigned int}
E           	      |                                                                                                       long unsigned int
E           	      |                                                                                                     %u
E           	rpython_memory_gc.c:11381:103: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
E           	11381 |         if (PYPY_HAVE_DEBUG_PRINTS) { fprintf(PYPY_DEBUG_FILE, "|          in ArenaCollection:      %lu bytes\012", l_v3735); }
E           	      |                                                                                                     ~~^             ~~~~~~~
E           	      |                                                                                                       |             |
E           	      |                                                                                                       |             size_t {aka unsigned int}
E           	      |                                                                                                       long unsigned int
E           	      |                                                                                                     %u
E           	rpython_memory_gc.c:11383:103: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
E           	11383 |         if (PYPY_HAVE_DEBUG_PRINTS) { fprintf(PYPY_DEBUG_FILE, "|          raw_malloced:            %lu bytes\012", l_v3737); }
E           	      |                                                                                                     ~~^             ~~~~~~~
E           	      |                                                                                                       |             |
E           	      |                                                                                                       |             size_t {aka unsigned int}
E           	      |                                                                                                       long unsigned int
E           	      |                                                                                                     %u
E           	rpython_rlib_rvmprof.c: In function ‘pypy_g_VMProf_stop_sampling’:
E           	rpython_rlib_rvmprof.c:491:17: error: assignment to ‘Signed (*)(void)’ {aka ‘long int (*)(void)’} from incompatible pointer type ‘int (*)(void)’ [-Wincompatible-pointer-types]
E           	  491 |         l_v9384 = vmprof_stop_sampling;
E           	      |                 ^
E           	make: *** [Makefile:185: rpython_rlib_rvmprof.o] Error 1
E           	""")

translator/platform/__init__.py:155: CompilationError
---------- Captured stderr call ----------
[rtyper] specializing: 100 / 932 blocks   (10%)
[rtyper] specializing: 200 / 1117 blocks   (17%)
[rtyper] specializing: 300 / 1128 blocks   (26%)
[rtyper] specializing: 400 / 1137 blocks   (35%)
[rtyper] specializing: 500 / 1170 blocks   (42%)
[rtyper] specializing: 600 / 1170 blocks   (51%)
[rtyper] specializing: 700 / 1170 blocks   (59%)
[rtyper] specializing: 800 / 1170 blocks   (68%)
[rtyper] specializing: 900 / 1170 blocks   (76%)
[rtyper] specializing: 1000 / 1170 blocks   (85%)
[rtyper] specializing: 1100 / 1172 blocks   (93%)
[rtyper] specializing: 1200 / 1373 blocks   (87%)
[rtyper] specializing: 1300 / 1373 blocks   (94%)
[rtyper] -=- specialized 1373 blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
[rtyper] specializing: 1400 / 1402 blocks   (99%)
[rtyper] -=- specialized 25 more blocks -=-
[rtyper] -=- specialized 5 more blocks -=-
[rtyper] specializing: 1500 / 3513 blocks   (42%)
[rtyper] specializing: 1700 / 3574 blocks   (47%)
[rtyper] specializing: 1900 / 3579 blocks   (53%)
[rtyper] specializing: 2100 / 3594 blocks   (58%)
[rtyper] specializing: 2300 / 3594 blocks   (63%)
[rtyper] specializing: 2500 / 3675 blocks   (68%)
[rtyper] specializing: 2700 / 3681 blocks   (73%)
[rtyper] specializing: 2900 / 3681 blocks   (78%)
[rtyper] specializing: 3100 / 3690 blocks   (84%)
[rtyper] specializing: 3300 / 3704 blocks   (89%)
[rtyper] specializing: 3600 / 3989 blocks   (90%)
[rtyper] specializing: 3800 / 3991 blocks   (95%)
[rtyper] specializing: 4000 / 4002 blocks   (99%)
[rtyper] -=- specialized 2595 more blocks -=-
[rtyper] specializing: 4100 / 4113 blocks   (99%)
[rtyper] -=- specialized 111 more blocks -=-
[backendopt:inlining] phase with threshold factor: 32.4
[backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic
[backendopt:inlining] inlined 1404 callsites.
[backendopt:malloc] starting malloc removal
[backendopt:malloc] removed 76 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[rtyper] -=- specialized 22 more blocks -=-
[rtyper] -=- specialized 46 more blocks -=-
[rtyper] -=- specialized 0 more blocks -=-
[c]     1000 nodes  [ array: 156  framework rtti: 28  func: 479  group: 1  struct: 396 ]
[c:database] GC transformer: finished helpers
[rtyper] specializing: 4200 / 4247 blocks   (98%)
[rtyper] -=- specialized 66 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 12 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[c:database] GC transformer: finished tables
[gctransform:info] assigned 75 typeids
[gctransform:info] added 420 push/pop stack root instructions
[gctransform:info] inserted 30 write barrier calls
[gctransform:info] inserted 18 write_barrier_from_array calls
[gctransform:info] found 2 static roots
[c:database] Inlining GC helpers and postprocessing
[c]     1265 nodes  [ array: 203  framework rtti: 32  func: 552  group: 1  struct: 477 ]
[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_rvmprof.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_rlib_rvmprof_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_rvmprof.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] make  in /tmp/usession-pypy-HEAD-126/testing_1
[platform:Error] rpython_memory_gc.c: In function ‘pypy_g_MiniMarkGC_minor_collection’:
[platform:Error] rpython_memory_gc.c:2379:101: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
[platform:Error]  2379 |         if (PYPY_HAVE_DEBUG_PRINTS) { fprintf(PYPY_DEBUG_FILE, "minor collect, total memory used: %lu\012", l_v1283); }
[platform:Error]       |                                                                                                   ~~^       ~~~~~~~
[platform:Error]       |                                                                                                     |       |
[platform:Error]       |                                                                                                     |       size_t {aka unsigned int}
[platform:Error]       |                                                                                                     long unsigned int
[platform:Error]       |                                                                                                   %u
[platform:Error] rpython_memory_gc.c: In function ‘pypy_g_MiniMarkGC_major_collection’:
[platform:Error] rpython_memory_gc.c:11150:103: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
[platform:Error] 11150 |         if (PYPY_HAVE_DEBUG_PRINTS) { fprintf(PYPY_DEBUG_FILE, "|          in ArenaCollection:      %lu bytes\012", l_v3672); }
[platform:Error]       |                                                                                                     ~~^             ~~~~~~~
[platform:Error]       |                                                                                                       |             |
[platform:Error]       |                                                                                                       |             size_t {aka unsigned int}
[platform:Error]       |                                                                                                       long unsigned int
[platform:Error]       |                                                                                                     %u
[platform:Error] rpython_memory_gc.c:11152:103: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
[platform:Error] 11152 |         if (PYPY_HAVE_DEBUG_PRINTS) { fprintf(PYPY_DEBUG_FILE, "|          raw_malloced:            %lu bytes\012", l_v3674); }
[platform:Error]       |                                                                                                     ~~^             ~~~~~~~
[platform:Error]       |                                                                                                       |             |
[platform:Error]       |                                                                                                       |             size_t {aka unsigned int}
[platform:Error]       |                                                                                                       long unsigned int
[platform:Error]       |                                                                                                     %u
[platform:Error] rpython_memory_gc.c:11381:103: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
[platform:Error] 11381 |         if (PYPY_HAVE_DEBUG_PRINTS) { fprintf(PYPY_DEBUG_FILE, "|          in ArenaCollection:      %lu bytes\012", l_v3735); }
[platform:Error]       |                                                                                                     ~~^             ~~~~~~~
[platform:Error]       |                                                                                                       |             |
[platform:Error]       |                                                                                                       |             size_t {aka unsigned int}
[platform:Error]       |                                                                                                       long unsigned int
[platform:Error]       |                                                                                                     %u
[platform:Error] rpython_memory_gc.c:11383:103: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
[platform:Error] 11383 |         if (PYPY_HAVE_DEBUG_PRINTS) { fprintf(PYPY_DEBUG_FILE, "|          raw_malloced:            %lu bytes\012", l_v3737); }
[platform:Error]       |                                                                                                     ~~^             ~~~~~~~
[platform:Error]       |                                                                                                       |             |
[platform:Error]       |                                                                                                       |             size_t {aka unsigned int}
[platform:Error]       |                                                                                                       long unsigned int
[platform:Error]       |                                                                                                     %u
[platform:Error] rpython_rlib_rvmprof.c: In function ‘pypy_g_VMProf_stop_sampling’:
[platform:Error] rpython_rlib_rvmprof.c:491:17: error: assignment to ‘Signed (*)(void)’ {aka ‘long int (*)(void)’} from incompatible pointer type ‘int (*)(void)’ [-Wincompatible-pointer-types]
[platform:Error]   491 |         l_v9384 = vmprof_stop_sampling;
[platform:Error]       |                 ^
[platform:Error] make: *** [Makefile:185: rpython_rlib_rvmprof.o] Error 1
builder: rpython-linux-x86-32 build #711*
test: rlib/test/test_rstacklet.py::TestStackletShadowStack::()::test_demo1