[MacPorts] #68163: lldb-12: build fails for 10.13 buildbot:

MacPorts noreply at macports.org
Fri Sep 15 16:17:43 UTC 2023


#68163: lldb-12: build fails for 10.13 buildbot:
---------------------+----------------------
 Reporter:  mascguy  |      Owner:  mascguy
     Type:  defect   |     Status:  assigned
 Priority:  Normal   |  Milestone:
Component:  ports    |    Version:  2.8.1
 Keywords:           |       Port:  lldb-12
---------------------+----------------------
 Details:

 {{{
 .../lldb-12/work/llvm-
 project-12.0.1.src/lldb/source/Host/common/PseudoTerminal.cpp:108:11:
 error: 'ptsname_r' is only available on macOS 10.13.4 or newer [-Werror
 ,-Wunguarded-availability-new]
   int r = ptsname_r(m_primary_fd, buf, sizeof(buf));
           ^~~~~~~~~

 /usr/include/stdlib.h:229:5: note: 'ptsname_r' has been marked as being
 introduced in macOS 10.13.4 here, but the deployment target is macOS
 10.13.0

 int ptsname_r(int fildes, char *buffer, size_t buflen)
 __API_AVAILABLE(macos(10.13.4), ios(11.3), tvos(11.3), watchos(4.3));
     ^

 .../lldb-12/work/llvm-
 project-12.0.1.src/lldb/source/Host/common/PseudoTerminal.cpp:108:11:
 note: enclose 'ptsname_r' in a __builtin_available check to silence this
 warning
   int r = ptsname_r(m_primary_fd, buf, sizeof(buf));
           ^~~~~~~~~

 1 error generated.
 }}}

 Is this simply a matter of updating the deployment target to 10.13.4+...?

-- 
Ticket URL: <https://trac.macports.org/ticket/68163>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list