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-15 crashed while compiling libcxx #53606

Closed
24bit-xjkp opened this issue Feb 5, 2022 · 3 comments
Closed

Clang-15 crashed while compiling libcxx #53606

24bit-xjkp opened this issue Feb 5, 2022 · 3 comments
Labels
clang:frontend Language frontend issues, e.g. anything involving "Sema"

Comments

@24bit-xjkp
Copy link

24bit-xjkp commented Feb 5, 2022

Summary

I tried to use clang-15 to compile the libcxx15,but clang thrown an error below.

Assertion failed: isa<X>(Val) && "cast<Ty>() argument of incompatible type!",
file D:\LLVM\include\llvm/Support/Casting.h, line 262

Stack dump

0.      Program arguments: D:\\LLVM\\bin\\clang++.exe -DNDEBUG -D_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH -D_ALLOW_MSC_VER_MISMATCH -D_CRTBLD -D_CRT_SECURE_NO_WARNINGS -D_CRT_STDIO_ISO_WIDE_SPECIFIERS -D_LIBCPP_BUILDING_LIBRARY -D_LIBCPP_DISABLE_NEW_DELETE_DEFINITIONS -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -IE:/llvm/LLVM/libcxx/src -O3 -DNDEBUG -D_DLL -D_MT -Xclang --dependent-lib=msvcrt -faligned-allocation -nostdinc++ -fvisibility-inlines-hidden -fvisibility=hidden -Wall -Wextra -W -Wwrite-strings -Wno-unused-parameter -Wno-long-long -Werror=return-type -Wextra-semi -Wundef -Wformat-nonliteral -Wno-user-defined-literals -Wno-covered-switch-default -Wno-suggest-override -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-c++11-compat -Wno-undef -Wno-reserved-id-macro -Wno-gnu-include-next -Wno-gcc-compat -Wno-zero-as-null-pointer-constant -Wno-deprecated-dynamic-exception-spec -Wno-sign-conversion -Wno-old-style-cast -Wno-deprecated -Wno-shift-sign-overflow -Wno-double-promotion -Wno-error -IE:/build/libcxx/include/c++/v1 -std=c++20 -MD -MT src/CMakeFiles/cxx_shared.dir/locale.cpp.obj -MF src\\CMakeFiles\\cxx_shared.dir\\locale.cpp.obj.d -o src/CMakeFiles/cxx_shared.dir/locale.cpp.obj -c E:/llvm/LLVM/libcxx/src/locale.cpp
1.      <eof> parser at end of file
2.      E:/llvm/LLVM/libcxx/src/locale.cpp:55:1 <Spelling=E:/build/libcxx/include/c++/v1\__config:824:47>: LLVM IR generation of declaration 'std'
3.      E:/llvm/LLVM/libcxx/src/locale.cpp:1774:36: Generating code for declaration 'std::codecvt<wchar_t, char, _Mbstatet>::do_encoding'
 #0 0x00007ff6d844afc5 (D:\LLVM\bin\clang++.exe+0x226afc5)
 #1 0x00007ff858bf1881 (C:\WINDOWS\System32\ucrtbase.dll+0x71881)
 #2 0x00007ff858bf2851 (C:\WINDOWS\System32\ucrtbase.dll+0x72851)
 #3 0x00007ff858bf41b5 (C:\WINDOWS\System32\ucrtbase.dll+0x741b5)
 #4 0x00007ff858bf44f1 (C:\WINDOWS\System32\ucrtbase.dll+0x744f1)
 #5 0x00007ff6d8a3a6a2 (D:\LLVM\bin\clang++.exe+0x285a6a2)
 #6 0x00007ff6d87fdb27 (D:\LLVM\bin\clang++.exe+0x261db27)
 #7 0x00007ff6d88e1f91 (D:\LLVM\bin\clang++.exe+0x2701f91)
 #8 0x00007ff6d88e23de (D:\LLVM\bin\clang++.exe+0x27023de)
 #9 0x00007ff6d8a6dd24 (D:\LLVM\bin\clang++.exe+0x288dd24)
