<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 - clang-cl -m32 crashes on Target: armv8l-unknown-linux-gnueabihf"
   href="https://bugs.llvm.org/show_bug.cgi?id=45867">45867</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang-cl -m32 crashes on Target: armv8l-unknown-linux-gnueabihf
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </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>Driver
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>omair.javaid@linaro.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Following lldb test fail due to clang-cl crashing with -m32 option with Target:
armv8l-unknown-linux-gnueabihf

  lldb-shell :: SymbolFile/NativePDB/ast-functions.cpp
  lldb-shell :: SymbolFile/NativePDB/ast-methods.cpp
  lldb-shell :: SymbolFile/NativePDB/ast-types.cpp
  lldb-shell :: SymbolFile/NativePDB/bitfields.cpp
  lldb-shell :: SymbolFile/NativePDB/break-by-function.cpp
  lldb-shell :: SymbolFile/NativePDB/break-by-line.cpp
  lldb-shell :: SymbolFile/NativePDB/function-types-builtins.cpp
  lldb-shell :: SymbolFile/NativePDB/function-types-classes.cpp
  lldb-shell :: SymbolFile/NativePDB/global-classes.cpp
  lldb-shell :: SymbolFile/NativePDB/globals-bss.cpp
  lldb-shell :: SymbolFile/NativePDB/globals-fundamental.cpp
  lldb-shell :: SymbolFile/NativePDB/nested-types.cpp
  lldb-shell :: SymbolFile/NativePDB/source-list.cpp
  lldb-shell :: SymbolFile/NativePDB/tag-types.cpp

Test log given below:

FAIL: lldb-shell :: SymbolFile/NativePDB/tag-types.cpp (1141 of 2017)
******************** TEST 'lldb-shell :: SymbolFile/NativePDB/tag-types.cpp'
FAILED ********************
Script:
--
: 'RUN: at line 5';   '/usr/bin/python3.6'
/home/omair.javaid/buildslave/lldb-cmake-arm/llvm-project/lldb/test/Shell/helper/build.py
--compiler=any --arch=32
--tools-dir=/home/omair.javaid/buildslave/lldb-cmake-arm/build/./bin
--libs-dir=/home/omair.javaid/buildslave/lldb-cmake-arm/build/./lib
--compiler=clang-cl --nodefaultlib -o
/home/omair.javaid/buildslave/lldb-cmake-arm/build/tools/lldb/test/SymbolFile/NativePDB/Output/tag-types.cpp.tmp.exe
--
/home/omair.javaid/buildslave/lldb-cmake-arm/llvm-project/lldb/test/Shell/SymbolFile/NativePDB/tag-types.cpp
: 'RUN: at line 6';   env LLDB_USE_NATIVE_PDB_READER=1
/home/omair.javaid/buildslave/lldb-cmake-arm/build/bin/lldb --no-lldbinit -S
/home/omair.javaid/buildslave/lldb-cmake-arm/build/tools/lldb/test/Shell/lit-lldb-init
-f
/home/omair.javaid/buildslave/lldb-cmake-arm/build/tools/lldb/test/SymbolFile/NativePDB/Output/tag-types.cpp.tmp.exe
-s     
/home/omair.javaid/buildslave/lldb-cmake-arm/llvm-project/lldb/test/Shell/SymbolFile/NativePDB/Inputs/tag-types.lldbinit
| /home/omair.javaid/buildslave/lldb-cmake-arm/build/bin/FileCheck
/home/omair.javaid/buildslave/lldb-cmake-arm/llvm-project/lldb/test/Shell/SymbolFile/NativePDB/tag-types.cpp
--
Exit Code: 70

Command Output (stdout):
--
Cleaning tag-types.ilk
Cleaning tag-types.cpp.tmp.exe-tag-types.obj
Cleaning tag-types.cpp.tmp.pdb
Cleaning tag-types.cpp.tmp.exe



compiling tag-types.cpp -> tag-types.cpp.tmp.exe-tag-types.obj
  STDOUT:

  STDERR:
    fatal error: error in backend: target does not implement codeview register
mapping
    PLEASE submit a bug report to <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash
backtrace, preprocessed source, and associated run script.
    Stack dump:
    0.  Program arguments:
/home/omair.javaid/buildslave/lldb-cmake-arm/build/bin/clang-cl -m32 /Od /GS-
/GR- /Z7 -Xclang -fkeep-static-consts -fms-compatibility-version=19 /c
/Fo/home/omair.javaid/buildslave/lldb-cmake-arm/build/tools/lldb/test/SymbolFile/NativePDB/Output/tag-types.cpp.tmp.exe-tag-types.obj
--
/home/omair.javaid/buildslave/lldb-cmake-arm/llvm-project/lldb/test/Shell/SymbolFile/NativePDB/tag-types.cpp 
    1.  <eof> parser at end of file
    2.  Code generation
    3.  Running pass 'Function Pass Manager' on module
'/home/omair.javaid/buildslave/lldb-cmake-arm/llvm-project/lldb/test/Shell/SymbolFile/NativePDB/tag-types.cpp'.
    4.  Running pass 'ARM Assembly Printer' on function '@main'
    clang-11: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
    clang version 11.0.0
(/home/omair.javaid/buildslave/lldb-cmake-arm/llvm-project/clang
6d23f2985270acb6907ad61f609a245bf844d472)
    Target: armv8l-pc-windows-msvc
    Thread model: posix
    InstalledDir: /home/omair.javaid/buildslave/lldb-cmake-arm/build/bin
    clang-11: note: diagnostic msg: 
    ********************

    PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
    Preprocessed source(s) and associated run script(s) are located at:
    clang-11: note: diagnostic msg: /tmp/tag-types-c45b26.cpp
    clang-11: note: diagnostic msg: /tmp/tag-types-c45b26.sh
    clang-11: note: diagnostic msg: 

    ********************</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>