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 14.0.6 failed to perform tail call elimination on a call site marked musttail #56630

Open
SquallATF opened this issue Jul 20, 2022 · 2 comments

Comments

@SquallATF
Copy link
Contributor

SquallATF commented Jul 20, 2022

clang-cl build grpc v1.47.1 x86 debug failed
environment

CC=clang-cl
CXX=clang-cl

cmake arguments

cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER_TARGET=i686-pc-windows-msvc -DCMAKE_CXX_COMPILER_TARGET=i686-pc-windows-msvc
[1/623] Building CXX object third_party\protobuf\CMakeFile...\src\google\protobuf\generated_message_tctable_lite.cc.obj
FAILED: third_party/protobuf/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/generated_message_tctable_lite.cc.obj
C:\llvm14\bin\clang-cl.exe --target=i686-pc-windows-msvc  /nologo -TP -DGOOGLE_PROTOBUF_CMAKE_BUILD -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_WIN32_WINNT=0x600 -D_WINSOCK_DEPRECATED_NO_WARNINGS -IC:\Users\User\Documents\Work\grpc\.build_x86_dbg\third_party\protobuf -IC:\Users\User\Documents\Work\grpc\third_party\protobuf\src /DWIN32 /D_WINDOWS /W3 /GR /EHsc  /wd4065 /wd4506 /wd4200 /wd4291 /wd4244 /wd4267 /wd4987 /wd4774 /wd4819 /wd4996 /wd4619 /wd4503 /utf-8 /MDd /Zi /Ob0 /Od /RTC1   /utf-8 /wd4018 /wd4065 /wd4146 /wd4244 /wd4251 /wd4267 /wd4305 /wd4307 /wd4309 /wd4334 /wd4355 /wd4506 /wd4800 /wd4996 /bigobj /showIncludes /Fothird_party\protobuf\CMakeFiles\libprotobuf-lite.dir\__\src\google\protobuf\generated_message_tctable_lite.cc.obj /Fdthird_party\protobuf\CMakeFiles\libprotobuf-lite.dir\libprotobuf-lite.pdb -c -- C:\Users\User\Documents\Work\grpc\third_party\protobuf\src\google\protobuf\generated_message_tctable_lite.cc
fatal error: error in backend: failed to perform tail call elimination on a call site marked musttail
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module 'C:\Users\User\Documents\Work\grpc\third_party\protobuf\src\google\protobuf\generated_message_tctable_lite.cc'.
4.      Running pass 'X86 DAG->DAG Instruction Selection' on function '@"?ToTagDispatch@TcParser@internal@protobuf@google@@SAPBDPAVMessageLite@34@PBDPAVParseContext@234@PBUTcParseTableBase@234@_KUTcFieldData@234@@Z"'
#0 0x75cd7132 (C:\WINDOWS\System32\KERNELBASE.dll+0x147132)
#1 0x023bd4d6 (C:\llvm14\bin\clang-cl.exe+0x188d4d6)
clang-cl: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 14.0.6
Target: i686-pc-windows-msvc
Thread model: posix
InstalledDir: C:\llvm14\bin
clang-cl: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-cl: note: diagnostic msg: C:\Users\User\AppData\Local\Temp\generated_message_tctable_lite-0bed3e.sh
clang-cl: note: diagnostic msg:

********************
ninja: build stopped: subcommand failed.

generated_message_tctable_lite-0bed3e.zip

@llvmbot
Copy link
Member

llvmbot commented Jul 20, 2022

@llvm/issue-subscribers-backend-x86

@phoebewang
Copy link
Contributor

Seems duplicated with #56507

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants