rlib/test/test_rstacklet.py::TestStackletShadowStack::()::test_demo1
self = <rpython.rlib.test.test_rstacklet.TestStackletShadowStack object at 0x094c3390>
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:185...l_v8819 = 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:1856:101: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
E 1856 | 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:8639:103: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
E 8639 | if (PYPY_HAVE_DEBUG_PRINTS) { fprintf(PYPY_DEBUG_FILE, "| in ArenaCollection: %lu bytes\012", l_v3665); }
E | ~~^ ~~~~~~~
E | | |
E | | size_t {aka unsigned int}
E | long unsigned int
E | %u
E rpython_memory_gc.c:8641:103: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
E 8641 | if (PYPY_HAVE_DEBUG_PRINTS) { fprintf(PYPY_DEBUG_FILE, "| raw_malloced: %lu bytes\012", l_v3667); }
E | ~~^ ~~~~~~~
E | | |
E | | size_t {aka unsigned int}
E | long unsigned int
E | %u
E rpython_memory_gc.c:8847:103: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
E 8847 | if (PYPY_HAVE_DEBUG_PRINTS) { fprintf(PYPY_DEBUG_FILE, "| in ArenaCollection: %lu bytes\012", l_v3728); }
E | ~~^ ~~~~~~~
E | | |
E | | size_t {aka unsigned int}
E | long unsigned int
E | %u
E rpython_memory_gc.c:8849:103: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
E 8849 | if (PYPY_HAVE_DEBUG_PRINTS) { fprintf(PYPY_DEBUG_FILE, "| raw_malloced: %lu bytes\012", l_v3730); }
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:386:17: error: assignment to ‘Signed (*)(void)’ {aka ‘long int (*)(void)’} from incompatible pointer type ‘int (*)(void)’ [-Wincompatible-pointer-types]
E 386 | l_v8819 = 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 / 917 blocks (10%)
[rtyper] specializing: 200 / 1102 blocks (18%)
[rtyper] specializing: 300 / 1113 blocks (26%)
[rtyper] specializing: 400 / 1122 blocks (35%)
[rtyper] specializing: 500 / 1155 blocks (43%)
[rtyper] specializing: 600 / 1155 blocks (51%)
[rtyper] specializing: 700 / 1155 blocks (60%)
[rtyper] specializing: 800 / 1155 blocks (69%)
[rtyper] specializing: 900 / 1155 blocks (77%)
[rtyper] specializing: 1000 / 1155 blocks (86%)
[rtyper] specializing: 1100 / 1157 blocks (95%)
[rtyper] specializing: 1200 / 1358 blocks (88%)
[rtyper] specializing: 1300 / 1358 blocks (95%)
[rtyper] -=- specialized 1358 blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
[rtyper] -=- specialized 25 more blocks -=-
[rtyper] -=- specialized 5 more blocks -=-
[rtyper] specializing: 1400 / 3494 blocks (40%)
[rtyper] specializing: 1600 / 3552 blocks (45%)
[rtyper] specializing: 1800 / 3559 blocks (50%)
[rtyper] specializing: 2000 / 3570 blocks (56%)
[rtyper] specializing: 2200 / 3574 blocks (61%)
[rtyper] specializing: 2400 / 3574 blocks (67%)
[rtyper] specializing: 2700 / 3661 blocks (73%)
[rtyper] specializing: 2900 / 3670 blocks (79%)
[rtyper] specializing: 3100 / 3670 blocks (84%)
[rtyper] specializing: 3500 / 3832 blocks (91%)
[rtyper] specializing: 3700 / 3832 blocks (96%)
[rtyper] -=- specialized 2451 more blocks -=-
[rtyper] specializing: 3900 / 3954 blocks (98%)
[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 1380 callsites.
[backendopt:malloc] starting malloc removal
[backendopt:malloc] removed 78 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[rtyper] -=- specialized 22 more blocks -=-
[rtyper] specializing: 4000 / 4024 blocks (99%)
[rtyper] -=- specialized 48 more blocks -=-
[rtyper] -=- specialized 0 more blocks -=-
[c] 1000 nodes [ array: 155 framework rtti: 28 func: 468 group: 1 struct: 397 ]
[c:database] GC transformer: finished helpers
[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 74 typeids
[gctransform:info] added 405 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] 1250 nodes [ array: 202 framework rtti: 32 func: 539 group: 1 struct: 476 ]
[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:1856:101: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
[platform:Error] 1856 | 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:8639:103: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
[platform:Error] 8639 | if (PYPY_HAVE_DEBUG_PRINTS) { fprintf(PYPY_DEBUG_FILE, "| in ArenaCollection: %lu bytes\012", l_v3665); }
[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:8641:103: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
[platform:Error] 8641 | if (PYPY_HAVE_DEBUG_PRINTS) { fprintf(PYPY_DEBUG_FILE, "| raw_malloced: %lu bytes\012", l_v3667); }
[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:8847:103: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
[platform:Error] 8847 | if (PYPY_HAVE_DEBUG_PRINTS) { fprintf(PYPY_DEBUG_FILE, "| in ArenaCollection: %lu bytes\012", l_v3728); }
[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:8849:103: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
[platform:Error] 8849 | if (PYPY_HAVE_DEBUG_PRINTS) { fprintf(PYPY_DEBUG_FILE, "| raw_malloced: %lu bytes\012", l_v3730); }
[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:386:17: error: assignment to ‘Signed (*)(void)’ {aka ‘long int (*)(void)’} from incompatible pointer type ‘int (*)(void)’ [-Wincompatible-pointer-types]
[platform:Error] 386 | l_v8819 = vmprof_stop_sampling;
[platform:Error] | ^
[platform:Error] make: *** [Makefile:185: rpython_rlib_rvmprof.o] Error 1
builder: rpython-linux-x86-32 build #626*
test: rlib/test/test_rstacklet.py::TestStackletShadowStack::()::test_demo1