Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Appveyor builds fail randomly #62

Closed
vitaut opened this issue Aug 4, 2015 · 4 comments
Closed

Appveyor builds fail randomly #62

vitaut opened this issue Aug 4, 2015 · 4 comments

Comments

@vitaut
Copy link
Contributor

vitaut commented Aug 4, 2015

The errors occur in different projects, but always when including arith.h:

    96>c:\projects\mp\src\asl\solvers\asl.h(28): fatal error C1083: Cannot open include file: 'arith.h': No such file or directory [C:\projects\mp\src\asl\asl-core-dynrt.vcxproj]

Looks like the problem with a custom build step that generates arith.h.

@vitaut
Copy link
Contributor Author

vitaut commented Aug 4, 2015

MSBuild is running custom build steps multiple times as indicated by the lines

Writing arith.h

so the error might be caused by race conditions when two processes (build is parallel) are trying to rebuild arith.h.

@vitaut
Copy link
Contributor Author

vitaut commented Aug 4, 2015

Running msbuild with /v:diag gives this:

Forcing rebuild of all source files due to missing command TLog "C:\projects\mp\Win32\Debug\ALL_BUILD\ALL_BUILD.tlog\custombuild.command.1.tlog". (TaskId:2453)

@vitaut
Copy link
Contributor Author

vitaut commented Aug 4, 2015

Some information about using generated files in two different targets: http://www.cmake.org/pipermail/cmake/2008-October/024492.html

vitaut added a commit that referenced this issue Aug 4, 2015
because including a file generated by a custom command in more
than one target may result in it being generated multiple times
in a parallel build which doesn't work reliably in msbuild (#62).
See also http://www.cmake.org/pipermail/cmake/2008-October/024492.html
vitaut added a commit that referenced this issue Aug 4, 2015
arith.h should only be included in the target of the same name (#62)
@vitaut
Copy link
Contributor Author

vitaut commented Aug 4, 2015

Fixed in 6710a59 & 00dc557.

@vitaut vitaut closed this as completed Aug 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant