LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 45867 - clang-cl -m32 crashes on Target: armv8l-unknown-linux-gnueabihf
Summary: clang-cl -m32 crashes on Target: armv8l-unknown-linux-gnueabihf
Status: RESOLVED LATER
Alias: None
Product: clang
Classification: Unclassified
Component: Driver (show other bugs)
Version: trunk
Hardware: PC Linux
: P normal
Assignee: Unassigned Clang Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-10 17:47 PDT by Omair Javaid
Modified: 2020-05-11 08:30 PDT (History)
4 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Omair Javaid 2020-05-10 17:47:52 PDT
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 https://bugs.llvm.org/ 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: 
    
    ********************
Comment 1 Reid Kleckner 2020-05-11 08:30:40 PDT
Despite the crash report's exhortation to file a bug, this seems expected. CodeView debug info is not implemented for ARM32. -> WAI.