Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 873058 - games-strategy/0ad: tests fail to compile
Summary: games-strategy/0ad: tests fail to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 850481
  Show dependency tree
 
Reported: 2022-09-26 14:57 UTC by matoro
Modified: 2025-03-10 02:21 UTC (History)
2 users (show)

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


Attachments
build.log (build.log.gz,287.78 KB, application/gzip)
2022-09-26 14:59 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2022-09-26 14:57:13 UTC
Unit tests for games-strategy/0ad fail to link with many multiple definition errors.  Example snippet (this goes on for a while):

x86_64-pc-linux-gnu-g++ -o "../../../binaries/system/test" obj/test_Release/stub_impl_hack.o obj/test_Release/stub_impl_hack.o obj/test_Release/test_Bound.o obj/test_Release/test_Bound.o obj/test_Release/test_BoundingSphere.o obj/test_Release/test_BoundingSphere.o obj/test_Release/test_Brush.o obj/test_Release/test_Brush.o obj/test_Release/test_CColor.o obj/test_Release/test_CColor.o obj/test_Release/test_CLogger.o obj/test_Release/test_CLogger.o obj/test_Release/test_CStr.o obj/test_Release/test_CStr.o obj/test_Release/test_Camera.o obj/test_Release/test_Camera.o obj/test_Release/test_CinemaManager.o obj/test_Release/test_CinemaManager.o obj/test_Release/test_CmdLineArgs.o obj/test_Release/test_CmdLineArgs.o obj/test_Release/test_CmpTemplateManager.o obj/test_Release/test_CmpTemplateManager.o obj/test_Release/test_Color.o obj/test_Release/test_Color.o obj/test_Release/test_CommandQueue.o obj/test_Release/test_CommandQueue.o obj/test_Release/test_ComponentManager.o obj/test_Release/test_ComponentManager.o obj/test_Release/test_ConfigDB.o obj/test_Release/test_ConfigDB.o obj/test_Release/test_DynamicArena.o obj/test_Release/test_DynamicArena.o obj/test_Release/test_EntityMap.o obj/test_Release/test_EntityMap.o obj/test_Release/test_Fixed.o obj/test_Release/test_Fixed.o obj/test_Release/test_FixedVector2D.o obj/test_Release/test_FixedVector2D.o obj/test_Release/test_FixedVector3D.o obj/test_Release/test_FixedVector3D.o obj/test_Release/test_FunctionWrapper.o obj/test_Release/test_FunctionWrapper.o obj/test_Release/test_Future.o obj/test_Release/test_Future.o obj/test_Release/test_GuiManager.o obj/test_Release/test_GuiManager.o obj/test_Release/test_Hashing.o obj/test_Release/test_Hashing.o obj/test_Release/test_HierPathfinder.o obj/test_Release/test_HierPathfinder.o obj/test_Release/test_Hotkeys.o obj/test_Release/test_Hotkeys.o obj/test_Release/test_LOSTexture.o obj/test_Release/test_LOSTexture.o obj/test_Release/test_MD5.o obj/test_Release/test_MD5.o obj/test_Release/test_MapGenerator.o obj/test_Release/test_MapGenerator.o obj/test_Release/test_Matrix3d.o obj/test_Release/test_Matrix3d.o obj/test_Release/test_MeshManager.o obj/test_Release/test_MeshManager.o obj/test_Release/test_Mod.o obj/test_Release/test_Mod.o obj/test_Release/test_ModIo.o obj/test_Release/test_ModIo.o obj/test_Release/test_Net.o obj/test_Release/test_Net.o obj/test_Release/test_NetMessage.o obj/test_Release/test_NetMessage.o obj/test_Release/test_ObstructionManager.o obj/test_Release/test_ObstructionManager.o obj/test_Release/test_ParamNode.o obj/test_Release/test_ParamNode.o obj/test_Release/test_ParseString.o obj/test_Release/test_ParseString.o obj/test_Release/test_Pathfinder.o obj/test_Release/test_Pathfinder.o obj/test_Release/test_Position.o obj/test_Release/test_Position.o obj/test_Release/test_Preprocessor.o obj/test_Release/test_Preprocessor.o obj/test_Release/test_RangeManager.o obj/test_Release/test_RangeManager.o obj/test_Release/test_RelaxNG.o obj/test_Release/test_RelaxNG.o obj/test_Release/test_ScriptConversions.o obj/test_Release/test_ScriptConversions.o obj/test_Release/test_ScriptInterface.o obj/test_Release/test_ScriptInterface.o obj/test_Release/test_SerializeTemplates.o obj/test_Release/test_SerializeTemplates.o obj/test_Release/test_Serializer.o obj/test_Release/test_Serializer.o obj/test_Release/test_ShaderManager.o obj/test_Release/test_ShaderManager.o obj/test_Release/test_Simulation2.o obj/test_Release/test_Simulation2.o obj/test_Release/test_Sqrt.o obj/test_Release/test_Sqrt.o obj/test_Release/test_StunClient.o obj/test_Release/test_StunClient.o obj/test_Release/test_TaskManager.o obj/test_Release/test_TaskManager.o obj/test_Release/test_Terrain.o obj/test_Release/test_Terrain.o obj/test_Release/test_TerritoryManager.o obj/test_Release/test_TerritoryManager.o obj/test_Release/test_TextureConverter.o obj/test_Release/test_TextureConverter.o obj/test_Release/test_TextureManager.o obj/test_Release/test_TextureManager.o obj/test_Release/test_XMBData.o obj/test_Release/test_XMBData.o obj/test_Release/test_XMLWriter.o obj/test_Release/test_XMLWriter.o obj/test_Release/test_Xeromyces.o obj/test_Release/test_Xeromyces.o obj/test_Release/test_adapters.o obj/test_Release/test_adapters.o obj/test_Release/test_adts.o obj/test_Release/test_adts.o obj/test_Release/test_allocators.o obj/test_Release/test_allocators.o obj/test_Release/test_archive_zip.o obj/test_Release/test_archive_zip.o obj/test_Release/test_bits.o obj/test_Release/test_bits.o obj/test_Release/test_byte_order.o obj/test_Release/test_byte_order.o obj/test_Release/test_cache_adt.o obj/test_Release/test_cache_adt.o obj/test_Release/test_fmt.o obj/test_Release/test_fmt.o obj/test_Release/test_fnv_hash.o obj/test_Release/test_fnv_hash.o obj/test_Release/test_lib.o obj/test_Release/test_lib.o obj/test_Release/test_path.o obj/test_Release/test_path.o obj/test_Release/test_path_util.o obj/test_Release/test_path_util.o obj/test_Release/test_pkcs5_pbkdf5.o obj/test_Release/test_pkcs5_pbkdf5.o obj/test_Release/test_posix.o obj/test_Release/test_posix.o obj/test_Release/test_rand.o obj/test_Release/test_rand.o obj/test_Release/test_regex.o obj/test_Release/test_regex.o obj/test_Release/test_root.o obj/test_Release/test_rtl.o obj/test_Release/test_rtl.o obj/test_Release/test_scripts.o obj/test_Release/test_scripts.o obj/test_Release/test_secure_crt.o obj/test_Release/test_secure_crt.o obj/test_Release/test_setup.o obj/test_Release/test_sysdep.o obj/test_Release/test_sysdep.o obj/test_Release/test_test.o obj/test_Release/test_test.o obj/test_Release/test_tex.o obj/test_Release/test_tex.o obj/test_Release/test_trace.o obj/test_Release/test_trace.o obj/test_Release/test_vfs_real_path.o obj/test_Release/test_vfs_real_path.o obj/test_Release/test_vfs_tree.o obj/test_Release/test_vfs_tree.o obj/test_Release/test_vfs_util.o obj/test_Release/test_vfs_util.o obj/test_Release/test_wchar.o obj/test_Release/test_wchar.o  -Wl,-O1 -Wl,--as-needed -L../../../binaries/system -L../../../libraries/source/spidermonkey/lib -s -Wl,-rpath,/usr/lib64/0ad -pthread -Wl,--start-group ../../../binaries/system/libnetwork.a ../../../binaries/system/librlinterface.a ../../../binaries/system/libtinygettext.a ../../../binaries/system/liblobby.a ../../../binaries/system/libglooxwrapper.a ../../../binaries/system/libsimulation2.a ../../../binaries/system/libscriptinterface.a ../../../binaries/system/libengine.a ../../../binaries/system/libgraphics.a ../../../binaries/system/libatlas.a ../../../binaries/system/libgui.a ../../../binaries/system/liblowlevel.a ../../../binaries/system/libmongoose.a ../../../binaries/system/libmocks_test.a -lGL -lSDL2 -lpng16 -lmozjs78-ps-release -lmozjs78-ps-rust -lxml2 -lboost_filesystem -lboost_system -lenet -lcurl -licui18n -licuuc -licudata -lsodium -lfmt -lX11 -lopenal -lvorbisfile -lgloox -lssl -lcrypto -lz -lminiupnpc -lrt -ldl -Wl,--end-group/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: obj/test_Release/stub_impl_hack.o: in function `IsQuitRequested()':
stub_impl_hack.cpp:(.text+0x0): multiple definition of `IsQuitRequested()'; obj/test_Release/stub_impl_hack.o:stub_impl_hack.cpp:(.text+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: obj/test_Release/stub_impl_hack.o: in function `QuitEngine()':
stub_impl_hack.cpp:(.text+0x10): multiple definition of `QuitEngine()'; obj/test_Release/stub_impl_hack.o:stub_impl_hack.cpp:(.text+0x10): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: obj/test_Release/stub_impl_hack.o: in function `StartAtlas()':
stub_impl_hack.cpp:(.text+0x20): multiple definition of `StartAtlas()'; obj/test_Release/stub_impl_hack.o:stub_impl_hack.cpp:(.text+0x20): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: obj/test_Release/stub_impl_hack.o: in function `RestartEngine()':
stub_impl_hack.cpp:(.text+0x30): multiple definition of `RestartEngine()'; obj/test_Release/stub_impl_hack.o:stub_impl_hack.cpp:(.text+0x30): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: obj/test_Release/stub_impl_hack.o:(.bss+0x0): multiple definition of `suiteDescription_TestDummy'; obj/test_Release/stub_impl_hack.o:(.bss+0x0): first defined here


