-
Notifications
You must be signed in to change notification settings - Fork 1.2k
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Linux][Build][Itanium] Abort build in clang 4.0.0 #2980
Comments
Looks like this is a Clang/LLVM issue. Interestingly, I did the tests with Clang 4.0 (I'd compiled it from the source codes). If you have a chance, could you please try with that ? |
I missed to compile that... https://gist.githubusercontent.com/yumetodo/3667315003256630c24daa6ec83a7f6c/raw/74131e22529593c1e8b7755a3095f809b4dbbb5f/clang_build_log.txt This is the log when I compile Clang/LLVM(tooooo long!). Should I recompile Clang/LLVM to investigate? |
Yes, it could be nice if you may compile it via Thanks! |
BTW; better call that script with 'sudo'. Because it may install some missing dependencies required to compile LLVM |
OK. BTW, as far as I know, |
Thanks for confirming, I'm working on a potential fix on our end |
Can you try without I think the error you have is due to
Making sure the steps above, I don't get error. |
https://bugs.llvm.org/show_bug.cgi?id=33080#c3 According to the build log, |
@yumetodo I don't have a nearby Itanium based system for Clang4.0 workaround. Can you please comment-out Thanks! |
notice: All investigation is targeting e8ed687
Produce same error.
Produce another clang abort detected. clang-4.0: /home/yumetodo/clang_build/llvm/tools/clang/lib/AST/ItaniumMangle.cpp:4496: void {anonymous}::CXXNameMangler::addSubstitution(uintptr_t): Assertion `!Substitutions.count(Ptr) && "Substitution already exists!"' failed. #0 0x0000000001f6c148 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x1f6c148) #1 0x0000000001f69b5e llvm::sys::RunSignalHandlers() (/usr/local/llvm-4.0.0/bin/clang-4.0+0x1f69b5e) #2 0x0000000001f69f62 SignalHandler(int) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x1f69f62) #3 0x00007f3214dfe390 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x11390) #4 0x00007f3213b71428 gsignal /build/glibc-9tT8Do/glibc-2.23/signal/../sysdeps/unix/sysv/linux/raise.c:54:0 #5 0x00007f3213b7302a abort /build/glibc-9tT8Do/glibc-2.23/stdlib/abort.c:91:0 #6 0x00007f3213b69bd7 __assert_fail_base /build/glibc-9tT8Do/glibc-2.23/assert/assert.c:92:0 #7 0x00007f3213b69c82 (/lib/x86_64-linux-gnu/libc.so.6+0x2dc82) #8 0x00000000037e5070 (anonymous namespace)::CXXNameMangler::addSubstitution(unsigned long) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x37e5070) #9 0x00000000037ed239 (anonymous namespace)::CXXNameMangler::mangleType(clang::QualType) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x37ed239) #10 0x00000000037efb3d (anonymous namespace)::CXXNameMangler::mangleTemplateArg(clang::TemplateArgument) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x37efb3d) #11 0x00000000037effe9 (anonymous namespace)::CXXNameMangler::mangleTemplateArgs(clang::TemplateArgumentList const&) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x37effe9) #12 0x00000000037f06d9 (anonymous namespace)::CXXNameMangler::mangleNestedName(clang::NamedDecl const*, clang::DeclContext const*, llvm::SmallVector const*, bool) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x37f06d9) #13 0x00000000037e8a67 (anonymous namespace)::CXXNameMangler::mangleNameWithAbiTags(clang::NamedDecl const*, llvm::SmallVector const*) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x37e8a67) #14 0x00000000037e67d5 (anonymous namespace)::CXXNameMangler::mangleName(clang::NamedDecl const*) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x37e67d5) #15 0x00000000037e8bc1 (anonymous namespace)::CXXNameMangler::mangleFunctionEncoding(clang::FunctionDecl const*) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x37e8bc1) #16 0x00000000037ea436 (anonymous namespace)::ItaniumMangleContextImpl::mangleCXXName(clang::NamedDecl const*, llvm::raw_ostream&) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x37ea436) #17 0x00000000021a480f clang::CodeGen::CodeGenModule::getMangledName(clang::GlobalDecl) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x21a480f) #18 0x00000000021a8e37 clang::CodeGen::CodeGenModule::GetAddrOfFunction(clang::GlobalDecl, llvm::Type*, bool, bool, clang::CodeGen::ForDefinition_t) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x21a8e37) #19 0x00000000022d45c5 clang::CodeGen::CodeGenFunction::EmitCXXMemberOrOperatorMemberCallExpr(clang::CallExpr const*, clang::CXXMethodDecl const*, clang::CodeGen::ReturnValueSlot, bool, clang::NestedNameSpecifier*, bool, clang::Expr const*) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x22d45c5) #20 0x00000000022d4984 clang::CodeGen::CodeGenFunction::EmitCXXMemberCallExpr(clang::CXXMemberCallExpr const*, clang::CodeGen::ReturnValueSlot) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x22d4984) #21 0x00000000022c7b42 clang::CodeGen::CodeGenFunction::EmitCallExpr(clang::CallExpr const*, clang::CodeGen::ReturnValueSlot) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x22c7b42) #22 0x00000000008db5b9 (anonymous namespace)::ScalarExprEmitter::VisitCallExpr(clang::CallExpr const*) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x8db5b9) #23 0x00000000022eccf8 (anonymous namespace)::ScalarExprEmitter::Visit(clang::Expr*) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x22eccf8) #24 0x00000000022ed6b3 clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x22ed6b3) #25 0x00000000022ad7fe clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*, clang::CodeGen::AggValueSlot, bool) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x22ad7fe) #26 0x00000000022c0095 clang::CodeGen::CodeGenFunction::EmitIgnoredExpr(clang::Expr const*) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x22c0095) #27 0x00000000021556d9 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x21556d9) #28 0x000000000215683f clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x215683f) #29 0x0000000002156a9c clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x2156a9c) #30 0x0000000002159953 clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x2159953) #31 0x0000000002155685 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x2155685) #32 0x00000000021594c8 clang::CodeGen::CodeGenFunction::EmitCaseStmt(clang::CaseStmt const&) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x21594c8) #33 0x0000000002159990 clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x2159990) #34 0x0000000002155685 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x2155685) #35 0x000000000215683f clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x215683f) #36 0x0000000002156a9c clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x2156a9c) #37 0x0000000002159953 clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x2159953) #38 0x0000000002155685 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x2155685) #39 0x0000000002159fc0 clang::CodeGen::CodeGenFunction::EmitSwitchStmt(clang::SwitchStmt const&) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x2159fc0) #40 0x0000000002155d7f clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x2155d7f) #41 0x000000000215683f clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x215683f) #42 0x000000000218085e clang::CodeGen::CodeGenFunction::EmitFunctionBody(clang::CodeGen::FunctionArgList&, clang::Stmt const*) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x218085e) #43 0x000000000218c491 clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x218c491) #44 0x00000000021adb60 clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl, llvm::GlobalValue*) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x21adb60) #45 0x00000000021be35f clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl, llvm::GlobalValue*) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x21be35f) #46 0x00000000021bf248 clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x21bf248) #47 0x00000000021bf981 clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x21bf981) #48 0x00000000021c05df clang::CodeGen::CodeGenModule::EmitDeclContext(clang::DeclContext const*) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x21c05df) #49 0x00000000021bfab6 clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x21bfab6) #50 0x00000000027e58c7 (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x27e58c7) #51 0x00000000027dc943 clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x27dc943) #52 0x0000000002bed2b6 clang::ParseAST(clang::Sema&, bool, bool) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x2bed2b6) #53 0x00000000027dd868 clang::CodeGenAction::ExecuteAction() (/usr/local/llvm-4.0.0/bin/clang-4.0+0x27dd868) #54 0x00000000024a5d46 clang::FrontendAction::Execute() (/usr/local/llvm-4.0.0/bin/clang-4.0+0x24a5d46) #55 0x000000000247269e clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x247269e) #56 0x0000000002533f1d clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/usr/local/llvm-4.0.0/bin/clang-4.0+0x2533f1d) #57 0x0000000000af4b28 cc1_main(llvm::ArrayRef, char const*, void*) (/usr/local/llvm-4.0.0/bin/clang-4.0+0xaf4b28) #58 0x0000000000a7d34d main (/usr/local/llvm-4.0.0/bin/clang-4.0+0xa7d34d) #59 0x00007f3213b5c830 __libc_start_main /build/glibc-9tT8Do/glibc-2.23/csu/../csu/libc-start.c:325:0 #60 0x0000000000af0df9 _start (/usr/local/llvm-4.0.0/bin/clang-4.0+0xaf0df9) Stack dump: 0. Program arguments: /usr/local/llvm-4.0.0/bin/clang-4.0 -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name AsmJsEncoder.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -target-feature +sse4.2 -momit-leaf-frame-pointer -dwarf-column-info -debugger-tuning=gdb -coverage-notes-file /home/yumetodo/ドキュメント/ChakraCore/out/Release/lib/Runtime/Language/CMakeFiles/Chakra.Runtime.Language.dir/AsmJsEncoder.cpp.gcno -resource-dir /usr/local/llvm-4.0.0/bin/../lib/clang/4.0.0 -D BIT64=1 -D CAN_BUILD_WABT -D CLANG_HAS_DISABLE_TAIL_CALLS=1 -D ENABLE_VALGRIND=1 -D FEATURE_PAL -D HAS_REAL_ICU=1 -D LINUX64 -D NO_PAL_MINMAX -D PAL_STDCPP_COMPAT -D PLATFORM_UNIX=1 -D STACK_ALIGN=16 -D UNICODE -D _AMD64_ -D _ENABLE_DYNAMIC_THUNKS=1 -D _M_AMD64 -D _M_X64 -D _M_X64_OR_ARM64 -D _SAFECRT_USE_CPP_OVERLOADS=1 -D __LINUX__=1 -D __STDC_WANT_LIB_EXT1__=1 -I /home/yumetodo/ドキュメント/ChakraCore/. -I /home/yumetodo/ドキュメント/ChakraCore/lib/Common -I /home/yumetodo/ドキュメント/ChakraCore/lib/Common/PlaceHolder -I /home/yumetodo/ドキュメント/ChakraCore/pal -I /home/yumetodo/ドキュメント/ChakraCore/pal/inc -I /home/yumetodo/ドキュメント/ChakraCore/pal/inc/rt -I /home/yumetodo/ドキュメント/ChakraCore/lib/Runtime/. -I /home/yumetodo/ドキュメント/ChakraCore/lib/Runtime/../JITIDL -I /home/yumetodo/ドキュメント/ChakraCore/lib/Runtime/../Common -I /home/yumetodo/ドキュメント/ChakraCore/lib/Runtime/../Backend -I /home/yumetodo/ドキュメント/ChakraCore/lib/Runtime/../Parser -I /home/yumetodo/ドキュメント/ChakraCore/lib/Runtime/../WasmReader -I /home/yumetodo/ドキュメント/ChakraCore/lib/Runtime/ByteCode -I /home/yumetodo/ドキュメント/ChakraCore/lib/Runtime/PlatformAgnostic -I /home/yumetodo/ドキュメント/ChakraCore/lib/Runtime/Math -I /home/yumetodo/ドキュメント/ChakraCore/lib/Runtime/Language/../Math -I /home/yumetodo/ドキュメント/ChakraCore/lib/Runtime/Language -D NDEBUG -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/x86_64-linux-gnu/c++/5.4.0 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/x86_64-linux-gnu/c++/5.4.0 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/backward -internal-isystem /usr/local/include -internal-isystem /usr/local/llvm-4.0.0/bin/../lib/clang/4.0.0/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -Werror -Wno-ignored-attributes -Wno-deprecated-declarations -Wno-parentheses-equality -Wno-missing-braces -Wno-reorder -Wno-microsoft -Wno-unused-value -Wno-int-to-void-pointer-cast -Wno-invalid-offsetof -Wno-undefined-inline -Wno-inconsistent-missing-override -Wno-c++14-extensions -Wno-macro-redefined -Wno-pragmas -Wno-invalid-token-paste -Wno-format -Wno-invalid-noreturn -Wno-null-arithmetic -Wno-tautological-constant-out-of-range-compare -Wno-tautological-undefined-compare -Wno-address-of-temporary -Wno-null-conversion -Wno-return-type -Wno-switch -Wno-implicit-function-declaration -Wno-int-to-pointer-cast -std=gnu++11 -fdeprecated-macro -fdebug-compilation-dir /home/yumetodo/ドキュメント/ChakraCore/out/Release/lib/Runtime/Language -ferror-limit 19 -fmessage-length 0 -fwrapv -fms-extensions -fdelayed-template-parsing -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -fasm-blocks -vectorize-loops -vectorize-slp -o CMakeFiles/Chakra.Runtime.Language.dir/AsmJsEncoder.cpp.o -x c++ /home/yumetodo/ドキュメント/ChakraCore/lib/Runtime/Language/AsmJsEncoder.cpp 1. /home/yumetodo/ドキュメント/ChakraCore/lib/Runtime/Language/AsmJsEncoder.cpp:304:2: current parser token ';' 2. /home/yumetodo/ドキュメント/ChakraCore/lib/Runtime/Language/AsmJsEncoder.cpp:20:11: LLVM IR generation of declaration 'Js' 3. /home/yumetodo/ドキュメント/ChakraCore/lib/Runtime/Language/AsmJsEncoder.cpp:29:24: Generating code for declaration 'Js::AsmJsEncoder::ReadOpTemplate' 4. /home/yumetodo/ドキュメント/ChakraCore/lib/Runtime/Language/AsmJsEncoder.cpp:32:9: LLVM IR generation of compound statement ('{}') 5. /home/yumetodo/ドキュメント/ChakraCore/lib/Runtime/Language/AsmJsEncoderHandler.inl:45:3 : LLVM IR generation of compound statement ('{}') 6. /home/yumetodo/ドキュメント/ChakraCore/lib/Runtime/Language/AsmJsEncoder.inl:150:24: Mangling declaration 'Js::AsmJsEncoder::OP_Empty' clang-4.0: error: unable to execute command: Aborted (core dumped) clang-4.0: error: clang frontend command failed due to signal (use -v to see invocation) clang version 4.0.0 (http://llvm.org/git/clang.git 559aa046fe3260d8640791f2249d7b0d458b5700) (http://llvm.org/git/llvm.git 4423e351176a92975739dd4ea43c2ff5877236ae) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /usr/local/bin clang-4.0: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script. clang-4.0: note: diagnostic msg: ******************** https://pastebin.com/raw/58fzHzSy
|
Build log
Environment
The text was updated successfully, but these errors were encountered: