Skip to content

error: use of undeclared identifier 'VM_MEMORY_SANITIZER' #156144

@ryandesign

Description

@ryandesign

Build failure of flang 21.1.0 on macOS 10.14:

/opt/local/var/macports/build/lldb-21-46f2584b/work/llvm-project-21.1.0.src/lldb/tools/debugserver/source/MacOSX/MachVMRegion.cpp:212:26: error: use of undeclared identifier 'VM_MEMORY_SANITIZER'
  212 |       m_data.user_tag == VM_MEMORY_SANITIZER) {
      |                          ^
1 error generated.

Full log: https://build.macports.org/builders/ports-10.14_x86_64-builder/builds/240590/steps/install-port/logs/stdio

Maybe these lines are needed in that file too:

// From <mach/vm_statistics.h>, but not on older OSs.
#ifndef VM_MEMORY_SANITIZER
#define VM_MEMORY_SANITIZER 99
#endif

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Needs Fix

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions