Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 905626 - sys-cluster/ceph-17.2.5-r4 and 17.2.6-r1 fail to build with GCC 12.2.1_p20230428-r1 : "#error "C++ versions less than C++14 are not supported.""
Summary: sys-cluster/ceph-17.2.5-r4 and 17.2.6-r1 fail to build with GCC 12.2.1_p20230...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-03 03:03 UTC by Kenneth Lakin
Modified: 2023-06-03 01:55 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Lakin 2023-05-03 03:03:56 UTC
Ceph 17.2.x (both 17.2.5-r4 and 17.2.6-r1) fail to build with GCC 12.2.1.
Ceph 16.2.10-r5 built just fine with GCC 12.2.1 on April 30th.

Reproducible: Always

Steps to Reproduce:
1) On ~amd64, have gcc:12 selected as the default compiler.
2) Attempt to build Ceph 17.x
3) Watch as the build fails.
Actual Results:  
Ceph fails to build with the C++ version error mentioned


The problem _appears_ to be that the build process erroneously selects a version of C++ earlier than C++14:

============================================

[155/237] Building CXX object src/arrow/CMakeFiles/arrow_objlib.dir/ipc/message.cc.o
FAILED: src/arrow/CMakeFiles/arrow_objlib.dir/ipc/message.cc.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DARROW_EXPORTING -DARROW_HAVE_RUNTIME_AVX2 -DARROW_HAVE_RUNTIME_AVX512 -DARROW_HAVE_RUNTIME_BMI2 -DARROW_HAVE_RUNTIME_SSE4_2 -DARROW_HAVE_SSE4_2 -DARROW_WITH_BACKTRACE -DARROW_WITH_LZ4 -DARROW_WITH_RE2 -DARROW_WITH_SNAPPY -DARROW_WITH_TIMING_TESTS -DARROW_WITH_UTF8PROC -DARROW_WITH_ZLIB -DARROW_WITH_ZSTD -DURI_STATIC_BUILD -DUTF8PROC_STATIC -I/var/tmp/portage/sys-cluster/ceph-17.2.6-r1/work/ceph-17.2.6_build/src/arrow/cpp/src -I/var/tmp/portage/sys-cluster/ceph-17.2.6-r1/work/ceph-17.2.6/src/arrow/cpp/src -I/var/tmp/portage/sys-cluster/ceph-17.2.6-r1/work/ceph-17.2.6/src/arrow/cpp/src/generated -isystem /var/tmp/portage/sys-cluster/ceph-17.2.6-r1/work/ceph-17.2.6/src/arrow/cpp/thirdparty/flatbuffers/include -isystem /var/tmp/portage/sys-cluster/ceph-17.2.6-r1/work/ceph-17.2.6_build/src/arrow/cpp/xsimd_ep/src/xsimd_ep-install/include -isystem /var/tmp/portage/sys-cluster/ceph-17.2.6-r1/work/ceph-17.2.6_build/src/utf8proc/install/include -isystem /var/tmp/portage/sys-cluster/ceph-17.2.6-r1/work/ceph-17.2.6/src/arrow/cpp/thirdparty/hadoop/include -Wno-noexcept-type -O2 -pipe -march=znver1 -mtune=znver1 -ggdb -ggdb0 -fdiagnostics-color=always  -Wall -Wno-conversion -Wno-deprecated-declarations -Wno-sign-conversion -fno-semantic-interposition -msse4.2  -O2 -g -DNDEBUG -std=c++11 -fPIC -MD -MT src/arrow/CMakeFiles/arrow_objlib.dir/ipc/message.cc.o -MF src/arrow/CMakeFiles/arrow_objlib.dir/ipc/message.cc.o.d -o src/arrow/CMakeFiles/arrow_objlib.dir/ipc/message.cc.o -c /var/tmp/portage/sys-cluster/ceph-17.2.6-r1/work/ceph-17.2.6/src/arrow/cpp/src/arrow/ipc/message.cc

