[LLVMbugs] [Bug 12849] New: Compiling with MSYS
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed May 16 07:33:04 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12849
Bug #: 12849
Summary: Compiling with MSYS
Product: clang
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nigel_galloway at yahoo.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
I created makefiles with cmake -G "MSYS Makefiles" and compiled using MSYS and
MinGW 4.5.3. The compilation failed at line 67 of CacheTokens.cpp.
PTHEntryKeyVariant(struct stat* statbuf, const char* path)
: Path(path), Kind(IsDE), StatBuf(new struct stat(*statbuf)) {}
I'm sure that the very first C++ book I ever read stated early on that C++ is
case sensitive but that it is very bad to use names that only differ in the
case of a letter.
Anyway the compiler claims that macro stat requires two parameters and only one
has been given. I assume that we actually want structure stat from sys/stat.h
and not the posix call stat(). g++ seems to be as confused as I am.
This may be an issue with the cmake configuration files as this looks like code
that may require special parameters or version of g++. Or it may be a problem
with MinGW.
I changed the above code to:
PTHEntryKeyVariant(struct stat* statbuf, const char* path)
\\ : Path(path), Kind(IsDE), StatBuf(new struct stat(*statbuf))
{}
CLang then compiled and suprisingly seems to work, but presuambly won't when I
start expoloring pretokenized headers.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list