Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 903888 - games-engines/openmw-9999: OpenMW-CS (qt5 use) doesn't build anymore
Summary: games-engines/openmw-9999: OpenMW-CS (qt5 use) doesn't build anymore
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: Normal normal (vote)
Assignee: Alexey
URL: https://gitlab.com/OpenMW/openmw/-/is...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-05 20:01 UTC by darkbasic
Modified: 2023-09-30 20:56 UTC (History)
3 users (show)

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


Attachments
build.log.gz (build.log.gz,66.06 KB, application/gzip)
2023-04-05 20:02 UTC, darkbasic
Details
20230911-build.log (openmw-9999.build.log,319.29 KB, text/plain)
2023-09-11 14:27 UTC, darkbasic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description darkbasic 2023-04-05 20:01:37 UTC
shadermanager.cpp: lacks nop, can't restore toc; (plt call stub)
ld: final link failed: bad value

It happens since about one month, before if compiled without issues but the OpenMW-CS editor was slow as hell (I think there is some kind of mis-optimization with the database queries, but that's another issue).

Reproducible: Always
Comment 1 darkbasic 2023-04-05 20:02:42 UTC
Created attachment 859586 [details]
build.log.gz

talos2 ~ # emerge --info
Portage 3.0.44 (python 3.10.10-final-0, default/linux/ppc64le/17.0/desktop/gnome/systemd/merged-usr, gcc-12, glibc-2.36-r7, 6.2.9-gentoo-dist ppc64le)
=================================================================
System uname: Linux-6.2.9-gentoo-dist-ppc64le-POWER9,_altivec_supported-with-glibc2.36
KiB Mem:    65402524 total,  34433464 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository bobwya: Wed, 29 Mar 2023 02:17:11 +0000
Head commit of repository bobwya: bfd8f43e1b8fab243021c023f64cb3a803abccf0

Timestamp of repository gentoo: Wed, 05 Apr 2023 16:46:59 +0000
Head commit of repository gentoo: f29bf5b9d4573b5983778208639847f24c171c83

Timestamp of repository FireBurn: Wed, 05 Apr 2023 08:17:26 +0000
Head commit of repository FireBurn: 1a74918887ff8c1381dde2605a852ca62eda66b8

Timestamp of repository guru: Wed, 05 Apr 2023 08:17:39 +0000
Head commit of repository guru: f5b070a8ef9b15eb9e98af12aef6fb94b1116999

Timestamp of repository pf4public: Wed, 05 Apr 2023 17:31:52 +0000
Head commit of repository pf4public: 39dd10a40eeee24f99e6dee515ebe11ad1e434f6

sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.39 p5) 2.39.0
ccache version 4.8 [disabled]
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r2::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.0-r2::gentoo
dev-lang/python:           3.10.10_p3::gentoo, 3.11.2_p2::gentoo
dev-lang/rust:             1.66.1::gentoo
dev-util/ccache:           4.8::gentoo
dev-util/cmake:            3.25.3::gentoo
dev-util/meson:            1.0.1::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          252.7::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r4::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           15.0.7-r1::gentoo, 16.0.0::gentoo
sys-devel/gcc:             12.2.1_p20230121-r1::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             15.0.7::gentoo
sys-devel/llvm:            15.0.7::gentoo, 16.0.0::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r7::gentoo
Repositories:

bobwya
    location: /var/db/repos/bobwya
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/bobwya.git
    masters: gentoo
    priority: -1100
    volatile: True

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000
    volatile: True
    sync-git-verify-commit-signature: yes

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

darkbasic
    location: /var/db/repos/darkbasic
    masters: gentoo
    volatile: True

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

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

ACCEPT_KEYWORDS="ppc64"
ACCEPT_LICENSE="@FREE @FREE unRAR fping freedist Microsoft-vscode"
CBUILD="powerpc64le-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=power9 -mtune=power9"
CHOST="powerpc64le-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
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.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-O2 -pipe -mcpu=power9 -mtune=power9"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-O2 -pipe -mcpu=power9 -mtune=power9"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live 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="-O2 -pipe -mcpu=power9 -mtune=power9"
GENTOO_MIRRORS="https://gentoo.mirror.garr.it/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j32"
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"
SHELL="/bin/bash"
USE="X a52 aac acl alsa bluetooth branding btrfs bzip2 cairo cdda cdr cli colord crypt cups dbus dri dts dvd dvdr eds encode evo exif flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm grub gstreamer gtk gui iconv icu introspection ipv6 jpeg lcms libglvnd libnotify libsecret mad mng mp3 mp4 mpeg nautilus ncurses networkmanager nls nptl ogg opencl opengl openmp pam pango pcre pdf pipewire png policykit ppc64 ppds pulseaudio qt5 readline screencast sdl seccomp sound spell ssl startup-notification svg systemd test-rust tiff tracker truetype udev udisks unicode upower usb vaapi vorbis vpx vulkan wayland wxwidgets x264 xattr xcb xft xml xv xvid zeroconf zlib" ADA_TARGET="gnat_2021" 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_PPC="altivec vsx vsx2 vsx3" 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" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" QEMU_SOFTMMU_TARGETS="ppc ppc64 i386 x86_64 arm aarch64" QEMU_USER_TARGETS="ppc ppc64 i386 x86_64 arm aarch64" RUBY_TARGETS="ruby30" USERLAND="GNU" VIDEO_CARDS="amdgpu radeon" 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, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 2 Alexey 2023-05-27 18:02:30 UTC
I cannot reproduce this on 9999. But I don't have ppc hardware

For me it looks like either some toolchain issue or some .so of some dependency got corrupted. But I'm just guessing
Comment 3 Alexey 2023-05-27 18:03:51 UTC
Can it be related to ranged_enchanting.patch you're applying?

Does 0.47 build?
Comment 4 darkbasic 2023-05-28 08:13:51 UTC
9999 still doesn't build for me.

> Does 0.47 build?

Yes, it does.

> Can it be related to ranged_enchanting.patch you're applying?

Nope, that's just a small patch I made to change some game mechanics until they get dehardcoded and I will be able to do so in LUA.

> I cannot reproduce this on 9999. But I don't have ppc hardware

That's really weird, it used to work for me on 0.48 and for most of the 0.49 development cycle as well but the fact that it does work for you puzzles me.
Comment 5 Alexey 2023-05-28 08:29:18 UTC
Can you try to binary search the commit where it broke?
Comment 6 darkbasic 2023-09-11 14:27:03 UTC
Created attachment 870317 [details]
20230911-build.log

I'm still planning to bisect it, unfortunately latest git at the moment doesn't build for other reasons despite bumping mygui to 3.4.3:

[151/1157] /usr/lib/ccache/bin/powerpc64le-unknown-linux-gnu-g++ -DBOOST_NO_CXX11_SCOPED_ENUMS=ON -DBT_USE_DOUBLE_PRECISION -DGLOBAL_CONFIG_PATH=\"/etc\" -DGLOBAL_DATA_PATH=\"/usr/share\" -DMYGUI_DONT_REPLACE_NULLPTR -DNO_LUAJIT -DTIXML_USE_STL -D__STDC_CONSTANT_MACROS -I/var/tmp/portage/games-engines/openmw-9999/work/openmw-9999_build/components -I/var/tmp/portage/games-engines/openmw-9999/work/openmw-9999/extern/Base64/. -I/var/tmp/portage/games-engines/openmw-9999/work/openmw-9999/extern/smhasher/. -isystem /var/tmp/portage/games-engines/openmw-9999/work/openmw-9999/extern/sol_config -isystem /var/tmp/portage/games-engines/openmw-9999/work/openmw-9999/extern/sol3 -isystem /usr/include/lua5.1 -isystem /usr/include/bullet -isystem /usr/include/AL -isystem /usr/include/MYGUI -isystem /usr/include/SDL2 -isystem /var/tmp/portage/games-engines/openmw-9999/work/openmw-9999/. -isystem /usr/include/recastnavigation  -O2 -pipe -mcpu=power9 -mtune=power9 -ggdb3 -Wall -Wall -Wextra -Wundef -Wextra-semi -Wno-unused-parameter -pedantic -Wno-long-long -Wnon-virtual-dtor -Wunused  -Wno-unused-but-set-parameter -Wduplicated-branches -Wduplicated-cond -Wlogical-op -std=c++20 -MD -MT components/CMakeFiles/components.dir/fx/widgets.cpp.o -MF components/CMakeFiles/components.dir/fx/widgets.cpp.o.d -o components/CMakeFiles/components.dir/fx/widgets.cpp.o -c /var/tmp/portage/games-engines/openmw-9999/work/openmw-9999/components/fx/widgets.cpp
FAILED: components/CMakeFiles/components.dir/fx/widgets.cpp.o 
/usr/lib/ccache/bin/powerpc64le-unknown-linux-gnu-g++ -DBOOST_NO_CXX11_SCOPED_ENUMS=ON -DBT_USE_DOUBLE_PRECISION -DGLOBAL_CONFIG_PATH=\"/etc\" -DGLOBAL_DATA_PATH=\"/usr/share\" -DMYGUI_DONT_REPLACE_NULLPTR -DNO_LUAJIT -DTIXML_USE_STL -D__STDC_CONSTANT_MACROS -I/var/tmp/portage/games-engines/openmw-9999/work/openmw-9999_build/components -I/var/tmp/portage/games-engines/openmw-9999/work/openmw-9999/extern/Base64/. -I/var/tmp/portage/games-engines/openmw-9999/work/openmw-9999/extern/smhasher/. -isystem /var/tmp/portage/games-engines/openmw-9999/work/openmw-9999/extern/sol_config -isystem /var/tmp/portage/games-engines/openmw-9999/work/openmw-9999/extern/sol3 -isystem /usr/include/lua5.1 -isystem /usr/include/bullet -isystem /usr/include/AL -isystem /usr/include/MYGUI -isystem /usr/include/SDL2 -isystem /var/tmp/portage/games-engines/openmw-9999/work/openmw-9999/. -isystem /usr/include/recastnavigation  -O2 -pipe -mcpu=power9 -mtune=power9 -ggdb3 -Wall -Wall -Wextra -Wundef -Wextra-semi -Wno-unused-parameter -pedantic -Wno-long-long -Wnon-virtual-dtor -Wunused  -Wno-unused-but-set-parameter -Wduplicated-branches -Wduplicated-cond -Wlogical-op -std=c++20 -MD -MT components/CMakeFiles/components.dir/fx/widgets.cpp.o -MF components/CMakeFiles/components.dir/fx/widgets.cpp.o.d -o components/CMakeFiles/components.dir/fx/widgets.cpp.o -c /var/tmp/portage/games-engines/openmw-9999/work/openmw-9999/components/fx/widgets.cpp
In file included from /usr/include/osg/State:33,
                 from /usr/include/osg/GraphicsContext:17,
                 from /usr/include/osg/Texture:20,
                 from /usr/include/osg/Camera:21,
                 from /var/tmp/portage/games-engines/openmw-9999/work/openmw-9999/components/fx/types.hpp:9,
                 from /var/tmp/portage/games-engines/openmw-9999/work/openmw-9999/components/fx/widgets.hpp:23,
                 from /var/tmp/portage/games-engines/openmw-9999/work/openmw-9999/components/fx/widgets.cpp:1:
