Open llvmbot opened 11 years ago
the pch file. stdafx.h.pch.7z.009 clang version 3.2 (trunk 166987) Target: i386-pc-linux-gnu Thread model: posix
libcxx, libcxxabi's version is also trunk 166987.
use the command line, will core dump.
clang -cc1 -triple i386-pc-linux-gnu -emit-obj -disable-free -disable-llvm-verifier -pic-level 2 -fmath-errno -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu i686 -momit-leaf-frame-pointer -resource-dir /home/zhuohongtao/wpsv6/clang/buildllvm/bin/../lib/clang/3.2 -include-pch stdafx.h.pch -D textbean_EXPORTS -D NO_KFC_STRING -D STDLIB_IS_LIBCXX -D QT_GUI_LIB -D QT_CORE_LIB -D _USRDLL -D TEXTBEAN_EXPORTS -D QT_NO_DEBUG -D NDEBUG -fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem /usr/include/c++/v1 -internal-isystem /usr/local/include -internal-isystem /home/zhuohongtao/wpsv6/clang/buildllvm/bin/../lib/clang/3.2/include -internal-externc-isystem /usr/include/i386-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -Winvalid-pch -Wcomment -std=c++11 -fdeprecated-macro -ferror-limit 19 -fmessage-length 80 -fvisibility-inlines-hidden -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o stdafx.cpp.s -x c++ -S stdafx.cpp.i
(It looks like the automatically generated file is getting confused by the use of PCH.)
I cannot reproduce it, even with the exact same clang revision:
$ ./build/bin/clang -cc1 -triple i386-pc-linux-gnu -emit-obj -disable-free -disable-llvm-verifier -main-file-name stdafx.cpp -pic-level 2 -fmath-errno -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu i686 -momit-leaf-frame-pointer -D "textbean_EXPORTS" -D "NO_KFC_STRING" -D "STDLIB_IS_LIBCXX" -D "QT_GUI_LIB" -D "QT_CORE_LIB" -D "_USRDLL" -D "TEXTBEAN_EXPORTS" -D "QT_NO_DEBUG" -D "NDEBUG" -O3 -Winvalid-pch -Wcomment -std=c++11 -fdeprecated-macro -ferror-limit 19 -fmessage-length 186 -fvisibility-inlines-hidden -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -x c++ stdafx-mOwnRv.cpp
In file included from stdafx-mOwnRv.cpp:1: In file included from /home/zhuohongtao/wpsv6/func_native_linux_110822_branch/Coding/office/wpp/textbean/stdafx.cpp:11: /home/zhuohongtao/wpsv6/func_native_linux_110822_branch/Coding/office/wpp/textbean/./stdafx.h:30:9: error: unknown type name 'CComModule' extern CComModule _Module; ^ /home/zhuohongtao/wpsv6/func_native_linux_110822_branch/Coding/office/wpp/textbean/./stdafx.h:60:17: error: expected namespace name using namespace kso; ^ In file included from stdafx-mOwnRv.cpp:1: In file included from /home/zhuohongtao/wpsv6/func_native_linux_110822_branch/Coding/office/wpp/textbean/stdafx.cpp:29: /home/zhuohongtao/wpsv6/func_native_linux_110822_branch/Coding/office/wpp/textbean/../../include/kde/kde_intf.c:47:18: error: unknown type name 'GUID' extern "C" const GUID GUID_MSOTYPELIB = {0x2df8d04c, 0x5bfa, 0x101b, 0xbd, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0xde, 0x52}; ^ 3 errors generated
Extended Description
clang version 3.2 (trunk 166663) Target: i386-pc-linux-gnu Thread model: posix
0 clang-3.2 0x08f456a8 1 clang-3.2 0x08f45a84 2 0x40022400 kernel_sigreturn + 0 3 clang-3.2 0x0952c8bf 4 clang-3.2 0x09531871 5 clang-3.2 0x0953668e clang::InitializationSequence::InitializationSequence(clang::Sema&, clang::InitializedEntity const&, clang::InitializationKind const&, clang::Expr*, unsigned int) + 2734 6 clang-3.2 0x09501c6b clang::Sema::BuildCXXTypeConstructExpr(clang::TypeSourceInfo, clang::SourceLocation, llvm::MutableArrayRef<clang::Expr>, clang::SourceLocation) + 1467 7 clang-3.2 0x096215ab 8 clang-3.2 0x0963a3a0 9 clang-3.2 0x0963c861 10 clang-3.2 0x0963aa85 11 clang-3.2 0x0963d34a clang::Sema::SubstStmt(clang::Stmt, clang::MultiLevelTemplateArgumentList const&) + 106 12 clang-3.2 0x0964e6fa clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl, bool, bool) + 1658 13 clang-3.2 0x0964d830 clang::Sema::PerformPendingInstantiations(bool) + 480 14 clang-3.2 0x093a3873 clang::Sema::ActOnEndOfTranslationUnit() + 2419 15 clang-3.2 0x09202ea1 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 401
16 clang-3.2 0x091f9fc4 clang::ParseAST(clang::Sema&, bool, bool) + 324
17 clang-3.2 0x0914e7e8 clang::ASTFrontendAction::ExecuteAction() + 120
18 clang-3.2 0x08f67a21 clang::CodeGenAction::ExecuteAction() + 33
19 clang-3.2 0x0914ecd8 clang::FrontendAction::Execute() + 104
20 clang-3.2 0x0912f107 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 263
21 clang-3.2 0x08f48a4e clang::ExecuteCompilerInvocation(clang::CompilerInstance ) + 1358
22 clang-3.2 0x082f30a7 cc1_main(char const, char const, char const, void) + 7943
23 clang-3.2 0x082dcf98 main + 8024
24 libc.so.6 0x401a94d3 libc_start_main + 243
25 clang-3.2 0x082ef211
Stack dump:
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang-3: note: diagnostic msg: /tmp/stdafx-mOwnRv.cpp clang-3: note: diagnostic msg: /tmp/stdafx-mOwnRv.sh clang-3: note: diagnostic msg: