Skip to content

Installation issue: orc@1.6.5 ^abseil-cpp@20240722.0 fails to build (cxxstd incompatibility) #5331

Description

@payerle

Steps to reproduce the issue

$ spack --env zen2-gcc13 find -lvfdIc orc
...
-- linux-rhel8-zen2 / %c,cxx=gcc@13.4.0 -------------------------
 -   x6okucx orc@1.6.5+ipo build_system=cmake build_type=RelWithDebInfo generator=make patches:=bc6f945
[+]  eufn52p     cmake@3.31.9~doc+ncurses+ownlibs~qtgui build_system=generic build_type=RelWithDebInfo
[+]  gu5vdnc         curl@8.15.0+gssapi~ldap+libidn2~librtmp~libssh+libssh2+nghttp2 build_system=autotools libs:=shared,static tls:=mbedtls,openssl
[+]  r2dc5ck             krb5@1.21.3+shared build_system=autotools
[+]  kdrpmhr                 bison@3.8.2~color build_system=autotools
[+]  vlbkf4y                     m4@1.4.20+sigsegv build_system=autotools
[+]  focymqv                         libsigsegv@2.14 build_system=autotools
[+]  iartorz                 diffutils@3.12 build_system=autotools
[+]  zfcjhbz                     libiconv@1.18 build_system=autotools libs:=shared,static
[+]  zirylds                 findutils@4.10.0 build_system=autotools patches:=440b954
[+]  ful6i3c                 gettext@0.23.1+bzip2+curses+git+libunistring+libxml2+pic+shared+tar+xz build_system=autotools
[+]  btav5ox                     libxml2@2.13.5+http+pic~python+shared build_system=autotools
[+]  ahyoscx                     tar@1.35 build_system=autotools zip=pigz
[+]  vxpii7z                         pigz@2.8 build_system=makefile
[+]  ihgv3uq                 libedit@3.1-20240808 build_system=autotools
[+]  xtgeq4a             libidn2@2.3.7 build_system=autotools
[+]  xbdx6lg                 libunistring@1.2 build_system=autotools
[+]  24bzzhf             libssh2@1.11.1+shared build_system=autotools crypto=mbedtls
[+]  crudhjn             mbedtls@2.28.9+pic build_system=makefile build_type=RelWithDebInfo libs:=shared,static
[+]  7wi62dj             nghttp2@1.67.1 build_system=autotools
[+]  2pp7u3i             pkgconf@2.5.1 build_system=autotools
[+]  gd56l37         gcc-runtime@13.4.0 build_system=generic
[e]  3kzdcra         glibc@2.28 build_system=autotools
[+]  vet42cx         ncurses@6.5-20250705+symlinks+termlib abi=5 build_system=autotools patches:=7a351bc
[+]  c4lvqa5     compiler-wrapper@1.0 build_system=generic
[e]  gw3zygo     gcc@13.4.0+binutils~bootstrap+graphite~mold+nvptx~piclibs~strip build_system=autotools build_type=RelWithDebInfo languages:='c,c++,fortran,lto'
[+]  nu5yaj3     gcc-runtime@13.4.0 build_system=generic
[e]  wklw66w     glibc@2.28 build_system=autotools
[+]  ymb7dyf     gmake@4.4.1~guile build_system=generic
[+]  ul6isdi     googletest@1.17.0+absl+gmock+ipo+pthreads+shared build_system=cmake build_type=RelWithDebInfo cxxstd=20 generator=make
[+]  kzehuda         abseil-cpp@20240722.0+ipo+shared build_system=cmake build_type=RelWithDebInfo cxxstd=20 generator=make
[+]  txytqfd         re2@2024-07-02+icu+ipo+pic+shared build_system=cmake build_type=RelWithDebInfo generator=make
[+]  huynv7f             icu4c@74.2 build_system=autotools cxxstd=17
[+]  3aiqxj6                 autoconf@2.72 build_system=autotools
[+]  gccovmi                 automake@1.16.5 build_system=autotools
[+]  jqlakep                 libtool@2.4.7 build_system=autotools
[+]  zpdbwq5                 python@3.12.12+bz2+crypt+ctypes+dbm~debug+libxml2+lzma+optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tkinter+uuid+zlib build_system=generic
[+]  refdbqx                     expat@2.7.3+libbsd build_system=autotools
[+]  4vlez4f                         libbsd@0.12.2 build_system=autotools
[+]  6nu43sp                             libmd@1.1.0 build_system=autotools
[+]  uihm2ze                     libffi@3.5.2 build_system=autotools
[+]  7kq27ho                     libxcrypt@4.4.38~obsolete_api build_system=autotools
[+]  rj3oq32                     sqlite@3.50.4+column_metadata+fts+rtree build_system=autotools
[+]  72jtd3q                     util-linux-uuid@2.41 build_system=autotools
[+]  3367tmt     lz4@1.10.0+pic build_system=makefile libs:=shared,static
[+]  izxi76s     maven@3.9.8 build_system=generic
[+]  u52ukjh         openjdk@17.0.11_9 build_system=generic certs=none
[+]  unrffxy     openssl@3.6.0~docs+shared build_system=generic certs=system
[+]  edlxjs4         perl@5.42.0+cpanm+opcode+open+shared+threads build_system=generic
[+]  pxa3pju             berkeley-db@18.1.40+cxx+docs+stl build_system=autotools patches:=26090f4
[+]  jiyqkwo             bzip2@1.0.8~debug+pic+shared build_system=generic
[+]  m4ifnmh             gdbm@1.25 build_system=autotools
[+]  f375v3a                 readline@8.3 build_system=autotools patches:=21f0a03
[+]  mtvmssv     pcre@8.45+jit+multibyte+pic+shared+static+utf build_system=autotools
[+]  n2ofmef     protobuf@3.25.3+ipo+shared build_system=cmake build_type=RelWithDebInfo generator=make
[+]  k4dlw4o     snappy@1.2.1+ipo+pic~shared build_system=cmake build_type=RelWithDebInfo generator=make
[+]  p4i3vud     zlib@1.3.1+optimize+pic+shared build_system=makefile
[+]  n64duty     zstd@1.5.7+programs build_system=makefile compression:=lz4,lzma,zlib libs:=shared,static
[+]  pyx73rp         xz@5.6.3+pic build_system=autotools libs:=shared,static

The error comes when you then do a spack install

Error message

Error message
...
[ 15%] Building CXX object c++/src/CMakeFiles/orc.dir/wrap/orc-proto-wrapper.cc.o
cd /tmp/swinst26/spackswinst26/spack-stage/spack-stage-orc-1.6.5-x6okucxodsmir5qennvh6u24sqtvx5kt/spack-build-x6okucx/c++/src && /cvmfs/hpcsw.umd.edu/spack-software/2025.11.0/linux-zen2/compiler-wrapper-1.0-c4lvqa5ekdyxfibdcfh6hfepzpfknhp5/libexec/spack/gcc/g++  -I/tmp/swinst26/spackswinst26/spack-stage/spack-stage-orc-1.6.5-x6okucxodsmir5qennvh6u24sqtvx5kt/spack-build-x6okucx/c++/include -I/tmp/swinst26/spackswinst26/spack-stage/spack-stage-orc-1.6.5-x6okucxodsmir5qennvh6u24sqtvx5kt/spack-src/c++/include -I/tmp/swinst26/spackswinst26/spack-stage/spack-stage-orc-1.6.5-x6okucxodsmir5qennvh6u24sqtvx5kt/spack-src/c++/src -I/tmp/swinst26/spackswinst26/spack-stage/spack-stage-orc-1.6.5-x6okucxodsmir5qennvh6u24sqtvx5kt/spack-build-x6okucx/c++/src -isystem /cvmfs/hpcsw.umd.edu/spack-software/2025.11.0/linux-zen2/snappy-1.2.1-k4dlw4okvexbospkj24oo4nbqds3jw5i/include -isystem /cvmfs/hpcsw.umd.edu/spack-software/2025.11.0/linux-zen2/zlib-1.3.1-p4i3vudzzs4cjl6bkziqjpxi7arstkc7/include -isystem /cvmfs/hpcsw.umd.edu/spack-software/2025.11.0/linux-zen2/zstd-1.5.7-n64dutyjoclsmyr552vqjd25ugvvhkn4/include -isystem /cvmfs/hpcsw.umd.edu/spack-software/2025.11.0/linux-zen2/lz4-1.10.0-3367tmtjwfu7whmzq2ufwjin42m6lohu/include -isystem /cvmfs/hpcsw.umd.edu/spack-software/2025.11.0/linux-zen2/protobuf-3.25.3-n2ofmefmfk73hzs2vl37x64sbt7jtmnu/include -fPIC -std=c++11 -Wall -Wno-unknown-pragmas -Wconversion -Werror -std=c++11 -Wall -Wno-unknown-pragmas -Wconversion -Werror -O3 -g -DNDEBUG -flto=auto -fno-fat-lto-objects -MD -MT c++/src/CMakeFiles/orc.dir/wrap/orc-proto-wrapper.cc.o -MF CMakeFiles/orc.dir/wrap/orc-proto-wrapper.cc.o.d -o CMakeFiles/orc.dir/wrap/orc-proto-wrapper.cc.o -c /tmp/swinst26/spackswinst26/spack-stage/spack-stage-orc-1.6.5-x6okucxodsmir5qennvh6u24sqtvx5kt/spack-src/c++/src/wrap/orc-proto-wrapper.cc
In file included from /cvmfs/hpcsw.umd.edu/spack-software/2025.11.0/linux-zen2/abseil-cpp-20240722.0-kzehudau7w3z5hkdqabfcqzqdydfgdxx/include/absl/base/config.h:92,
                 from /cvmfs/hpcsw.umd.edu/spack-software/2025.11.0/linux-zen2/abseil-cpp-20240722.0-kzehudau7w3z5hkdqabfcqzqdydfgdxx/include/absl/base/attributes.h:37,
                 from /cvmfs/hpcsw.umd.edu/spack-software/2025.11.0/linux-zen2/protobuf-3.25.3-n2ofmefmfk73hzs2vl37x64sbt7jtmnu/include/google/protobuf/port_def.inc:33,
                 from /tmp/swinst26/spackswinst26/spack-stage/spack-stage-orc-1.6.5-x6okucxodsmir5qennvh6u24sqtvx5kt/spack-build-x6okucx/c++/src/orc_proto.pb.h:13,
                 from /tmp/swinst26/spackswinst26/spack-stage/spack-stage-orc-1.6.5-x6okucxodsmir5qennvh6u24sqtvx5kt/spack-build-x6okucx/c++/src/orc_proto.pb.cc:4,
                 from /tmp/swinst26/spackswinst26/spack-stage/spack-stage-orc-1.6.5-x6okucxodsmir5qennvh6u24sqtvx5kt/spack-src/c++/src/wrap/orc-proto-wrapper.cc:44:
/cvmfs/hpcsw.umd.edu/spack-software/2025.11.0/linux-zen2/abseil-cpp-20240722.0-kzehudau7w3z5hkdqabfcqzqdydfgdxx/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."
...

Information on your system

spack debug report
* **Spack:** 1.2.0.dev0
* **Builtin repo:** https://github.com/spack/spack-packages/commit/119680aeee8ea802c6111b7167583bddef97e82f
* **Python:** 3.6.8
* **Platform:** linux-rhel8-zen2

Additional information

Files:

No maintainers for orc

It looks like the issue is due to:

  • orc hard codes a cxxstd depending on version. orc@1.6.5 seems to only support cxxstd=11, orc@1.7 or so upgraded to cxxstd=17
  • abseil-cpp has minimum cxxstds that it will support, again varying by version. The March2024 LTS version was last to support cxxstds 11,14, and after than minimum cxxstd version is 17
    (versions ranges above from search engine AI, I have not verified)

General information

  • I have run spack debug report and reported the version of Spack/Python/Platform
  • I have run spack maintainers <name-of-the-package> and @mentioned any maintainers
  • I have uploaded the build log and environment files
  • I have searched the issues of this repo and believe this is not a duplicate

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions