Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 836263 - app-emulation/wine-staging-7.5 - /usr/sbin/x86_64-w64-mingw32-dlltool: dlls/winmm/libwinmm.cross.a: error reading winmm_dll_h.o: file truncated
Summary: app-emulation/wine-staging-7.5 - /usr/sbin/x86_64-w64-mingw32-dlltool: dlls/w...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Wine Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-27 08:41 UTC by Dennis Schridde
Modified: 2022-04-13 04:56 UTC (History)
3 users (show)

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


Attachments
build.log.xz (build.log.xz,138.54 KB, application/x-xz)
2022-03-27 08:42 UTC, Dennis Schridde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2022-03-27 08:41:42 UTC
tools/winebuild/winebuild -b x86_64-w64-mingw32 -w --implib -o dlls/winmm/libwinmm.delay.a --export \
  /tmp/portage/app-emulation/wine-staging-7.5/work/wine-7.5/dlls/winmm/winmm.spec
/usr/sbin/x86_64-w64-mingw32-dlltool: dlls/winmm/libwinmm.cross.a: error reading winmm_dll_h.o: file truncated
winebuild: /usr/sbin/x86_64-w64-mingw32-dlltool failed with status 1
make: *** [Makefile:394932: dlls/winmm/libwinmm.cross.a] Error 1
make: *** Waiting for unfinished jobs....
/usr/sbin/x86_64-w64-mingw32-dlltool: dlls/winmm/libwinmm.delay.a: error reading winmm_dll_t.o: No such file or directory
winebuild: /usr/sbin/x86_64-w64-mingw32-dlltool failed with status 1
make: *** [Makefile:394932: dlls/winmm/libwinmm.delay.a] Error 1


