[pypy-issue] Issue #2332: Unable to translate PyPy 5.3.1 on CentOS 6.8 (pypy/pypy)

Rodrigo Dias Cruz issues-reply at bitbucket.org
Sat Jun 25 20:37:52 EDT 2016


New issue 2332: Unable to translate PyPy 5.3.1 on CentOS 6.8
https://bitbucket.org/pypy/pypy/issues/2332/unable-to-translate-pypy-531-on-centos-68

Rodrigo Dias Cruz:

# Description #

* I am unable to translate PyPy 5.3.1 on a CentOS 6.8 system (details below).
* Could you please provide me with some guidance? Any help is appreciated. Thank you.

# Notes #

* PyPy 5.1.0 and earlier versions can be translated on the same system.
* I am able to translate PyPy 5.3.1 on a CentOS 7 system.

# Details #

* **System:** CentOS 6.8 x86_64 with 8GB of RAM
* **Installed dependencies:** bzip2-devel, expat-devel, gdbm-devel, ncurses-devel, libffi-devel, openssl-devel, sqlite-devel, tcl-devel, tk-devel, zlib-devel
* **Source:** https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.3.1-src.tar.bz2
* **Translation environment:** PyPy 5.1.0
* **Translation command:** pypy ../../rpython/bin/rpython -Ojit targetpypystandalone

# Result #

