Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 747898 - games-engines/openmw-0.46.0 compilation fails when building against sci-physics/bullet-3.05
Summary: games-engines/openmw-0.46.0 compilation fails when building against sci-physi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Alexey
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-10-11 21:20 UTC by franklyfrank
Modified: 2020-10-13 10:46 UTC (History)
6 users (show)

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


Attachments
build.log (build.log.tbz2,19.21 KB, application/x-bzip-compressed-tar)
2020-10-11 21:21 UTC, franklyfrank
Details

Note You need to log in before you can comment on or make changes to this bug.
Description franklyfrank 2020-10-11 21:20:25 UTC
I tried to single out bullet by downgrading to sci-physics/bullet-2.89 and emerging openmw again and it then built without an error.

Non-edit: while contemplating whether I should submit this bug report or not due to using an outdated gcc version I looked into the issue some more and I think it's definitely the updated bullet ebuild at fault:

bullet-2.89.ebuild has a use flag "double-precision" that's disabled by default and this evaluation in src_configure phase:
-DUSE_DOUBLE_PRECISION=$(usex double-precision)"
while bullet-3.05 just has
-DUSE_DOUBLE_PRECISION=ON

when replacing the bullet-3.05 with the evaluation and use flag from bullet-2.89, and not enabling that use flag, and merging that modified bullet-3.05 ebuild then openmw rebuilds just fine against bullet-3.05.

I tried this after googling and finding this comment on the openmw github page https://github.com/OpenMW/openmw/pull/2049#issuecomment-443495056

I think bullet-3.05.ebuild should add the double-precision use flag and src_configure and the RDPEPEND section of openmw should be modified accordingly.

Reproducible: Always

Steps to Reproduce:
1. updated sci-physics/bullet-2.89 to sci-physics/bullet-3.05
2. rebuild openmw-0.46.0
Actual Results:  
ERROR: games-engines/openmw-0.46.0::gentoo failed (compile phase): ninja -v -j5 -l0 failed

Expected Results:  
emerge openmw without error

Portage 3.0.8 (python 3.7.9-final-0, default/linux/amd64/17.1/hardened, gcc-9.2.0, glibc-2.32-r2, 5.8.10-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-5.8.10-gentoo-x86_64-x86_64-AMD_Phenom-tm-_II_X4_955_Processor-with-gentoo-2.7
KiB Mem:    12273940 total,   3976272 free
KiB Swap:   22914040 total,  18110640 free
Timestamp of repository gentoo: Sun, 11 Oct 2020 18:35:13 +0000
Head commit of repository gentoo: d8811528d88ba2488395d3c2088b547228036210

sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          3.7.9::gentoo, 3.8.6::gentoo, 3.9.0::gentoo
dev-util/cmake:           3.18.4::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.69-r5::gentoo
sys-devel/automake:       1.16.2::gentoo
sys-devel/binutils:       2.34-r2::gentoo, 2.35.1::gentoo
sys-devel/gcc:            9.2.0-r2::gentoo
sys-devel/gcc-config:     2.3.2::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.8::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r2::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

steam-overlay
    location: /var/lib/layman/steam-overlay
    masters: gentoo
    priority: 50

vampire
    location: /var/lib/layman/vampire
    masters: gentoo
    priority: 50

local_overlay
    location: /var/db/repos/local_overlay
    masters: gentoo
    priority: 60

ACCEPT_KEYWORDS="amd64 ~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/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/portage/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"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs candy cgroup 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"
GENTOO_MIRRORS="http://mirrors.evowise.com/gentoo/ http://gentoo.wheel.sk/ https://mirrors.evowise.com/gentoo/"
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/var/cache/portage/packages"
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="/tmp"
USE="X acl alsa amd64 bzip2 crypt elogind hardened iconv libglvnd libtirpc lm-sensors multilib ncurses nls nptl openmp pam pcre pie readline seccomp split-usr ssl ssp udev unicode xattr xtpax zlib zsh-completion" ABI_X86="32 64" 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="mmx mmxext sse sse2" 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" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python3_7" RUBY_TARGETS="ruby25 ruby26" USERLAND="GNU" VIDEO_CARDS="radeonsi amdgpu r600" 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, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 franklyfrank 2020-10-11 21:21:00 UTC
Created attachment 664816 [details]
build.log
Comment 2 Ross Charles C. 2020-10-12 00:34:55 UTC
Guess enabling USE_DOUBLE_PRECISION by default is still premature.
Comment 3 Alexey 2020-10-12 00:35:24 UTC
Thanks for the analysis!

I think we should just restrict openmw-0.46 to <bullet-3. The next version (0.47, currently available via 9999) supports double precision bullet, but need to pass additional option to cmake: https://github.com/OpenMW/openmw/pull/2848
Comment 4 Ross Charles C. 2020-10-12 00:50:50 UTC
I think it's better to revive the double-precision flag for bullet at the moment. bullet had a major version bump but it didn't break the ABI.
Comment 5 Alexey 2020-10-12 00:53:08 UTC
Ross, does https://github.com/gentoo/gentoo/pull/17896 look reasonable for you?
Comment 6 Larry the Git Cow gentoo-dev 2020-10-12 12:51:44 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8995ab51a11cd8df60be49303ac9e61234dc9eae

commit 8995ab51a11cd8df60be49303ac9e61234dc9eae
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2020-10-12 12:51:17 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2020-10-12 12:51:17 +0000

    sci-physics/bullet: bring back USE flag for double-precision
    
     - some silent revdeps break with it, still too experimental.
    
    Bug: https://bugs.gentoo.org/747898
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 sci-physics/bullet/bullet-3.05.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 7 Larry the Git Cow gentoo-dev 2020-10-13 10:46:46 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50a85e0526588898a5fc124820ee93df9865faa0

commit 50a85e0526588898a5fc124820ee93df9865faa0
Author:     Alexey Sokolov <sokolov@google.com>
AuthorDate: 2020-10-12 00:51:02 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2020-10-13 10:46:38 +0000

    games-engines/openmw: restrict double-precisionness of bullet
    
    For 0.46.0, require no double precision.
    For 9999, require double precision instead.
    
    Upstream references:
    https://github.com/OpenMW/openmw/pull/2049
    https://github.com/OpenMW/openmw/pull/2848
    
    Closes: https://bugs.gentoo.org/747898
    Package-Manager: Portage-3.0.4, Repoman-3.0.1
    Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
    Closes: https://github.com/gentoo/gentoo/pull/17896
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 games-engines/openmw/openmw-0.46.0.ebuild | 2 +-
 games-engines/openmw/openmw-9999.ebuild   | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)