View previous topic :: View next topic |
Author |
Message |
Da51d n00b
Joined: 27 Mar 2024 Posts: 16
|
Posted: Fri Jan 10, 2025 8:48 pm Post subject: 0ad |
|
|
Hello all,
I recently updated with "emerge --ask --update --deep @world. I never included --deep before, and my computer spent the next 18 hours or so rebuilding 234 packages. Sadly it was unable to rebuild the game 0ad.Here is the output of the emerge --info command. I will happily supply the build log but it is 64,000 lines long. Anyone know how I should approach this problem?
Code: | # emerge --info '=games-strategy/0ad-0.0.26_alpha-r2::gentoo'
Portage 3.0.66.1 (python 3.12.8-final-0, default/linux/amd64/23.0/desktop, gcc-14, glibc-2.40-r5, 6.6.67-gentoo-dist x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-6.6.67-gentoo-dist-x86_64-11th_Gen_Intel-R-_Core-TM-_i5-11300H_@_3.10GHz-with-glibc2.40
KiB Mem: 7913596 total, 2271088 free
KiB Swap: 16777212 total, 16774140 free
Timestamp of repository gentoo: Thu, 09 Jan 2025 00:45:00 +0000
Head commit of repository gentoo: a7505369249cc783af7abb00869da6f4311acd87
sh bash 5.2_p37
ld GNU ld (Gentoo 2.43 p3) 2.43.1
app-misc/pax-utils: 1.3.8::gentoo
app-shells/bash: 5.2_p37::gentoo
dev-build/autoconf: 2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake: 1.16.5-r2::gentoo
dev-build/cmake: 3.30.6::gentoo
dev-build/libtool: 2.5.4::gentoo
dev-build/make: 4.4.1-r100::gentoo
dev-build/meson: 1.5.2::gentoo
dev-lang/perl: 5.40.0::gentoo
dev-lang/python: 3.10.16_p1::gentoo, 3.12.8::gentoo, 3.13.1::gentoo
dev-lang/rust-bin: 1.81.0-r100::gentoo, 1.82.0-r101::gentoo
llvm-core/clang: 18.1.8-r6::gentoo, 19.1.4::gentoo
llvm-core/lld: 18.1.8::gentoo, 19.1.4::gentoo
llvm-core/llvm: 18.1.8-r6::gentoo, 19.1.4::gentoo
sys-apps/baselayout: 2.17::gentoo
sys-apps/openrc: 0.55.1::gentoo
sys-apps/sandbox: 2.39::gentoo
sys-devel/binutils: 2.43-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc: 14.2.1_p20241221::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-kernel/linux-headers: 6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.40-r5::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
volatile: False
sync-rsync-verify-jobs: 1
sync-rsync-verify-max-age: 3
sync-rsync-extra-opts:
sync-rsync-verify-metamanifest: yes
Binary Repositories:
gentoobinhost
priority: 1
sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE @BINARY-REDISTRIBUTABLE BSD"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-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/sandbox.d /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
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="-march=native -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 merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted 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://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j4 -l4"
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 acpi alsa amd64 apparmor audit bluetooth branding bzip2 cairo cdda cdr cet crypt cups dbus dist-kernel dri dts dvd dvdr elogind encode exif flac gdbm gif gpm gtk gui iconv icu ipv6 jpeg kf6compat lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls ogg opengl openmp pam pango pcre pdf png policykit postscript ppds pulseaudio qml qt5 qt6 readline sdl seccomp sound spell ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wayland wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_13" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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 aes avx avx2 avx512_bitalg avx512_vbmi2 avx512_vnni avx512_vp2intersect avx512_vpopcntdq avx512bw avx512cd avx512dq avx512f avx512ifma avx512vbmi avx512vl f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 ssse3 vpclmulqdq" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto 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, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
=================================================================
Package Settings
=================================================================
games-strategy/0ad-0.0.26_alpha-r2::gentoo was built with the following:
USE="lobby -editor -nvtt (-pch) -test -verify-sig" ABI_X86="(64)" |
[Administrator edit: added [code] tags to preserve output layout; broke long whitespace-free lines in code tags to fix thread layout. -Hu] _________________ What can be said at all can be said clearly and what we cannot talk about we must pass over in silence. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22968
|
Posted: Fri Jan 10, 2025 9:02 pm Post subject: |
|
|
Since you did not supply an error message or the build log, there is little we can do for you. Please follow the instructions that Portage prints when you get a failure.
In this case, I speculatively searched bugs.gentoo.org for 0ad and got a hit that is recent and plausible: games-strategy/0ad fails to compile with recent dev-libs/libfmt. Does this bug report match the failure you saw? |
|
Back to top |
|
|
Da51d n00b
Joined: 27 Mar 2024 Posts: 16
|
Posted: Fri Jan 10, 2025 10:16 pm Post subject: |
|
|
Apologies, I am not sure how to post the build log...as I said it is over 64,000 lines. Should I simply paste it? It is true that on the initial attempt, dev-libs/libfmt appeared in the error messages as not installed, along with dev-qt/qtgui and dev-libs/icu. So, perhaps naively, I emerged each of these, and then retried to emerge 0ad. The final output after this second attempt was:
Code: | * ERROR: games-strategy/0ad-0.0.26_alpha-r2::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=games-strategy/0ad-0.0.26_alpha-r2::gentoo'`,
* the complete build log and the output of `emerge -pqv '=games-strategy/0ad-0.0.26_alpha-r2::gentoo'`.
* The complete build log is located at '/var/tmp/portage/games-strategy/0ad-0.0.26_alpha-r2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/games-strategy/0ad-0.0.26_alpha-r2/temp/environment'.
* Working directory: '/var/tmp/portage/games-strategy/0ad-0.0.26_alpha-r2/work/0ad-0.0.26-alpha'
* S: '/var/tmp/portage/games-strategy/0ad-0.0.26_alpha-r2/work/0ad-0.0.26-alpha'
>>> Failed to emerge games-strategy/0ad-0.0.26_alpha-r2, Log file:
>>> '/var/tmp/portage/games-strategy/0ad-0.0.26_alpha-r2/temp/build.log'
* Messages for package games-strategy/0ad-0.0.26_alpha-r2:
* Building bundled SpiderMonkey (bug #768840)
* Building 0ad
* ERROR: games-strategy/0ad-0.0.26_alpha-r2::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=games-strategy/0ad-0.0.26_alpha-r2::gentoo'`,
* the complete build log and the output of `emerge -pqv '=games-strategy/0ad-0.0.26_alpha-r2::gentoo'`.
* The complete build log is located at '/var/tmp/portage/games-strategy/0ad-0.0.26_alpha-r2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/games-strategy/0ad-0.0.26_alpha-r2/temp/environment'.
* Working directory: '/var/tmp/portage/games-strategy/0ad-0.0.26_alpha-r2/work/0ad-0.0.26-alpha'
* S: '/var/tmp/portage/games-strategy/0ad-0.0.26_alpha-r2/work/0ad-0.0.26-alpha' |
[Administrator edit: added [code] tags to preserve output layout. -Hu] _________________ What can be said at all can be said clearly and what we cannot talk about we must pass over in silence. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20566
|
Posted: Fri Jan 10, 2025 10:21 pm Post subject: |
|
|
You can provide a link to the log using wgetpaste (package app-text/wgetpaste). _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
jburns Veteran
Joined: 18 Jan 2007 Posts: 1224 Location: Massachusetts USA
|
Posted: Fri Jan 10, 2025 10:32 pm Post subject: |
|
|
The patch from the bug report that Hu posted will fix the error. It's the one I used to fix the compile error. |
|
Back to top |
|
|
CooSee Veteran
Joined: 20 Nov 2004 Posts: 1487 Location: Earth
|
Posted: Fri Jan 10, 2025 11:20 pm Post subject: |
|
|
i use these patches !
0012-Fix-segfault-with-openal-1.24.0.patch:
Code: | From: Ralph Sennhauser <ralph.sennhauser@gmail.com>
Date: Tue, 19 Nov 2024 18:31:13 +0100
Subject: Fix segfault with openal-1.24.0
With version 1.24.0 alcIsExtensionPresent() has dropped case insensitive
string comparison [1], use upper case names.
The internal strings are uppercase since the first git commit importing
openal 17 years ago.
[1] upstream commit 785f794141d62a4c308db26aa4a4819e6a92525e
Report: https://wildfiregames.com/forum/topic/125203-crash-on-start-due-to-soundmanager
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
---
source/soundmanager/SoundManager.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/source/soundmanager/SoundManager.cpp b/source/soundmanager/SoundManager.cpp
index 1b2af6a..e07f622 100644
--- a/source/soundmanager/SoundManager.cpp
+++ b/source/soundmanager/SoundManager.cpp
@@ -831,9 +831,9 @@ void CSoundManager::RunHardwareDetection()
// Sound cards
const ALCchar* devices = nullptr;
- if (alcIsExtensionPresent(nullptr, "ALC_enumeration_EXT") == AL_TRUE)
+ if (alcIsExtensionPresent(nullptr, "ALC_ENUMERATION_EXT") == AL_TRUE)
{
- if (alcIsExtensionPresent(nullptr, "ALC_enumerate_all_EXT") == AL_TRUE)
+ if (alcIsExtensionPresent(nullptr, "ALC_ENUMERATE_ALL_EXT") == AL_TRUE)
devices = alcGetString(nullptr, ALC_ALL_DEVICES_SPECIFIER);
else
devices = alcGetString(nullptr, ALC_DEVICE_SPECIFIER); |
Fix-the-removal-of-implicit-conversions-in-libfmt-10.patch:
Code: | From: Stan <stan@wildfiregames.com>
Date: Wed, 31 May 2023 12:03:04 +0000
Subject: Fix the removal of implicit conversions in libfmt 10 by using
explicit casts.
Patch by: @phosit
Accepted by: @vladislavbelov
Comments by: @sera
Differential Revision: https://code.wildfiregames.com/D4998
This was SVN commit r27657.
(cherry picked from commit 7c07083724980af73f299c079f9040166120b1e4)
---
source/network/NetMessage.cpp | 5 +++--
source/simulation2/serialization/BinarySerializer.cpp | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/source/network/NetMessage.cpp b/source/network/NetMessage.cpp
index 61126d8..9515d93 100644
--- a/source/network/NetMessage.cpp
+++ b/source/network/NetMessage.cpp
@@ -1,4 +1,4 @@
-/* Copyright (C) 2017 Wildfire Games.
+/* Copyright (C) 2023 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@@ -216,7 +216,8 @@ CNetMessage* CNetMessageFactory::CreateMessage(const void* pData,
break;
default:
- LOGERROR("CNetMessageFactory::CreateMessage(): Unknown message type '%d' received", header.GetType());
+ LOGERROR("CNetMessageFactory::CreateMessage(): Unknown message type '%d' received",
+ static_cast<int>(header.GetType()));
break;
}
diff --git a/source/simulation2/serialization/BinarySerializer.cpp b/source/simulation2/serialization/BinarySerializer.cpp
index 6a0b4e4..7d30c5b 100644
--- a/source/simulation2/serialization/BinarySerializer.cpp
+++ b/source/simulation2/serialization/BinarySerializer.cpp
@@ -52,7 +52,7 @@ static u8 GetArrayType(js::Scalar::Type arrayType)
case js::Scalar::Uint8Clamped:
return SCRIPT_TYPED_ARRAY_UINT8_CLAMPED;
default:
- LOGERROR("Cannot serialize unrecognized typed array view: %d", arrayType);
+ LOGERROR("Cannot serialize unrecognized typed array view: %d", static_cast<int>(arrayType));
throw PSERROR_Serialize_InvalidScriptValue();
}
} |
_________________ " Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier " |
|
Back to top |
|
|
Da51d n00b
Joined: 27 Mar 2024 Posts: 16
|
Posted: Fri Jan 10, 2025 11:58 pm Post subject: |
|
|
Ok, so how can I apply the patches? I did try to manually edit the files in /var/tmp/portage/games-strategy/0ad-0.0.26_alpha-r2/work/0ad-0.0.26-alpha/source/, but how can I then build it? If I use emerge, it simply replaces my edited files. _________________ What can be said at all can be said clearly and what we cannot talk about we must pass over in silence. |
|
Back to top |
|
|
CooSee Veteran
Joined: 20 Nov 2004 Posts: 1487 Location: Earth
|
Posted: Sat Jan 11, 2025 12:09 am Post subject: |
|
|
Da51d wrote: | Ok, so how can I apply the patches? I did try to manually edit the files in /var/tmp/portage/games-strategy/0ad-0.0.26_alpha-r2/work/0ad-0.0.26-alpha/source/, but how can I then build it? If I use emerge, it simply replaces my edited files. |
/etc/portage/patches/games-strategy/0ad/ and re-emerge 0ad.
you'll see output or in the log, e.g.
Code: | * Applying user patches from /etc/portage/patches ...
* Applying 0012-Fix-segfault-with-openal-1.24.0.patch ...
[ ok ]
* Applying Fix-the-removal-of-implicit-conversions-in-libfmt-10.patch ...
[ ok ]
* User patches applied. |
https://wiki.gentoo.org/wiki//etc/portage/patches
_________________ " Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier " |
|
Back to top |
|
|
Da51d n00b
Joined: 27 Mar 2024 Posts: 16
|
Posted: Sat Jan 11, 2025 1:36 am Post subject: |
|
|
Thanks. Now I have not done this before, and my first patching efforts elicit this response...
Code: | >>> Failed to emerge games-strategy/0ad-0.0.26_alpha-r2, Log file:
>>> '/var/tmp/portage/games-strategy/0ad-0.0.26_alpha-r2/temp/build.log'
* Messages for package games-strategy/0ad-0.0.26_alpha-r2:
* ERROR: games-strategy/0ad-0.0.26_alpha-r2::gentoo failed (prepare phase):
* patch -p1 failed with /etc/portage/patches/games-strategy/0ad/Fix-the-removal-of-implicit-conversions-in-libfmt-10.patch
*
* Call stack:
* ebuild.sh, line 136: Called src_prepare
* environment, line 3212: Called default
* phase-functions.sh, line 874: Called default_src_prepare
* phase-functions.sh, line 950: Called __eapi8_src_prepare
* environment, line 357: Called eapply_user
* environment, line 1466: Called eapply '/etc/portage/patches/games-strategy/0ad/Fix-the-removal-of-implicit-conversions-in-libfmt-10.patch'
* environment, line 1426: Called _eapply_patch '/etc/portage/patches/games-strategy/0ad/Fix-the-removal-of-implicit-conversions-in-libfmt-10.patch'
* environment, line 1364: Called __helpers_die 'patch -p1 failed with /etc/portage/patches/games-strategy/0ad/Fix-the-removal-of-implicit-conversions-in-libfmt-10.patch'
* isolated-functions.sh, line 112: Called die
* The specific snippet of code:
* die "$@" |
The contents of my patchfile:
Code: | diff --git a/source/network/NetMessage.cpp b/source/network/NetMessage.cpp
index 61126d8..9515d93 100644
--- a/source/network/NetMessage.cpp
+++ b/source/network/NetMessage.cpp
@@ -1,4 +1,4 @@
-/* Copyright (C) 2017 Wildfire Games.
+/* Copyright (C) 2023 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@@ -216,7 +216,8 @@ CNetMessage* CNetMessageFactory::CreateMessage(const void* pData,
break;
default:
- LOGERROR("CNetMessageFactory::CreateMessage(): Unknown message type '%d' received", header.GetType());
+ LOGERROR("CNetMessageFactory::CreateMessage(): Unknown message type '%d' received",
+ static_cast<int>(header.GetType()));
break;
}
diff --git a/source/simulation2/serialization/BinarySerializer.cpp b/source/simulation2/serialization/BinarySerializer.cpp
index 6a0b4e4..7d30c5b 100644
--- a/source/simulation2/serialization/BinarySerializer.cpp
+++ b/source/simulation2/serialization/BinarySerializer.cpp
@@ -52,7 +52,7 @@ static u8 GetArrayType(js::Scalar::Type arrayType)
case js::Scalar::Uint8Clamped:
return SCRIPT_TYPED_ARRAY_UINT8_CLAMPED;
default:
- LOGERROR("Cannot serialize unrecognized typed array view: %d", arrayType);
+ LOGERROR("Cannot serialize unrecognized typed array view: %d", static_cast<int>(arrayType));
throw PSERROR_Serialize_InvalidScriptValue();
}
} |
What should be the precise content of the patch file? It did not like mine. _________________ What can be said at all can be said clearly and what we cannot talk about we must pass over in silence. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|