Bug 2481005 - libdeflate: FTBFS in Fedora Rawhide due to MinGW32 linking error
Summary: libdeflate: FTBFS in Fedora Rawhide due to MinGW32 linking error
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libdeflate
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nick Black
QA Contact:
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-05-24 06:53 UTC by Ben Beasley
Modified: 2026-06-15 17:01 UTC (History)
3 users (show)

Fixed In Version: libdeflate-1.25-4.fc45
Clone Of:
Environment:
Last Closed: 2026-06-15 17:01:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ben Beasley 2026-05-24 06:53:59 UTC
Description of problem:
Package libdeflate fails to build from source in Fedora Rawhide.

Version-Release number of selected component (if applicable):
1.25-3.fc44

Steps to Reproduce:
koji build --scratch f45 libdeflate-1.25-3.fc44.src.rpm

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

[100%] Linking C executable libdeflate-gzip.exe
cd /builddir/build/BUILD/libdeflate-1.25-build/libdeflate-1.25/build_win32/programs && /usr/bin/cmake -E cmake_link_script CMakeFiles/libdeflate-gzip.dir/link.txt --verbose=1
/usr/i686-w64-mingw32/bin/ld: /usr/i686-w64-mingw32/sys-root/mingw/lib/../lib/libmsvcrt.a(lib32_libmsvcrt_extra_a-_wutime64.o): in function `wopen':
/usr/i686-w64-mingw32/sys-root/mingw/include/io.h:435:(.text+0x1f): undefined reference to `wopen'
collect2: error: ld returned 1 exit status

The first failing build is https://koschei.fedoraproject.org/build/22878944. This seems to be associated with updating the MinGW C libraries from version 13 to 14.

Comment 1 Ben Beasley 2026-05-24 06:55:04 UTC
Sandro, would you happen to have any insight into what is going wrong with the MinGW32 build here, and how it could be fixed? Thanks!

Comment 2 Sandro Mani 2026-06-12 17:47:55 UTC
Just to give some feedback here: I've tried looking into this, so far no idea what is going on unfortunately.

Comment 3 Ben Beasley 2026-06-15 11:19:23 UTC
It’s possible to work around this by no longer building the command-line tools libdeflate-gzip.exe and libdeflate-gunzip.exe, and dropping the mingw32-libdeflate-utils and mingw64-libdeflate-utils subpackages that contain them, beginning with Fedora 45. This isn’t ideal, but it keeps the problem from impacting other packages.

https://src.fedoraproject.org/rpms/libdeflate/pull-request/7

Comment 4 Fedora Update System 2026-06-15 14:24:37 UTC
FEDORA-2026-f4ba91cef3 (libdeflate-1.25-4.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-f4ba91cef3

Comment 5 Fedora Update System 2026-06-15 17:01:19 UTC
FEDORA-2026-f4ba91cef3 (libdeflate-1.25-4.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.


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