In file included from /usr/include/absl/base/config.h:86,
                 from /usr/include/absl/base/attributes.h:37,
                 from /usr/include/absl/strings/string_view.h:39,
                 from /var/tmp/portage/sys-cluster/ceph-17.2.6-r1/work/ceph-17.2.6/src/arrow/cpp/thirdparty/flatbuffers/include/flatbuffers/base.h:217,
                 from /var/tmp/portage/sys-cluster/ceph-17.2.6-r1/work/ceph-17.2.6/src/arrow/cpp/thirdparty/flatbuffers/include/flatbuffers/flatbuffers.h:20,
                 from /var/tmp/portage/sys-cluster/ceph-17.2.6-r1/work/ceph-17.2.6/src/arrow/cpp/src/arrow/ipc/metadata_internal.h:29,
                 from /var/tmp/portage/sys-cluster/ceph-17.2.6-r1/work/ceph-17.2.6/src/arrow/cpp/src/arrow/ipc/message.cc:31:
/usr/include/absl/base/policy_checks.h:79:2: error: #error "C++ versions less than C++14 are not supported."
   79 | #error "C++ versions less than C++14 are not supported."

=========================================

The package's build.log is attached. Do note that I intentionally built the package with 'MAKEOPTS="-j1 -l1" FEATURES="-distcc"' to make the output easier to follow. It fails in the same way even if I use my default MAKEOPTS and FEATURES.

emerge --info follows:

===============================
emerge --info '=sys-cluster/ceph-17.2.6-r1::gentoo'
Portage 3.0.47 (python 3.11.3-final-0, default/linux/amd64/17.1/hardened, gcc-12, glibc-2.37-r2, 6.2.7-gentoo-x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.2.7-gentoo-x86_64-x86_64-AMD_Ryzen_Threadripper_2950X_16-Core_Processor-with-glibc2.37
KiB Mem:   131771696 total,  56550004 free
KiB Swap:   10485756 total,  10485756 free
Timestamp of repository gentoo: Tue, 02 May 2023 14:30:01 +0000
Head commit of repository gentoo: 1a178de287fbeab48b20c1294f53a58e24893e6e
Timestamp of repository steam-overlay: Mon, 01 May 2023 13:50:22 +0000
Head commit of repository steam-overlay: 018f4fab8db0f38020e9e8cc951bb715759d8952

sh bash 5.2_p15-r2
ld GNU ld (Gentoo 2.40 p4) 2.40.0
distcc 3.4 x86_64-pc-linux-gnu [enabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r2::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.1-r1::gentoo
dev-lang/python:           3.9.16_p3::gentoo, 3.10.11::gentoo, 3.11.3::gentoo
dev-lang/rust:             1.69.0-r1::gentoo
dev-util/cmake:            3.26.3::gentoo
dev-util/meson:            1.1.0::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/openrc:           0.47.1::gentoo
sys-apps/sandbox:          2.30-r1::gentoo
sys-devel/autoconf:        2.13-r8::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r4::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r1::gentoo, 16.0.2::gentoo
sys-devel/gcc:             12.2.1_p20230428-r1::gentoo, 13.1.0-r1::gentoo
sys-devel/gcc-config:      2.10::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.2::gentoo
sys-devel/make:            4.4.1::gentoo
sys-kernel/linux-headers:  6.3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://router.simoncion.net/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo
    volatile: False

local
    location: /usr/local/portage
    masters: gentoo
    priority: 99999
    volatile: True

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE dlj-1.1 PUEL googleearth sun-bcla-java-vm google-talkplugin google-chrome Oracle-BCLA-JavaSE RAR GIMPS linux-firmware SSPL-1 bh-luxi linux-fw-redistributable no-source-code all-rights-reserved CC-BY-NC-4.0 android unRAR PUEL-10 NPSL fping sun-bcla-jai HPL netperf ValveSteamLicense OSGi-Specification-2.0"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=znver1 -mtune=znver1 -ggdb"
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/php/apache2-php8.2/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=znver1 -mtune=znver1 -ggdb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-j31 --verbose-conflicts"
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 -march=znver1 -mtune=znver1 -ggdb"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live cgroup compressdebug config-protect-if-modified distcc distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=znver1 -mtune=znver1 -ggdb"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="en en_US"
MAKEOPTS="-j31 -l 500"
PKGDIR="/usr/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="/var/tmp"
SHELL="/bin/bash"
USE="X acl alsa amd64 bluetooth btrfs bzip2 cet cli crypt cups dbus device-mapper dir3 doc dot dri drm dtrace elogind ffmpeg fontconfig fortran gdbm gtk hardened iconv icu ipv6 jack jpeg latex libglvnd libtirpc lm-sensors lvm multilib mysql nat-pmp ncurses nls nptl numa offensive ogg opengl openmp pam pcre pie png postgres qt readline samab sctp seccomp smartcard smb split-usr sqlite ssl ssp svg systemtap test-rust truetype udev unicode upnp vdpau vorbis vulkan xattr xtpax zeroconf zlib" ABI_X86="64" 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_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" 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" LLVM_TARGETS="AMDGPU BPF NVPTX WebAssembly" 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_11" PYTHON_TARGETS="python3_11 pypy3 python3_7 python3_8 python3_9" RUBY_TARGETS="ruby30" USERLAND="GNU" VIDEO_CARDS="amdgpu ati radeon radeonsi vesa dummy v4l fbdev" 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, LFLAGS, LIBTOOL, 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 Kenneth Lakin 2023-05-03 03:06:53 UTC
Well... I would have attached the build.log from the run, except that I keep getting a 500 from bugs.g.o whenever I submit the "attach the file" form.

Let me know if you need it and I can find somewhere else to host it.
Comment 2 Patrick McLean gentoo-dev 2023-05-03 21:40:31 UTC
Please try downgrading to dev-cpp/abseil-cpp-20220623.1
Comment 3 Patrick McLean gentoo-dev 2023-05-03 21:50:10 UTC
OK, it looks like having dev-cpp/abseil-cpp installed breaks USE=parquet. Try uninstalling dev-cpp/abseil-cpp or disable the parquet USE flag.
Comment 4 Kenneth Lakin 2023-05-04 18:39:54 UTC
Downgrading to dev-cpp/abseil-cpp-20220623.1 fixed the build problem. Thanks much!

I am unable to remove dev-cpp/abseil-cpp, as I have app-office/libreoffice installed, which appears to unconditionally require it. I'm hesitant to disable the 'parquet' USE flag on sys-cluster/ceph, as it appears to be a default-on flag.

Should I open a bug against abseil-cpp, or is this other bug enough of a paper trail? <https://bugs.gentoo.org/905378>
Comment 5 Stephan Hartmann (RETIRED) gentoo-dev 2023-05-04 19:02:10 UTC
It is a problem in flatbuffers:
https://github.com/google/flatbuffers/pull/7897
Comment 6 Andreas Sturmlechner gentoo-dev 2023-05-20 20:35:32 UTC
Could this possibly be addressed before the end of the month?
Comment 7 Roy Bamford gentoo-dev 2023-05-28 16:28:17 UTC
(In reply to Patrick McLean from comment #2)
> Please try downgrading to dev-cpp/abseil-cpp-20220623.1

Downgrading to dev-cpp/abseil-cpp-20220623.1 works for me on arm64 with sys-cluster/ceph-17.2.6-r2 and sys-devel/gcc-12.2.1_p20230304.
Comment 8 Andreas Sturmlechner gentoo-dev 2023-05-29 19:17:49 UTC
See also the postgis patch I just added to fix bug 905378, it should work the same for ceph after adjusting paths.

I'll not let this block stabilisation though, we have been waiting for long enough.
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-03 01:55:25 UTC
commit 37730ad6c0384670c28db327239bcf6be3480b03 (HEAD -> master, origin/master, origin/HEAD)
Author: Sam James <sam@gentoo.org>
Date:   Sat Jun 3 02:54:01 2023 +0100

    sys-cluster/ceph: fix build w/ new abseil

    Closes: https://bugs.gentoo.org/895254
    Signed-off-by: Sam James <sam@gentoo.org>