[llvm-bugs] [Bug 31434] New: sanitizer_procmaps_mac.cc fails to compile on Mountain Lion and earlier due to usage of newer CPU types/subtypes

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Dec 20 01:51:32 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=31434

            Bug ID: 31434
           Summary: sanitizer_procmaps_mac.cc fails to compile on Mountain
                    Lion and earlier due to usage of newer CPU
                    types/subtypes
           Product: compiler-rt
           Version: 3.9
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: compiler-rt
          Assignee: unassignedbugs at nondot.org
          Reporter: jeremyhu at apple.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Noticed this build failure on MacPorts ountain Lion buildbot:

/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_llvm-devel/clang-devel/work/trunk/projects/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_mac.cc:121:25:
error: use of undeclared identifier 'CPU_SUBTYPE_X86_64_H'
      if (cpusubtype == CPU_SUBTYPE_X86_64_H) return kModuleArchX86_64H;
                        ^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_llvm-devel/clang-devel/work/trunk/projects/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_mac.cc:131:10:
error: use of undeclared identifier 'CPU_TYPE_ARM64'
    case CPU_TYPE_ARM64:
         ^
2 errors generated.
make[2]: ***
[projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.osx.dir/sanitizer_procmaps_mac.cc.o]
Error 1

We should probably just define CPU_SUBTYPE_X86_64_H and CPU_TYPE_ARM64 if their
definitions are missing from the SDK's libmacho.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161220/0b00574c/attachment.html>


More information about the llvm-bugs mailing list