<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><FONT face="Courier New">
 <BR>
"<BR>
From: Nikola Smiljanic <popizdeh@gmail.com><BR><BR>I'd say that CMake is unable to detect you Visual Studio, and I'm not sure<BR>what mechanism they use to do that. But you could try running your command<BR>from the Visual Studio Tools Command Prompt.<BR>"<BR>
 <BR>
Hmm,<BR>
 <BR>
O.K., I just tried that. ... Exact same errors.<BR>
 <BR>
Hmm, I only have Visual Studio 2010 Express.  Usually that does not make  difference!?<BR>
 <BR>
A couple weeks agon, I compiled BLAS and LAPACK from netlib with just the MinGW32 tools and Cmake and that worked fine.<BR>
 <BR>
Does anyone have any idea whether or not I can compile Clang with MinGW32 tools and Cmake?<BR>
Anyone tried it?<BR>
 <BR>
 <BR>
 <BR>
----------------------------------------------------<BR>
<BR id=FontBreak></FONT>Message: 2<BR>Date: Fri, 5 Apr 2013 08:17:22 +1100<BR>From: Nikola Smiljanic <popizdeh@gmail.com><BR>To: Andre Mikulec <andre_mikulec@hotmail.com><BR>Cc: "cfe-dev@cs.uiuc.edu" <cfe-dev@cs.uiuc.edu><BR>Subject: Re: [cfe-dev] llvm and clang: trying to "cmake" a "Visual<BR>Studio 10"<BR>Message-ID:<BR><CAGq7tnNvdUVd_R9Bb9gO_-ZYN0VONsZjo4RA=0mJowzUC6t3tw@mail.gmail.com><BR>Content-Type: text/plain; charset="utf-8"<BR> <BR>I'd say that CMake is unable to detect you Visual Studio, and I'm not sure<BR>what mechanism they use to do that. But you could try running your command<BR>from the Visual Studio Tools Command Prompt.<BR> <BR> <BR>On Fri, Apr 5, 2013 at 4:47 AM, Andre Mikulec <andre_mikulec@hotmail.com>wrote:<BR> <BR>><BR>> All,<BR>><BR>> I posted this to the 'users list' but I have not recevied a response, so I<BR>> decided to re-post here.<BR>><BR>> ------<BR>><BR>><BR>> HI,<BR>> I AM USING CMAKE TO TRY TO GENERATE MY<BR>> CMAKE CMakeFiles FOLDER AND CMakeCache.txt FILE.<BR>><BR>> I AM RUNNING THE FOLLOWING COMMAND.<BR>><BR>> M:\YDrive\All_Economics\eclipse_workspace\CheckoutLLVM\llvm><BR>> "F:\Program Files\CMake 2.8\bin\cmake" -G "Visual Studio 10"<BR>> M:\YDrive\All_Economics\eclipse_workspace\CheckoutLLVM\llvm<BR>><BR>> HERE ARE MY RETURNED MESSAGES.<BR>><BR>> The C compiler identification is unknown<BR>> The CXX compiler identification is unknown<BR>> Looking for argz.h<BR>> CMake Error at F:/Program Files/CMake<BR>> 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37<BR>> (get_filename_component):<BR>> get_filename_component called with incorrect number of arguments<BR>> Call Stack (most recent call first):<BR>> CMakeLists.txt:3 (PROJECT)<BR>><BR>> CMake Error: Internal CMake error, TryCompile configure of cmake failed<BR>> Looking for argz.h - not found<BR>> Looking for assert.h<BR>> CMake Error at F:/Program Files/CMake<BR>> 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37<BR>> (get_filename_component):<BR>> get_filename_component called with incorrect number of arguments<BR>> Call Stack (most recent call first):<BR>> CMakeLists.txt:3 (PROJECT)<BR>> ... LONG OUTPUT ...<BR>> Make Error: Internal CMake error, TryCompile configure of cmake failed<BR>> Performing Test SUPPORTS_NO_VARIADIC_MACROS_FLAG - Failed<BR>> CMake Error at cmake/modules/GetHostTriple.cmake:24 (message):<BR>> Failed to execute<BR>><BR>> M:/YDrive/All_Economics/eclipse_workspace/CheckoutLLVM/llvm/autoconf/config.guess<BR>> Call Stack (most recent call first):<BR>> cmake/config-ix.cmake:336 (get_host_triple)<BR>> CMakeLists.txt:243 (include)<BR>><BR>> Configuring incomplete, errors occurred!<BR>><BR>> PLEASE HELP.<BR>> THANK YOU,<BR>> ANDRE MIKULEC<BR>> ANDRE_MIKULEC at HOTMAIL.COM<BR>><BR>><BR>><BR>><BR>><BR>> _______________________________________________<BR>> cfe-dev mailing list<BR>> cfe-dev@cs.uiuc.edu<BR>> <A href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target=_blank><FONT color=#0072c6>http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</FONT></A><BR>><BR>><BR>-------------- next part --------------<BR>An HTML attachment was scrubbed...<BR>URL: <<A href="http://lists.cs.uiuc.edu/pipermail/cfe-dev/attachments/20130405/faec4f9e/attachment-0001.html" target=_blank><FONT color=#0068cf>http://lists.cs.uiuc.edu/pipermail/cfe-dev/attachments/20130405/faec4f9e/attachment-0001.html</FONT></A>><BR> <BR><BR><BR>
 <BR>
 <BR>