```
[Timer] Timings:
[Timer] annotate                       ---  338.2 s
[Timer] rtype_lltype                   ---  472.8 s
[Timer] pyjitpl_lltype                 ---  777.0 s
[Timer] backendopt_lltype              ---  121.2 s
[Timer] stackcheckinsertion_lltype     ---   79.6 s
[Timer] database_c                     ---  193.6 s
[Timer] source_c                       ---  103.2 s
[Timer] compile_c                      ---   90.2 s
[Timer] ===========================================
[Timer] Total:                         --- 2175.8 s
[translation:info] Error:
   File "/root/pypy2-v5.3.1-src/rpython/translator/goal/translate.py", line 317, in main
    drv.proceed(goals)
   File "/root/pypy2-v5.3.1-src/rpython/translator/driver.py", line 551, in proceed
    result = self._execute(goals, task_skip = self._maybe_skip())
   File "/root/pypy2-v5.3.1-src/rpython/translator/tool/taskengine.py", line 114, in _execute
    res = self._do(goal, taskcallable, *args, **kwds)
   File "/root/pypy2-v5.3.1-src/rpython/translator/driver.py", line 278, in _do
    res = func()
   File "/root/pypy2-v5.3.1-src/rpython/translator/driver.py", line 518, in task_compile_c
    cbuilder.compile(**kwds)
   File "/root/pypy2-v5.3.1-src/rpython/translator/c/genc.py", line 396, in compile
    extra_opts)
   File "/root/pypy2-v5.3.1-src/rpython/translator/platform/posix.py", line 219, in execute_makefile
    self._handle_error(returncode, stdout, stderr, path.join('make'))
   File "/root/pypy2-v5.3.1-src/rpython/translator/platform/__init__.py", line 152, in _handle_error
    raise CompilationError(stdout, stderr)
[translation:ERROR] CompilationError: CompilationError(err="""
    implement_3.c: In function ‘pypy_g_ccall_EVP_DigestFinal__EVP_MD_CTXPtr_arrayPtr_ar_1’:
    implement_3.c:3753: warning: pointer targets in passing argument 2 of ‘EVP_DigestFinal’ differ in signedness
    /usr/include/openssl/evp.h:569: note: expected ‘unsigned char *’ but argument is of type ‘char *’
    implement_3.c: In function ‘pypy_g_ccall_SSL_CTX_set_next_protos_advertised_cb__SSL_1’:
    implement_3.c:5304: warning: passing argument 2 of ‘SSL_CTX_set_next_protos_advertised_cb’ from incompatible pointer type
    /usr/include/openssl/ssl.h:998: note: expected ‘int (*)(struct SSL *, const unsigned char **, unsigned int *, void *)’ but argument is of type ‘int (*)(struct SSL *, char **, unsigned int *, void *)’
    implement_3.c: In function ‘pypy_g_ccall_SSL_CTX_set_next_proto_select_cb__SSL_CTXP_1’:
    implement_3.c:5332: warning: passing argument 2 of ‘SSL_CTX_set_next_proto_select_cb’ from incompatible pointer type
    /usr/include/openssl/ssl.h:1004: note: expected ‘int (*)(struct SSL *, unsigned char **, unsigned char *, const unsigned char *, unsigned int,  void *)’ but argument is of type ‘int (*)(struct SSL *, char **, unsigned char *, char *, unsigned int,  void *)’
    implement_3.c: In function ‘pypy_g_ccall_ERR_reason_error_string__Unsigned_reload’:
    implement_3.c:6410: warning: assignment discards qualifiers from pointer target type
    implement_3.c: In function ‘pypy_g_ccall_i2d_X509__arrayPtr_arrayPtr_reload’:
    implement_3.c:43312: warning: passing argument 2 of ‘i2d_X509’ from incompatible pointer type
    /usr/include/openssl/x509.h:840: note: expected ‘unsigned char **’ but argument is of type ‘char **’
    implement_3.c: In function ‘pypy_g_ccall_inet_ntop__INT_arrayPtr_arrayPtr_UINT_relo’:
    implement_3.c:43678: warning: assignment discards qualifiers from pointer target type
    implement_11.c: In function ‘pypy_g_ccall_X509V3_EXT_get__arrayPtr_reload’:
    implement_11.c:20585: warning: assignment discards qualifiers from pointer target type
    implement_11.c: In function ‘pypy_g_ccall_ASN1_STRING_data__asn1_string_stPtr_reload’:
    implement_11.c:20677: warning: pointer targets in assignment differ in signedness
    implement_11.c: In function ‘pypy_g_ccall_ASN1_item_d2i__arrayPtr_arrayPtr_Signed_AS_1’:
    implement_11.c:20750: warning: passing argument 2 of ‘ASN1_item_d2i’ from incompatible pointer type
    /usr/include/openssl/asn1.h:1088: note: expected ‘const unsigned char **’ but argument is of type ‘char **’
    implement_11.c: In function ‘pypy_g_ccall_OBJ_NAME_do_all__INT_funcPtr_arrayPtr_relo’:
    implement_11.c:21032: warning: passing argument 2 of ‘OBJ_NAME_do_all’ from incompatible pointer type
    /usr/include/openssl/objects.h:998: note: expected ‘void (*)(const struct OBJ_NAME *, void *)’ but argument is of type ‘void (*)(struct OBJ_NAME *, void *)’
    implement_11.c: In function ‘pypy_g_ccall_X509_get_default_cert_file_env____reload’:
    implement_11.c:21104: warning: assignment discards qualifiers from pointer target type
    implement_11.c: In function ‘pypy_g_ccall_X509_get_default_cert_file____reload’:
    implement_11.c:21124: warning: assignment discards qualifiers from pointer target type
    implement_11.c: In function ‘pypy_g_ccall_X509_get_default_cert_dir_env____reload’:
    implement_11.c:21144: warning: assignment discards qualifiers from pointer target type
    implement_11.c: In function ‘pypy_g_ccall_X509_get_default_cert_dir____reload’:
    implement_11.c:21164: warning: assignment discards qualifiers from pointer target type
    implement_11.c: In function ‘pypy_g_ccall_XML_SetSkippedEntityHandler__NonePtr_funcP_1’:
    implement_11.c:26087: warning: passing argument 2 of ‘XML_SetSkippedEntityHandler’ from incompatible pointer type
    /usr/include/expat.h:637: note: expected ‘XML_SkippedEntityHandler’ but argument is of type ‘void (*)(void *, char *, int)’
    implement_11.c: In function ‘pypy_g_ccall_XML_SetAttlistDeclHandler__NonePtr_funcPtr_1’:
    implement_11.c:26125: warning: passing argument 2 of ‘XML_SetAttlistDeclHandler’ from incompatible pointer type
    /usr/include/expat.h:175: note: expected ‘XML_AttlistDeclHandler’ but argument is of type ‘void (*)(void *, char *, char *, char *, char *, int)’
    implement_11.c: In function ‘pypy_g_ccall_XML_SetElementDeclHandler__NonePtr_funcPtr_1’:
    implement_11.c:26162: warning: passing argument 2 of ‘XML_SetElementDeclHandler’ from incompatible pointer type
    /usr/include/expat.h:155: note: expected ‘XML_ElementDeclHandler’ but argument is of type ‘void (*)(void *, char *, struct XML_Content *)’
    implement_11.c: In function ‘pypy_g_ccall_XML_SetXmlDeclHandler__NonePtr_funcPtr_rel’:
    implement_11.c:26199: warning: passing argument 2 of ‘XML_SetXmlDeclHandler’ from incompatible pointer type
    /usr/include/expat.h:192: note: expected ‘XML_XmlDeclHandler’ but argument is of type ‘void (*)(void *, char *, char *, int)’
    implement_11.c: In function ‘pypy_g_ccall_XML_SetEntityDeclHandler__NonePtr_funcPtr_’:
    implement_11.c:26237: warning: passing argument 2 of ‘XML_SetEntityDeclHandler’ from incompatible pointer type
    /usr/include/expat.h:341: note: expected ‘XML_EntityDeclHandler’ but argument is of type ‘void (*)(void *, char *, int,  char *, int,  char *, char *, char *, char *)’
    implement_11.c: In function ‘pypy_g_ccall_XML_SetStartDoctypeDeclHandler__NonePtr_fu_1’:
    implement_11.c:26312: warning: passing argument 2 of ‘XML_SetStartDoctypeDeclHandler’ from incompatible pointer type
    /usr/include/expat.h:592: note: expected ‘XML_StartDoctypeDeclHandler’ but argument is of type ‘void (*)(void *, char *, char *, char *, int)’
    implement_11.c: In function ‘pypy_g_ccall_XML_SetExternalEntityRefHandler__NonePtr_f_1’:
    implement_11.c:26350: warning: passing argument 2 of ‘XML_SetExternalEntityRefHandler’ from incompatible pointer type
    /usr/include/expat.h:625: note: expected ‘XML_ExternalEntityRefHandler’ but argument is of type ‘int (*)(struct XML_ParserStruct *, char *, char *, char *, char *)’
    implement_11.c: In function ‘pypy_g_ccall_XML_SetDefaultHandlerExpand__NonePtr_funcP_1’:
    implement_11.c:26426: warning: passing argument 2 of ‘XML_SetDefaultHandlerExpand’ from incompatible pointer type
    /usr/include/expat.h:583: note: expected ‘XML_DefaultHandler’ but argument is of type ‘void (*)(void *, char *, int)’
    implement_11.c: In function ‘pypy_g_ccall_XML_SetDefaultHandler__NonePtr_funcPtr_rel’:
    implement_11.c:26463: warning: passing argument 2 of ‘XML_SetDefaultHandler’ from incompatible pointer type
    /usr/include/expat.h:575: note: expected ‘XML_DefaultHandler’ but argument is of type ‘void (*)(void *, char *, int)’
    implement_11.c: In function ‘pypy_g_ccall_XML_SetCommentHandler__NonePtr_funcPtr_rel’:
    implement_11.c:26574: warning: passing argument 2 of ‘XML_SetCommentHandler’ from incompatible pointer type
    /usr/include/expat.h:554: note: expected ‘XML_CommentHandler’ but argument is of type ‘void (*)(void *, char *)’
    implement_11.c: In function ‘pypy_g_ccall_XML_SetEndNamespaceDeclHandler__NonePtr_fu_1’:
    implement_11.c:26611: warning: passing argument 2 of ‘XML_SetEndNamespaceDeclHandler’ from incompatible pointer type
    /usr/include/expat.h:617: note: expected ‘XML_EndNamespaceDeclHandler’ but argument is of type ‘void (*)(void *, char *)’
    implement_11.c: In function ‘pypy_g_ccall_XML_SetStartNamespaceDeclHandler__NonePtr__1’:
    implement_11.c:26648: warning: passing argument 2 of ‘XML_SetStartNamespaceDeclHandler’ from incompatible pointer type
    /usr/include/expat.h:613: note: expected ‘XML_StartNamespaceDeclHandler’ but argument is of type ‘void (*)(void *, char *, char *)’
    implement_11.c: In function ‘pypy_g_ccall_XML_SetNotationDeclHandler__NonePtr_funcPt_1’:
    implement_11.c:26686: warning: passing argument 2 of ‘XML_SetNotationDeclHandler’ from incompatible pointer type
    /usr/include/expat.h:604: note: expected ‘XML_NotationDeclHandler’ but argument is of type ‘void (*)(void *, char *, char *, char *, char *)’
    implement_11.c: In function ‘pypy_g_ccall_XML_SetUnparsedEntityDeclHandler__NonePtr__1’:
    implement_11.c:26724: warning: passing argument 2 of ‘XML_SetUnparsedEntityDeclHandler’ from incompatible pointer type
    /usr/include/expat.h:600: note: expected ‘XML_UnparsedEntityDeclHandler’ but argument is of type ‘void (*)(void *, char *, char *, char *, char *, char *)’
    implement_11.c: In function ‘pypy_g_ccall_XML_SetCharacterDataHandler__NonePtr_funcP_1’:
    implement_11.c:26761: warning: passing argument 2 of ‘XML_SetCharacterDataHandler’ from incompatible pointer type
    /usr/include/expat.h:547: note: expected ‘XML_CharacterDataHandler’ but argument is of type ‘void (*)(void *, char *, int)’
    implement_11.c: In function ‘pypy_g_ccall_XML_SetProcessingInstructionHandler__NoneP_1’:
    implement_11.c:26798: warning: passing argument 2 of ‘XML_SetProcessingInstructionHandler’ from incompatible pointer type
    /usr/include/expat.h:551: note: expected ‘XML_ProcessingInstructionHandler’ but argument is of type ‘void (*)(void *, char *, char *)’
    implement_11.c: In function ‘pypy_g_ccall_XML_SetEndElementHandler__NonePtr_funcPtr_’:
    implement_11.c:26835: warning: passing argument 2 of ‘XML_SetEndElementHandler’ from incompatible pointer type
    /usr/include/expat.h:543: note: expected ‘XML_EndElementHandler’ but argument is of type ‘void (*)(void *, char *)’
    implement_11.c: In function ‘pypy_g_ccall_XML_SetStartElementHandler__NonePtr_funcPt_1’:
    implement_11.c:26872: warning: passing argument 2 of ‘XML_SetStartElementHandler’ from incompatible pointer type
    /usr/include/expat.h:539: note: expected ‘XML_StartElementHandler’ but argument is of type ‘void (*)(void *, char *, char **)’
    implement_11.c: In function ‘pypy_g_ccall_XML_ErrorString__INT_reload’:
    implement_11.c:27082: warning: assignment discards qualifiers from pointer target type
    implement_11.c: In function ‘pypy_g_ccall_XML_SetUnknownEncodingHandler__NonePtr_fun_1’:
    implement_11.c:27263: warning: passing argument 2 of ‘XML_SetUnknownEncodingHandler’ from incompatible pointer type
    /usr/include/expat.h:641: note: expected ‘XML_UnknownEncodingHandler’ but argument is of type ‘int (*)(void *, char *, struct XML_Encoding *)’
    implement_11.c: In function ‘pypy_g_ccall_OBJ_nid2sn__INT_reload’:
    implement_11.c:27514: warning: assignment discards qualifiers from pointer target type
    implement_11.c: In function ‘pypy_g_ccall_OBJ_nid2ln__INT_reload’:
    implement_11.c:27535: warning: assignment discards qualifiers from pointer target type
    implement_11.c: In function ‘pypy_g_ccall_SSLv2_method____reload’:
    implement_11.c:28009: warning: assignment discards qualifiers from pointer target type
    implement_11.c: In function ‘pypy_g_ccall_SSLv3_method____reload’:
    implement_11.c:28051: warning: assignment discards qualifiers from pointer target type
    implement_11.c: In function ‘pypy_g_ccall_SSLv23_method____reload’:
    implement_11.c:28071: warning: assignment discards qualifiers from pointer target type
    implement_11.c: In function ‘pypy_g_ccall_TLSv1_method____reload’:
    implement_11.c:28091: warning: assignment discards qualifiers from pointer target type
    implement_11.c: In function ‘pypy_g_ccall_TLSv1_1_method____reload’:
    implement_11.c:28111: warning: assignment discards qualifiers from pointer target type
    implement_11.c: In function ‘pypy_g_ccall_TLSv1_2_method____reload’:
    implement_11.c:28131: warning: assignment discards qualifiers from pointer target type
    implement_11.c: In function ‘pypy_g_ccall_SSL_get_version__SSLPtr_reload’:
    implement_11.c:28497: warning: assignment discards qualifiers from pointer target type
    implement_11.c: In function ‘pypy_g_ccall_SSL_get_current_compression__SSLPtr_reload’:
    implement_11.c:28519: warning: assignment discards qualifiers from pointer target type
    implement_11.c: In function ‘pypy_g_ccall_SSL_get0_next_proto_negotiated__SSLPtr_arr_1’:
    implement_11.c:28546: warning: passing argument 2 of ‘SSL_get0_next_proto_negotiated’ from incompatible pointer type
    /usr/include/openssl/ssl.h:1016: note: expected ‘const unsigned char **’ but argument is of type ‘char **’
    implement_11.c: In function ‘pypy_g_ccall_SSL_get_current_cipher__SSLPtr_reload’:
    implement_11.c:28568: warning: assignment discards qualifiers from pointer target type
    implement_11.c: In function ‘pypy_g_ccall_SSL_CIPHER_get_name__SSL_CIPHERPtr_reload’:
    implement_11.c:28590: warning: assignment discards qualifiers from pointer target type
    implement_11.c: In function ‘pypy_g_ccall_ASN1_STRING_to_UTF8__arrayPtr_asn1_string__1’:
    implement_11.c:57065: warning: passing argument 1 of ‘ASN1_STRING_to_UTF8’ from incompatible pointer type
    /usr/include/openssl/asn1.h:1000: note: expected ‘unsigned char **’ but argument is of type ‘char **’
    implement_11.c: In function ‘pypy_g_ccall_gai_strerror__INT_reload’:
    implement_11.c:59766: warning: assignment discards qualifiers from pointer target type
    implement_9.c: In function ‘pypy_g_ccall_EVP_get_digestbyname__arrayPtr_reload’:
    implement_9.c:59141: warning: assignment discards qualifiers from pointer target type
    implement_9.c: In function ‘pypy_g_ccall_sk_DIST_POINT_num__STACK_OF_X509_OBJECT_Pt_1’:
    implement_9.c:60007: warning: pointer type mismatch in conditional expression
    implement_9.c: In function ‘pypy_g_ccall_sk_DIST_POINT_value__STACK_OF_X509_OBJECT__1’:
    implement_9.c:60031: warning: pointer type mismatch in conditional expression
    implement_9.c: In function ‘pypy_g_ccall_SSL_get_servername__SSLPtr_INT_reload’:
    implement_9.c:60171: warning: assignment discards qualifiers from pointer target type
    implement_9.c: In function ‘pypy_g_ccall_SSL_select_next_proto__arrayPtr_arrayPtr_a_1’:
    implement_9.c:60204: warning: passing argument 1 of ‘SSL_select_next_proto’ from incompatible pointer type
    /usr/include/openssl/ssl.h:1013: note: expected ‘unsigned char **’ but argument is of type ‘char **’
    implement_9.c:60204: warning: pointer targets in passing argument 3 of ‘SSL_select_next_proto’ differ in signedness
    /usr/include/openssl/ssl.h:1013: note: expected ‘const unsigned char *’ but argument is of type ‘char *’
    implement_9.c:60204: warning: pointer targets in passing argument 5 of ‘SSL_select_next_proto’ differ in signedness
    /usr/include/openssl/ssl.h:1013: note: expected ‘const unsigned char *’ but argument is of type ‘char *’
    implement_9.c: In function ‘pypy_g_ccall_XML_ExpatVersion____reload’:
    implement_9.c:60704: warning: assignment discards qualifiers from pointer target type
    implement_12.c: In function ‘pypy_g_ccall_getgroups__INT_arrayPtr_reload’:
    implement_12.c:9259: warning: pointer targets in passing argument 2 of ‘getgroups’ differ in signedness
    /usr/include/unistd.h:708: note: expected ‘__gid_t *’ but argument is of type ‘int *’
    implement_12.c: In function ‘pypy_g_ccall_setgroups__Unsigned_arrayPtr_reload’:
    implement_12.c:9287: warning: pointer targets in passing argument 2 of ‘setgroups’ differ in signedness
    /usr/include/grp.h:182: note: expected ‘const __gid_t *’ but argument is of type ‘int *’
    pypy_interpreter.c: In function ‘pypy_g_Method_immutable_unique_id’:
    pypy_interpreter.c:28965: error: ‘__int128’ undeclared (first use in this function)
    pypy_interpreter.c:28965: error: (Each undeclared identifier is reported only once
    pypy_interpreter.c:28965: error: for each function it appears in.)
    pypy_interpreter.c:28965: error: expected ‘)’ before ‘__int128’
    pypy_interpreter.c:29851: error: expected ‘)’ before ‘__int128’
    pypy_interpreter.c:30760: error: expected ‘)’ before ‘__int128’
    make: ** [pypy_interpreter.gcmap] Erro 1
    make: ** Esperando que outros processos terminem.
    """)
[translation] start debugger...
> /root/pypy2-v5.3.1-src/rpython/translator/platform/__init__.py(152)_handle_error()
-> raise CompilationError(stdout, stderr)
(Pdb+)
```




More information about the pypy-issue mailing list