[Bug 58191] New: dwrite tests fail to compile with mingw-gcc 15 due to attempt to link to truncf
http://bugs.winehq.org/show_bug.cgi?id=58191 Bug ID: 58191 Summary: dwrite tests fail to compile with mingw-gcc 15 due to attempt to link to truncf Product: Wine Version: 10.6 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: dwrite Assignee: wine-bugs(a)winehq.org Reporter: stefan(a)codeweavers.com Distribution: --- Since my system updated mingw to gcc 15.1, Wine fails to build: /usr/libexec/gcc/x86_64-w64-mingw32/ld: dlls/dwrite/tests/x86_64-windows/layout.o: in function `test_pixelsnapping': /home/stefan/build/_wine64/../../src/wine/dlls/dwrite/tests/layout.c:4782:(.text$test_pixelsnapping+0x312): undefined reference to `truncf' $ x86_64-w64-mingw32-gcc --version x86_64-w64-mingw32-gcc (Gentoo 15.1.0 p55) 15.1.0 Windows 11's msvcrt.dll indeed does not export trunc(), truncf() or truncl(), although ucrtbase.dll does. So adding the exports to our msvcrt would fix the build but break running the tests on Windows. The line in question doesn't call truncf. It calls floor(), which newer gcc apparently lowers to truncf. Building the file in question with -O0 of -fno-builtin-floor fixes the problem. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58191 Zeckma <zeckma.tech(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zeckma.tech(a)gmail.com --- Comment #1 from Zeckma <zeckma.tech(a)gmail.com> --- I have been doing testing with GCC-15 and I can confirm the same errors. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58191 --- Comment #2 from Zeckma <zeckma.tech(a)gmail.com> --- Should also be said that if those who are reading this thread want to compile Wine right now and don't care about regression tests, passing --disable-tests to ./configure also gets around the issue. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58191 Stefan Dösinger <stefan(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |ed66bd5c97ecc17c42a4942dafa | |c7d406c1e5120 Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #3 from Stefan Dösinger <stefan(a)codeweavers.com> --- This should be fixed by commit ed66bd5c97ecc17c42a4942dafac7d406c1e5120. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58191 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #4 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 10.8. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla