<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - unable to compile sanitizers for aarch64."
   href="https://bugs.llvm.org/show_bug.cgi?id=41015">41015</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>unable to compile sanitizers for aarch64.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>compiler-rt
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>8.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </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>pawel_sikora@zoho.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>hi,

the clang-8 reports errors during sanitizers crosscompilation (host:
x86_64-linux-gnu, target: aarch64-linux-gnu). looks like a missing --target
option for some sources or bad source selection. full configure/build log
attached.

(...)
-- Compiler-RT supported architectures: aarch64
(...)
-- Builtin supported architectures: aarch64
(...)
[69/657] Building CXX object
lib/sanitizer_common/CMakeFiles/RTSanitizerCommonNoHooks.aarch64.dir/sanitizer_win.cc.o
[70/657] Building CXX object
lib/sanitizer_common/CMakeFiles/RTSanitizerCommonNoHooks.aarch64.dir/sanitizer_tls_get_addr.cc.o
[71/657] Building ASM object
lib/sanitizer_common/CMakeFiles/RTSanitizerCommonNoHooks.aarch64.dir/sanitizer_linux_x86_64.S.o
FAILED:
lib/sanitizer_common/CMakeFiles/RTSanitizerCommonNoHooks.aarch64.dir/sanitizer_linux_x86_64.S.o 
/home/builder/src/toolchain/llvm/sysroot/bin/clang -DHAVE_RPC_XDR_H=0
-I/home/builder/src/toolchain/llvm/compiler-rt/lib/sanitizer_common/.. -O2 -g
-DNDEBUG    -march=armv8-a -fPIC -fno-builtin -fno-exceptions
-fomit-frame-pointer -funwind-tables -fno-stack-protector
-fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -O3 -gline-tables-only
-Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -Wno-non-virtual-dtor
-fno-rtti -Wframe-larger-than=570 -Wglobal-constructors
-DSANITIZER_SUPPORTS_WEAK_HOOKS=0 -MD -MT
lib/sanitizer_common/CMakeFiles/RTSanitizerCommonNoHooks.aarch64.dir/sanitizer_linux_x86_64.S.o
-MF
lib/sanitizer_common/CMakeFiles/RTSanitizerCommonNoHooks.aarch64.dir/sanitizer_linux_x86_64.S.o.d
-o
lib/sanitizer_common/CMakeFiles/RTSanitizerCommonNoHooks.aarch64.dir/sanitizer_linux_x86_64.S.o
-c
/home/builder/src/toolchain/llvm/compiler-rt/lib/sanitizer_common/sanitizer_linux_x86_64.S
error: unknown target CPU 'armv8-a'
note: valid target CPU values are: nocona, core2, penryn, bonnell, atom,
silvermont, slm, goldmont, goldmont-plus, tremont, nehalem, corei7, westmere,
sandybridge, corei7-avx, ivybridge, core-avx-i, haswell, core-avx2, broadwell,
skylake, skylake-avx512, skx, cascadelake, cannonlake, icelake-client,
icelake-server, knl, knm, k8, athlon64, athlon-fx, opteron, k8-sse3,
athlon64-sse3, opteron-sse3, amdfam10, barcelona, btver1, btver2, bdver1,
bdver2, bdver3, bdver4, znver1, x86-64</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>