Failure compiling Clang

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:

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.

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

Regards

error-when-building.txt (4.31 KB)

This is already fixed. VS2015 is extremely new, and we had not tested building Clang with it until recently. It turns out that some C++14 features that VS2015 implements and enables by default were incompatible with some of Clang’s code.

If you update to the latest llvm and clang svn and try again, you should have better luck.

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. :slight_smile:

Jon