x86_64-pc-linux-gnu-g++ -o /var/tmp/portage/net-libs/nodejs-16.20.0/work/node-v16.20.0/out/Release/obj.target/v8_compiler/deps/v8/src/compiler/backend/instruction-selector.o ../deps/v8/src/compile r/backend/instruction-selector.cc '-D_GLIBCXX_USE_CXX11_ABI=1' '-DNODE_OPENSSL_CONF_NAME=nodejs_conf' '-DNODE_OPENSSL_CERT_STORE' '-DICU_NO_USER_DATA_OVERRIDE' '-DV8_GYP_BUILD' '-DV8_TYPED_ARRAY_MAX _SIZE_IN_HEAP=64' '-D__STDC_FORMAT_MACROS' '-DV8_TARGET_ARCH_X64' '-DV8_HAVE_TARGET_OS' '-DV8_TARGET_OS_LINUX' '-DV8_EMBEDDER_STRING="-node.26"' '-DENABLE_DISASSEMBLER' '-DV8_PROMISE_INTERNAL_FIELD_ COUNT=1' '-DENABLE_MINOR_MC' '-DOBJECT_PRINT' '-DV8_INTL_SUPPORT' '-DV8_ATOMIC_OBJECT_FIELD_WRITES' '-DV8_ATOMIC_MARKING_STATE' '-DV8_ENABLE_LAZY_SOURCE_POSITIONS' '-DV8_USE_SIPHASH' '-DDISABLE_UNTR USTED_CODE_MITIGATIONS' '-DV8_WIN64_UNWINDING_INFO' '-DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH' '-DV8_SNAPSHOT_COMPRESSION' '-DV8_ENABLE_WEBASSEMBLY' '-DV8_ALLOCATION_FOLDING' '-DV8_ALLOCATIO N_SITE_TRACKING' '-DV8_ADVANCED_BIGINT_ALGORITHMS' -I../deps/v8 -I../deps/v8/include -I/var/tmp/portage/net-libs/nodejs-16.20.0/work/node-v16.20.0/out/Release/obj/gen/generate-bytecode-output-root - I/var/tmp/portage/net-libs/nodejs-16.20.0/work/node-v16.20.0/out/Release/obj/gen -pthread -Wno-unused-parameter -m64 -Wno-return-type -fno-strict-aliasing -m64 -fno-omit-frame-pointer -fdata-sectio ns -ffunction-sections -O3 -fno-rtti -fno-exceptions -std=gnu++14 -mtune=native -O2 -pipe -c x86_64-pc-linux-gnu-g++ -o /var/tmp/portage/net-libs/nodejs-16.20.0/work/node-v16.20.0/out/Release/obj.target/v8_compiler/deps/v8/src/compiler/backend/jump-threading.o ../deps/v8/src/compiler/backend/jump-threading.cc '-D_GLIBCXX_USE_CXX11_ABI=1' '-DNODE_OPENSSL_CONF_NAME=nodejs_conf' '-DNODE_OPENSSL_CERT_STORE' '-DICU_NO_USER_DATA_OVERRIDE' '-DV8_GYP_BUILD' '-DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64' '-D__STDC_FORMAT_MACROS' '-DV8_TARGET_ARCH_X64' '-DV8_HAVE_TARGET_OS' '-DV8_TARGET_OS_LINUX' '-DV8_EMBEDDER_STRING="-node.26"' '-DENABLE_DISASSEMBLER' '-DV8_PROMISE_INTERNAL_FIELD_COUNT=1' '-DENABLE_MINOR_MC' '-DOBJECT_PRINT' '-DV8_INTL_SUPPORT' '-DV8_ATOMIC_OBJECT_FIELD_WRITES' '-DV8_ATOMIC_MARKING_STATE' '-DV8_ENABLE_LAZY_SOURCE_POSITIONS' '-DV8_USE_SIPHASH' '-DDISABLE_UNTRUSTED_CODE_MITIGATIONS' '-DV8_WIN64_UNWINDING_INFO' '-DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH' '-DV8_SNAPSHOT_COMPRESSION' '-DV8_ENABLE_WEBASSEMBLY' '-DV8_ALLOCATION_FOLDING' '-DV8_ALLOCATION_SITE_TRACKING' '-DV8_ADVANCED_BIGINT_ALGORITHMS' -I../deps/v8 -I../deps/v8/include -I/var/tmp/portage/net-libs/nodejs-16.20.0/work/node-v16.20.0/out/Release/obj/gen/generate-bytecode-output-root -I/var/tmp/portage/net-libs/nodejs-16.20.0/work/node-v16.20.0/out/Release/obj/gen -pthread -Wno-unused-parameter -m64 -Wno-return-type -fno-strict-aliasing -m64 -fno-omit-frame-pointer -fdata-sections -ffunction-sections -O3 -fno-rtti -fno-exceptions -std=gnu++14 -mtune=native -O2 -pipe -c In file included from ../deps/v8/src/compiler/simplified-operator.h:12, from ../deps/v8/src/compiler/access-builder.h:9, from ../deps/v8/src/compiler/access-builder.cc:5: ../deps/v8/src/codegen/tnode.h:259:12: error: 'disjunction' is not a member of 'std' 259 | std::disjunction<std::is_base_of<U, T>, | ^~~~~~~~~~~ ../deps/v8/src/codegen/tnode.h:259:12: note: 'std::disjunction' is only available from C++17 onwards ../deps/v8/src/codegen/tnode.h:259:45: error: expected primary-expression before ',' token 259 | std::disjunction<std::is_base_of<U, T>, | ^ ../deps/v8/src/codegen/tnode.h:260:24: error: invalid use of '::' 260 | std::conjunction<std::is_same<U, MaybeObject>, | ^~~ ../deps/v8/src/codegen/tnode.h:260:29: error: expected ';' at end of member declaration 260 | std::conjunction<std::is_same<U, MaybeObject>, | ^~~~~~~~~~~ | ; ../deps/v8/src/codegen/tnode.h:260:40: error: expected unqualified-id before '<' token 260 | std::conjunction<std::is_same<U, MaybeObject>, | ^ In file included from ../deps/v8/src/codegen/interface-descriptors.h:13, from ../deps/v8/src/compiler/linkage.h:10, from ../deps/v8/src/compiler/common-operator.h:15, from ../deps/v8/src/compiler/backend/instruction.h:20, from ../deps/v8/src/compiler/backend/instruction.cc:5: ../deps/v8/src/codegen/tnode.h:259:12: error: 'disjunction' is not a member of 'std' 259 | std::disjunction<std::is_base_of<U, T>, | ^~~~~~~~~~~
Created attachment 860882 [details] build.log
Portage 3.0.44 (python 3.10.10-final-0, default/linux/amd64/17.1, gcc-12, glibc-2.36-r7, 5.15.102-gentoo x86_64) ================================================================= System uname: Linux-5.15.102-gentoo-x86_64-Intel-R-_Xeon-R-_Gold_6242_CPU_@_2.80GHz-with-glibc2.36 KiB Mem: 41077568 total, 2737460 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Thu, 27 Apr 2023 23:15:01 +0000 Head commit of repository gentoo: 901f565f0dc6d071000db23ae35179655f099f64 sh bash 5.1_p16-r2 ld GNU ld (Gentoo 2.39 p6) 2.39.0 app-misc/pax-utils: 1.3.5::gentoo app-shells/bash: 5.1_p16-r2::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.36.0-r2::gentoo dev-lang/python: 3.10.10_p3::gentoo, 3.11.2_p2::gentoo dev-util/cmake: 3.25.3::gentoo dev-util/meson: 1.0.1::gentoo sys-apps/baselayout: 2.13-r1::gentoo sys-apps/openrc: 0.46::gentoo sys-apps/sandbox: 2.29::gentoo sys-devel/autoconf: 2.71-r5::gentoo sys-devel/automake: 1.16.5::gentoo sys-devel/binutils: 2.39-r5::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/gcc: 12.2.1_p20230304::gentoo sys-devel/gcc-config: 2.10::gentoo sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/make: 4.4.1::gentoo sys-kernel/linux-headers: 6.1::gentoo (virtual/os-headers) sys-libs/glibc: 2.36-r7::gentoo ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-mtune=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind" 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="-mtune=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="-mtune=native -O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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="-mtune=native -O2 -pipe" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" MAKEOPTS="-j4" 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 nptl openmp pam pcre readline seccomp split-usr ssl test-rust unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core authz_host dir mime socache_shmcb unixd actions alias deflate env expires filter headers include info log_config log_forensic mime_magic negotiation remoteip rewrite setenvif status auth_basic authnz_ldap http2 proxy proxy_connect proxy_http authn_file authn_socache authz_groupfile authz_owner authz_user" APACHE2_MPMS="event" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx f16c pclmul popcnt sse3 sse4_1 sse4_2 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" GRUB_PLATFORMS="pc" 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="ruby30" 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, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
std::disjunction and std::conjuction are c++17 features. Following "hack" should do it: --- a/deps/v8/src/codegen/tnode.h +++ b/deps/v8/src/codegen/tnode.h @@ -7,6 +7,20 @@ #include "src/codegen/machine-type.h" +#if __cplusplus < 201703L +namespace std { +template<class...> struct disjunction : std::false_type { }; +template<class T1> struct disjunction<T1> : T1 { }; +template<class T1, class... Tn> +struct disjunction<T1, Tn...> : std::conditional_t<bool(T1::value), T1, disjunction<Tn...>> { }; + +template<class...> struct conjunction : std::true_type { }; +template<class T1> struct conjunction<T1> : T1 { }; +template<class T1, class... Tn> +struct conjunction<T1, Tn...> : std::conditional_t<bool(T1::value), conjunction<Tn...>, T1> {}; +} +#endif + namespace v8 { namespace internal {
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6bf2ee6e21c35d6c2bad2f9cf1158538dd9026a6 commit 6bf2ee6e21c35d6c2bad2f9cf1158538dd9026a6 Author: William Hubbs <williamh@gentoo.org> AuthorDate: 2023-04-28 18:03:39 +0000 Commit: William Hubbs <williamh@gentoo.org> CommitDate: 2023-04-28 18:05:44 +0000 net-libs/nodejs: fix build for 16.20.0 Closes: https://bugs.gentoo.org/905227 Signed-off-by: William Hubbs <williamh@gentoo.org> net-libs/nodejs/nodejs-16.20.0.ebuild | 4 ---- 1 file changed, 4 deletions(-)
Thanks