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...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 2 votes (vote)
Assignee: Wine Maintainers
: 766764 (view as bug list)
Depends on:
Reported: 2020-12-31 13:18 UTC by Leonid Kopylov
Modified: 2021-03-03 18:07 UTC (History)
7 users (show)

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

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

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

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA google-chrome OPERA-2018 PUEL AnyDesk-TOS geekbench TeamViewer"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
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"
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"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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"
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"
Comment 1 Leonid Kopylov 2020-12-31 13:19:11 UTC
Created attachment 680428 [details]
Comment 2 Ionen Wolkens 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:

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.

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]
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]
Comment 7 Ionen Wolkens 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:

Comment 9 Tommy Holmgren 2021-01-30 10:10:19 UTC
I can confirm, its present in 6.0
Comment 10 Ionen Wolkens 2021-01-30 12:31:49 UTC
(In reply to Ionen Wolkens from comment #2)
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)
> >
> 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?