Reproducible: Always




Portage 3.0.36 (python 3.10.6-final-0, default/linux/amd64/17.1, gcc-11.3.0, glibc-2.35-r8, 5.19.11-gentoo-dist x86_64)
=================================================================
System uname: Linux-5.19.11-gentoo-dist-x86_64-AMD_Ryzen_9_3950X_16-Core_Processor-with-glibc2.35
KiB Mem:   131831392 total,  20711628 free
KiB Swap:   20971516 total,  20971516 free
Timestamp of repository gentoo: Mon, 26 Sep 2022 00:45:01 +0000
Head commit of repository gentoo: 8c3e549ed467ab7ecfe345bdbe2e575e2846d97e
sh bash 5.1_p16-r1
ld GNU ld (Gentoo 2.38 p4) 2.38
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r1::gentoo
dev-lang/perl:             5.34.1-r3::gentoo
dev-lang/python:           3.10.6_p4::gentoo
dev-lang/rust:             1.62.1::gentoo
dev-util/cmake:            3.23.3::gentoo
dev-util/meson:            0.62.2::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/openrc:           0.45.2::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/gcc:             11.3.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/llvm:            14.0.6-r2::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r8::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-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/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=y --autounmask-continue=y"
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 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"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j28"
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="acl amd64 bzip2 cli crypt dri fortran gdbm iconv ipv6 libglvnd libtirpc multilib ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2020" 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" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" 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, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 matoro archtester 2022-09-26 14:59:15 UTC
Created attachment 814249 [details]
build.log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-26 15:00:47 UTC
There's a bump due for this out yesterday or so, so I'll focus on that first.
Comment 3 Larry the Git Cow gentoo-dev 2025-03-10 02:21:30 UTC
The bug has been closed via the following commit(s):

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

