https://bugs.winehq.org/show_bug.cgi?id=50811
Bug ID: 50811 Summary: Bad options passed to wrc, gdi32.res not created Product: Wine-staging Version: 6.4 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: mike@cchtml.com CC: leslie_alistair@hotmail.com, z.figura12@gmail.com Distribution: ---
My 6.4 build of wine-staging is failing:
winegcc: File does not exist: dlls/gdi32/gdi32.res make: *** [Makefile:53880: dlls/gdi32/gdi32.dll] Error 2
I traced the problem to "-pthread" being added to the wrc command.
tools/wrc/wrc -u -o dlls/gdi32/gdi32.res -m64 --nostdinc --po-dir=po -Idlls/gdi32 -Iinclude -Iinclude/msvcrt \ -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 \ -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/libxml2 -D__WINESRC__ \ -pthread -D_GDI32_ -D_UCRT dlls/gdi32/gdi32.rc ... <wrc usage output here> ... tools/wrc/wrc: invalid option -- 'p' tools/wrc/wrc: invalid option -- 't'
https://bugs.winehq.org/show_bug.cgi?id=50811
--- Comment #1 from Zebediah Figura z.figura12@gmail.com --- Can you please attach config.log?
https://bugs.winehq.org/show_bug.cgi?id=50811
--- Comment #2 from Michael Cronenworth mike@cchtml.com --- Created attachment 69621 --> https://bugs.winehq.org/attachment.cgi?id=69621 wine-staging 6.4 config.log
Attaching config.log XZ compressed.
https://bugs.winehq.org/show_bug.cgi?id=50811
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Product|Wine-staging |Wine Summary|Bad options passed to wrc, |gdi32.res fails to compile |gdi32.res not created |when freetype pkg-config | |cflags contain "pthread" Component|-unknown |build-env
https://bugs.winehq.org/show_bug.cgi?id=50811
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|leslie_alistair@hotmail.com | |, z.figura12@gmail.com | Summary|gdi32.res fails to compile |gdi32.res fails to compile |when freetype pkg-config |when freetype pkg-config |cflags contain "pthread" |cflags contain "-pthread"
https://bugs.winehq.org/show_bug.cgi?id=50811
--- Comment #3 from Rafał Mużyło galtgendo@o2.pl --- I suspect the correct question here is: would you check output of 'pkg-config --cflags glib-2.0' ?
That new part comes likely from glib being built with sysprof support (more exactly - being linked with sysprof-capture static lib (as that lib is static only)).
This would have likely affected gstreamer too, but the relevant macro in configure.ac filters that out.
https://bugs.winehq.org/show_bug.cgi?id=50811
--- Comment #4 from Michael Cronenworth mike@cchtml.com --- Build chroot: Fedora Rawhide x86_64 Chroot created by mock. Wanted to state this for clarity.
[mockbuild@1f4bc314785c40cb858c7f6936ab8c07 ~]$ pkg-config --cflags glib-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread
https://bugs.winehq.org/show_bug.cgi?id=50811
--- Comment #5 from Zebediah Figura z.figura12@gmail.com --- (In reply to Rafał Mużyło from comment #3)
I suspect the correct question here is: would you check output of 'pkg-config --cflags glib-2.0' ?
That new part comes likely from glib being built with sysprof support (more exactly - being linked with sysprof-capture static lib (as that lib is static only)).
This would have likely affected gstreamer too, but the relevant macro in configure.ac filters that out.
There's no need; the failure is due to freetype CFLAGS, not glib (which we don't even link to), and config.log already shows that they contain -pthread.
It's a makedep bug, but not immediately clear to me how it should be fixed.
https://bugs.winehq.org/show_bug.cgi?id=50811
--- Comment #6 from Rafał Mużyło galtgendo@o2.pl --- This *might* actually be a bug in the upstream meson.build file, as '-pthread' is listed in Libs.private and while '-pthread' is valid for both cflags and libs, it's likely this should have been Requires.private (as it's a static lib).
https://bugs.winehq.org/show_bug.cgi?id=50811
--- Comment #7 from Rafał Mużyło galtgendo@o2.pl --- Sorry, looks like I'm wrong.
While there aren't many packages that carry '-pthread' in Cflags, there still are a few.
https://bugs.winehq.org/show_bug.cgi?id=50811
--- Comment #8 from Rafał Mużyło galtgendo@o2.pl --- Sorry, looks like I'm wrong.
While there aren't many packages that carry '-pthread' in Cflags, there still are a few.
https://bugs.winehq.org/show_bug.cgi?id=50811
--- Comment #9 from Rafał Mużyło galtgendo@o2.pl ---
the failure is due to freetype CFLAGS, not glib (which we don't even link to)
Then again, that's wrong too - pkg-config is recursive.
https://bugs.winehq.org/show_bug.cgi?id=50811
--- Comment #10 from Rafał Mużyło galtgendo@o2.pl --- To explain the earlier: we don't *link* to glib, but freetype gets flags from harfbuzz, which in turn gets flags from glib.
https://bugs.winehq.org/show_bug.cgi?id=50811
--- Comment #11 from Michael Cronenworth mike@cchtml.com --- Any luck on a solution?
I'm sure I could hack together a solution, but my free time is becoming more limited. :(
https://bugs.winehq.org/show_bug.cgi?id=50811
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |4f04994ef47b5077e13c1b770ed | |0f818f59adcd5 Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED
--- Comment #12 from Alexandre Julliard julliard@winehq.org --- It should be fixed by 4f04994ef47b5077e13c1b770ed0f818f59adcd5.
https://bugs.winehq.org/show_bug.cgi?id=50811
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #13 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 6.6.
https://bugs.winehq.org/show_bug.cgi?id=50811
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |6.0.x CC| |mstefani@winehq.org
https://bugs.winehq.org/show_bug.cgi?id=50811
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|6.0.x |---
--- Comment #14 from Michael Stefaniuc mstefani@winehq.org --- Removing the 6.0.x milestone from bug fixes included in 6.0.2.