Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clang-cl -m32 crashes on Target: armv8l-unknown-linux-gnueabihf #45212

Closed
llvmbot opened this issue May 11, 2020 · 1 comment
Closed

clang-cl -m32 crashes on Target: armv8l-unknown-linux-gnueabihf #45212

llvmbot opened this issue May 11, 2020 · 1 comment
Labels
bugzilla Issues migrated from bugzilla clang:driver 'clang' and 'clang++' user-facing binaries. Not 'clang-cl'

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented May 11, 2020

Bugzilla Link 45867
Resolution LATER
Resolved on May 11, 2020 08:30
Version trunk
OS Linux
Reporter LLVM Bugzilla Contributor
CC @zygoloid,@rnk

Extended Description

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. 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 6d23f29)
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: 

********************
@rnk
Copy link
Collaborator

rnk commented May 11, 2020

Despite the crash report's exhortation to file a bug, this seems expected. CodeView debug info is not implemented for ARM32. -> WAI.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 10, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla clang:driver 'clang' and 'clang++' user-facing binaries. Not 'clang-cl'
Projects
None yet
Development

No branches or pull requests

2 participants