Opened 2 years ago

Closed 2 years ago

#63927 closed defect (fixed)

pypy @7.3.6_1: Fails to destroot on Monterey

Reported by: greyhare Owned by: danchr (Dan Villiom Podlaski Christiansen)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: monterey Cc:
Port: pypy

Description

Rebuilding all my ports after upgrading to Monterey.

I'm actually trying to install pypy38 @7.3.7_1, but it pulls in pypy as a dependency, and building pypy works fine until it needs to stage pypy into destroot and then it dies:

:info:destroot generating ./_pypy_openssl.c
:info:destroot the current directory is '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_pypy/pypy/work/pypy2.7-v7.3.6-src/lib_pypy'
:info:destroot running build_ext
:info:destroot building '_pypy_openssl' extension
:info:destroot /usr/bin/clang -DNDEBUG -O2 -arch x86_64 -I/opt/local/include -fPIC -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_pypy/pypy/work/pypy2.7-v7.3.6-src/include -c _pypy_openssl.c -o ./_pypy_openssl.o
:info:destroot _pypy_openssl.c:2312:7: error: redefinition of 'EVP_PKEY_CTX_set_rsa_oaep_md' as different kind of symbol
:info:destroot int (*EVP_PKEY_CTX_set_rsa_oaep_md)(EVP_PKEY_CTX *, EVP_MD *) = NULL;
:info:destroot       ^
:info:destroot /opt/local/include/openssl/rsa.h:158:5: note: previous definition is here
:info:destroot int EVP_PKEY_CTX_set_rsa_oaep_md(EVP_PKEY_CTX *ctx, const EVP_MD *md);
:info:destroot     ^
:info:destroot _pypy_openssl.c:2319:7: error: redefinition of 'EVP_PKEY_CTX_set0_rsa_oaep_label' as different kind of symbol
:info:destroot int (*EVP_PKEY_CTX_set0_rsa_oaep_label)(EVP_PKEY_CTX *, unsigned char *,
:info:destroot       ^
:info:destroot /opt/local/include/openssl/rsa.h:164:5: note: previous definition is here
:info:destroot int EVP_PKEY_CTX_set0_rsa_oaep_label(EVP_PKEY_CTX *ctx, void *label, int llen);
:info:destroot     ^
:info:destroot _pypy_openssl.c:7026:12: error: use of undeclared identifier 'CRYPTO_MEM_CHECK_DISABLE'
:info:destroot   int n = (CRYPTO_MEM_CHECK_DISABLE) <= 0;
:info:destroot            ^

(lots more omitted)

:info:destroot 4 warnings and 16 errors generated.
:info:destroot Traceback (most recent call last):
:info:destroot   File "_ssl_build.py", line 61, in <module>
:info:destroot     ffi.compile(verbose=True)
:info:destroot   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_pypy/pypy/work/pypy2.7-v7.3.6-src/lib_pypy/cffi/api.py", line 727, in compile
:info:destroot     compiler_verbose=verbose, debug=debug, **kwds)
:info:destroot   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_pypy/pypy/work/pypy2.7-v7.3.6-src/lib_pypy/cffi/recompiler.py", line 1565, in recompile
:info:destroot     compiler_verbose, debug)
:info:destroot   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_pypy/pypy/work/pypy2.7-v7.3.6-src/lib_pypy/cffi/ffiplatform.py", line 22, in compile
:info:destroot     outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
:info:destroot   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_pypy/pypy/work/pypy2.7-v7.3.6-src/lib_pypy/cffi/ffiplatform.py", line 60, in _build
:info:destroot     raise VerificationError('%s: %s' % (e.__class__.__name__, e))
:info:destroot VerificationError: CompileError: command '/usr/bin/clang' failed with exit status 1
:info:destroot Traceback (most recent call last):
:info:destroot   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_pypy/pypy/work/pypy2.7-v7.3.6-src/lib_pypy/pypy_tools/build_cffi_imports.py", line 236, in create_cffi_import_libraries
:info:destroot     raise RuntimeError('building {} failed'.format(key))
:info:destroot RuntimeError: building _ssl failed
:info:destroot * _sqlite3_build.py
:info:destroot * _audioop_build.py
:info:destroot * _curses_build.py
:info:destroot * _syslog_build.py
:info:destroot * _gdbm_build.py
:info:destroot * _pwdgrp_build.py
:info:destroot * _resource_build.py
:info:destroot !!!!!!!!!!
:info:destroot Building _ssl bindings failed.
:info:destroot                 You can either install development headers package,
:info:destroot                 add the --without-_ssl option to skip packaging this
:info:destroot                 binary CFFI extension, or say --without-cffi.
:info:destroot calling create_cffi_import_libraries with "embed_dependencies" False
:info:destroot stdout:
:info:destroot stderr:
:info:destroot Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_pypy/pypy/work/pypy2.7-v7.3.6-src/pypy/tool/release" && arch -x86_64 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_pypy/pypy/work/pypy2.7-v7.3.6-osx64/bin/pypy package.py --builddir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_pypy/pypy/work --archive-name pypy --without-_tkinter --no-embedded-dependencies 
:info:destroot Exit code: 1
:error:destroot Failed to destroot pypy: command execution failed

Attachments (1)

main.log.gz (843.5 KB) - added by greyhare 2 years ago.
main.log, gzipped

Download all attachments as: .zip

Change History (2)

Changed 2 years ago by greyhare

Attachment: main.log.gz added

main.log, gzipped

comment:1 Changed 2 years ago by danchr (Dan Villiom Podlaski Christiansen)

Resolution: fixed
Status: assignedclosed

In c8834c2ab27b139cf2d30eab9e9474f725be94d2/macports-ports (master):

pypy: handle new openssl defaults

The released version of PyPy doesn't build against OpenSSL 3. I've
applied a patch to the 3.7, while retaining OpenSSL 1.1 for the
others.

Closes: #63927

Note: See TracTickets for help on using tickets.