[cfe-dev] Failure compiling Clang

Jonathan Roelofs jonathan at codesourcery.com
Thu May 21 10:37:37 PDT 2015



On 5/21/15 12:51 AM, Javier Múgica wrote:
> Hello:
>
> I'm trying to set up a working Clang on my Windows 7 computer. I followed the instructions on the web page to the letter. I just downloaded yesterday everything, even Visual Studio 2015 itself. There are 9 projects that do not build, and very important ones, like clang itself. Of those nine some fail at link time because of previous failures, so that there are actually only two projects that fail when compiling:

Are your Clang and LLVM checkouts synced to the same revision? Have you 
tried updating them both?

Since clang depends on llvm, it's possible to grab a revision that 
doesn't build because (possibly) breaking changes were made to llvm and 
you haven't got the corresponding change to clang in your tree. The 
other possibility is that the revisions you've got are just plain broken 
(which happens from time to time).

Usually the easiest way to recover from both of those cases is to update 
everything and try again.  If you'd like to be well insulated from that, 
I'd suggest building from one of the release branches.

>
> clangAST  clangSerialization
>
> I attach the error log.
>
> By the way, this is typical of free software: you follow the instructions for installing some piece of software and it just doesn't work. Of course, I like free software and contribute when possible, but my point is that their developers usually do not pay enough attention to newcomers; i.e., they have their software in a state which is suitable for those that already understant how it works and it is difficult for those arriving at it for the first time. This time, however, I almost got my working Clang. In contrast, two years ago it failed that soon that I didn't bother to continue further and try fixing the problem.

Indeed, the free-software sword cuts both ways!

>
> I hope within some time I will change from newcomer to expert, hence to contributer.

Welcome to the community. :)


Jon

>
> Regards
>
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>

-- 
Jon Roelofs
jonathan at codesourcery.com
CodeSourcery / Mentor Embedded




More information about the cfe-dev mailing list