Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 762781 - app-emulation/wine-staging-5.22-r2 tools/wrc/wrc: invalid option (winegcc: File does not exist: dlls/gdi32/gdi32.res)
Summary: app-emulation/wine-staging-5.22-r2 tools/wrc/wrc: invalid option (winegcc: Fi...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Wine Maintainers
URL:
Whiteboard:
Keywords: PATCH
: 766764 794040 811183 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-12-31 13:18 UTC by Leonid Kopylov
Modified: 2022-10-22 09:11 UTC (History)
12 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.xz (build.log.xz,100.95 KB, application/x-xz)
2020-12-31 13:19 UTC, Leonid Kopylov
Details
build.log.xz (build.log.xz,89.90 KB, text/plain)
2021-01-03 15:10 UTC, Leonid Kopylov
Details
build.log.xz (build.log.xz,108.11 KB, text/plain)
2021-01-15 16:44 UTC, Leonid Kopylov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leonid Kopylov 2020-12-31 13:18:17 UTC
# emerge -pqv '=app-emulation/wine-staging-5.22-r2::gentoo'
[ebuild  N    ] app-emulation/wine-staging-5.22-r2  USE="X alsa cups dos faudio fontconfig gcrypt gecko gssapi gstreamer jpeg kerberos lcms ldap mono mp3 nls odbc opengl pcap perl png pulseaudio realtime run-exes samba sdl ssl (staging) themes threads truetype udev udisks unwind v4l xcomposite xinerama xml -capi -custom-cflags -gphoto2 -gsm -mingw -netapi -openal -opencl -osmesa -oss -pipelight -prelink -scanner (-selinux) -test -vaapi -vkd3d -vulkan" ABI_X86="32 64 (-x32)"

# emerge --info '=app-emulation/wine-staging-5.22-r2::gentoo'
Portage 3.0.12 (python 3.8.7-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-10.2.0, glibc-2.32-r6, 5.10.4-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.10.4-gentoo-x86_64-Intel-R-_Core-TM-_i7-8559U_CPU_@_2.70GHz-with-glibc2.2.5
KiB Mem:    32751048 total,  23292124 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Thu, 31 Dec 2020 11:00:01 +0000
Head commit of repository gentoo: eebc4497a89bbd84f11231ef06be92139b866fac
sh bash 5.1_p4
ld GNU ld (Gentoo 2.35.1 p2) 2.35.1
ccache version 4.1 [disabled]
app-shells/bash:          5.1_p4::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          2.7.18-r5::gentoo, 3.8.7::gentoo, 3.9.1::gentoo, 3.10.0_alpha3::gentoo
dev-util/ccache:          4.1::gentoo
dev-util/cmake:           3.19.2::gentoo
sys-apps/baselayout:      2.7-r1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.16.3-r1::gentoo
sys-devel/binutils:       2.35.1-r1::gentoo
sys-devel/gcc:            10.2.0-r5::gentoo
sys-devel/gcc-config:     2.3.2-r1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r6::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts:

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA google-chrome OPERA-2018 PUEL AnyDesk-TOS geekbench TeamViewer"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.0/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cli-php8.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
GENTOO_MIRRORS="http://mirror.isoc.org.il/pub/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aalib accessibility acl acpi addc addns ads afp alsa amd64 amr amrenc ao apache2 apng appindicator arb archive aspell audit authdaemond autoipd base bcmath bdplus benchmarks berkdb bidi bittorrent bluetooth bluray bookmarks botan box branding brotli btrfs bzip2 cacert cairo calendar ccache cdda cddb cdio cdp cdparanoia cdr cgroup-hybrid charts chromaprint chromium cli client clockdiff codec2 colord compat conch conntrack context contrib contribdnn corefonts creds cron crypt cryptsetup cscope cue cups curl daap datavis dbus declarative designer device-mapper djvu dnd dns doc dos dot doxysearch drafts dri dropbox dtrace dts dvd dvdr dynamic-loading ecm eds efi egl emacs emboss encode eolconv epspdf equalizer evo examples excel exif experimental extra extras faac faad fam fat fbcon fdk ffmpeg finger fingerprint firebird firmware flac flickr flint flite fltk fontconfig fontforge fonts fortran freetype fribidi ftp fuse games gconf gd gdbm gedit geoclue geoip geoip2 geolocation gfile gif git glade gles2 gme gmp gnome gnome-keyring gnome-online-accounts go google googledrive gopher gpg gpm graph graphics graphviz gsettings gssapi gstreamer gtk gtk-doc gtk3 gui handwriting haptic harfbuzz hddtemp hdri heif help highlight howl-compat hpn html http http2 humanities iconv icu id3tag idn image imagemagick imaging imap imlib inifile inotify intl introspection ios ipod ipv6 ipython iscsi iscsi-direct iso jadetex java javamail javascript jpeg json junction kate kdesu kerberos kernel-hooks ladspa lame lapack lapacke lastfm latex lcms ldap ldap-bind ldap-sasl ldapdb leaps-timezone libass libcaca libglvnd libkms libnotify librtmp libsamplerate libsecret libsoxr libssh libtiger libtirpc libvirt libvisual lirc live lkrn lm-sensors lmdb localstorage location log4j logrotate lua luatex lvm macosx-notifications mad maildir mailutils man math mathml matplotlib mbox md5sum mdadm mdnsresponder-compat mediawiki mediawiki-experimental memcached metalink metapost metric minizip mjpeg mms mng modplug mongodb moodbar mount mount-locking mp3 mp4 mpc mpeg mpfr mpir mplayer mpx mssql mtp mule multilib multipath musepack music mysql mysqli nas natspec nautilus nbconvert ncurses nethack netlink network-cron networkauth networkmanager nfs nfsv4 nfsv41 nftables nls notebook notification nptl nscd nsplugin ntlm oauth odbc odbcmanual offensive office offlinehelp ogg opencv openexr opengl openh264 openldap openmp openntpd opus orientation overlays pam pango parse-clocks parted pass passfile pcap pci pcre pcre16 pcre32 pdf pdfannotextractor pdfimport pdo perl phonon playlist plugins png policykit pop portaudio positioning postgres postproc ppds printsupport projectm pstricks publishers pulseaudio pwhich pyglet python qml qrcode qt5 quicktime quota radio radius rar raw rdp readline realtime recode reencrypt reiser4 reiserfs remote remotecalls rendering rpc rtc rtmp samba sample samples sasl savedconfig sbc science screencast script scripttools sctp sdjournal sdl sdl-image seccomp security-key sendto sensord sensors sftp shotwell shout skins skydrive slp smi smime smp smtp snappy sndfile snmp soap sockets softstore sound sox soxr sparse speech speex spell spice spidermonkey split-usr spoof-source sql sqlite squashfs srp srt ssh sshdump ssl sssd startup-notification stunnel sudo svg symengine symlink sync-plugin-portage syslog sysprof systemd taglib tbb tcl tcpd tdb telemetry telnet terminal tex4ht texi2html text tfshark tftp tftpd theano themes theora thetvdb threads tiff timeline tk toolame tools topal tracepath traceroute6 tracker trashquota tre truetype tty-helpers twolame udev udisks umfpack undi unicode upnp upnp-av upower usb usbredir user-session utils v4l vala valadoc vboxwebsrv vcd vhost-user-fs views vim vim-pager vim-syntax virt-network virtualbox virtualkeyboard vlc vmware vnc voices vorbis vte vtk wavpack wayland web webagg webchannel webdav webengine webkit webp webready websockets widgets wifi winbind wininst wks-server wmf wps wxwidgets x11extras x264 x265 xa xattr xcb xemacs xetex xface xfs xft xindy xine xinerama xinetd xkb xml xmlpatterns xmlreader xmlwriter xmp xpm xps xscreensaver xv xvid xwidgets yaml z3 zeroconf zip zlib zsh-completion zstd" ABI_X86="64 32" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en en-US he ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-beanshell wiki-publisher scripting-javascript" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python2_7 python3_8" RUBY_TARGETS="ruby25 ruby26 ruby27 ruby30" USERLAND="GNU" VIDEO_CARDS="intel i965 iris vmware vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Leonid Kopylov 2020-12-31 13:19:11 UTC
Created attachment 680428 [details]
build.log.xz
Comment 2 Ionen Wolkens gentoo-dev 2020-12-31 17:02:02 UTC
tools/wrc/wrc -u -o dlls/gdi32/gdi32.res [...] -pthread [...]
tools/wrc/wrc: invalid option -- 'p'
tools/wrc/wrc: invalid option -- 't'

Can't reproduce but figure this -pthread is coming from pkg-config and gdi32 has:
    EXTRAINCL = $(FREETYPE_CFLAGS) $(FONTCONFIG_CFLAGS)

What does this return for you (checking all 4 just in case):
pkg-config --cflags freetype2
pkg-config --cflags fontconfig
i686-pc-linux-gnu-pkg-config --cflags freetype2
i686-pc-linux-gnu-pkg-config --cflags fontconfig

There has been similar issues in the past with gtk3 returning -pthread and wine-staging was patching it[1], but gtk3 patchset is disabled so the patch is gone.

[1] https://github.com/wine-staging/wine-staging/blob/8dc124ce70ca7614ab17fa1cfeee32de281206b4/patches/uxtheme-GTK_Theming/0002-makefiles-Only-apply-non-include-path-EXTRAINCL-flag.patch
Comment 3 Leonid Kopylov 2021-01-03 15:09:00 UTC
have same error while installing app-emulation/wine-vanilla-5.22-r2
Comment 4 Leonid Kopylov 2021-01-03 15:10:14 UTC
Created attachment 680869 [details]
build.log.xz
Comment 5 Leonid Kopylov 2021-01-15 16:43:55 UTC
app-emulation/wine-staging-6.0 also seems to have same issue
Comment 6 Leonid Kopylov 2021-01-15 16:44:32 UTC
Created attachment 683074 [details]
build.log.xz
Comment 7 Ionen Wolkens gentoo-dev 2021-01-24 00:04:24 UTC
*** Bug 766764 has been marked as a duplicate of this bug. ***
Comment 8 Iade Gesso 2021-01-24 11:24:44 UTC
I can confirm it is a bug that is still presenti in 6.0 version: https://bugs.gentoo.org/766764


Iade
Comment 9 Tommy Holmgren 2021-01-30 10:10:19 UTC
I can confirm, its present in 6.0
Comment 10 Ionen Wolkens gentoo-dev 2021-01-30 12:31:49 UTC
(In reply to Ionen Wolkens from comment #2)
> https://github.com/wine-staging/wine-staging/blob/8dc124ce70ca7614ab17fa1cfeee32de281206b4/patches/uxtheme-GTK_Theming/0002-makefiles-Only-apply-non-include-path-EXTRAINCL-flag.patch
In case it wasn't clear, for those having problems, the formerly used upstream wine-staging patch I linked is usable as a user patch in /etc/portage/patches/app-emulation/wine-staging/ as a workaround for now.

While it was intended to fix an issue with no-longer-used GTK3 theming support, it also work for similar issues. But I still wonder in what situation this -pthread exists on others, I can only reproduce if I add -pthread to a pkgconfig file myself (like freetype2.pc's cflags), otherwise never ran into this.
Comment 11 Leonid Kopylov 2021-01-30 12:59:32 UTC
(In reply to Ionen Wolkens from comment #10)
> (In reply to Ionen Wolkens from comment #2)
> > https://github.com/wine-staging/wine-staging/blob/8dc124ce70ca7614ab17fa1cfeee32de281206b4/patches/uxtheme-GTK_Theming/0002-makefiles-Only-apply-non-include-path-EXTRAINCL-flag.patch
> In case it wasn't clear, for those having problems, the formerly used
> upstream wine-staging patch I linked is usable as a user patch in
> /etc/portage/patches/app-emulation/wine-staging/ as a workaround for now.
> 
> While it was intended to fix an issue with no-longer-used GTK3 theming
> support, it also work for similar issues. But I still wonder in what
> situation this -pthread exists on others, I can only reproduce if I add
> -pthread to a pkgconfig file myself (like freetype2.pc's cflags), otherwise
> never ran into this.

please tell me, what info can i provide, so to make thing more clear?
Comment 12 Ronny Bull 2021-03-23 21:45:35 UTC
(In reply to Ionen Wolkens from comment #10)
> (In reply to Ionen Wolkens from comment #2)
> > https://github.com/wine-staging/wine-staging/blob/8dc124ce70ca7614ab17fa1cfeee32de281206b4/patches/uxtheme-GTK_Theming/0002-makefiles-Only-apply-non-include-path-EXTRAINCL-flag.patch
> In case it wasn't clear, for those having problems, the formerly used
> upstream wine-staging patch I linked is usable as a user patch in
> /etc/portage/patches/app-emulation/wine-staging/ as a workaround for now.
> 
> While it was intended to fix an issue with no-longer-used GTK3 theming
> support, it also work for similar issues. But I still wonder in what
> situation this -pthread exists on others, I can only reproduce if I add
> -pthread to a pkgconfig file myself (like freetype2.pc's cflags), otherwise
> never ran into this.

Confirmed this patched worked for me.  I was having this issue attempting to compile the following:

app-emulation/wine-vanilla-6.0
app-emulation/wine-staging-6.1
app-emulation/wine-staging-6.2
app-emulation/wine-staging-6.3
app-emulation/wine-staging-6.4

I successfully compiled the following after using the patch:

[ebuild  N    ] app-emulation/wine-staging-6.4  USE="X alsa cups faudio fontconfig gcrypt gecko gstreamer jpeg lcms mono mp3 nls opengl perl png pulseaudio realtime run-exes sdl ssl (staging) threads truetype udev udisks unwind usb v4l vaapi vkd3d vulkan xcomposite xinerama xml -capi -custom-cflags -dos -gphoto2 -gsm -gssapi -kerberos -ldap -mingw -netapi -odbc -openal -opencl -osmesa -oss -pcap -pipelight -prelink -samba -scanner (-selinux) -test -themes" ABI_X86="32 64 (-x32)" 

Would you like to merge these packages? [Yes/No] yes
>>> Verifying ebuild manifests
>>> Running pre-merge checks for app-emulation/wine-staging-6.4
>>> Emerging (1 of 1) app-emulation/wine-staging-6.4::gentoo
>>> Installing (1 of 1) app-emulation/wine-staging-6.4::gentoo
>>> Recording app-emulation/wine-staging in "world" favorites file...
>>> Jobs: 1 of 1 complete                           Load avg: 3.23, 5.78, 5.17

 * Messages for package app-emulation/wine-staging-6.4:

 * Applying the Wine-Staging patchset. Any bug reports to the
 * Wine bugzilla should explicitly state that staging was used.
 * User patches applied.
Comment 13 Daniel Wagener 2021-06-05 08:12:40 UTC
*** Bug 794040 has been marked as a duplicate of this bug. ***
Comment 14 Ionen Wolkens gentoo-dev 2021-08-31 05:59:22 UTC
*** Bug 811183 has been marked as a duplicate of this bug. ***
Comment 15 Bob Johnson 2021-08-31 17:58:59 UTC
# pkg-config --cflags freetype2 ; echo ; echo ; pkg-config --cflags fontconfig ; echo ; echo ; i686-pc-linux-gnu-pkg-config --cflags freetype2 ; echo ; echo ; i686-pc-linux-gnu-pkg-config --cflags fontconfig

-I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread 


-I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/uuid 


-I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread 


-I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/uuid 

# emerge --info app-emulation/wine-vanilla                           
Portage 3.0.20 (python 3.9.6-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-10.3.0, glibc-2.33-r1, 5.10.61-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.10.61-gentoo-x86_64-AMD_Ryzen_9_3950X_16-Core_Processor-with-glibc2.33
KiB Mem:    65795264 total,  50750404 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Tue, 31 Aug 2021 15:45:01 +0000
Head commit of repository gentoo: 569f3195b2895a0cd5e098570942c5c0fb25653c
sh bash 5.1_p8
ld GNU ld (Gentoo 2.36.1 p5) 2.36.1
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.34.0::gentoo
dev-lang/python:          2.7.18_p11::gentoo, 3.8.11::gentoo, 3.9.6_p1::gentoo
dev-lang/rust:            1.53.0::gentoo
dev-util/cmake:           3.20.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.43.5::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.36.1-r2::gentoo
sys-devel/gcc:            10.3.0-r2::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r1::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.namerica.gentoo.org/gentoo-portage/
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 

local
    location: /usr/local/portage
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=8 --load-average=32"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs cgroup collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="--jobs=32 --load-average=35"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi activities alsa amd64 apache2 bluetooth branding bzip2 cairo cdda cdr cli colord crypt cups curl dbus declarative doc dri dts dvd dvdr elogind emboss encode examples exif flac fontconfig fortran gcj gd gdbm gif gtk gtk-doc gui handbook iconv icu ipv6 jack java jbig jpeg kde kipi kpathsea kwallet lcms libglvnd libnotify libtirpc lzma mad mbox mng mp3 mp4 mpeg multilib ncurses nls nptl odbc ogg openexr opengl openmp pam pango pcre pdf plasma png policykit postgres ppds qml qt5 readline screencast sdl seccomp semantic-desktop source spell split-usr ssl startup-notification svg t1lib tcpd threads tiff truetype udev udisks unicode upower usb vim-syntax vorbis webp widgets wxwidgets x264 xattr xcb xinerama xml xpm xv xvid zlib" ABI_X86="64 32" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers http2 ident imagemap include info lbmethod_byrequests log_config log_forensic logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http proxy_http2 rewrite setenvif slotmem_shm socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput wacom joystick" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver wiki-publisher" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" SANE_BACKENDS="epson2" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi fbdev vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS

=================================================================
                        Package Settings
=================================================================

app-emulation/wine-vanilla-6.0.1::gentoo was built with the following:
USE="X alsa cups dos faudio fontconfig gecko jpeg lcms mono mp3 nls odbc openal opencl opengl perl png realtime run-exes samba sdl ssl threads truetype udev udisks unwind usb vkd3d vulkan xcomposite xinerama xml -capi -custom-cflags -gphoto2 -gsm -gssapi -gstreamer -kerberos -ldap -mingw -netapi -osmesa -oss -pcap -prelink -pulseaudio -scanner (-selinux) -test -v4l" ABI_X86="32 64 (-x32)"
FEATURES="parallel-install protect-owned preserve-libs parallel-fetch strict unmerge-orphans binpkg-logs fixlafiles network-sandbox sandbox userfetch unknown-features-warn cgroup config-protect-if-modified userpriv usersandbox merge-sync collision-protect qa-unresolved-soname-deps binpkg-dostrip distlocks multilib-strict pid-sandbox ipc-sandbox usersync xattr news sfperms assume-digests unmerge-logs ebuild-locks binpkg-docompress"


The patch worked for me also.
Comment 16 Ben 2021-09-25 21:15:30 UTC
Just wanted to add that app-emulation/wine-vanilla-6.0.1 failed the same way as this for me just now, so it looks like it's not only wine-staging at least anymore.

I haven't tried the patch but suspect it will work fine based on all the diagnostic output I've seen.

[build.log]

...
tools/wrc/wrc -u -o dlls/gdi32/gdi32.res --nostdinc --po-dir=po -Idlls/gdi32 \
  -I/sda7/tmp/portage/app-emulation/wine-vanilla-6.0.1/work/wine-6.0.1/dlls/gdi32 -Iinclude \
  -I/sda7/tmp/portage/app-emulation/wine-vanilla-6.0.1/work/wine-6.0.1/include \
  -I/sda7/tmp/portage/app-emulation/wine-vanilla-6.0.1/work/wine-6.0.1/include/msvcrt \
  -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 \
  -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/uuid -D__WINESRC__ -pthread \
  -D_GDI32_ -D_UCRT \
  /sda7/tmp/portage/app-emulation/wine-vanilla-6.0.1/work/wine-6.0.1/dlls/gdi32/gdi32.rc
tools/wrc/wrc: invalid option -- 'p'
tools/wrc/wrc: invalid option -- 't'
Usage: wrc [options...] [infile[.rc|.res]]
...
Comment 17 cono 2021-09-28 09:11:20 UTC
Same issue here for 6.0.1

pkg-config returns `-pthread` as discussed in the topic:

```
➜  wine-vanilla pkg-config --cflags freetype2                     
-I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread
```
Comment 18 cono 2021-09-28 15:41:54 UTC
Putting patch into user patch folder actually fixes issue too:

```
/etc/portage/patches/app-emulation/wine-vanilla/0002-makefiles-Only-apply-non-include-path-EXTRAINCL-flag.patch
```
Comment 19 Ionen Wolkens gentoo-dev 2022-10-22 09:11:36 UTC
I think(?) this is obsolete, I tried to reproduce again like I did back on comment #10 but it seems fine with wine-* >=7 (either got fixed in 7 or I'm overlooking something).

Still don't know where this -pthread was really coming from though, could only ever reproduce by adding the -pthread manually to .pc files and afaik most users weren't hitting it.

Either way, please open a new bug if this happen again and can will look further then.