#10 0x00007ff6d8a69785 (D:\LLVM\bin\clang++.exe+0x2889785)
#11 0x00007ff6d8a5a644 (D:\LLVM\bin\clang++.exe+0x287a644)
#12 0x00007ff6d8a5b4aa (D:\LLVM\bin\clang++.exe+0x287b4aa)
#13 0x00007ff6d8a68a0a (D:\LLVM\bin\clang++.exe+0x2888a0a)
#14 0x00007ff6d8a6491b (D:\LLVM\bin\clang++.exe+0x288491b)
#15 0x00007ff6d88f8e97 (D:\LLVM\bin\clang++.exe+0x2718e97)
#16 0x00007ff6d8a6d59a (D:\LLVM\bin\clang++.exe+0x288d59a)
#17 0x00007ff6d8a68abd (D:\LLVM\bin\clang++.exe+0x2888abd)
#18 0x00007ff6d8a69ba8 (D:\LLVM\bin\clang++.exe+0x2889ba8)
#19 0x00007ff6d8a6491b (D:\LLVM\bin\clang++.exe+0x288491b)
#20 0x00007ff6d88f8e97 (D:\LLVM\bin\clang++.exe+0x2718e97)
#21 0x00007ff6d88cd0df (D:\LLVM\bin\clang++.exe+0x26ed0df)
#22 0x00007ff6d8a31079 (D:\LLVM\bin\clang++.exe+0x2851079)
#23 0x00007ff6d8a33094 (D:\LLVM\bin\clang++.exe+0x2853094)
#24 0x00007ff6d8a2fe07 (D:\LLVM\bin\clang++.exe+0x284fe07)
#25 0x00007ff6d88d196d (D:\LLVM\bin\clang++.exe+0x26f196d)
#26 0x00007ff6d878974b (D:\LLVM\bin\clang++.exe+0x25a974b)
#27 0x00007ff6d87891b0 (D:\LLVM\bin\clang++.exe+0x25a91b0)
#28 0x00007ff6d8788cbb (D:\LLVM\bin\clang++.exe+0x25a8cbb)
#29 0x00007ff6d878d0a3 (D:\LLVM\bin\clang++.exe+0x25ad0a3)
#30 0x00007ff6d8787031 (D:\LLVM\bin\clang++.exe+0x25a7031)
#31 0x00007ff6d878d2a5 (D:\LLVM\bin\clang++.exe+0x25ad2a5)
#32 0x00007ff6d8787031 (D:\LLVM\bin\clang++.exe+0x25a7031)
#33 0x00007ff6d878d2a5 (D:\LLVM\bin\clang++.exe+0x25ad2a5)
#34 0x00007ff6dac095ef (D:\LLVM\bin\clang++.exe+0x4a295ef)
#35 0x00007ff6dac05c94 (D:\LLVM\bin\clang++.exe+0x4a25c94)
#36 0x00007ff6d9b71967 (D:\LLVM\bin\clang++.exe+0x3991967)
#37 0x00007ff6d8de1606 (D:\LLVM\bin\clang++.exe+0x2c01606)
#38 0x00007ff6dac0506f (D:\LLVM\bin\clang++.exe+0x4a2506f)
#39 0x00007ff6d8de1418 (D:\LLVM\bin\clang++.exe+0x2c01418)
#40 0x00007ff6d8da98d1 (D:\LLVM\bin\clang++.exe+0x2bc98d1)
#41 0x00007ff6d8e5ae4e (D:\LLVM\bin\clang++.exe+0x2c7ae4e)
#42 0x00007ff6d62af0d0 (D:\LLVM\bin\clang++.exe+0xcf0d0)
#43 0x00007ff6d62a9a19 (D:\LLVM\bin\clang++.exe+0xc9a19)
#44 0x00007ff6d8cc5687 (D:\LLVM\bin\clang++.exe+0x2ae5687)
#45 0x00007ff6d842a32f (D:\LLVM\bin\clang++.exe+0x224a32f)
#46 0x00007ff6d8cc5c7b (D:\LLVM\bin\clang++.exe+0x2ae5c7b)
#47 0x00007ff6d8c422dc (D:\LLVM\bin\clang++.exe+0x2a622dc)
#48 0x00007ff6d8c42521 (D:\LLVM\bin\clang++.exe+0x2a62521)
#49 0x00007ff6d8c298f9 (D:\LLVM\bin\clang++.exe+0x2a498f9)
#50 0x00007ff6d62ac09b (D:\LLVM\bin\clang++.exe+0xcc09b)
#51 0x00007ff6daa7b6e0 (D:\LLVM\bin\clang++.exe+0x489b6e0)
#52 0x00007ff85a777034 (C:\WINDOWS\System32\KERNEL32.DLL+0x17034)
#53 0x00007ff85acc2651 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x52651)

Other information

clang version 15.0.0 (https://gitee.com/mirrors/LLVM.git f1c8667069753408966d83a0f950866b4fc5f864)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: D:\LLVM\bin
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
Preprocessed source(s) and associated run script(s) are located at:
clang++: note: diagnostic msg: C:\Users\WDM\AppData\Local\Temp\locale-84fb6c.cpp
clang++: note: diagnostic msg: C:\Users\WDM\AppData\Local\Temp\locale-84fb6c.sh
@EugeneZelenko EugeneZelenko added clang:frontend Language frontend issues, e.g. anything involving "Sema" and removed new issue labels Feb 5, 2022
@llvmbot
Copy link
Collaborator

llvmbot commented Feb 5, 2022

@llvm/issue-subscribers-clang-frontend

@EugeneZelenko
Copy link
Contributor

@24bit-xjkp: Could you please elaborate?

@24bit-xjkp
Copy link
Author

This issue is long past and it may have been fixed in one of the updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang:frontend Language frontend issues, e.g. anything involving "Sema"
Projects
None yet
Development

No branches or pull requests

3 participants