I followed the document to build pypy-c-sandbox based on souce code 2.5.1:

rpython/bin/rpython -O2 --sandbox pypy/goal/targetpypystandalone.py

In the stdout, I did observe sandbox option is true:

[translation] [translation]
[translation]     check_str_without_nul = True
[translation]     gc = generation
[translation]     gcrootfinder = shadowstack
[translation]     gctransformer = framework
[translation]     list_comprehension_operations = True
[translation]     rweakref = True
[translation]     sandbox = True
[translation]     shared = True
[translation]     thread = False
[translation]     withsmallfuncsets = 5

However, after the build process completed, only pypy-c generated and I did
not find pypy-c-sandbox.

[platform:execute] make -j 5 in /tmp/usession-master-16/testing_1
[platform:WARNING] pypy_module__warnings_interp_warnings.c: In function
‘pypy_g_normalize_module’:
[platform:WARNING] pypy_module__warnings_interp_warnings.c:8565:5: warning:
assuming signed overflow does not occur when assuming that (X - c) > X is
always false [-Wstrict-overflow]
[translation:info] copied: /home/yicong.hyc/odps-pypy/libpypy-c.so
[translation:info] usession directory: /tmp/usession-master-16
[translation:info] created: /home/yicong.hyc/odps-pypy/pypy-c
[1ebe2] translation-task}
[Timer] Timings:
[Timer] annotate                       ---  309.6 s
[Timer] rtype_lltype                   ---  355.1 s
[Timer] backendopt_lltype              ---  179.8 s
[Timer] stackcheckinsertion_lltype     ---   17.5 s
[Timer] database_c                     ---  208.2 s
[Timer] source_c                       ---  179.9 s
[Timer] compile_c                      ---  102.6 s
[Timer] ===========================================
[Timer] Total:                         --- 1352.7 s

Grep "sandbox" in the log, there were some warnings, but no errors:

[sandbox:WARNING] Not Implemented: sandboxing for external function
'RPython_StartupCode'
[sandbox:WARNING] Not Implemented: sandboxing for external function
'pypy_debug_catch_fatal_exception'
[sandbox:WARNING] Not Implemented: SomeImpossibleValue()
[sandbox:WARNING] Not Implemented: SomeImpossibleValue()
[sandbox:WARNING] Not Implemented: sandboxing for external function
'clock_gettime'
[sandbox:WARNING] Not Implemented: sandboxing for external function
'clock_getres'
[sandbox:WARNING] Not Implemented: sandboxing for external function 'fcntl'
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to