-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
llvm+clang bootstrap failure on Linux/x86 #22454
Comments
It is caused by Author: Chandler Carruth chandlerc@gmail.com
|
The same thing happens on Linux/x86-64. |
I am looking at this.. Apologies, I did bootstrap before commuting, but this failure didn't show up for me. |
H.J.Lu, do you have the preprocessed file? Could you attach it to the bug? |
[A testcase on Linuxhttps://user-images.githubusercontent.com/1072356/143750670-f70ad2bb-245a-4e81-9b1e-39a3b068b419.gz)
|
FWIW, I suspect I just didn't have assertions enabled in my selfhost, and this is an assertion-only failure (but may be a risk of miscompile). I'm bootstrapping now w/ assertions and will hopefully be able to reproduce shortly. It has also shown up on some of the bootstrap build bots. |
Or H.J.Lu will get me a test case that simplifies debugging... should have this fixed shortly, this doesn't look scary, just a coding bug on my part. |
Proximate cause fixed in r225068. Doing a fresh asserts bootstrap just to check for more fallout. Will close once that's clean. |
Ok, that did fix the last issue I'm seeing with the bootstrap. Added a test case for this issue in r225070. Thanks for the report, and sorry for the inconvenience. |
*** Bug llvm/llvm-bugzilla-archive#22089 has been marked as a duplicate of this bug. *** |
mentioned in issue llvm/llvm-bugzilla-archive#22089 |
Extended Description
On Linux/ia32, llvm revision 225065 + clang revision 225060 gave me:
clang: /export/gnu/import/git/llvm/include/llvm/Support/Casting.h:237: typename llvm::cast_retty<X, Y*>::ret_type llvm::cast(Y*) [with X = llvm::Instruction; Y = llvm::Value; typename llvm::cast_retty<X, Y*>::ret_type = llvm::Instruction*]: Assertion `isa(Val) && "cast() argument of incompatible type!"' failed.
0 clang 0x0a81a90c llvm::sys::PrintStackTrace(_IO_FILE*) + 44
1 clang 0x0a81ab5f
2 clang 0x0a8188f0
3 0x55557cb0 __kernel_sigreturn + 0
4 0x55557ce0 __kernel_vsyscall + 16
5 libc.so.6 0x4763b8b7 gsignal + 71
6 libc.so.6 0x4763d0f3 abort + 323
7 libc.so.6 0x47634947
8 libc.so.6 0x476349f7
9 clang 0x08510eee
10 clang 0x0a2c8cba
11 clang 0x0a2cd197
12 clang 0x0a2cf956
13 clang 0x0a79008f llvm::FPPassManager::runOnFunction(llvm::Function&) + 639
14 clang 0x0a42db6e
15 clang 0x0a7908b9 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 841
16 clang 0x0a790b86 llvm::legacy::PassManager::run(llvm::Module&) + 38
17 clang 0x08792cc5 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 2165
18 clang 0x08783fed
19 clang 0x08979a03 clang::ParseAST(clang::Sema&, bool, bool) + 595
20 clang 0x085b16fd clang::ASTFrontendAction::ExecuteAction() + 109
21 clang 0x08784b4d clang::CodeGenAction::ExecuteAction() + 61
22 clang 0x085b2378 clang::FrontendAction::Execute() + 136
23 clang 0x08589e45 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 341
24 clang 0x0857003d clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2045
25 clang 0x08567c1e cc1_main(llvm::ArrayRef<char const*>, char const*, void*) + 1486
26 clang 0x08543f59 main + 5401
27 libc.so.6 0x47626b43 __libc_start_main + 243
28 clang 0x08566788
Stack dump:
0. Program arguments: /export/build/gnu/llvm-clang-x86-bootstrap/stage1/build-i686-linux/Release+Asserts/bin/clang -cc1 -triple i386-pc-linux-gnu -emit-obj -disable-free -main-file-name Unicode.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -fmath-errno -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu pentium4 -target-linker-version 2.25.51.0.2.20141229 -momit-leaf-frame-pointer -dwarf-column-info -ffunction-sections -fdata-sections -coverage-file /export/build/gnu/llvm-clang-x86-bootstrap/stage2/build-i686-linux/lib/Support/Release+Asserts/Unicode.o -resource-dir /export/build/gnu/llvm-clang-x86-bootstrap/stage1/build-i686-linux/Release+Asserts/bin/../lib/clang/3.6.0 -dependency-file /export/build/gnu/llvm-clang-x86-bootstrap/stage2/build-i686-linux/lib/Support/Release+Asserts/Unicode.d.tmp -MP -MT /export/build/gnu/llvm-clang-x86-bootstrap/stage2/build-i686-linux/lib/Support/Release+Asserts/Unicode.o -MT /export/build/gnu/llvm-clang-x86-bootstrap/stage2/build-i686-linux/lib/Support/Release+Asserts/Unicode.d -D _DEBUG -D _GNU_SOURCE -D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -I /export/build/gnu/llvm-clang-x86-bootstrap/stage2/build-i686-linux/include -I /export/build/gnu/llvm-clang-x86-bootstrap/stage2/build-i686-linux/lib/Support -I /export/gnu/import/git/llvm/include -I /export/gnu/import/git/llvm/lib/Support -internal-isystem /usr/lib/gcc/x86_64-redhat-linux/4.8.3/../../../../include/c++/4.8.3 -internal-isystem /usr/lib/gcc/x86_64-redhat-linux/4.8.3/../../../../include/c++/4.8.3/x86_64-redhat-linux/32 -internal-isystem /usr/lib/gcc/x86_64-redhat-linux/4.8.3/../../../../include/c++/4.8.3/backward -internal-isystem /usr/local/include -internal-isystem /export/build/gnu/llvm-clang-x86-bootstrap/stage1/build-i686-linux/Release+Asserts/bin/../lib/clang/3.6.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -Wcast-qual -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcovered-switch-default -Wno-uninitialized -Wno-missing-field-initializers -Wno-comment -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /export/build/gnu/llvm-clang-x86-bootstrap/stage2/build-i686-linux/lib/Support -ferror-limit 19 -fmessage-length 0 -fvisibility-inlines-hidden -mstackrealign -fno-rtti -fobjc-runtime=gcc -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o /export/build/gnu/llvm-clang-x86-bootstrap/stage2/build-i686-linux/lib/Support/Release+Asserts/Unicode.o -x c++ /export/gnu/import/git/llvm/lib/Support/Unicode.cpp
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see invocation)
The text was updated successfully, but these errors were encountered: