Bug 1917344 - python-cffi: FTBFS in Fedora rawhide
Summary: python-cffi: FTBFS in Fedora rawhide
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: python-cffi
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lumír Balhar
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: F34FTBFS PYTHON3.10
TreeView+ depends on / blocked
 
Reported: 2021-01-18 10:49 UTC by Tomáš Hrnčiar
Modified: 2021-01-20 10:15 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-01-20 10:14:25 UTC
Type: Bug


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2021-01-18 10:49:16 UTC
Description of problem:
Package python-cffi fails to build from source in Fedora rawhide.

Version-Release number of selected component (if applicable):
1.14.3-1.fc34

Steps to Reproduce:
koji build --scratch f34 python-cffi-1.14.3-1.fc34.src.rpm

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/python-cffi

============================= test session starts ==============================
platform linux -- Python 3.10.0a4, pytest-6.0.2, py-1.10.0, pluggy-0.13.1
rootdir: /builddir/build/BUILD/cffi-1.14.3
collected 2040 items

c/test_c.py .................................Fatal Python error: Aborted

Current thread 0x00007feeb47cd740 (most recent call first):
  File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.10/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.10/site-packages/_pytest/assertion/__init__.py", line 144 in callbinrepr
  File "/usr/lib/python3.10/site-packages/_pytest/assertion/rewrite.py", line 482 in _call_reprcompare
  File "/builddir/build/BUILD/cffi-1.14.3/c/test_c.py", line 573 in test_array_of_unknown_length_instance
  File "/usr/lib/python3.10/site-packages/_pytest/python.py", line 180 in pytest_pyfunc_call
  File "/usr/lib/python3.10/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.10/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.10/site-packages/_pytest/python.py", line 1570 in runtest
  File "/usr/lib/python3.10/site-packages/_pytest/runner.py", line 153 in pytest_runtest_call
  File "/usr/lib/python3.10/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.10/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.10/site-packages/_pytest/runner.py", line 247 in <lambda>
  File "/usr/lib/python3.10/site-packages/_pytest/runner.py", line 294 in from_call
  File "/usr/lib/python3.10/site-packages/_pytest/runner.py", line 246 in call_runtest_hook
  File "/usr/lib/python3.10/site-packages/_pytest/runner.py", line 207 in call_and_report
  File "/usr/lib/python3.10/site-packages/_pytest/runner.py", line 117 in runtestprotocol
  File "/usr/lib/python3.10/site-packages/_pytest/runner.py", line 100 in pytest_runtest_protocol
  File "/usr/lib/python3.10/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.10/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.10/site-packages/_pytest/main.py", line 321 in pytest_runtestloop
  File "/usr/lib/python3.10/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.10/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.10/site-packages/_pytest/main.py", line 296 in _main
  File "/usr/lib/python3.10/site-packages/_pytest/main.py", line 240 in wrap_session
  File "/usr/lib/python3.10/site-packages/_pytest/main.py", line 289 in pytest_cmdline_main
  File "/usr/lib/python3.10/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.10/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.10/site-packages/_pytest/config/__init__.py", line 157 in main
  File "/usr/lib/python3.10/site-packages/_pytest/config/__init__.py", line 180 in console_main
  File "/usr/lib/python3.10/site-packages/pytest/__main__.py", line 7 in <module>
  File "/usr/lib64/python3.10/runpy.py", line 87 in _run_code
  File "/usr/lib64/python3.10/runpy.py", line 197 in _run_module_as_main
/var/tmp/rpm-tmp.S6AGcv: line 32:   370 Aborted                 (core dumped) PYTHONPATH=/builddir/build/BUILDROOT/python-cffi-1.14.3-1.fc34.x86_64/usr/lib64/python3.10/site-packages /usr/bin/python3 -m pytest c/ testing/
error: Bad exit status from /var/tmp/rpm-tmp.S6AGcv (%check)

Comment 1 Miro Hrončok 2021-01-18 11:01:55 UTC
According to Koschei, this only happens on x86_64 and started with an GCC upgrade :(

Comment 2 Lumír Balhar 2021-01-20 09:17:31 UTC
I've tried to investigate it and filled: https://foss.heptapod.net/pypy/cffi/-/issues/486

It seems to me, that we can temporarily fix it if we disable compiler optimizations. How bad the idea is?

Comment 3 Lumír Balhar 2021-01-20 09:28:59 UTC
With `CFLAGS="-O0 -g" CXXFLAGS="-O0 -g" %py3_build` the package builds fine if we really need to build it quickly and unblock others.

Comment 4 Tomáš Hrnčiar 2021-01-20 09:44:58 UTC
Thank you for having a look at it Lumír. It doesn't block any other packages so I think we can wait for upstream.

Comment 5 Miro Hrončok 2021-01-20 10:14:25 UTC
gcc 11.0.0-0.15.fc34 fixed this. let's call it a temporary gcc bug.

Lumír, please close the upstream issue.

Comment 6 Miro Hrončok 2021-01-20 10:15:24 UTC
> Lumír, please close the upstream issue.

I was able to do it myself.


Note You need to log in before you can comment on or make changes to this bug.