[LLVMbugs] [Bug 17420] New: [MSVC] - crtdefs.h error generating preprocessed sources - VC2013 RC toolset

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Sep 30 16:35:16 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=17420

            Bug ID: 17420
           Summary: [MSVC] - crtdefs.h error generating preprocessed
                    sources - VC2013 RC toolset
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jsamuel at iress.com.au
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Compiling against VC2013 RC libraries/headers, I get the following stack dump. 
(Originally this stack dump from clang-modernize, but got the same issue after
integrating clang-cl into our builds)

crtdefs.h is from VS2013 RC.

The line mentioned is the first typedef in the below 4 lines:

----  lines 2072 to 2075 ------
struct threadlocaleinfostruct;
struct threadmbcinfostruct;
typedef struct threadlocaleinfostruct * pthreadlocinfo;
typedef struct threadmbcinfostruct * pthreadmbcinfo;
--------------------------------


Stack dump:
0.    Program arguments: C:\Program Files (x86)\LLVM 3.4.svn\msbuild-bin\CL.exe
-cc1 -triple i686-pc-win32 -emit-obj -disable-free -disable-llvm-verifier
-main-file-name stdafx.cpp -mrelocation-model static -mdisable-fp-elim
-fmath-errno -masm-verbose -mconstructor-aliases -target-cpu pentium4 -D_MT
-D_DLL --dependent-lib=msvcrt --dependent-lib=oldnames -cxx-abi microsoft
-fdiagnostics-format msvc -coverage-file
D:\devel\jsamuelTfs\Ifc\15.1\main\Base\Release\stdafx.obj -resource-dir
C:\Program Files (x86)\LLVM 3.4.svn\msbuild-bin\..\lib\clang\3.4 -D
_IFCBASE_EXT -D SDO_DEFINE_FIELDS -D SDO_DEFINE_TOPICS -D IRESSVC2010 -D
IRESSVC2012 -D IRESSVC2013 -D NEO_ROOT_RELATIVE_DIR="d:\\devel\\jsamuelTfs" -D
WIN32 -D _WINDOWS -D NDEBUG -D _AFXEXT -D _BIND_TO_CURRENT_VCLIBS_VERSION=1 -D
WIN32 -D _WINDOWS -D NDEBUG -D _AFXEXT -D _BIND_TO_CURRENT_VCLIBS_VERSION=1 -D
_USING_V110_SDK71_ -D _WINDLL -D _AFXDLL -I
d:\devel\jsamuelTfs\Ifc\15.1\main\Base -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\serialization -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\optional -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\thread -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\chrono -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\ratio -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\system -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\move -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\date_time -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\algorithm -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\function -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\range -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\utility -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\iterator -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\io -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\type_traits -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\mpl -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\preprocessor -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\boost -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\container -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\math -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\numeric -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\concept -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\smart_ptr -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\exception -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\units -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\config -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\detail -I
d:\devel\jsamuelTfs\3rdParty\GMock\1.6151\main\GMock -I
d:\devel\jsamuelTfs\3rdParty\GMock\1.6151\main\GMock\include -I
d:\devel\jsamuelTfs\BuildProcessProperties\main\MAKE_VC12 -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\intrusive -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\bind -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\accumulators -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\functional -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\integer -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\typeof -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\fusion -I
d:\devel\jsamuelTfs\3rdParty\Boost\1.54\main\parameter -I
d:\devel\jsamuelTfs\3rdParty\GetText\1.7\main -I
d:\devel\jsamuelTfs\3rdParty\Microsoft\DebuggingTools\main\DbgHelp -I
d:\devel\jsamuelTfs\3rdParty\ATLServer\9.0\main -I
d:\devel\jsamuelTfs\3rdParty\ATLServer\9.0\main\include -I
d:\devel\jsamuelTfs\Ifc\15.1\main\Xml -I d:\devel\jsamuelTfs\H\main
-internal-isystem C:\Program Files (x86)\LLVM
3.4.svn\msbuild-bin\..\lib\clang\3.4\include -internal-isystem C:\Program Files
(x86)\Microsoft Visual Studio 12.0\VC\include -internal-isystem C:\Program
Files (x86)\Microsoft Visual Studio 12.0\VC\atlmfc\include -internal-isystem
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\include -internal-isystem
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\include -O2 -Wall
-Wno-error -std=c++11 -fdeprecated-macro -fdebug-compilation-dir
D:\devel\jsamuelTfs\Ifc\15.1\main\Base -ferror-limit 19 -fmessage-length 0
-fsanitize=alignment,bool,bounds,enum,float-cast-overflow,float-divide-by-zero,integer-divide-by-zero,null,object-size,return,shift,signed-integer-overflow,unreachable,vla-bound,vptr
-mstackrealign -fms-extensions -fms-compatibility -fmsc-version=1800
-fdelayed-template-parsing -fobjc-runtime=gcc -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -vectorize-loops -vectorize-slp -v -o
D:\devel\jsamuelTfs\Ifc\15.1\main\Base\Release\stdafx.obj -x c++ stdafx.cpp 

