Bug 2261538

Summary: pypy: FTBFS in Fedora rawhide/f40
Product: [Fedora] Fedora Reporter: Fedora Release Engineering <releng>
Component: pypyAssignee: Charalampos Stratakis <cstratak>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: cstratak, mhroncok, python-maint, python-packagers-sig, thrnciar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pypy-7.3.15-2.fc41 pypy-7.3.15-2.fc40 pypy-7.3.15-2.fc39 pypy-7.3.15-2.fc38 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-03-20 23:38:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2231791    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Fedora Release Engineering 2024-01-29 21:36:54 UTC
pypy failed to build from source in Fedora rawhide/f40

https://koji.fedoraproject.org/koji/taskinfo?taskID=112376410


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
Please fix pypy at your earliest convenience and set the bug's status to
ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks,
pypy will be orphaned. Before branching of Fedora 41,
pypy will be retired, if it still fails to build.

For more details on the FTBFS policy, please visit:
https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/

Comment 1 Fedora Release Engineering 2024-01-29 21:37:02 UTC
Created attachment 2013105 [details]
build.log

file build.log too big, will only attach last 32768 bytes

Comment 2 Fedora Release Engineering 2024-01-29 21:37:07 UTC
Created attachment 2013106 [details]
root.log

file root.log too big, will only attach last 32768 bytes

Comment 3 Fedora Release Engineering 2024-01-29 21:37:10 UTC
Created attachment 2013107 [details]
state.log

Comment 4 Charalampos Stratakis 2024-03-18 22:01:35 UTC
Version 7.3.15 fails with:

+ pypy2 pypy/tool/release/package.py --archive-name pypy-7.3 --builddir /builddir/build/BUILDROOT/pypy-7.3.15-1.fc41.x86_64//usr/lib64 --no-embedded-dependencies
*  _pypy_util_cffi_inner already built
*  _ssl already built
*  sqlite3 already built
*  audioop already built
*  _tkinter already built
*  curses already built
*  syslog already built
* _gdbm_build.py
/builddir/build/BUILD/pypy2.7-v7.3.15-src/lib_pypy/cffi/cparser.py:165: UserWarning: Global variable 'gdbm_errno' in cdef(): for consistency with C it should have a storage class specifier (usually 'extern')
  "(usually 'extern')" % (decl.name,))
_gdbm_cffi.c: In function ‘_cffi_d_gdbm_open’:
_gdbm_cffi.c:965:36: error: passing argument 5 of ‘gdbm_open’ from incompatible pointer type [-Wincompatible-pointer-types]
  965 |   return gdbm_open(x0, x1, x2, x3, x4);
      |                                    ^~
      |                                    |
      |                                    void (*)(void)
In file included from _gdbm_cffi.c:571:
/usr/include/gdbm.h:127:29: note: expected ‘void (*)(const char *)’ but argument is of type ‘void (*)(void)’
  127 |                             void (*)(const char *));
      |                             ^~~~~~~~~~~~~~~~~~~~~~
_gdbm_cffi.c: In function ‘_cffi_d_gdbm_strerror’:
_gdbm_cffi.c:1132:10: warning: return discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
 1132 |   return gdbm_strerror(x0);
      |          ^~~~~~~~~~~~~~~~~
Traceback (most recent call last):
  File "_gdbm_build.py", line 65, in <module>
    ffi.compile()
  File "/builddir/build/BUILD/pypy2.7-v7.3.15-src/lib_pypy/cffi/api.py", line 727, in compile
    compiler_verbose=verbose, debug=debug, **kwds)
  File "/builddir/build/BUILD/pypy2.7-v7.3.15-src/lib_pypy/cffi/recompiler.py", line 1565, in recompile
    compiler_verbose, debug)
  File "/builddir/build/BUILD/pypy2.7-v7.3.15-src/lib_pypy/cffi/ffiplatform.py", line 22, in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
  File "/builddir/build/BUILD/pypy2.7-v7.3.15-src/lib_pypy/cffi/ffiplatform.py", line 58, in _build
    raise VerificationError('%s: %s' % (e.__class__.__name__, e))
VerificationError: CompileError: command 'gcc' failed with exit status 1
Traceback (most recent call last):
  File "/builddir/build/BUILD/pypy2.7-v7.3.15-src/lib_pypy/pypy_tools/build_cffi_imports.py", line 238, in create_cffi_import_libraries
    raise RuntimeError('building {} failed'.format(key))
RuntimeError: building gdbm failed
*  grp already built
*  resource already built
!!!!!!!!!!
Building gdbm bindings failed.
                You can either install development headers package,
                add the --without-gdbm option to skip packaging this
                binary CFFI extension, or say --without-cffi.
calling create_cffi_import_libraries with "embed_dependencies" False

Comment 6 Fedora Update System 2024-03-20 23:28:07 UTC
FEDORA-2024-ca645cef20 (pypy-7.3.15-2.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-ca645cef20

Comment 7 Fedora Update System 2024-03-20 23:38:21 UTC
FEDORA-2024-ca645cef20 (pypy-7.3.15-2.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2024-03-21 07:18:47 UTC
FEDORA-2024-2fdcfdf879 (pypy-7.3.15-2.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-2fdcfdf879

Comment 9 Fedora Update System 2024-03-21 07:18:48 UTC
FEDORA-2024-1a9d44c975 (pypy-7.3.15-2.fc38) has been submitted as an update to Fedora 38.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-1a9d44c975

Comment 10 Fedora Update System 2024-03-21 07:18:49 UTC
FEDORA-2024-e514dc9fec (pypy-7.3.15-2.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-e514dc9fec

Comment 11 Fedora Update System 2024-03-22 02:08:39 UTC
FEDORA-2024-2fdcfdf879 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-2fdcfdf879`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-2fdcfdf879

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2024-03-22 02:10:48 UTC
FEDORA-2024-1a9d44c975 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-1a9d44c975`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-1a9d44c975

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 13 Fedora Update System 2024-03-22 02:34:41 UTC
FEDORA-2024-e514dc9fec has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-e514dc9fec`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-e514dc9fec

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 14 Fedora Update System 2024-03-29 04:09:32 UTC
FEDORA-2024-2fdcfdf879 (pypy-7.3.15-2.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 15 Fedora Update System 2024-03-30 01:08:29 UTC
FEDORA-2024-e514dc9fec (pypy-7.3.15-2.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 16 Fedora Update System 2024-03-30 01:43:40 UTC
FEDORA-2024-1a9d44c975 (pypy-7.3.15-2.fc38) has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.