<BR> <BR><PRE>

</PRE><BR>Andre Mikulec <BR>Andre_Mikulec@Hotmail.com<BR>  
<BR>
<DIV>
<DIV id=SkyDrivePlaceholder></DIV>> From: cfe-dev-request@cs.uiuc.edu<BR>> Subject: cfe-dev Digest, Vol 70, Issue 19<BR>> To: cfe-dev@cs.uiuc.edu<BR>> Date: Thu, 4 Apr 2013 17:45:26 -0500<BR>> <BR>> Send cfe-dev mailing list submissions to<BR>> cfe-dev@cs.uiuc.edu<BR>> <BR>> To subscribe or unsubscribe via the World Wide Web, visit<BR>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev<BR>> or, via email, send a message with subject or body 'help' to<BR>> cfe-dev-request@cs.uiuc.edu<BR>> <BR>> You can reach the person managing the list at<BR>> cfe-dev-owner@cs.uiuc.edu<BR>> <BR>> When replying, please edit your Subject line so it is more specific<BR>> than "Re: Contents of cfe-dev digest..."<BR>> <BR>> <BR>> Today's Topics:<BR>> <BR>> 1. Re: [LLVMdev] [Announcement] 3.3 Release Planning! (Renato Golin)<BR>> 2. Re: llvm and clang: trying to "cmake" a "Visual Studio 10"<BR>> (Nikola Smiljanic)<BR>> 3. Re: Distinguishing system headers from user headers using<BR>> libclang (Argyrios Kyrtzidis)<BR>> 4. Re: clang 3.2 libclang: crash detected during reparsing<BR>> (Argyrios Kyrtzidis)<BR>> <BR>> <BR>> ----------------------------------------------------------------------<BR>> <BR>> Message: 1<BR>> Date: Thu, 4 Apr 2013 20:29:36 +0100<BR>> From: Renato Golin <renato.golin@linaro.org><BR>> To: Galina Kistanova <gkistanova@gmail.com><BR>> Cc: cfe-dev <cfe-dev@cs.uiuc.edu>, LLVM Developers Mailing List<BR>> <llvmdev@cs.uiuc.edu>, Sylvestre Ledru <sylvestre@irill.org>, Galina<BR>> Kistanova <gkistanova@accesssoftek.com><BR>> Subject: Re: [cfe-dev] [LLVMdev] [Announcement] 3.3 Release Planning!<BR>> Message-ID:<BR>> <CAMSE1kdFEeFu1nBcjF072enAN0FXTs3Bm+8+6xNWsc5G64UoYQ@mail.gmail.com><BR>> Content-Type: text/plain; charset="iso-8859-1"<BR>> <BR>> On 4 April 2013 19:26, Galina Kistanova <gkistanova@gmail.com> wrote:<BR>> <BR>> > Yes, we have couple beagleboards. I can make them available if this will<BR>> > add value.<BR>> ><BR>> <BR>> I think a simple ClangBuilder on it for now would be good. I'm looking into<BR>> getting a self-hosting Panda on my local buildmaster. If it works, I'll<BR>> send the patch. I'll only be able to look at beagle boards in a week from<BR>> now (holidays), so if you have them ready, feel free to use them.<BR>> <BR>> <BR>> Maybe we should set a special "release" buildmaster? Which would<BR>> > orchestrate slow bootstrapped builds with extensive testing and collect<BR>> > binaries. This lets us unify the way how it gets built and formally tested.<BR>> > And would save testers time for more advance testing.<BR>> ><BR>> <BR>> We thought about that for a while, but since the requirements we want for<BR>> builds are the same we want for CI, the idea was to create the<BR>> infrastructure for CI and only tag the good builds for release.<BR>> <BR>> The collection of binaries is another story, I agree an automated way is<BR>> necessary, but I have little experience with that. I hear Jenkins can<BR>> do marvellous things, but I never used it, let alone configure it. Having a<BR>> buildbot just for the binaries would also work if at the end it'd push to a<BR>> release server (FTP/HTTP area for download).<BR>> <BR>> cheers,<BR>> --renato<BR>> -------------- next part --------------<BR>> An HTML attachment was scrubbed...<BR>> URL: <http://lists.cs.uiuc.edu/pipermail/cfe-dev/attachments/20130404/fcc44a8d/attachment-0001.html><BR>> <BR>> ------------------------------<BR>> <BR>> Message: 2<BR>> Date: Fri, 5 Apr 2013 08:17:22 +1100<BR>> From: Nikola Smiljanic <popizdeh@gmail.com><BR>> To: Andre Mikulec <andre_mikulec@hotmail.com><BR>> Cc: "cfe-dev@cs.uiuc.edu" <cfe-dev@cs.uiuc.edu><BR>> Subject: Re: [cfe-dev] llvm and clang: trying to "cmake" a "Visual<BR>> Studio 10"<BR>> Message-ID:<BR>> <CAGq7tnNvdUVd_R9Bb9gO_-ZYN0VONsZjo4RA=0mJowzUC6t3tw@mail.gmail.com><BR>> Content-Type: text/plain; charset="utf-8"<BR>> <BR>> I'd say that CMake is unable to detect you Visual Studio, and I'm not sure<BR>> what mechanism they use to do that. But you could try running your command<BR>> from the Visual Studio Tools Command Prompt.<BR>> <BR>> <BR>> On Fri, Apr 5, 2013 at 4:47 AM, Andre Mikulec <andre_mikulec@hotmail.com>wrote:<BR>> <BR>> ><BR>> > All,<BR>> ><BR>> > I posted this to the 'users list' but I have not recevied a response, so I<BR>> > decided to re-post here.<BR>> ><BR>> > ------<BR>> ><BR>> ><BR>> > HI,<BR>> > I AM USING CMAKE TO TRY TO GENERATE MY<BR>> > CMAKE CMakeFiles FOLDER AND CMakeCache.txt FILE.<BR>> ><BR>> > I AM RUNNING THE FOLLOWING COMMAND.<BR>> ><BR>> > M:\YDrive\All_Economics\eclipse_workspace\CheckoutLLVM\llvm><BR>> > "F:\Program Files\CMake 2.8\bin\cmake" -G "Visual Studio 10"<BR>> > M:\YDrive\All_Economics\eclipse_workspace\CheckoutLLVM\llvm<BR>> ><BR>> > HERE ARE MY RETURNED MESSAGES.<BR>> ><BR>> > The C compiler identification is unknown<BR>> > The CXX compiler identification is unknown<BR>> > Looking for argz.h<BR>> > CMake Error at F:/Program Files/CMake<BR>> > 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37<BR>> > (get_filename_component):<BR>> > get_filename_component called with incorrect number of arguments<BR>> > Call Stack (most recent call first):<BR>> > CMakeLists.txt:3 (PROJECT)<BR>> ><BR>> > CMake Error: Internal CMake error, TryCompile configure of cmake failed<BR>> > Looking for argz.h - not found<BR>> > Looking for assert.h<BR>> > CMake Error at F:/Program Files/CMake<BR>> > 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37<BR>> > (get_filename_component):<BR>> > get_filename_component called with incorrect number of arguments<BR>> > Call Stack (most recent call first):<BR>> > CMakeLists.txt:3 (PROJECT)<BR>> > ... LONG OUTPUT ...<BR>> > Make Error: Internal CMake error, TryCompile configure of cmake failed<BR>> > Performing Test SUPPORTS_NO_VARIADIC_MACROS_FLAG - Failed<BR>> > CMake Error at cmake/modules/GetHostTriple.cmake:24 (message):<BR>> > Failed to execute<BR>> ><BR>> > M:/YDrive/All_Economics/eclipse_workspace/CheckoutLLVM/llvm/autoconf/config.guess<BR>> > Call Stack (most recent call first):<BR>> > cmake/config-ix.cmake:336 (get_host_triple)<BR>> > CMakeLists.txt:243 (include)<BR>> ><BR>> > Configuring incomplete, errors occurred!<BR>> ><BR>> > PLEASE HELP.<BR>> > THANK YOU,<BR>> > ANDRE MIKULEC<BR>> > ANDRE_MIKULEC at HOTMAIL.COM<BR>> ><BR>> ><BR>> ><BR>> ><BR>> ><BR>> > _______________________________________________<BR>> > cfe-dev mailing list<BR>> > cfe-dev@cs.uiuc.edu<BR>> > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev<BR>> ><BR>> ><BR>> -------------- next part --------------<BR>> An HTML attachment was scrubbed...<BR>> URL: <http://lists.cs.uiuc.edu/pipermail/cfe-dev/attachments/20130405/faec4f9e/attachment-0001.html><BR>> <BR>> ------------------------------<BR>> <BR>> Message: 3<BR>> Date: Thu, 4 Apr 2013 15:22:26 -0700<BR>> From: Argyrios Kyrtzidis <akyrtzi@gmail.com><BR>> To: Miko?aj Siedlarek <m.siedlarek@nctz.net><BR>> Cc: Clang Developers <cfe-dev@cs.uiuc.edu><BR>> Subject: Re: [cfe-dev] Distinguishing system headers from user headers<BR>> using libclang<BR>> Message-ID: <7E5C3AB9-F6E7-4B4C-B5D0-62B55253A078@gmail.com><BR>> Content-Type: text/plain; charset="utf-8"<BR>> <BR>> On Apr 2, 2013, at 1:33 AM, Miko?aj Siedlarek <m.siedlarek@nctz.net> wrote:<BR>> <BR>> > Hi,<BR>> > <BR>> > I'm writing a simple code dependency analysis tool using libclang and I'm missing some way of distinguishing system headers from user headers. I see clang::DirectoryLookup::getDirCharacteristic() provides such interface, but is there any way I could obtain this information using just libclang? My tool is rather simple and I'd like to keep it that way - libclang seems to be sufficient for the rest of my needs.<BR>> <BR>> There is no way currently, but it should relatively easy, are you interested in providing such a patch ?<BR>> The clang function you may need to look into using is "SourceManager::isInSystemHeader(SourceLocation Loc)"<BR>> The libclang function would accept a CXTranslationUnit and a CXSourceLocation.<BR>> <BR>> > <BR>> > Thanks,<BR>> > -- <BR>> > Miko?aj Siedlarek<BR>> > m.siedlarek@nctz.net<BR>> > <BR>> > _______________________________________________<BR>> > cfe-dev mailing list<BR>> > cfe-dev@cs.uiuc.edu<BR>> > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev<BR>> <BR>> -------------- next part --------------<BR>> An HTML attachment was scrubbed...<BR>> URL: <http://lists.cs.uiuc.edu/pipermail/cfe-dev/attachments/20130404/576d3a2a/attachment-0001.html><BR>> <BR>> ------------------------------<BR>> <BR>> Message: 4<BR>> Date: Thu, 4 Apr 2013 15:45:20 -0700<BR>> From: Argyrios Kyrtzidis <akyrtzi@gmail.com><BR>> To: Oliver Giles <ogtifs@gmail.com><BR>> Cc: Clang Developers <cfe-dev@cs.uiuc.edu><BR>> Subject: Re: [cfe-dev] clang 3.2 libclang: crash detected during<BR>> reparsing<BR>> Message-ID: <F27AEE6A-68E6-4438-9D8B-FEEBE566BA13@gmail.com><BR>> Content-Type: text/plain; charset="iso-8859-1"<BR>> <BR>> On Apr 4, 2013, at 12:14 AM, Oliver Giles <ogtifs@gmail.com> wrote:<BR>> <BR>> > I just tried this again with the latest clang from svn. The original snippet works but the next lines in my original code are:<BR>> > <BR>> > CXCursor cursor = clang_getTranslationUnitCursor(tu);<BR>> > CXSourceRange sr = clang_getCursorExtent(cursor);<BR>> > CXToken* tokens;<BR>> > unsigned numtokens;<BR>> > clang_tokenize(tu, sr, &tokens, &numtokens);<BR>> > CXCursor* cursors = new CXCursor[numtokens];<BR>> > clang_annotateTokens(tu, tokens, numtokens, cursors);<BR>> > <BR>> > Appending even the first line of this (clang_getTranslationUnitCursor) to the example I gave earlier causes a segfault in the clang 3.3 library.<BR>> <BR>> Fixed in r178800. FYI, it looks like the CXTranslationUnit object that you get is null, so there was a problem during parsing.<BR>> <BR>> > <BR>> > Oliver<BR>> > <BR>> > On 2013-01-16 20:14, Argyrios Kyrtzidis wrote:<BR>> >> Fixed in r172632, thanks!<BR>> >> <BR>> >> On Jan 15, 2013, at 9:36 PM, Oliver <ogtifs@gmail.com> wrote:<BR>> >> <BR>> >>> Hi,<BR>> >>> Some example code for document editing I was using with clang 3.1 now segfaults on clang 3.2:<BR>> >>> <BR>> >>> #include <clang-c/Index.h><BR>> >>> #include <string.h><BR>> >>> <BR>> >>> char DOCUMENT[] = "int main() { return 0; }\n";<BR>> >>> <BR>> >>> int main(int argc, char** argv) {<BR>> >>> const char* args;<BR>> >>> CXIndex ci = clang_createIndex(0,0);<BR>> >>> CXTranslationUnit tu =<BR>> >>> clang_parseTranslationUnit(ci, "main.cpp", &args,<BR>> >>> 0, NULL, 0, clang_defaultEditingTranslationUnitOptions());<BR>> >>> CXUnsavedFile file;<BR>> >>> file.Filename = "main.cpp";<BR>> >>> file.Contents = DOCUMENT;<BR>> >>> file.Length = strlen(DOCUMENT);<BR>> >>> clang_reparseTranslationUnit(tu, 1, &file, clang_defaultEditingTranslationUnitOptions());<BR>> >>> return 0;<BR>> >>> }<BR>> >>> <BR>> >>> Output is:<BR>> >>> libclang: crash detected during reparsing<BR>> >>> Segmentation fault (core dumped)<BR>> >>> <BR>> >>> Am I doing something perverted or is this a bug?<BR>> >>> <BR>> >>> Oliver<BR>> >>> _______________________________________________<BR>> >>> cfe-dev mailing list<BR>> >>> cfe-dev@cs.uiuc.edu<BR>> >>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev<BR>> <BR>> -------------- next part --------------<BR>> An HTML attachment was scrubbed...<BR>> URL: <http://lists.cs.uiuc.edu/pipermail/cfe-dev/attachments/20130404/7365c9d8/attachment.html><BR>> <BR>> ------------------------------<BR>> <BR>> _______________________________________________<BR>> cfe-dev mailing list<BR>> cfe-dev@cs.uiuc.edu<BR>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev<BR>> <BR>> <BR>> End of cfe-dev Digest, Vol 70, Issue 19<BR>> ***************************************<BR></DIV>                                     </div></body>
</html>