compilation error
Creating config.mak, rgy_config.h...
SRCDIR = .
CXX = g++-14
NVCC = /opt/cuda/bin/nvcc
LD = g++-14
PROGRAM = nvencc
ENABLE_DEBUG = 0
CXXFLAGS = -Wall -Wno-unknown-pragmas -Wno-unused -Wno-missing-braces -DLINUX -DUNIX -D_FILE_OFFSET_BITS=64 -D__USE_LARGEFILE64 -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -pthread -msse2 -fPIE -O3 -DNDEBUG=1 -mfpmath=sse -ffast-math -fomit-frame-pointer -std=c++17 -I. -I./NVEncSDK/Common/inc -I./NVEncCore -I./NVEncNVOFFRUC -I./NVEncNVSDKNGX -I./jitify -I./tinyxml2 -I./cppcodec -I./ttmath -DLINUX64 -m64 -I/opt/cuda/include -I/usr/include/vapoursynth -I/usr/include/python3.13 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/libpng16 -I/home/cucaracha/.cache/yay/nvenc-git/src/NVEnc/build_libhdr10plus/include
NVCCFLAGS = --generate-code arch=compute_50,code=[compute_50,sm_50] --generate-code arch=compute_61,code=[compute_61,sm_61] --generate-code arch=compute_75,code=[compute_75,sm_75] --generate-code arch=compute_86,code=[compute_86,sm_86] -Wno-deprecated-gpu-targets --cudart=static -std=c++14 -Xcudafe "--display_error_number --diag_suppress=108 --diag_suppress=63" -t 0 -std=c++14 -ccbin g++-14 -I/opt/cuda/include -I. -I./NVEncSDK/Common/inc -I./NVEncCore -I./NVEncNVOFFRUC -I./NVEncNVSDKNGX -I./jitify -I./tinyxml2 -I./cppcodec -I./ttmath -DLINUX64 -m64 -Xcompiler "-Wall -Wno-unknown-pragmas -Wno-unused -Wno-missing-braces -DLINUX -DUNIX -D_FILE_OFFSET_BITS=64 -D__USE_LARGEFILE64 -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -pthread -msse2 -fPIE -O3 -DNDEBUG=1 -mfpmath=sse -ffast-math -fomit-frame-pointer -I/usr/include/vapoursynth -I/usr/include/python3.13 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/libpng16 -I/home/cucaracha/.cache/yay/nvenc-git/src/NVEnc/build_libhdr10plus/include "
LDFLAGS = -L. -ldl -lstdc++ -lstdc++fs -m64 -pthread -L/opt/cuda/lib64 -lnppif_static -lnppig_static -lnppc_static -lcudart_static -lculibos -lcuda -lrt -lavdevice -lavfilter -lavformat -lavcodec -lswresample -lavutil -lass -ldovi -lgcc_s -lutil -lrt -lpthread -lm -ldl -lc -L/home/cucaracha/.cache/yay/nvenc-git/src/NVEnc/build_libhdr10plus/lib -lhdr10plus-rs -lgcc_s -lutil -lrt -lpthread -lm -ldl -lc
PREFIX = /usr
X86_64 = 1
#define ENCODER_REV "3442"
#define ENABLE_AVI_READER 0
#define ENABLE_AVISYNTH_READER 0
#define ENABLE_VAPOURSYNTH_READER 1
#define ENABLE_AVSW_READER 1
#define ENABLE_SM_READER 0
#define ENABLE_LIBASS_SUBBURN 1
#define ENABLE_VMAF 0
#define ENABLE_AVCODEC_OUT_THREAD 1
#define AV_CHANNEL_LAYOUT_STRUCT_AVAIL 1
#define AV_FRAME_DURATION_AVAIL 1
#define AVCODEC_PAR_CODED_SIDE_DATA_AVAIL 1
#define AVS_INTERF_VER 0
#define ENABLE_CPP_REGEX 1
#define ENABLE_DTL 0
#define ENABLE_LIBDOVI 1
#define ENABLE_LIBHDR10PLUS 1
#define ENABLE_VULKAN (1 && 1)
#define ENABLE_LIBPLACEBO 1
#define ENABLE_PERF_COUNTER 0
successfully generated config.mak, rgy_config.h
/opt/cuda/bin/nvcc -c --generate-code arch=compute_50,code=[compute_50,sm_50] --generate-code arch=compute_61,code=[compute_61,sm_61] --generate-code arch=compute_75,code=[compute_75,sm_75] --generate-code arch=compute_86,code=[compute_86,sm_86] -Wno-deprecated-gpu-targets --cudart=static -std=c++14 -Xcudafe "--display_error_number --diag_suppress=108 --diag_suppress=63" -t 0 -std=c++14 -ccbin g++-14 -I/opt/cuda/include -I. -I./NVEncSDK/Common/inc -I./NVEncCore -I./NVEncNVOFFRUC -I./NVEncNVSDKNGX -I./jitify -I./tinyxml2 -I./cppcodec -I./ttmath -DLINUX64 -m64 -Xcompiler "-Wall -Wno-unknown-pragmas -Wno-unused -Wno-missing-braces -DLINUX -DUNIX -D_FILE_OFFSET_BITS=64 -D__USE_LARGEFILE64 -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -pthread -msse2 -fPIE -O3 -DNDEBUG=1 -mfpmath=sse -ffast-math -fomit-frame-pointer -I/usr/include/vapoursynth -I/usr/include/python3.13 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/libpng16 -I/home/cucaracha/.cache/yay/nvenc-git/src/NVEnc/build_libhdr10plus/include " -o NVEncCore/NVEncFilterAfsAnalyze.o NVEncCore/NVEncFilterAfsAnalyze.cu
/usr/lib/gcc/x86_64-pc-linux-gnu/14.3.1/include/c++/x86_64-pc-linux-gnu/bits/c++config.h(830): error: user-defined literal operator not found
typedef __decltype(0.0bf16) __bfloat16_t;
^
/usr/include/bits/mathcalls.h(83): error: exception specification is incompatible with that of previous function "cospi" (declared at line 2595 of /opt/cuda/include/crt/math_functions.h)
extern double cospi (double __x) noexcept (true); extern double __cospi (double __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(85): error: exception specification is incompatible with that of previous function "sinpi" (declared at line 2550 of /opt/cuda/include/crt/math_functions.h)
extern double sinpi (double __x) noexcept (true); extern double __sinpi (double __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(206): error: exception specification is incompatible with that of previous function "rsqrt" (declared at line 591 of /opt/cuda/include/crt/math_functions.h)
extern double rsqrt (double __x) noexcept (true); extern double __rsqrt (double __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(83): error: exception specification is incompatible with that of previous function "cospif" (declared at line 2617 of /opt/cuda/include/crt/math_functions.h)
extern float cospif (float __x) noexcept (true); extern float __cospif (float __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(85): error: exception specification is incompatible with that of previous function "sinpif" (declared at line 2573 of /opt/cuda/include/crt/math_functions.h)
extern float sinpif (float __x) noexcept (true); extern float __sinpif (float __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(206): error: exception specification is incompatible with that of previous function "rsqrtf" (declared at line 615 of /opt/cuda/include/crt/math_functions.h)
extern float rsqrtf (float __x) noexcept (true); extern float __rsqrtf (float __x) noexcept (true);
^
/usr/lib/gcc/x86_64-pc-linux-gnu/14.3.1/include/c++/type_traits(529): error: type name is not allowed
: public __bool_constant<__is_array(_Tp)>
^
/usr/lib/gcc/x86_64-pc-linux-gnu/14.3.1/include/c++/type_traits(529): error: identifier "__is_array" is undefined
: public __bool_constant<__is_array(_Tp)>
^
/usr/lib/gcc/x86_64-pc-linux-gnu/14.3.1/include/c++/type_traits(581): error: type name is not allowed
: public __bool_constant<__is_member_object_pointer(_Tp)>
^
/usr/lib/gcc/x86_64-pc-linux-gnu/14.3.1/include/c++/type_traits(581): error: identifier "__is_member_object_pointer" is undefined
: public __bool_constant<__is_member_object_pointer(_Tp)>
^
/usr/lib/gcc/x86_64-pc-linux-gnu/14.3.1/include/c++/type_traits(603): error: type name is not allowed
: public __bool_constant<__is_member_function_pointer(_Tp)>
^
/usr/lib/gcc/x86_64-pc-linux-gnu/14.3.1/include/c++/type_traits(603): error: identifier "__is_member_function_pointer" is undefined
: public __bool_constant<__is_member_function_pointer(_Tp)>
^
/usr/lib/gcc/x86_64-pc-linux-gnu/14.3.1/include/c++/type_traits(695): error: type name is not allowed
: public __bool_constant<__is_reference(_Tp)>
^
/usr/lib/gcc/x86_64-pc-linux-gnu/14.3.1/include/c++/type_traits(695): error: identifier "__is_reference" is undefined
: public __bool_constant<__is_reference(_Tp)>
^
/usr/lib/gcc/x86_64-pc-linux-gnu/14.3.1/include/c++/type_traits(731): error: type name is not allowed
: public __bool_constant<__is_object(_Tp)>
^
/usr/lib/gcc/x86_64-pc-linux-gnu/14.3.1/include/c++/type_traits(731): error: identifier "__is_object" is undefined
: public __bool_constant<__is_object(_Tp)>
^
/usr/lib/gcc/x86_64-pc-linux-gnu/14.3.1/include/c++/type_traits(760): error: type name is not allowed
: public __bool_constant<__is_member_pointer(_Tp)>
^
/usr/lib/gcc/x86_64-pc-linux-gnu/14.3.1/include/c++/type_traits(760): error: identifier "__is_member_pointer" is undefined
: public __bool_constant<__is_member_pointer(_Tp)>
^
/usr/lib/gcc/x86_64-pc-linux-gnu/14.3.1/include/c++/bits/utility.h(237): error: __type_pack_element is not a template
{ using type = __type_pack_element<_Np, _Types...>; };
^
/usr/lib/gcc/x86_64-pc-linux-gnu/14.3.1/include/c++/type_traits(138): error: class "std::enable_if<, void>" has no member "type"
using __enable_if_t = typename enable_if<_Cond, _Tp>::type;
^
detected during:
instantiation of type "std::__enable_if_t<, void>" at line 176
instantiation of "std::__detail::__or_fn" based on template arguments <std::is_reference<std::_Rb_tree_node_base *>, std::is_function<std::_Rb_tree_node_base *>, std::is_void<std::_Rb_tree_node_base *>, std::__is_array_unknown_bounds<std::_Rb_tree_node_base *>> at line 194
instantiation of class "std::_or<_Bn...> [with _Bn=<std::is_reference<std::_Rb_tree_node_base *>, std::is_function<std::_Rb_tree_node_base *>, std::is_void<std::_Rb_tree_node_base *>, std::__is_array_unknown_bounds<std::_Rb_tree_node_base *>>]" at line 1237
instantiation of class "std::is_copy_assignable<_Tp> [with _Tp=std::_Rb_tree_node_base *]" at line 199
instantiation of class "std::_and<_Bn...> [with _Bn=<std::is_copy_assignable<std::_Rb_tree_node_base *>, std::is_copy_assignable<std::_Rb_tree_node_base *>>]" at line 922 of /usr/lib/gcc/x86_64-pc-linux-gnu/14.3.1/include/c++/bits/stl_pair.h
instantiation of class "std::pair<_T1, _T2> [with _T1=std::_Rb_tree_node_base *, _T2=std::_Rb_tree_node_base *]" at line 1652 of /usr/lib/gcc/x86_64-pc-linux-gnu/14.3.1/include/c++/bits/stl_tree.h
21 errors detected in the compilation of "NVEncCore/NVEncFilterAfsAnalyze.cu".
make: *** [makefile:45: NVEncCore/NVEncFilterAfsAnalyze.o] Ошибка 255
==> ОШИБКА: Произошел сбой в build().
Прерывание...
-> ошибка сборки: nvenc-git-exit status 4
-> Не удалось установить следующие пакеты. Необходимо ручное вмешательство:
nvenc-git - exit status 4
can't build nvenc on Arch
give me some recommendations please...
I think it might be conflict with CUDA vesion and gcc version.
Which version of CUDA is used here?
For gcc14, at least CUDA 12.8 or more shall be required.