Created attachment 647452 [details] /var/log/portage/app-emulation:gallium-nine-standalone-0.5:20200703-083412.log Apparently it tries to link to the wrong library. FAILED: d3d9-nine/d3d9-nine.dll.so winegcc -o d3d9-nine/d3d9-nine.dll.so d3d9-nine/version.res 'd3d9-nine/97cc0d2@@d3d9-nine.dll@sha/backend.c.o' 'd3d9-nine/97cc0d2@@d3d9-nine.dll@sha/d3d9_main.c.o' 'd3d9-nine/97cc0d2@@d3d9-nine.dll@sha/d3dadapter9.c.o' 'd3d9-nine/97cc0d2@@d3d9-nine.dll@sha/device_wrap.c.o' 'd3d9-nine/97cc0d2@@d3d9-nine.dll@sha/dri2.c.o' 'd3d9-nine/97cc0d2@@d3d9-nine.dll@sha/dri3.c.o' 'd3d9-nine/97cc0d2@@d3d9-nine.dll@sha/present.c.o' 'd3d9-nine/97cc0d2@@d3d9-nine.dll@sha/shader_validator.c.o' 'd3d9-nine/97cc0d2@@d3d9-nine.dll@sha/wndproc.c.o' 'd3d9-nine/97cc0d2@@d3d9-nine.dll@sha/xcb_present.c.o' ../wine-nine-standalone-0.5/d3d9-nine/d3d9.spec -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,d3d9-nine.dll.so -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -m32 -mwindows common/libd3d9common.a -ldl /usr/lib64/libX11.so /usr/lib64/libX11-xcb.so /usr/lib64/libxcb.so /usr/lib64/libxcb-dri3.so /usr/lib64/libxcb-present.so /usr/lib64/libxcb-xfixes.so -ldxguid -luuid -ladvapi32 -luser32 -Wl,--end-group '-Wl,-rpath,$ORIGIN/../common:/usr/lib64' -Wl,-rpath-link,/tmp/portage/app-emulation/gallium-nine-standalone-0.5/work/wine-nine-standalone-0.5-abi_x86_32.x86/common -Wl,-rpath-link,/usr/lib64 /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libX11.so: error adding symbols: file in wrong format collect2: error: ld returned 1 exit status winegcc: /usr/bin/x86_64-pc-linux-gnu-gcc-9.3.0 failed
Portage 2.3.100 (python 3.9.0-beta-3, default/linux/amd64/17.1/desktop, gcc-9.3.0, glibc-2.31-r5, 5.7.5 x86_64) ================================================================= System uname: Linux-5.7.5-x86_64-AMD_Ryzen_5_3600_6-Core_Processor-with-glibc2.31 KiB Mem: 32896740 total, 18253744 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Fri, 03 Jul 2020 06:05:24 +0000 Head commit of repository gentoo: 18094529d53bd00036afe9e0b87578fdfb5d0876 sh bash 5.0_p17 ld GNU ld (Gentoo 2.34 p4) 2.34.0 distcc 3.3.3 x86_64-pc-linux-gnu [disabled] ccache version 3.7.10 [disabled] app-shells/bash: 5.0_p17::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.30.3-r1::gentoo dev-lang/python: 2.7.18::gentoo, 3.6.10-r2::gentoo, 3.7.8::gentoo, 3.8.3::gentoo, 3.9.0_beta3::gentoo dev-util/ccache: 3.7.10::gentoo dev-util/cmake: 3.17.3::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/sandbox: 2.20::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.13.4-r2::gentoo, 1.15.1-r2::gentoo, 1.16.2::gentoo sys-devel/binutils: 2.34-r1::gentoo sys-devel/gcc: 9.3.0-r1::gentoo, 10.1.0-r1::gentoo sys-devel/gcc-config: 2.3.1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.7::gentoo (virtual/os-headers) sys-libs/glibc: 2.31-r5::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo.git priority: -1000 sync-git-verify-commit-signature: true python location: /home/mgorny/git/python masters: gentoo mgorny location: /home/mgorny/git/mgorny-repo masters: gentoo priority: 10000 Installed sets: @mg_depends_cb_agent ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="CC-SA-1.0 BitstreamVera vlgothic UbuntuFontLicense-1.0 man-pages-posix LDP-1a mplus-fonts myspell-en_CA-KevinAtkinson CC-BY-SA-1.0 quake1-textures CC-PD Texinfo-manual BAEKMUK LDP-1 MaxMind2 man-pages wxWinFDL-3 man-pages-posix-2013 IPAfont CC-BY-3.0 FDL-1.2 FDL-1.1+ CC-BY-SA-4.0 OFL CC-BY-SA-2.5 CC-BY-SA-2.0 CC-BY-2.5 FDL-1.3+ GPL-1+ FDL-1.3 GPL-2+ CC-BY-4.0 GPL-3+ FDL-1.2+ GPL-1 GPL-3 OFL-1.1 GPL-2 CC-BY-2.0 OPL CC-BY-SA-3.0 Arphic FDL-1.1 FreeArt CDDL APSL-2 Apache-2.0 IPAfont HPND ISC Watcom-1.0 ZLIB MPL-2.0 LPPL-1.3c CNRI AGPL-3 BSD-2 AFL-3.0 CPL-1.0 EUPL-1.1 IBM GPL-1+ PHP-3 Apache-1.1 NOSA LGPL-3+ PSF-2 UoI-NCSA Artistic ZPL GPL-2+ POSTGRESQL Artistic-2 GPL-3+ LGPL-2.1+ MPL-1.0 MIT EPL-1.0 OSL-2.1 GPL-3 LGPL-2+ EPL-2.0 OFL-1.1 ECL-2.0 APL-1.0 AGPL-3+ BSD QPL LGPL-2.1 GPL-2 W3C nethack CPAL-1.0 Boost-1.0 Ms-PL wxWinLL-3 Sleepycat MPL-1.1 PHP-3.01 LGPL-3 CDDL AFL-2.1 APSL-2 Zend-2.0 OSL-2.0 QPL-1.0 CNRI EUPL-1.1 AFL-3.0 CPL-1.0 IBM Apache-1.1 OSL-1.1 gnuplot MPL-1.0 EPL-1.0 OSL-2.1 FraunhoferFDK BSD-4 LPPL-1.2 EPL-2.0 GPL-3+-with-opencl-exception Apache-2.0 UPX-exception HPND IJG Clear-BSD ISC GPL-2+-with-openssl-exception public-domain Ruby-BSD Transmission-OpenSSL-exception Unlicense ZLIB GPL-2-with-classpath-exception LGPL-2-with-linking-exception libstdc++ qwt MPL-2.0 AGPL-3 BSD-2 gcc-runtime-library-exception-3.1 CC0-1.0 LGPL-3 PSF-2 GPL-1+ GPL-2-with-MySQL-FLOSS-exception LGPL-3-with-linking-exception tanuki-community LGPL-3+ UoI-NCSA wxWinLL-3.1 GPL-3+-with-cuda-exception ZPL Ruby CeCILL-2 GPL-2+ GPL-3+-with-opencl-openssl-exception Artistic-2 GPL-3+ LGPL-2.1+ GPL-2-with-linking-exception LGPL-2 LGPL-2.1-with-linking-exception MIT GPL-3 GPL-1 LGPL-2+ GPL-3-with-openssl-exception OPENLDAP FTL GPL-3+-with-cuda-openssl-exception PSF-2.2 ECL-2.0 BSD AGPL-3+ PYTHON LGPL-2.1 GPL-2 W3C Apache-2.0-with-LLVM-exceptions PSF-2.4 SGI-B-2.0 metapackage GPL-2-with-font-exception Nokia-Qt-LGPL-Exception-1.1 unicode PSF-2.3 WTFPL-2 Boost-1.0 Sleepycat GPL-3-with-font-exception vim libgcc Clarified-Artistic GPL-2-with-exceptions Apache-1.0 QPL CPAL-1.0 openssl Ms-PL NPL-1.1 MPL-1.1 PHP-3.01 Allegro PCRE Time-Format lsof BZIP2 inner-net JNIC Emacs shrimp Interbase-1.0 ElementTree CAOSL netcat BSD-with-disclosure boehm-gc CRACKLIB sash TeX File-MMagic URT LambdaMOO scanlogd pngnq BSD-with-attribution PHP-2.02 ipadic Sendmail wm2 matplotlib torque-2.5 rc DUMB-0.9.3 Old-MIT UCAR-Unidata libpng2 BEER-WARE Info-ZIP AIFFWriter.m totd the-Click-license CPL-0.5 Subversion Openwall FLTK Princeton ErlPL-1.1 regexp-UofT bea.ri.jsr173 tm-align gd psutils htmlc Flashpix LLVM-Grant Snd HTML-Tidy perforce rwpng FLEX tablelist RSA gsm Sympow-BSD SSLeay CDDL-Schily w3m tcp_wrappers_license AMPAS ipx-utils mpich2 XC Mini-XML FVWM tcltk Sendmail-Open-Source libtiff otter dom4j par docbook freetts LPPL-1.3 Time-modules Khronos-CLHPP eGenixPublic-1.1 repoze symlinks sdlsasteroids iASL MIT-with-advertising Xdebug FastCGI x2x mm buddy Crypt-IDEA VTK BSD-1 flexmock SMAIL feh ZSH rdisc IDPL icu alternate CDDL-1.1 imagemagick xboing xbatt LPPL-1.3b pngcrush JDOM Toyoda minpack JOVE TeX-other-free CeCILL-C LIBGLOSS ngrep bufexplorer.vim libmng SVFL canfep CMake Ispell xtrs libpng NCSA-HDF openafs-krb5-a photopc NEWLIB curl DES -AGPL-3 -AGPL-3+" CBUILD="x86_64-pc-linux-gnu" CC="x86_64-pc-linux-gnu-gcc-9.3.0" CFLAGS="-march=znver2 --param l1-cache-size=32 --param l1-cache-line-size=64 -O2 -pipe -frecord-gcc-switches" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/qmail/alias /var/qmail/control" 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" CXX="x86_64-pc-linux-gnu-g++-9.3.0" CXXFLAGS="-march=znver2 --param l1-cache-size=32 --param l1-cache-line-size=64 -O2 -pipe -frecord-gcc-switches" DISTDIR="/tmp/dist" EMERGE_DEFAULT_OPTS="--with-bdeps y --ask --keep-going --quiet-build=n --dynamic-deps=n --autounmask=n" ENV_UNSET="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=znver2 --param l1-cache-size=32 --param l1-cache-line-size=64 -O2 -pipe -frecord-gcc-switches" FEATURES="assume-digests binpkg-logs binpkg-multi-instance buildpkg cgroup collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync mount-sandbox multilib-strict news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-march=znver2 --param l1-cache-size=32 --param l1-cache-line-size=64 -O2 -pipe -frecord-gcc-switches" GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/ http://gentoo.mirror.web4u.cz/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://ftp.vectranet.pl/gentoo/ http://ftp.fi.muni.cz/pub/linux/gentoo/" INSTALL_MASK="/test /usr/share/locale -/usr/share/locale/pl" LANG="pl_PL.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0" MAKEOPTS="-j12" PKGDIR="/var/cache/binpkg" PORTAGE_BINHOST=" https://dev.gentoo.org/~mgorny/binpkg/amd64/pypy https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel" PORTAGE_COMPRESS="lzip" PORTAGE_COMPRESS_FLAGS="-9" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --times --compress --force --whole-file --delete --stats --timeout=45 --exclude=/distfiles --exclude=/packages --exclude=/local --exclude=CVS --exclude=/metadata/cache --omit-dir-times" PORTAGE_TMPDIR="/tmp" USE="3dnow 3dnowext X a52 aac acl adns aio alsa amd64 ayatana bash-completion bluetooth branding btrfs bzip2 cairo caps cdda cdr cli crypt cups curl dbus djvu dri dts dvb dvd dvdr egl emboss exif fftw flac fontconfig fortran gd gif glamor gmp gnuplot gnutls gphoto2 gstreamer gtk iconv icu idn ipv6 jpeg jpeg2k kate latex lcms libass libatomic liblockfile libnotify libproxy libsamplerate libsecret libtiger libtirpc linguas_pl lz4 lzma lzo mad mmap mmxext mng mp3 mp4 mpeg mtp multilib ncurses nls nptl ogg openal opengl openmp openvg opus osmesa pam pango pch pcre pcre-jit pdf plotutils png policykit postscript ppds pulseaudio qt3support qt5 readline sctp sdl seccomp slang smp sndfile speex spell split-usr sse3 ssl startup-notification svg systemd t1lib tcpd threads tiff truetype udev udisks unicode upower usb v4l2 vaapi vhosts vim-syntax vorbis wavpack wayland webp wmf wxwidgets x264 xattr xcb xft xml xpm xv xvid xvmc zeroconf zlib zstd" ABI_X86="64 32" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel emu10k1 mpu401 pcsp virmidi" APACHE2_MODULES="socache_shmcb unixd actions alias deflate filter mime mime_magic negotiation rewrite" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt sha 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" INPUT_DEVICES="libinput" KERNEL="linux" L10N="pl" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LIRC_DEVICES="serial" LLVM_TARGETS="*" NGINX_MODULES_HTTP="gzip limit_conn limit_req rewrite spdy uwsgi" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python2_7 python3_7 *" QEMU_SOFTMMU_TARGETS="aarch64 arm i386 ppc ppc64 ppc64abi32 x86_64" QEMU_USER_TARGETS="aarch64 arm ppc ppc64" RUBY_TARGETS="ruby25 *" SANE_BACKENDS="artec_eplus48u test" USERLAND="GNU" VIDEO_CARDS="nouveau radeon vesa r600 s3" 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: CPPFLAGS, CTARGET, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS
This might be specific to the 17.1 profile. I never did get around to migrating. Yeah, I know I really should... :|
I think I've installed it on 17.1 previously. Besides, that'd be really weird that 32-bit install stopped working, it usually breaks stuff the other way around.
On my system: /usr/bin/x86_64-pc-linux-gnu-ld: error: d3d9-nine/97cc0d2@@d3d9-nine.dll@sha/shader_validator.c.o: multiple definition of 'IDirect3DShaderValidator9Vtbl' /usr/bin/x86_64-pc-linux-gnu-ld: d3d9-nine/97cc0d2@@d3d9-nine.dll@sha/d3d9_main.c.o: previous definition here winebuild: /usr/bin/x86_64-pc-linux-gnu-ld failed with status 1 winegcc: /usr/lib/wine-staging-5.12/bin/winebuild failed
(In reply to James Le Cuirot from comment #2) > This might be specific to the 17.1 profile. I never did get around to > migrating. Yeah, I know I really should... :| I'm on 17.0 and have the issue as well.
(In reply to Jan Psota from comment #4) > On my system: > /usr/bin/x86_64-pc-linux-gnu-ld: error: > d3d9-nine/97cc0d2@@d3d9-nine.dll@sha/shader_validator.c.o: multiple > definition of 'IDirect3DShaderValidator9Vtbl' > /usr/bin/x86_64-pc-linux-gnu-ld: > d3d9-nine/97cc0d2@@d3d9-nine.dll@sha/d3d9_main.c.o: previous definition here > winebuild: /usr/bin/x86_64-pc-linux-gnu-ld failed with status 1 > winegcc: /usr/lib/wine-staging-5.12/bin/winebuild failed I saw this today, but it looks more like a '>=sys-devel/gcc-10' issue, though I'm not entirely sure at this time...
It seems the tools/cross-wine32 file ends up with the incorrect pkg-config executable.
(In reply to Chiitoo from comment #6) > (In reply to Jan Psota from comment #4) > > On my system: > > /usr/bin/x86_64-pc-linux-gnu-ld: error: > > d3d9-nine/97cc0d2@@d3d9-nine.dll@sha/shader_validator.c.o: multiple > > definition of 'IDirect3DShaderValidator9Vtbl' > > /usr/bin/x86_64-pc-linux-gnu-ld: > > d3d9-nine/97cc0d2@@d3d9-nine.dll@sha/d3d9_main.c.o: previous definition here > > winebuild: /usr/bin/x86_64-pc-linux-gnu-ld failed with status 1 > > winegcc: /usr/lib/wine-staging-5.12/bin/winebuild failed > > I saw this today, but it looks more like a '>=sys-devel/gcc-10' issue, > though I'm not entirely sure at this time... https://github.com/iXit/wine-nine-standalone/commit/bf71ae00220265749cc6af1e1e81f5b287891e0a I had that patch applied locally anyways and I'm trying to get 0.6 working now since newer wines are broken.
I basically just wrote out what tc-getPKG_CONFIG should be setting stuff myself checking ${ABI} in bootstrap_nine function and it built as expected, not sure why getPKG_CONFIG is not working in this context, but it's not giving the expected results.
Just thought it would be good to confirm the last time I built this successfully was 1/12/20 and first failure was 6/15/20 (US style so that's Jan and Jun)
So I looked for some other ebuilds that use tc-getPKG_CONFIG as well, it appears they are also getting the incorrect PKG_CONFIG as well, just it doesn't matter in this cases. Like with aalib: * abi_x86_32.x86: running multilib-minimal_abi_src_configure * econf: updating aalib-1.4.0/config.sub with /usr/share/gnuconfig/config.sub * econf: updating aalib-1.4.0/config.guess with /usr/share/gnuconfig/config.guess /var/tmp/portage/media-libs/aalib-1.4_rc5-r9/work/aalib-1.4.0/configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/aalib-1.4_rc5-r9 --htmldir=/usr/share/doc/aalib-1.4_rc5-r9/html --with-sysroot=/ --libdir=/usr/lib32 --without-slang-driver --with-x11-driver --disable-static PKG_CONFIG=x86_64-pc-linux-gnu-pkg-config That's still using x86_64 pkg-config, but not breaking, unlike this package.
Created attachment 656206 [details, diff] patch to fix pkgconfig issues
Created attachment 656208 [details] 0.6 ebuild with new patch
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d16897964aed980a2bf5b0a173a459a0db295922 commit d16897964aed980a2bf5b0a173a459a0db295922 Author: James Le Cuirot <chewi@gentoo.org> AuthorDate: 2020-08-22 20:00:18 +0000 Commit: James Le Cuirot <chewi@gentoo.org> CommitDate: 2020-08-22 20:00:18 +0000 app-emulation/gallium-nine-standalone: Set pkg-config LIBDIR I'm still not sure exactly why this has broken now but thanks to Michael Cook for the fix. Closes: https://bugs.gentoo.org/730542 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: James Le Cuirot <chewi@gentoo.org> .../files/0.7-cross-files.patch | 34 ++++++++++++++++++++++ .../gallium-nine-standalone-9999.ebuild | 5 ++-- 2 files changed, 37 insertions(+), 2 deletions(-)