It appears I found my problem.
Cygwin won't see the proper access rights on a directory for the
current user, unless the Windows ACL on the directory explicitly lists
the current user with "full control" access rights, inherited to all
descendent objects (sub-directories / files).
If you try the build outside the cygwin home directory, you get the
funny situation that some of files generated by the build script are
listed by a cygwin shell session (for example with `ls`) as having no
access rights whatsoever, not even read for the owner u+r.
The Windows user has the needed permissions, so the build script
appears to start properly and do its work, but the cygwin session
(running under the same user) doesn't see any of the permissions and
sometimes reports access denied, sometimes fails silently !
Than the build fails.
I had to explicitly add the user running the cygwin shell session to
the directory ACLs for the vpx source and build directories, with
Windows `icacls` command, like :
USERNAME="$(whoami)"
icacls "${VPX_BUILD_DIR}" /Q /T /inheritance:e /grant "${USERNAME}:(OI)F"
icacls "${VPX_SRC_DIR}" /Q /T /inheritance:e /grant "${USERNAME}:(OI)F"
Can you pleas find a way to check for this situation and properly
return and error message after ./configure ? Or at least document it
in the README ?
Currently in this situation the build fails with what appears to be an
attempt to pass a cygwin-style path (starting with /cygdrive/c/...) to
the cl.exe compiler from visual studio.
Hope that helps,
Timothy Madden