Bug 2261539

Summary: pypy3.10: FTBFS in Fedora rawhide/f40
Product: [Fedora] Fedora Reporter: Fedora Release Engineering <releng>
Component: pypy3.10Assignee: Charalampos Stratakis <cstratak>
Status: CLOSED ERRATA QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: cstratak, mhroncok, python-packagers-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pypy3.10-7.3.15-2.3.10.fc41 pypy3.10-7.3.15-2.3.10.fc40 pypy3.10-7.3.15-2.3.10.fc39 pypy3.10-7.3.15-2.3.10.fc38 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-03-21 09:11:18 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:37:13 UTC
pypy3.10 failed to build from source in Fedora rawhide/f40

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


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
Please fix pypy3.10 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,
pypy3.10 will be orphaned. Before branching of Fedora 41,
pypy3.10 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:21 UTC
Created attachment 2013108 [details]
build.log

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

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

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

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

Comment 4 Charalampos Stratakis 2024-03-18 23:39:47 UTC
[platform:message] make: Leaving directory '/builddir/build/BUILD/pypy3.10-v7.3.13-src/pypy/goal/usession-pypy3-0/testing_1'
[platform:Error] data_rpython_jit_metainterp.c:39184:9: warning: ‘ftime’ is deprecated: Use gettimeofday or clock_gettime instead [-Wdeprecated-declarations]
[platform:Error] 39184 |         ftime,  /* 1600 */
[platform:Error]       |         ^~~~~
[platform:Error] In file included from singleheader.h:143:
[platform:Error] /usr/include/sys/timeb.h:29:12: note: declared here
[platform:Error]    29 | extern int ftime (struct timeb *__timebuf)
[platform:Error]       |            ^~~~~
[platform:Error] nonfuncnodes_19.c:5926:9: warning: ‘ftime’ is deprecated: Use gettimeofday or clock_gettime instead [-Wdeprecated-declarations]
[platform:Error]  5926 |         ((Signed)ftime),        /* 8 */
[platform:Error]       |         ^
[platform:Error] In file included from singleheader.h:143:
[platform:Error] /usr/include/sys/timeb.h:29:12: note: declared here
[platform:Error]    29 | extern int ftime (struct timeb *__timebuf)
[platform:Error]       |            ^~~~~
[platform:Error] implement.c: In function ‘pypy_g_dispatcher_PyObject_Vectorcall’:
[platform:Error] implement.c:10147:17: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
[platform:Error] 10147 |         l_v7921 = RPyBareItem(l_v7818, l_v7920);
[platform:Error]       |                 ^
[platform:Error] implement.c:11167:17: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
[platform:Error] 11167 |         l_v8540 = RPyBareItem(l_v7818, l_v8539);
[platform:Error]       |                 ^
[platform:Error] implement_12.c: In function ‘pypy_g_ccall_openpty__arrayPtr_arrayPtr_arrayPtr_arrayP’:
[platform:Error] implement_12.c:19148:59: error: passing argument 4 of ‘openpty’ from incompatible pointer type [-Wincompatible-pointer-types]
[platform:Error] 19148 |         l_v300867 = openpty(l_a0_395, l_a1_281, l_a2_156, l_a3_72, l_a4_38);
[platform:Error]       |                                                           ^~~~~~~
[platform:Error]       |                                                           |
[platform:Error]       |                                                           char *
[platform:Error] In file included from singleheader.h:133:
[platform:Error] /usr/include/pty.h:37:43: note: expected ‘const struct termios *’ but argument is of type ‘char *’
[platform:Error]    37 |                     const struct termios *__termp,
[platform:Error]       |                     ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
[platform:Error] implement_12.c:19148:68: error: passing argument 5 of ‘openpty’ from incompatible pointer type [-Wincompatible-pointer-types]
[platform:Error] 19148 |         l_v300867 = openpty(l_a0_395, l_a1_281, l_a2_156, l_a3_72, l_a4_38);
[platform:Error]       |                                                                    ^~~~~~~
[platform:Error]       |                                                                    |
[platform:Error]       |                                                                    char *
[platform:Error] /usr/include/pty.h:38:43: note: expected ‘const struct winsize *’ but argument is of type ‘char *’
[platform:Error]    38 |                     const struct winsize *__winp) __THROW;
[platform:Error]       |                     ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
[platform:Error] make: *** [Makefile:1000: implement_12.o] Error 1

This is due to [-Wincompatible-pointer-types] which is now enforced.

Comment 5 Charalampos Stratakis 2024-03-19 01:10:58 UTC
With the latest version the issue is reduced to:

_tkinter/tklib_cffi.c: In function ‘_cffi_d_Tcl_Merge’:
_tkinter/tklib_cffi.c:2734:24: error: passing argument 2 of ‘Tcl_Merge’ from incompatible pointer type [-Wincompatible-pointer-types]
 2734 |   return Tcl_Merge(x0, x1);
      |                        ^~
      |                        |
      |                        char **
In file included from /usr/include/tcl.h:2421,
                 from _tkinter/tklib_cffi.c:572:
/usr/include/tclDecls.h:584:66: note: expected ‘const char * const*’ but argument is of type ‘char **’
  584 | EXTERN char *           Tcl_Merge(int argc, CONST84 char *const *argv);

Comment 7 Fedora Update System 2024-03-21 09:05:50 UTC
FEDORA-2024-3243d3cbc7 (pypy3.10-7.3.15-2.3.10.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-3243d3cbc7

Comment 8 Fedora Update System 2024-03-21 09:11:18 UTC
FEDORA-2024-3243d3cbc7 (pypy3.10-7.3.15-2.3.10.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2024-03-21 10:42:56 UTC
FEDORA-2024-a76c5e8a9f (pypy3.10-7.3.15-2.3.10.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-a76c5e8a9f

Comment 10 Fedora Update System 2024-03-21 10:42:57 UTC
FEDORA-2024-abfb6ed54e (pypy3.10-7.3.15-2.3.10.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-abfb6ed54e

Comment 11 Fedora Update System 2024-03-22 02:08:56 UTC
FEDORA-2024-abfb6ed54e 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-abfb6ed54e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-abfb6ed54e

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:11:04 UTC
FEDORA-2024-ff64a01a0f 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-ff64a01a0f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-ff64a01a0f

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:54 UTC
FEDORA-2024-a76c5e8a9f 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-a76c5e8a9f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-a76c5e8a9f

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:10:11 UTC
FEDORA-2024-abfb6ed54e (pypy3.10-7.3.15-2.3.10.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:40 UTC
FEDORA-2024-a76c5e8a9f (pypy3.10-7.3.15-2.3.10.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:51 UTC
FEDORA-2024-ff64a01a0f (pypy3.10-7.3.15-2.3.10.fc38) has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.