Discussion:
[MacPorts] #57499: lldb-devel: error: use of undeclared identifier 'LC_VERSION_MIN_TVOS'
MacPorts
2018-11-02 07:29:31 UTC
Permalink
#57499: lldb-devel: error: use of undeclared identifier 'LC_VERSION_MIN_TVOS'
------------------------+------------------------
Reporter: ryandesign | Owner: jeremyhu
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: llvm-devel
------------------------+------------------------
[https://build.macports.org/builders/ports-10.8_x86_64_legacy-
builder/builds/77522/steps/install-port/logs/stdio lldb-devel does not
build]:

{{{
/opt/local/var/macports/build
/_opt_bblocal_var_buildworker_ports_build_ports_lang_llvm-devel/lldb-
devel/work/trunk/tools/lldb/tools/debugserver/source/MacOSX/MachProcess.mm:584:12:
error: use of undeclared identifier 'LC_VERSION_MIN_TVOS'
cmd == LC_VERSION_MIN_TVOS || cmd == LC_VERSION_MIN_WATCHOS;
^
/opt/local/var/macports/build
/_opt_bblocal_var_buildworker_ports_build_ports_lang_llvm-devel/lldb-
devel/work/trunk/tools/lldb/tools/debugserver/source/MacOSX/MachProcess.mm:584:42:
error: use of undeclared identifier 'LC_VERSION_MIN_WATCHOS'
cmd == LC_VERSION_MIN_TVOS || cmd == LC_VERSION_MIN_WATCHOS;
^
/opt/local/var/macports/build
/_opt_bblocal_var_buildworker_ports_build_ports_lang_llvm-devel/lldb-
devel/work/trunk/tools/lldb/tools/debugserver/source/MacOSX/MachProcess.mm:601:10:
error: use of undeclared identifier 'LC_VERSION_MIN_TVOS'
case LC_VERSION_MIN_TVOS:
^
/opt/local/var/macports/build
/_opt_bblocal_var_buildworker_ports_build_ports_lang_llvm-devel/lldb-
devel/work/trunk/tools/lldb/tools/debugserver/source/MacOSX/MachProcess.mm:603:10:
error: use of undeclared identifier 'LC_VERSION_MIN_WATCHOS'
case LC_VERSION_MIN_WATCHOS:
^
/opt/local/var/macports/build
/_opt_bblocal_var_buildworker_ports_build_ports_lang_llvm-devel/lldb-
devel/work/trunk/tools/lldb/tools/debugserver/source/MacOSX/MachTask.mm:408:35:
error: use of undeclared identifier 'vm_kernel_page_size'
static vm_size_t pagesize = vm_kernel_page_size;
^
/opt/local/var/macports/build
/_opt_bblocal_var_buildworker_ports_build_ports_lang_llvm-devel/lldb-
devel/work/trunk/tools/lldb/tools/debugserver/source/MacOSX/MachTask.mm:414:18:
error: no member named 'external_page_count' in 'vm_statistics64'
vminfo.external_page_count - vminfo.purgeable_count;
~~~~~~ ^
2 errors generated.
make[2]: ***
[tools/lldb/tools/debugserver/source/CMakeFiles/lldbDebugserverCommon.dir/MacOSX/MachTask.mm.o]
Error 1
make[2]: *** Waiting for unfinished jobs....
4 errors generated.
make[2]: ***
[tools/lldb/tools/debugserver/source/CMakeFiles/lldbDebugserverCommon.dir/MacOSX/MachProcess.mm.o]
Error 1
}}}
--
Ticket URL: <https://trac.macports.org/ticket/57499>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-07 10:08:08 UTC
Permalink
#57499: lldb-devel: error: use of undeclared identifier 'LC_VERSION_MIN_TVOS'
-------------------------+----------------------
Reporter: ryandesign | Owner: jeremyhu
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: llvm-devel |
-------------------------+----------------------

Comment (by jeremyhu):

What are you building this on? Those should be declared in pretty much
any recent SDK.
--
Ticket URL: <https://trac.macports.org/ticket/57499#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-07 10:08:52 UTC
Permalink
#57499: lldb-devel: error: use of undeclared identifier 'LC_VERSION_MIN_TVOS'
-------------------------+----------------------
Reporter: ryandesign | Owner: jeremyhu
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: llvm-devel |
-------------------------+----------------------

Comment (by jeremyhu):

And actually, I think they should also be local in llvm since llvm has its
own mac-o library instead of using the system's.
--
Ticket URL: <https://trac.macports.org/ticket/57499#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-11-07 11:24:07 UTC
Permalink
#57499: lldb-devel: error: use of undeclared identifier 'LC_VERSION_MIN_TVOS'
-------------------------+----------------------
Reporter: ryandesign | Owner: jeremyhu
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: llvm-devel |
-------------------------+----------------------

Comment (by ryandesign):

Per the log, this happened on the 10.8 buildbot worker.
--
Ticket URL: <https://trac.macports.org/ticket/57499#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-12-06 08:14:14 UTC
Permalink
#57499: lldb-devel: error: use of undeclared identifier 'LC_VERSION_MIN_TVOS'
-----------------------------------+----------------------
Reporter: ryandesign | Owner: jeremyhu
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: llvm-devel, lldb-7.0 |
-----------------------------------+----------------------
Changes (by ryandesign):

* port: llvm-devel => llvm-devel, lldb-7.0


Comment:

And it also happened with lldb-7.0 on the 10.10 buildbot worker: see
[https://build.macports.org/builders/ports-10.10_x86_64-builder/builds/73390/steps
/install-port/logs/stdio this log].
--
Ticket URL: <https://trac.macports.org/ticket/57499#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-12-06 13:52:27 UTC
Permalink
#57499: lldb-devel: error: use of undeclared identifier 'LC_VERSION_MIN_TVOS'
-----------------------------------+----------------------
Reporter: ryandesign | Owner: jeremyhu
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: llvm-devel, lldb-7.0 |
-----------------------------------+----------------------

Comment (by kencu):

I have a simple patch for this I've been sitting on while I organize who
needs it.
--
Ticket URL: <https://trac.macports.org/ticket/57499#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
MacPorts
2018-12-06 20:50:55 UTC
Permalink
#57499: lldb-devel: error: use of undeclared identifier 'LC_VERSION_MIN_TVOS'
-----------------------------------+----------------------
Reporter: ryandesign | Owner: jeremyhu
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: llvm-devel, lldb-7.0 |
-----------------------------------+----------------------

Comment (by jeremyhu):

If you install libmacho-headers, does that address the issue?
--
Ticket URL: <https://trac.macports.org/ticket/57499#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
Loading...