/usr/include/osg/GraphicsCostEstimator: In member function ‘osg::CostPair osg::GraphicsCostEstimator::estimateCompileCost(const osg::Geometry*) const’:
/usr/include/osg/GraphicsCostEstimator:118:71: note: parameter passing for argument of type ‘osg::CostPair’ {aka ‘std::pair<double, double>’} when C++17 is enabled changed to match C++14 in GCC 10.1
  118 |     CostPair estimateCompileCost(const osg::Geometry* geometry) const { return _geometryEstimator->estimateCompileCost(geometry); }
      |                                                                       ^
In file included from /var/tmp/portage/games-engines/openmw-9999/work/openmw-9999/components/fx/widgets.cpp:3:
/var/tmp/portage/games-engines/openmw-9999/work/openmw-9999/components/widgets/box.hpp: At global scope:
/var/tmp/portage/games-engines/openmw-9999/work/openmw-9999/components/widgets/box.hpp:56:14: error: ‘void Gui::AutoSizedTextBox::setPropertyOverride(const std::string&, const std::string&)’ marked ‘override’, but does not override
   56 |         void setPropertyOverride(const std::string& _key, const std::string& _value) override;
      |              ^~~~~~~~~~~~~~~~~~~
/var/tmp/portage/games-engines/openmw-9999/work/openmw-9999/components/widgets/box.hpp:71:14: error: ‘void Gui::AutoSizedEditBox::setPropertyOverride(const std::string&, const std::string&)’ marked ‘override’, but does not override
   71 |         void setPropertyOverride(const std::string& _key, const std::string& _value) override;
      |              ^~~~~~~~~~~~~~~~~~~
/var/tmp/portage/games-engines/openmw-9999/work/openmw-9999/components/widgets/box.hpp:88:14: error: ‘void Gui::AutoSizedButton::setPropertyOverride(const std::string&, const std::string&)’ marked ‘override’, but does not override
   88 |         void setPropertyOverride(const std::string& _key, const std::string& _value) override;
      |              ^~~~~~~~~~~~~~~~~~~
/var/tmp/portage/games-engines/openmw-9999/work/openmw-9999/components/widgets/box.hpp:140:14: error: ‘void Gui::HBox::setPropertyOverride(const std::string&, const std::string&)’ marked ‘override’, but does not override
  140 |         void setPropertyOverride(const std::string& _key, const std::string& _value) override;
      |              ^~~~~~~~~~~~~~~~~~~
/var/tmp/portage/games-engines/openmw-9999/work/openmw-9999/components/widgets/box.hpp:159:14: error: ‘void Gui::VBox::setPropertyOverride(const std::string&, const std::string&)’ marked ‘override’, but does not override
  159 |         void setPropertyOverride(const std::string& _key, const std::string& _value) override;
      |              ^~~~~~~~~~~~~~~~~~~
Comment 7 darkbasic 2023-09-12 09:45:40 UTC
Had to downgrade myguy to 3.4.2. Upstream issue: https://gitlab.com/OpenMW/openmw/-/issues/7581
Comment 8 darkbasic 2023-09-14 11:11:01 UTC
Bisected to the following commit:

59f2fccc9f4f251af62dbaa731ce224e5aafb103 is the first bad commit
commit 59f2fccc9f4f251af62dbaa731ce224e5aafb103
Author: elsid <elsid.mail@gmail.com>
Date:   Fri Mar 10 01:08:49 2023 +0100

    Split openmw-cs into binary and library

 apps/opencs/CMakeLists.txt | 28 +++++++++++++++++++---------
 1 file changed, 19 insertions(+), 9 deletions(-)

Upstream issue: https://gitlab.com/OpenMW/openmw/-/issues/7581
Comment 9 Alexey 2023-09-30 20:56:41 UTC
Thanks, we can track it upstream. There's not much we can do about it here.