Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jun 2024 13:57:03 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 279877] graphics/oidn fails to build with "error: implicit instantiation of undefined template 'std::hash<oidn::DeviceType>'"
Message-ID:  <bug-279877-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279877

            Bug ID: 279877
           Summary: graphics/oidn fails to build with "error: implicit
                    instantiation of undefined template
                    'std::hash<oidn::DeviceType>'"
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: yuri@freebsd.org
          Reporter: ddrinnon@cdor.net
          Assignee: yuri@freebsd.org
             Flags: maintainer-feedback?(yuri@freebsd.org)

FreeBSD_13-2x64 amd64 Poudriere
...
[ 50%] Building CXX object
core/CMakeFiles/OpenImageDenoise_core.dir/context.cpp.o
cd /wrkdirs/usr/ports/graphics/oidn/work/.build/core &&
/usr/local/libexec/ccache/c++ -DOIDN_LIBRARY_NAME=3D\"OpenImageDenoise\"
-DOpenImageDenoise_core_EXPORTS -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MAC=
ROS
-I/wrkdirs/usr/ports/graphics/oidn/work/oidn-2.3.0
-I/wrkdirs/usr/ports/graphics/oidn/work/oidn-2.3.0/external
-I/wrkdirs/usr/ports/graphics/oidn/work/.build -O2 -pipe
-fstack-protector-strong -fno-strict-aliasing  -Wall -Wno-unknown-pragmas
-Wno-pass-failed -Wno-unneeded-internal-declaration -fPIC -Wformat
-Wformat-security  -O2 -pipe -fstack-protector-strong -fno-strict-aliasing=
=20=20
-DNDEBUG  -fstack-protector -D_FORTIFY_SOURCE=3D2 -std=3Dc++11 -fPIC -pthre=
ad -MD
-MT core/CMakeFiles/OpenImageDenoise_core.dir/context.cpp.o -MF
CMakeFiles/OpenImageDenoise_core.dir/context.cpp.o.d -o
CMakeFiles/OpenImageDenoise_core.dir/context.cpp.o -c
/wrkdirs/usr/ports/graphics/oidn/work/oidn-2.3.0/core/context.cpp
In file included from
/wrkdirs/usr/ports/graphics/oidn/work/oidn-2.3.0/core/context.cpp:4:
In file included from
/wrkdirs/usr/ports/graphics/oidn/work/oidn-2.3.0/core/context.h:6:
In file included from
/wrkdirs/usr/ports/graphics/oidn/work/oidn-2.3.0/core/module.h:6:
In file included from
/wrkdirs/usr/ports/graphics/oidn/work/oidn-2.3.0/common/common.h:6:
In file included from
/wrkdirs/usr/ports/graphics/oidn/work/oidn-2.3.0/common/oidn_utils.h:6:
In file included from
/wrkdirs/usr/ports/graphics/oidn/work/oidn-2.3.0/include/OpenImageDenoise/o=
idn.hpp:10:
In file included from /usr/include/c++/v1/algorithm:664:
In file included from /usr/include/c++/v1/__debug:15:
/usr/include/c++/v1/type_traits:1773:38: error: implicit instantiation of
undefined template 'std::hash<oidn::DeviceType>'
    : public integral_constant<bool, __is_empty(_Tp)> {};
                                     ^
/usr/include/c++/v1/__memory/compressed_pair.h:31:15: note: in instantiatio=
n of
template class 'std::is_empty<std::hash<oidn::DeviceType>>' requested here
              is_empty<_Tp>::value && !__libcpp_is_final<_Tp>::value>
              ^
/usr/include/c++/v1/__memory/compressed_pair.h:104:35: note: in instantiati=
on
of default argument for '__compressed_pair_elem<std::hash<oidn::DeviceType>,
1>' required here
                          private __compressed_pair_elem<_T2, 1> {
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/v1/__hash_table:953:59: note: in instantiation of template
class 'std::__compressed_pair<unsigned long, std::hash<oidn::DeviceType>>'
requested here
    __compressed_pair<size_type, hasher>                  __p2_;
                                                          ^
/usr/include/c++/v1/unordered_set:502:13: note: in instantiation of template
class 'std::__hash_table<oidn::DeviceType, std::hash<oidn::DeviceType>,
std::equal_to<oidn::DeviceType>, std::allocator<oidn::DeviceType>>' request=
ed
here
    __table __table_;
            ^
/wrkdirs/usr/ports/graphics/oidn/work/oidn-2.3.0/core/context.h:119:36: not=
e:
in instantiation of template class 'std::unordered_set<oidn::DeviceType>'
requested here
    std::unordered_set<DeviceType> initedDeviceTypes;
                                   ^
/usr/include/c++/v1/__memory/shared_ptr.h:1552:50: note: template is declar=
ed
here
template <class _Tp> struct _LIBCPP_TEMPLATE_VIS hash;
                                                 ^
1 error generated.
*** Error code 1

Stop.
...

--=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-279877-7788>