Build failures for VC++ 10

My attempt to build clang for VC++ 10, after getting the latest from svn, gave a number of errors based on:

fatal error C1083: Cannot open include file: 'clang/Basic/DiagnosticCommonKinds.inc': No such file or directory

fatal error C1083: Cannot open include file: 'clang/Basic/AttrList.inc': No such file or directory

Did someone forget to update something on SVN ?

Edward Diener <eldlistmailingz@tropicsoft.com>
writes:

My attempt to build clang for VC++ 10, after getting the latest from
svn, gave a number of errors based on:

fatal error C1083: Cannot open include file:
'clang/Basic/DiagnosticCommonKinds.inc': No such file or directory

fatal error C1083: Cannot open include file: 'clang/Basic/AttrList.inc':
No such file or directory

Did someone forget to update something on SVN ?

For an error related to those files, I don't think so.

Are you building with the IDE of with NMake?

How many cores/threads your machine has?

In case you are building with the IDE using multiple threads: if you
re-start the build, the same error happens again?

After doing another SVN Update the correct files were now picked up and the build ran successfully.

Edward Diener <eldlistmailingz@tropicsoft.com>
writes:

My attempt to build clang for VC++ 10, after getting the latest from
svn, gave a number of errors based on:

fatal error C1083: Cannot open include file:
'clang/Basic/DiagnosticCommonKinds.inc': No such file or directory

fatal error C1083: Cannot open include file: 'clang/Basic/AttrList.inc':
No such file or directory

Did someone forget to update something on SVN ?

For an error related to those files, I don't think so.

After doing another SVN Update the correct files were now picked up and
the build ran successfully.

Okay, but this looks like a bug on the build specification. Could you
please answer the questions I asked on my previous e-mail? That would
help to diagnose the problem.

Edward Diener<eldlistmailingz@tropicsoft.com>
writes:

My attempt to build clang for VC++ 10, after getting the latest from
svn, gave a number of errors based on:

fatal error C1083: Cannot open include file:
'clang/Basic/DiagnosticCommonKinds.inc': No such file or directory

fatal error C1083: Cannot open include file: 'clang/Basic/AttrList.inc':
No such file or directory

Did someone forget to update something on SVN ?

For an error related to those files, I don't think so.

Are you building with the IDE of with NMake?

The VC++ 10 IDE.

How many cores/threads your machine has?

Four cores.

In case you are building with the IDE using multiple threads: if you
re-start the build, the same error happens again?

I can not test this as after getting the latest files the build runs successfully. I will assume that the default for VC++ 10 is that it uses multiple threads.

Edward Diener <eldlistmailingz@tropicsoft.com>
writes:

For an error related to those files, I don't think so.

Are you building with the IDE of with NMake?

The VC++ 10 IDE.

How many cores/threads your machine has?

Four cores.

In case you are building with the IDE using multiple threads: if you
re-start the build, the same error happens again?

I can not test this as after getting the latest files the build runs
successfully. I will assume that the default for VC++ 10 is that it uses
multiple threads.

I guess that you didn't start from scratch after updating. This is
equivalent to doing what I asked for.

I'll try to replicate the problem now. Thanks.

Oscar,

I have met sometimes similar error as Edward has reported.

I had the same problem and it was caused by building inside the source directory. Moving build directory outside the working copy fixed it.

NAKAMURA Takumi <geek4civic@gmail.com> writes:

I have met sometimes similar error as Edward has reported.

My attempt to build clang for VC++ 10, after getting the latest from
svn, gave a number of errors based on:

fatal error C1083: Cannot open include file:
'clang/Basic/DiagnosticCommonKinds.inc': No such file or directory

fatal error C1083: Cannot open include file: 'clang/Basic/AttrList.inc':
No such file or directory

I am suspicious cmake's dependency, though, I have little time to investigate.
FYI, I have not met dependency issue on linux and mingw.

Yes, I agree that there is a bug on the dependencies. Do you remember if
it is only on the Clang part, or you observed it on tablegenned files
from LLVM too?

Thanks.

Yeah, on msvc10 and clang's tblgen, I saw issues.

...Takumi