<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - sanitizer_procmaps_mac.cc fails to compile on Mountain Lion and earlier due to usage of newer CPU types/subtypes"
href="https://llvm.org/bugs/show_bug.cgi?id=31434">31434</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>sanitizer_procmaps_mac.cc fails to compile on Mountain Lion and earlier due to usage of newer CPU types/subtypes
</td>
</tr>
<tr>
<th>Product</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Version</th>
<td>3.9
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jeremyhu@apple.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>