[MacPorts] #72175: poppler @24.04.0: error: implicit instantiation of undefined template 'std::char_traits<unsigned short>' (was: poppler-24.04.0 fails to build with errors on macOS Sequoia 15.4 on x86_64)

MacPorts noreply at macports.org
Fri Mar 14 08:31:42 UTC 2025


#72175: poppler @24.04.0: error: implicit instantiation of undefined template
'std::char_traits<unsigned short>'
----------------------+----------------------
  Reporter:  rcfa     |      Owner:  dbevans
      Type:  defect   |     Status:  assigned
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:  2.10.5
Resolution:           |   Keywords:  sequoia
      Port:  poppler  |
----------------------+----------------------
Changes (by ryandesign):

 * keywords:   => sequoia


Old description:

> poppler-24.04.0 fails to build with errors on macOS Sequoia 15.4 on
> x86_64
>
> log files attached
>
> poppler @24.04.0_1+boost
> macOS 15.4 (darwin/24.4.0) arch i386
> MacPorts 2.10.5
> Xcode 16.3, CLT 16.3.0.0.1.1741129865
> SDK 15
> MACOSX_DEPLOYMENT_TARGET: 15.0

New description:

 poppler-24.04.0 fails to build with errors on macOS Sequoia 15.4 on x86_64

 log files attached

 poppler @24.04.0_1+boost \\
 macOS 15.4 (darwin/24.4.0) arch i386 \\
 MacPorts 2.10.5 \\
 Xcode 16.3, CLT 16.3.0.0.1.1741129865 \\
 SDK 15 \\
 MACOSX_DEPLOYMENT_TARGET: 15.0

--

Comment:

 The log says:

 {{{
 :info:build
 /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/string:821:42:
 error: implicit instantiation of undefined template
 'std::char_traits<unsigned short>'
 :info:build   821 |   static_assert(is_same<_CharT, typename
 traits_type::char_type>::value,
 :info:build       |                                          ^
 }}}

 As stated in [https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281886
 another bug report]:

 > As noted in the [https://libcxx.llvm.org/ReleaseNotes/19.html
 #deprecations-and-removals libc++ 19 release notes], `std::char_traits<>`
 is now
 > only provided for `char`, `char8_t`, `char16_t`, `char32_t` and
 `wchar_t`, and any
 > instantiation for other types will fail.

 Here is [https://gitlab.freedesktop.org/poppler/poppler/-/issues/1462 the
 upstream bug report] about this. It was
 [https://gitlab.freedesktop.org/poppler/poppler/-/commit/b4ac7d9af7cb5edfcfcbda035ed8b8c218ba8564
 fixed in poppler 24.05.0]. The port needs to be updated. According to
 [https://gitlab.freedesktop.org/poppler/poppler/-/merge_requests/1526 the
 upstream merge request], this change is binary incompatible, and some
 dependents like inkscape will need to be revbumped.

-- 
Ticket URL: <https://trac.macports.org/ticket/72175#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list