Date: Tue, 19 Oct 2021 21:57:51 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 259288] graphics/qt5-wayland: fix build with clang 13 by adding <array> Message-ID: <bug-259288-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259288 Bug ID: 259288 Summary: graphics/qt5-wayland: fix build with clang 13 by adding <array> Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: kde@FreeBSD.org Reporter: dim@FreeBSD.org Assignee: kde@FreeBSD.org Flags: maintainer-feedback?(kde@FreeBSD.org) During an exp-run for llvm 13 (see bug 258209), it turned out that graphics/qt5-wayland fails to build with clang 13: In file included from main.cpp:32: In file included from ../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdm= abufclientbufferintegration.h:33: ../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdm= abuf.h:145:40: error: implicit instantiation of undefined template 'std::array<Plane, 4>' std::array<Plane, MaxDmabufPlanes> m_planes; ^ /usr/include/c++/v1/__tuple:219:64: note: template is declared here template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array; ^ In file included from main.cpp:32: In file included from ../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdm= abufclientbufferintegration.h:33: ../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdm= abuf.h:148:46: error: implicit instantiation of undefined template 'std::array<void *, 4>' std::array<EGLImageKHR, MaxDmabufPlanes> m_eglImages =3D { {EGL_NO_IMAG= E_KHR, EGL_NO_IMAGE_KHR, EGL_NO_IMAGE_KHR, EGL_NO_IMAGE_KHR} }; ^ /usr/include/c++/v1/__tuple:219:64: note: template is declared here template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array; ^ In file included from main.cpp:32: In file included from ../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdm= abufclientbufferintegration.h:33: ../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdm= abuf.h:149:51: error: implicit instantiation of undefined template 'std::array<QOpenGLText= ure *, 4>' std::array<QOpenGLTexture *, MaxDmabufPlanes> m_textures =3D { {nullptr, nullptr, nullptr, nullptr} }; ^ /usr/include/c++/v1/__tuple:219:64: note: template is declared here template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array; ^ 3 errors generated. This is because linuxdmabuf.h doesn't include the <array> header. Fix it by adding the include. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-259288-7788>