Bug 2171608

Summary: micropython: FTBFS in Fedora rawhide/f38
Product: [Fedora] Fedora Reporter: Fedora Release Engineering <releng>
Component: micropythonAssignee: 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-packagers-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: micropython-1.19.1-5.fc39 micropython-1.19.1-5.fc38 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-07 14:13:44 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: 2117176    

Description Fedora Release Engineering 2023-02-20 11:55:50 UTC
micropython failed to build from source in Fedora rawhide/f38

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


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Please fix micropython 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,
micropython will be orphaned. Before branching of Fedora 39,
micropython 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 Miro HronĨok 2023-02-20 12:22:48 UTC
gcc -I. -Ibuild -I.. -Wall -Werror -Wextra -Wno-unused-parameter -Wpointer-arith -std=gnu99 -DFFCONF_H=\"lib/oofatfs/ffconf.h\" -Os   -fdata-sections -ffunction-sections -fno-asynchronous-unwind-tables -c -MD -o build/main.o main.c
make: Leaving directory '/builddir/build/BUILD/micropython-1.19.1/mpy-cross'
main.c:333:6: error: conflicting types for 'mp_import_stat' due to enum/integer mismatch; have 'uint(const char *)' {aka 'unsigned int(const char *)'} [-Werror=enum-int-mismatch]
  333 | uint mp_import_stat(const char *path) {
      |      ^~~~~~~~~~~~~~
In file included from main.c:32:
../py/builtin.h:59:18: note: previous declaration of 'mp_import_stat' with type 'mp_import_stat_t(const char *)'
   59 | mp_import_stat_t mp_import_stat(const char *path);
      |                  ^~~~~~~~~~~~~~
cc1: all warnings being treated as errors

Comment 3 Fedora Update System 2023-03-07 14:12:39 UTC
FEDORA-2023-f55777d36f has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-f55777d36f

Comment 4 Fedora Update System 2023-03-07 14:13:44 UTC
FEDORA-2023-f55777d36f has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 5 Fedora Update System 2023-03-07 14:31:26 UTC
FEDORA-2023-e48992f0cc has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-e48992f0cc

Comment 6 Fedora Update System 2023-03-08 02:24:51 UTC
FEDORA-2023-e48992f0cc has been pushed to the Fedora 38 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-e48992f0cc

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

Comment 7 Fedora Update System 2023-03-11 03:15:54 UTC
FEDORA-2023-e48992f0cc has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.