Bug 2046857

Summary: pypy: FTBFS in Fedora rawhide/f36 on 32bit arches
Product: [Fedora] Fedora Reporter: Fedora Release Engineering <releng>
Component: pypyAssignee: Python Maintainers <python-maint>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: low    
Version: 36CC: mhroncok, python-maint, python-sig, thrnciar, vstinner
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pypy-7.3.9-2.fc36 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-08 01:16:31 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: 245418, 1992484, 2046555, 2050761    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Fedora Release Engineering 2022-01-27 09:35:39 UTC
pypy failed to build from source in Fedora rawhide/f36

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


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_36_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 37,
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 2022-01-27 09:35:42 UTC
Created attachment 1856197 [details]
build.log

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

Comment 2 Fedora Release Engineering 2022-01-27 09:35:43 UTC
Created attachment 1856198 [details]
root.log

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

Comment 3 Fedora Release Engineering 2022-01-27 09:35:44 UTC
Created attachment 1856199 [details]
state.log

Comment 4 Miro Hrončok 2022-01-27 12:25:40 UTC
+ pypy2 pypy/tool/release/package.py --archive-name pypy-7.3 --builddir /builddir/build/BUILDROOT/pypy-7.3.6-3.fc36.i386//usr/lib --no-embedded-dependencies
'import site' failed
debug: OperationError:
debug:  operror-type: SyntaxError
debug:  operror-value: ("invalid syntax (expected ')')", ('/builddir/build/BUILD/pypy2.7-v7.3.6-src/lib-python/2.7/encodings/__init__.py', 38, 73, "_norm_encoding_map = ('                                              . '\n", 0))
Traceback (most recent call last):
  File "pypy/tool/release/package.py", line 404, in <module>
    retval, _ = package(*sys.argv[1:])
  File "pypy/tool/release/package.py", line 383, in package
    return create_package(basedir, options, **kwds)
  File "pypy/tool/release/package.py", line 99, in create_package
    raise OSError("Running %r failed!" % (str(pypy_c),))
OSError: Running '/builddir/build/BUILD/pypy2.7-v7.3.6-src/pypy/goal/pypy-c' failed!


I honestly have no idea what changed.

Comment 5 Miro Hrončok 2022-01-27 12:29:15 UTC
New scratchbuild using python2 as the bootstrap interpreter: https://koji.fedoraproject.org/koji/taskinfo?taskID=82005795
New scratchbuild using pypy2 as the bootstrap interpreter: https://koji.fedoraproject.org/koji/taskinfo?taskID=82005823

Comment 6 Miro Hrončok 2022-01-27 14:51:11 UTC
This only happens on 32bit arches. Using pypy/python 2 for build makes no difference (except that using python2 on armv7hl dies with MemoryError).

Comment 7 Ben Cotton 2022-02-08 20:15:50 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle.
Changing version to 36.

Comment 8 Victor Stinner 2022-03-07 09:26:00 UTC
Extract of build.log:

+ pypy2 pypy/tool/release/package.py --archive-name pypy-7.3 --builddir /builddir/build/BUILDROOT/pypy-7.3.6-3.fc36.i386//usr/lib --no-embedded-dependencies
'import site' failed
debug: OperationError:
debug:  operror-type: SyntaxError
debug:  operror-value: ("invalid syntax (expected ')')", ('/builddir/build/BUILD/pypy2.7-v7.3.6-src/lib-python/2.7/encodings/__init__.py', 38, 73, "_norm_encoding_map = ('                                              . '\n", 0))
Traceback (most recent call last):
  File "pypy/tool/release/package.py", line 404, in <module>
    retval, _ = package(*sys.argv[1:])
  File "pypy/tool/release/package.py", line 383, in package
    return create_package(basedir, options, **kwds)
  File "pypy/tool/release/package.py", line 99, in create_package
    raise OSError("Running %r failed!" % (str(pypy_c),))
OSError: Running '/builddir/build/BUILD/pypy2.7-v7.3.6-src/pypy/goal/pypy-c' failed!

Comment 9 Victor Stinner 2022-03-30 12:17:24 UTC
I reported the issue upstream: https://foss.heptapod.net/pypy/pypy/-/issues/3702

So far, nobody was available to investigate the issue.

Comment 10 Miro Hrončok 2022-03-30 17:38:42 UTC
https://src.fedoraproject.org/rpms/pypy/pull-request/26 drop ix86, the last 32bit architecture on Fedora 37.

On Fedora 36, we unfortunately still have 32bit ARM :(

Comment 11 Miro Hrončok 2022-04-13 12:09:35 UTC
32bit architectures are excluded in Fedora 37+, this now only affects Fedora 36 and hence is a low priority for Python Maint.

Comment 12 Tomáš Hrnčiar 2022-04-21 15:10:41 UTC
The following builds were made after this report was opened: pypy-7.3.9-1.fc37

Comment 13 Fedora Update System 2022-06-29 18:59:06 UTC
FEDORA-2022-ce55d01569 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-ce55d01569

Comment 14 Fedora Update System 2022-06-30 01:33:47 UTC
FEDORA-2022-ce55d01569 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-ce55d01569`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-ce55d01569

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

Comment 15 Fedora Update System 2022-07-08 01:16:31 UTC
FEDORA-2022-ce55d01569 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.