during upgrade to profile 23.0, ceph merge throws error at configure phase -- CMake Error at cmake/modules/CTags.cmake:19 (string): string sub-command REPLACE requires at least four arguments. Call Stack (most recent call first): CMakeLists.txt:738 (add_tags) CMake Error at cmake/modules/CTags.cmake:22 (string): string sub-command REPLACE requires at least four arguments. Call Stack (most recent call first): CMakeLists.txt:738 (add_tags) -- Reproducible: Always Portage 3.0.65 (python 3.12.4-final-0, default/linux/amd64/23.0/split-usr, gcc-13, glibc-2.39-r9, 6.6.9-gentoo-dist x86_64) ================================================================= System uname: Linux-6.6.9-gentoo-dist-x86_64-Intel-R-_Core-TM-_i7-10875H_CPU_@_2.30GHz-with-glibc2.39 KiB Mem: 32738004 total, 16581604 free KiB Swap: 5242876 total, 5242876 free Timestamp of repository gentoo: Wed, 19 Jun 2024 07:30:00 +0000 Head commit of repository gentoo: 9fee0a4997f5a61092693fbf861935e6f16ff260 sh bash 5.2_p26-r4 ld GNU ld (Gentoo 2.42 p3) 2.42.0 app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p26-r4::gentoo dev-build/autoconf: 2.71-r7::gentoo, 2.72-r1::gentoo dev-build/automake: 1.16.5-r2::gentoo dev-build/cmake: 3.29.3::gentoo dev-build/libtool: 2.4.7-r4::gentoo dev-build/make: 4.4.1-r1::gentoo dev-build/meson: 1.4.1::gentoo dev-lang/perl: 5.40.0::gentoo dev-lang/python: 3.11.7::gentoo, 3.12.4_p1::gentoo, 3.13.0_beta2_p9::gentoo dev-lang/rust: 1.78.0::gentoo sys-apps/baselayout: 2.15::gentoo sys-apps/openrc: 0.54::gentoo sys-apps/sandbox: 2.38::gentoo sys-devel/binutils: 2.42-r1::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/gcc: 13.3.1_p20240614::gentoo, 14.1.1_p20240615::gentoo sys-devel/gcc-config: 2.11::gentoo sys-kernel/linux-headers: 6.9::gentoo (virtual/os-headers) sys-libs/glibc: 2.39-r9::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://192.168.15.1/gentoo-portage/ priority: -1000 volatile: False sync-rsync-verify-metamanifest: no sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 3 sync-rsync-extra-opts: Binary Repositories: binhost priority: 9999 sync-uri: https://ftp.riken.jp/Linux/gentoo/releases/amd64/binpackages/23.0/x86-64-v3 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=skylake -mabm -mpku --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=16384 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/easy-rsa /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=skylake -mabm -mpku --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=16384 -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=skylake -mabm -mpku --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=16384 -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=skylake -mabm -mpku --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=16384 -O2 -pipe" GENTOO_MIRRORS="https://ftp.riken.jp/Linux/gentoo/ http://ftp.riken.jp/Linux/gentoo/ " LANG="C.UTF8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs" LEX="flex" 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 audit bash-completion bzip2 cet cjk crypt dhcp-tools fdk fuse gdbm grub iconv ipv6 libtirpc lvm lxc lzo multilib ncurses nfs nfsv41 nls openmp pam pcre rbd rbd-ssd readline seccomp spice split-usr ssl test-rust tftp unicode virtfs x264 x265 xattr zlib" ABI_X86="64" ADA_TARGET="gcc_12" 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="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" 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="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" 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, MAKEOPTS, 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
Created attachment 896407 [details] build log attaching build log and command line
so, it seems culprit is in /var/tmp/portage/sys-cluster/ceph-18.2.1-r2/work/ceph-18.2.1/cmake/modules/CTags.cmake in lines below if(${result_code} EQUAL 0) string(REPLACE "${TAGS_SRC_DIR}/" "" submodules ${submodules}) # cmake list uses ";" as the delimiter, so split the string manually # before iterating in it. string(REPLACE "\n" ";" submodules ${submodules}) it seems ${submodules} is empty so REPLACE gets this error. This variable is set just above in same file: execute_process( COMMAND git config --file .gitmodules --get-regexp path COMMAND awk "/${TAGS_SRC_DIR}/ { print $2 }" WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} RESULT_VARIABLE result_code OUTPUT_VARIABLE submodules OUTPUT_STRIP_TRAILING_WHITESPACE) tried to execute COMMAND manually and... wait a moment, I don't have git on this machine! So I installed git and the thing compiled. Please make git a dependency for ceph.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b08fbad08006b48bb93b66d433484caf6eca7af7 commit b08fbad08006b48bb93b66d433484caf6eca7af7 Author: Patrick Lauer <patrick@gentoo.org> AuthorDate: 2024-07-30 12:28:36 +0000 Commit: Patrick Lauer <patrick@gentoo.org> CommitDate: 2024-07-30 12:29:07 +0000 sys-cluster/ceph: Add dev-vcs/git dep Temporary fix as build system trips over lack of git. Bug: https://bugs.gentoo.org/934916 Signed-off-by: Patrick Lauer <patrick@gentoo.org> sys-cluster/ceph/ceph-18.2.4-r1.ebuild | 1 + 1 file changed, 1 insertion(+)