Opened 6 years ago

Closed 5 years ago

#57499 closed defect (fixed)

lldb-devel: error: use of undeclared identifier 'LC_VERSION_MIN_TVOS'

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: larryv (Lawrence Velázquez), kencu (Ken)
Port: llvm-devel, lldb-7.0

Description

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

Change History (8)

comment:1 Changed 6 years ago by jeremyhu (Jeremy Huddleston Sequoia)

What are you building this on? Those should be declared in pretty much any recent SDK.

comment:2 Changed 6 years ago by jeremyhu (Jeremy Huddleston Sequoia)

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.

comment:3 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Per the log, this happened on the 10.8 buildbot worker.

comment:4 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Port: lldb-7.0 added

And it also happened with lldb-7.0 on the 10.10 buildbot worker: see this log.

comment:5 Changed 6 years ago by kencu (Ken)

I have a simple patch for this I've been sitting on while I organize who needs it.

comment:6 Changed 6 years ago by jeremyhu (Jeremy Huddleston Sequoia)

If you install libmacho-headers, does that address the issue?

comment:7 Changed 5 years ago by kencu (Ken)

Cc: kencu added

comment:8 Changed 5 years ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed

In 2071c79f088d70040eafdf34546e461473af7072/macports-ports (master):

lldb 5.0 to devel: tweak failing systems

to match results on buildbot from recent revbumps
add known_fail to prevent needless build attempts

note: some of these older systems might build lldb with effort
the missing pieces might be replaced by legacysupport

closes: #57499
closes: #59326
closes: #59327
closes: #55720

Note: See TracTickets for help on using tickets.