1.    C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\crtdefs.h:2074:55: current parser token ';'
0x02480D24 (0x03B1D6E8 0x00000000 0x00000000 0x023BF750),
clang::ASTContext::getElaboratedType() + 0xD4 bytes(s),
d:\devel\llvm\tools\clang\lib\ast\astcontext.cpp, line 3249 + 0x7 byte(s)
0x01E03F2C (0x03B1D6E8 0x00000000 0x03B1E138 0x023BF750),
clang::Sema::getElaboratedType() + 0x4C bytes(s),
d:\devel\llvm\tools\clang\lib\sema\sematype.cpp, line 5369 + 0xE byte(s)
0x01DFB025 (0x03B1D858 0x03B1D8B8 0x03B1DBFC 0x03F23920),
ConvertDeclSpecToType() + 0x5A5 bytes(s),
d:\devel\llvm\tools\clang\lib\sema\sematype.cpp, line 907 + 0x16 byte(s)
0x01DFB937 (0x03B1D8B4 0x03B1D8B8 0x03B1D8B0 0x03F35E78),
GetDeclSpecTypeForDeclarator() + 0x57 bytes(s),
d:\devel\llvm\tools\clang\lib\sema\sematype.cpp, line 2097 + 0xA byte(s)
0x01DFEA13 (0x03B1DBFC 0x03F35E78 0x03F31218 0x03F23920),
clang::Sema::GetTypeForDeclarator() + 0x73 bytes(s),
d:\devel\llvm\tools\clang\lib\sema\sematype.cpp, line 3293
0x01CBE9A5 (0x03F35E78 0x03B1DBFC 0x00000000 0x00000000),
clang::Sema::HandleDeclarator() + 0x3B5 bytes(s),
d:\devel\llvm\tools\clang\lib\sema\semadecl.cpp, line 4216
0x01CA87BD (0x03F35E78 0x03B1DBFC 0x00000000 0x03F31218),
clang::Sema::ActOnDeclarator() + 0x1D bytes(s),
d:\devel\llvm\tools\clang\lib\sema\semadecl.cpp, line 4005 + 0x9 byte(s)
0x01C1C3B6 (0x03B1DBFC 0x03B1DBD4 0x03B1E458 0x03F31218),
clang::Parser::ParseDeclarationAfterDeclaratorAndAttributes() + 0x186 bytes(s),
d:\devel\llvm\tools\clang\lib\parse\parsedecl.cpp, line 1831 + 0xF byte(s)
0x01C1BB44 (0x03B1E470 0x03B1E124 0x00000000 0x00000000),
clang::Parser::ParseDeclGroup() + 0x464 bytes(s),
d:\devel\llvm\tools\clang\lib\parse\parsedecl.cpp, line 1678
0x01C23DE1 (0x03B1E470 0x03B1E37C 0x00000000 0x03B1E374),
clang::Parser::ParseSimpleDeclaration() + 0x201 bytes(s),
d:\devel\llvm\tools\clang\lib\parse\parsedecl.cpp, line 1435 + 0x21 byte(s)
0x01C1C159 (0x03B1E470 0x03B1E37C 0x00000000 0x03B1E374),
clang::Parser::ParseDeclaration() + 0x1F9 bytes(s),
d:\devel\llvm\tools\clang\lib\parse\parsedecl.cpp, line 1386 + 0x1B byte(s)
0x01C0A3FB (0x03B1E470 0x03B1E458 0x00000000 0x03F31218),
clang::Parser::ParseExternalDeclaration() + 0x37B bytes(s),
d:\devel\llvm\tools\clang\lib\parse\parser.cpp, line 720 + 0x19 byte(s)
0x01C537D3 (0x03B1E510 0x00000000 0x03B1E7D4 0x03F31218),
clang::Parser::ParseLinkage() + 0x263 bytes(s),
d:\devel\llvm\tools\clang\lib\parse\parsedeclcxx.cpp, line 326
0x01C09F12 (0x03B1E7D4 0x03B1E7B4 0x03B1E510 0x00000003),
clang::Parser::ParseDeclOrFunctionDefInternal() + 0x292 bytes(s),
d:\devel\llvm\tools\clang\lib\parse\parser.cpp, line 898
0x01C09FF7 (0x03B1E7D4 0x03B1E7B4 0x00000000 0x00000003),
clang::Parser::ParseDeclarationOrFunctionDefinition() + 0xA7 bytes(s),
d:\devel\llvm\tools\clang\lib\parse\parser.cpp, line 917 + 0x18 byte(s)
0x01C0A7E3 (0x03B1E7D4 0x03B1E7B4 0x00000000 0x03ED6E18),
clang::Parser::ParseExternalDeclaration() + 0x763 bytes(s),
d:\devel\llvm\tools\clang\lib\parse\parser.cpp, line 782 + 0x11 byte(s)
0x01C0C1D7 (0x03B1E814 0x03EE0610 0x03ECCCD0 0x03ECCCD0),
clang::Parser::ParseTopLevelDecl() + 0x127 bytes(s),
d:\devel\llvm\tools\clang\lib\parse\parser.cpp, line 588
0x01C05C34 (0x03F23920 0x00000000 0x00000000 0x03EE0610), clang::ParseAST() +
0x144 bytes(s), d:\devel\llvm\tools\clang\lib\parse\parseast.cpp, line 144 +
0xB byte(s)
0x01B4E8F1 (0x03EE0610 0x00000000 0x03ECCCD0 0x03B1E8D0),
clang::ASTFrontendAction::ExecuteAction() + 0x71 bytes(s),
d:\devel\llvm\tools\clang\lib\frontend\frontendaction.cpp, line 476 + 0x26
byte(s)
0x019AABD2 (0x03ECCCD0 0x00000000 0x03EE0610 0x01B456E0),
clang::CodeGenAction::ExecuteAction() + 0x2F2 bytes(s),
d:\devel\llvm\tools\clang\lib\codegen\codegenaction.cpp, line 441
0x01B4E829 (0x03ECCCD0 0x03EE0610 0x00000000 0x03EE0610),
clang::FrontendAction::Execute() + 0x49 bytes(s),
d:\devel\llvm\tools\clang\lib\frontend\frontendaction.cpp, line 383
0x01B456E0 (0x03EE0610 0x03ECB958 0x03ECCCD0 0x03ED4110),
clang::CompilerInstance::ExecuteAction() + 0x240 bytes(s),
d:\devel\llvm\tools\clang\lib\frontend\compilerinstance.cpp, line 708
0x019887C6 (0x03ECCCD0 0x03B1F64C 0x00000000 0x000000C6),
clang::ExecuteCompilerInvocationclang cl.exe: error: clang frontend command
failed due to signal (use -v to see invocation)
clang version 3.4 (trunk)
Target: i686-pc-win32
Thread model: posix
clang cl.exe: 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 cl.exe: note: diagnostic msg: Error generating preprocessed source(s).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130930/12bc3c8f/attachment.html>


More information about the llvm-bugs mailing list