Problems compiling intel-media-driver
by fito from LinuxQuestions.org on (#6D8CZ)
Hello friends,
I am trying to compile the "intel-media-driver" package, from Slackbuild.org. I have the following error when compile it could you help me please:
Code:[ 7%] Building CXX object media_driver/CMakeFiles/iHD_drv_video_OBJ.dir/agnostic/common/cm/cm_kernel_ex.cpp.o
In file included from /tmp/SBo/media-driver-intel-media-21.3.5/media_driver/agnostic/common/os/mos_utilities.h:135,
from /tmp/SBo/media-driver-intel-media-21.3.5/media_driver/agnostic/common/os/mos_os.h:32,
from /tmp/SBo/media-driver-intel-media-21.3.5/media_driver/agnostic/common/os/mos_context.h:30,
from /tmp/SBo/media-driver-intel-media-21.3.5/media_driver/linux/common/ddi/media_libva_common.h:37,
from /tmp/SBo/media-driver-intel-media-21.3.5/media_driver/linux/common/cm/ddi/media_libva_cm.h:30,
from /tmp/SBo/media-driver-intel-media-21.3.5/media_driver/linux/common/cm/hal/cm_def_os.h:41,
from /tmp/SBo/media-driver-intel-media-21.3.5/media_driver/agnostic/common/cm/cm_def.h:30,
from /tmp/SBo/media-driver-intel-media-21.3.5/media_driver/agnostic/common/cm/cm_kernel.h:30,
from /tmp/SBo/media-driver-intel-media-21.3.5/media_driver/agnostic/common/cm/cm_kernel_rt.h:30,
from /tmp/SBo/media-driver-intel-media-21.3.5/media_driver/agnostic/common/cm/cm_kernel_ex.h:28,
from /tmp/SBo/media-driver-intel-media-21.3.5/media_driver/agnostic/common/cm/cm_kernel_ex.cpp:27:
In static member function istatic _Ty* MosUtilities::MosNewArrayUtil(int32_t) [with _Ty = unsigned char; _Types = {}]i,
inlined from i_Ty* MOS_NewArrayUtil(int32_t) [with _Ty = unsigned char; _Types = {}]i at /tmp/SBo/media-driver-intel-media-21.3.5/media_driver/agnostic/common/os/mos_utilities.h:196:46,
inlined from ivirtual int32_t CmKernelEx::Initialize(const char*, const char*)i at /tmp/SBo/media-driver-intel-media-21.3.5/media_driver/agnostic/common/cm/cm_kernel_ex.cpp:192:22,
inlined from ivirtual int32_t CmKernelEx::Initialize(const char*, const char*)i at /tmp/SBo/media-driver-intel-media-21.3.5/media_driver/agnostic/common/cm/cm_kernel_ex.cpp:70:9:
/tmp/SBo/media-driver-intel-media-21.3.5/media_softlet/agnostic/common/os/mos_utilities_next.h:107:20: error: argument 1 range [18446744071562067968, 18446744073709551615] exceeds maximum object size 9223372036854775807 [-Werror=alloc-size-larger-than=]
107 | _Ty* ptr = new (std::nothrow) _Ty[numElements]();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/13.1.0/bits/exception_ptr.h:38,
from /usr/include/c++/13.1.0/exception:164,
from /usr/include/c++/13.1.0/ios:41,
from /usr/include/c++/13.1.0/ostream:40,
from /usr/include/c++/13.1.0/iostream:41,
from /tmp/SBo/media-driver-intel-media-21.3.5/media_driver/linux/common/cm/hal/cm_def_os.h:34:
/usr/include/c++/13.1.0/new: In member function ivirtual int32_t CmKernelEx::Initialize(const char*, const char*)i:
/usr/include/c++/13.1.0/new:142:26: note: in a call to allocation function ivoid* operator new [](std::size_t, const std::nothrow_t&)i declared here
142 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [media_driver/CMakeFiles/iHD_drv_video_OBJ.dir/build.make:608: media_driver/CMakeFiles/iHD_drv_video_OBJ.dir/agnostic/common/cm/cm_kernel_ex.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:286: media_driver/CMakeFiles/iHD_drv_video_OBJ.dir/all] Error 2
make: *** [Makefile:156: all] Error 2Note:
Intel-GMMLIB dependencies are already installed
I will be very grateful for your help
I am trying to compile the "intel-media-driver" package, from Slackbuild.org. I have the following error when compile it could you help me please:
Code:[ 7%] Building CXX object media_driver/CMakeFiles/iHD_drv_video_OBJ.dir/agnostic/common/cm/cm_kernel_ex.cpp.o
In file included from /tmp/SBo/media-driver-intel-media-21.3.5/media_driver/agnostic/common/os/mos_utilities.h:135,
from /tmp/SBo/media-driver-intel-media-21.3.5/media_driver/agnostic/common/os/mos_os.h:32,
from /tmp/SBo/media-driver-intel-media-21.3.5/media_driver/agnostic/common/os/mos_context.h:30,
from /tmp/SBo/media-driver-intel-media-21.3.5/media_driver/linux/common/ddi/media_libva_common.h:37,
from /tmp/SBo/media-driver-intel-media-21.3.5/media_driver/linux/common/cm/ddi/media_libva_cm.h:30,
from /tmp/SBo/media-driver-intel-media-21.3.5/media_driver/linux/common/cm/hal/cm_def_os.h:41,
from /tmp/SBo/media-driver-intel-media-21.3.5/media_driver/agnostic/common/cm/cm_def.h:30,
from /tmp/SBo/media-driver-intel-media-21.3.5/media_driver/agnostic/common/cm/cm_kernel.h:30,
from /tmp/SBo/media-driver-intel-media-21.3.5/media_driver/agnostic/common/cm/cm_kernel_rt.h:30,
from /tmp/SBo/media-driver-intel-media-21.3.5/media_driver/agnostic/common/cm/cm_kernel_ex.h:28,
from /tmp/SBo/media-driver-intel-media-21.3.5/media_driver/agnostic/common/cm/cm_kernel_ex.cpp:27:
In static member function istatic _Ty* MosUtilities::MosNewArrayUtil(int32_t) [with _Ty = unsigned char; _Types = {}]i,
inlined from i_Ty* MOS_NewArrayUtil(int32_t) [with _Ty = unsigned char; _Types = {}]i at /tmp/SBo/media-driver-intel-media-21.3.5/media_driver/agnostic/common/os/mos_utilities.h:196:46,
inlined from ivirtual int32_t CmKernelEx::Initialize(const char*, const char*)i at /tmp/SBo/media-driver-intel-media-21.3.5/media_driver/agnostic/common/cm/cm_kernel_ex.cpp:192:22,
inlined from ivirtual int32_t CmKernelEx::Initialize(const char*, const char*)i at /tmp/SBo/media-driver-intel-media-21.3.5/media_driver/agnostic/common/cm/cm_kernel_ex.cpp:70:9:
/tmp/SBo/media-driver-intel-media-21.3.5/media_softlet/agnostic/common/os/mos_utilities_next.h:107:20: error: argument 1 range [18446744071562067968, 18446744073709551615] exceeds maximum object size 9223372036854775807 [-Werror=alloc-size-larger-than=]
107 | _Ty* ptr = new (std::nothrow) _Ty[numElements]();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/13.1.0/bits/exception_ptr.h:38,
from /usr/include/c++/13.1.0/exception:164,
from /usr/include/c++/13.1.0/ios:41,
from /usr/include/c++/13.1.0/ostream:40,
from /usr/include/c++/13.1.0/iostream:41,
from /tmp/SBo/media-driver-intel-media-21.3.5/media_driver/linux/common/cm/hal/cm_def_os.h:34:
/usr/include/c++/13.1.0/new: In member function ivirtual int32_t CmKernelEx::Initialize(const char*, const char*)i:
/usr/include/c++/13.1.0/new:142:26: note: in a call to allocation function ivoid* operator new [](std::size_t, const std::nothrow_t&)i declared here
142 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [media_driver/CMakeFiles/iHD_drv_video_OBJ.dir/build.make:608: media_driver/CMakeFiles/iHD_drv_video_OBJ.dir/agnostic/common/cm/cm_kernel_ex.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:286: media_driver/CMakeFiles/iHD_drv_video_OBJ.dir/all] Error 2
make: *** [Makefile:156: all] Error 2Note:
Intel-GMMLIB dependencies are already installed
I will be very grateful for your help