[cfe-dev] llvm and clang: trying to "cmake" a "Visual Studio 10"

Andre Mikulec andre_mikulec at hotmail.com
Fri Apr 5 05:29:22 PDT 2013


 
"
From: Nikola Smiljanic <popizdeh at gmail.com>

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


 
 

 


Andre Mikulec 
Andre_Mikulec at Hotmail.com
  


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


More information about the cfe-dev mailing list