Details
-
Bug
-
Resolution: Invalid
-
P3: Somewhat important
-
None
-
5.12.12, 5.15.2
-
None
-
QEMU VM Windows 10 Pro 21H2 19044.1826
Description
I build qt from source on Windows. Batch file is attached: build-qt.bat
After some time of building phase I get the error: `The process cannot access the file because it is being used by another process.` The error happens at different points of the build, i.e. it looks like it is not tied to a particular file.
I tried:
- to have only `-release` instead of `-debug-and-release`
- instead of `jom`, to have
```
set CL=/MP
nmake
```
- to have `-mp` option and call `nmake`
- I also tried to download different versions of Qt. e.g. Qt 5.15.2
- I tried to revert my `Windows 10 Pro 21H2 19044.1826` VM to an earlier snapshot.
None of those helped. The only thing that helped is to hum only one building process: i.e., just to have `nmake` and that's it (i.e., without `CL=/MP` or `-mp` option). But I don't like this, as it allows to use only one core for the build.
I have found this bug: https://bugreports.qt.io/browse/QTBUG-66059?attachmentViewMode=list but it does not help. It is closed, but I still get the error. How can I fix this error? I am not the only person who builds Qt from source, I guess, but I cannot find any solution on the Internet. I would really appreciate any help!