https://bugs.winehq.org/show_bug.cgi?id=50813
--- Comment #12 from Non 19non91@gmail.com --- The only time self-compiled wine didn't work for me is when I tested latest commit through PKGBUILD using it's regular bare repo fetch.
Then I fetched the repo myself and adjusted PKGBUILD so it could use same repo too (1).
Also I skipped prepare step to prevent repo redownloading. Prepare step contains this:
sed 's|OpenCL/opencl.h|CL/opencl.h|g' -i wine/configure*
Maybe "exits" with errors have something to do with changed header paths.
1. Didn't know about bare repos and the possibility to enable a worktree for them. Thought PKGBUILD just downloads stripped repo with one latest commit to compile, like --depth 1 or something. So I just downloaded it again manually to be able to use bisect.