commit c08ce8c1e9d5c04878738f6ca9f12dccd5bfda52
Author:     Ralph Sennhauser <ralph.sennhauser@gmail.com>
AuthorDate: 2025-01-22 12:32:49 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-03-10 02:19:19 +0000

    games-strategy/0ad: bump to version 0.27.0
    
    Bump to version 0.27.0 and add support for rc builds.
    
    Use system spidermonkey as the minor version restriction was dropped
    upstream, unlike in the early days of spidermonkey it's unlikely that
    version differences lead to different results. Update checkreqs as the
    needed space is reduced quite a bit by using system spidermonkey.
    
    Use verify-sig eclass and drop custom unpack.
    
    Use wxgtk 3.2, there is no reason not to and move wx-setup to
    src_configure.
    
    Install libCollada.so, fixes pyrogenesis so it can actually generate
    models from collada files if mods require it. Don't install various
    unused files on the other hand.
    
    Fix building and running tests. Also replace perl dep with python as
    cxxtestgen was rewitten in python long time ago.
    
    With the move to git and gitea the github repo was archived, so drop it
    from metadata.xml
    
    LTO still doen't work but not for the original reason
    
    Address some qa items, like http to https, line length or outdated
    blocker and remove no longer needed QA_PRESTRIPPED.
    
    Closes: https://bugs.gentoo.org/774153
    Closes: https://bugs.gentoo.org/873058
    Closes: https://bugs.gentoo.org/896964
    Closes: https://bugs.gentoo.org/909509
    Closes: https://bugs.gentoo.org/912838
    Closes: https://bugs.gentoo.org/917626
    Closes: https://bugs.gentoo.org/921324
    Closes: https://bugs.gentoo.org/935474
    Closes: https://bugs.gentoo.org/945956
    Closes: https://bugs.gentoo.org/946468
    Closes: https://bugs.gentoo.org/949122
    Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/40383
    Signed-off-by: Sam James <sam@gentoo.org>

 games-strategy/0ad/0ad-0.27.0.ebuild               | 235 +++++++++++++++++++++
 games-strategy/0ad/Manifest                        |   4 +
 .../0ad/files/0ad-0.27.0-fix-tests.patch           |  78 +++++++
 games-strategy/0ad/files/0ad-minisign.pub          |   1 +
 games-strategy/0ad/metadata.xml                    |   1 -
 5 files changed, 318 insertions(+), 1 deletion(-)