Portage 3.0.30 (python 3.9.12-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-11.2.1, glibc-2.34-r10, 5.16.17-gentoo-dist x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.16.17-gentoo-dist-x86_64-AMD_Ryzen_5_2400G_with_Radeon_Vega_Graphics-with-glibc2.34
KiB Mem:    14186516 total,    813332 free
KiB Swap:    4194300 total,   3786104 free
Timestamp of repository gentoo: Sat, 26 Mar 2022 15:45:01 +0000
Head commit of repository gentoo: 55586f41b746affb461a6854260ca00495de2984
Timestamp of repository haskell: Fri, 25 Mar 2022 20:09:20 +0000
Head commit of repository haskell: 52603afdad472122af347744512542cf698bae62

Head commit of repository local: 7bdd47691a854f5bb99f153cfb56ae06b3d789ae

sh bash 5.1_p16
ld GNU ld (Gentoo 2.38 p3) 2.38
ccache version 4.5.1 [disabled]
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.1::gentoo
dev-lang/python:           2.7.18_p15::gentoo, 3.9.12::gentoo, 3.10.4::gentoo
dev-lang/rust:             1.59.0::gentoo
dev-util/ccache:           4.5.1::gentoo
dev-util/cmake:            3.22.3::gentoo
dev-util/meson:            0.61.3::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          250.4-r1::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r1::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           13.0.1::gentoo, 14.0.0-r1::gentoo
sys-devel/gcc:             11.2.1_p20220115::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             13.0.1::gentoo
sys-devel/llvm:            13.0.1::gentoo, 14.0.0::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.16::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r10::gentoo
Repositories:

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

haskell
    location: /var/db/repos/haskell
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/haskell.git
    masters: gentoo

crossdev
    location: /var/cache/portage/crossdev
    masters: gentoo
    priority: 100

local
    location: /var/cache/portage/local
    sync-type: git
    sync-uri: https://github.com/devurandom/gentoo-overlay.git
    masters: gentoo
    priority: 1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=znver1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.8/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-pipe -O2 -march=znver1"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner"
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="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live buildsyspkg cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles ipc-sandbox merge-sync mount-sandbox 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="-O2 -pipe"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.fau.de/gentoo http://ftp.halifax.rwth-aachen.de/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6 -l4"
PKGDIR="/var/cache/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--new-compress"
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="/tmp"
SHELL="/bin/bash"
USE="7z 7zip X a52 aac aacplus aacs acl acpi activities aio alsa amd64 amr appindicator appstream aptx archive audit avahi avif ayatana bdplus blake2 blas bluetooth bluray bpf branding brotli bs2b btrfs bzip2 cairo caps cdda cddb cdio cdr celt chromaprint cjk cli clipboard color-management colord conntrack crypt cups curl d3d9 dav1d dbus declarative device-mapper dirac djvu dmabuf dri drm dts dvb dvd dvdr ed25519 editorconfig egl elf emoji encode epub evdev exif faudio fax fdk ffmpeg fftw filecaps firefox firewalld fish-completion fits flac fontconfig fontforge fortran fribidi gamepad gbm gdal gdbm geoclue geolocation gif git gles2 gles3 gmp gnome-online-accounts gnupg google googledrive gpg gps graphicsmagick graphite gstreamer gtk gtk3 gtk4 gui gzip harfbuzz hdf5 heif http2 hugepages ibus iconv icu id3tag idn imlib inotify introspection ipv6 iwd jemalloc jpeg jpeg2k json kde kms kwallet lapack latex lcms ldac libatomic libglvnd libidn2 libinput libnotify libproxy libsecret libsoxr libtirpc libvirt lm-sensors lrz lto lv2 lvm lz4 lzma lzo mad magic man mariadb markdown mbim mercurial mjpeg mng mobi modemmanager modplug mp3 mp4 mpeg mplayer mpris mtp multilib mysql ncurses netlink networkmanager nftables nls nptl numa office ofx ogg openal opencl opencv openexr opengl openh264 openmax openmp opus otf pam pango pcap pcre pcre2 pdf pgo pipewire pixman pkcs11 pkcs7 plasma pm-utils png policykit postscript ppds prison pulseaudio python qml qrcode qt5 rav1e raw rdp readline rtmp rubberband samba sasl scanner screencast sctp sdl sdl2 seccomp semantic-desktop share smartcard snappy sparse speech speex spell spice srt ssl startup-notification steamruntime stemmer svg systemd tbb teamd telemetry tga theora threads thunderbolt tiff timezone tmux tpm truetype udev udisks uinput unicode unwind upnp upnp-av upower usb utempter v4l vaapi vamp vdpau verify-sig vorbis vpx vulkan wasm wavpack wayland webp widgets wmf woff2 wps x264 x265 xattr xcb xinerama xml xrandr xv xvid xwayland xxhash xz yaml zeroconf zimg zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2020" ALSA_CARDS="hda-intel" 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" CAMERAS="ptp2" 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="joystick libinput" KERNEL="linux" L10N="de de-DE en en-GB ar fa tr ja ko zh zh-CN zh-TW" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-javascript wiki-publisher" LLVM_TARGETS="AMDGPU BPF RISCV WebAssembly" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1 lua5-4 luajit" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9 pypy3" QEMU_SOFTMMU_TARGETS="riscv32 riscv64 x86_64" QEMU_USER_TARGETS="riscv32 riscv64" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu virgl" 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:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

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

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


cross-x86_64-w64-mingw32/binutils-2.38-r1::crossdev was built with the following:
USE="gold nls pgo plugins -cet -default-gold -doc -multitarget -static-libs -test -vanilla" ABI_X86="(64)"
FEATURES="ipc-sandbox ebuild-locks compressdebug protect-owned multilib-strict qa-unresolved-soname-deps fixlafiles sandbox config-protect-if-modified fakeroot binpkg-docompress userfetch usersandbox unmerge-orphans assume-digests sfperms cgroup pid-sandbox binpkg-dostrip binpkg-logs buildsyspkg strict merge-sync mount-sandbox userpriv usersync news unknown-features-warn buildpkg-live xattr unmerge-logs parallel-fetch preserve-libs distlocks parallel-install binpkg-multi-instance network-sandbox"
Comment 1 Dennis Schridde 2022-03-27 08:42:15 UTC
Created attachment 767962 [details]
build.log.xz
Comment 2 Ionen Wolkens gentoo-dev 2022-03-27 08:53:31 UTC
Believe this happens with >=cross-*/binutils-2.38 and isn't specific to wine-staging-7.5 (can reproduce with 2.38, but built fine with 2.37 and USE=mingw)
Comment 3 Larry the Git Cow gentoo-dev 2022-03-27 14:53:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/wine.git/commit/?id=0e5e32bb29dddddb482b030f292f8e8e348588c4

commit 0e5e32bb29dddddb482b030f292f8e8e348588c4
Author:     Nick Sarnie <sarnex@gentoo.org>
AuthorDate: 2022-03-27 14:46:48 +0000
Commit:     Nick Sarnie <sarnex@gentoo.org>
CommitDate: 2022-03-27 14:49:55 +0000

    app-emulation/wine-vanilla: Add blocker
    
    Closes: https://bugs.gentoo.org/836263
    
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Nick Sarnie <sarnex@gentoo.org>

 app-emulation/wine-vanilla/wine-vanilla-7.5.ebuild  | 7 ++++---
 app-emulation/wine-vanilla/wine-vanilla-9999.ebuild | 1 +
 2 files changed, 5 insertions(+), 3 deletions(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/proj/wine.git/commit/?id=cfc506b98dcf28da64242187d1204d8b63f32cef

commit cfc506b98dcf28da64242187d1204d8b63f32cef
Author:     Nick Sarnie <sarnex@gentoo.org>
AuthorDate: 2022-03-27 14:51:39 +0000
Commit:     Nick Sarnie <sarnex@gentoo.org>
CommitDate: 2022-03-27 14:52:42 +0000

    app-emulation/wine-staging: Add blocker
    
    Bug: https://bugs.gentoo.org/836263
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Nick Sarnie <sarnex@gentoo.org>

 app-emulation/wine-staging/wine-staging-7.5.ebuild  | 7 ++++---
 app-emulation/wine-staging/wine-staging-9999.ebuild | 1 +
 2 files changed, 5 insertions(+), 3 deletions(-)
Comment 4 tt_1 2022-04-12 04:11:20 UTC
hmm, that blocker is not really helpfull in solving this issue in the longterm, as there is a bug somewhere in binutils or wine itself.

Is there an issue on the wine bugzilla yet?
Comment 5 tt_1 2022-04-12 16:59:49 UTC
most likely this: https://sourceware.org/bugzilla/show_bug.cgi?id=28885
Comment 6 Nick Sarnie gentoo-dev 2022-04-12 21:50:39 UTC
If you can reproduce the original issue with a binutils without that patch, install binutils with the patch, and the issue isnt reproducible, I'll remove the blocker
Comment 7 tt_1 2022-04-13 04:53:06 UTC
(In reply to Nick Sarnie from comment #6)
> If you can reproduce the original issue with a binutils without that patch,
> install binutils with the patch, and the issue isnt reproducible, I'll
> remove the blocker

thats impossible, I can't even bootstrap mingw64-runtimes stage1 without the patch. See https://bugs.gentoo.org/838106
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-13 04:56:17 UTC
Just wait until we add the patch then we'll see what happens? It's almost certainly it.