https://bugs.winehq.org/show_bug.cgi?id=53756
Bug ID: 53756 Summary: configure fails in 32-bit gcc checking pthread_create using -Wl,--disable-stdcall-fixup Product: Wine Version: 7.17 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: critical Priority: P2 Component: build-env Assignee: wine-bugs@winehq.org Reporter: zakarjor@yahoo.com Distribution: ---
in 32-bit wine build, ./configure fails with the following message:
checking for pthread_create in -lpthread... no configure: error: pthread 32-bit develment files not found. Wine cannot support threads without libpthread. Use the --without-pthread option if you really want this.
Checking config.log, the problem seems to be related to a second test of -Wl,--disable-stdcall-fixup for cross-compiler, which sets CFLAGS with that argument, and pthread test uses gcc that doesn't have that flag.
in case $host_cpu in *i[3456]86*), it checks -Wl,--disable-std-call-fixup and since gcc doesn't have it, CFLAGS is not changed, but further down, when it tests the same flag for cross-compiler, since 32-bit mingw gcc has that flag, CCFLAGS now appends that flag.
Eventually when pthread_create is tested using gcc with CFLAGS containing the unknown flag for gcc, it fails to compile, and wrongly says it couldn't find pthread_create.
This works for case x86_64 since no such flag test exists.
This looks like a regression by changes in https://gitlab.winehq.org/wine/wine/-/commit/8b7baa1128d974b6b9e4fc49853242e...
https://bugs.winehq.org/show_bug.cgi?id=53756
Zachary J zakarjor@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|7.17 |7.18
https://bugs.winehq.org/show_bug.cgi?id=53756
--- Comment #1 from Alexandre Julliard julliard@winehq.org --- Could you please attach the full config.log?
https://bugs.winehq.org/show_bug.cgi?id=53756
edpil02 edpil02@orange.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |edpil02@orange.fr
--- Comment #2 from edpil02 edpil02@orange.fr --- Same issue for me.
Reverse the patch resolves the i686 build.
https://bugs.winehq.org/show_bug.cgi?id=53756
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, regression, | |source Regression SHA1| |8b7baa1128d974b6b9e4fc49853 | |242e50d96c940 CC| |imwellcushtymelike@gmail.co | |m
https://bugs.winehq.org/show_bug.cgi?id=53756
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Hopefully fixed, please retest.
https://bugs.winehq.org/show_bug.cgi?id=53756
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #4 from Alexandre Julliard julliard@winehq.org --- Assuming fixed, please reopen if you can still reproduce.
https://bugs.winehq.org/show_bug.cgi?id=53756
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 8.0-rc2.