Skip to content

Debug build on Windows fails without -j1 #2442

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

Open
jpe opened this issue Oct 19, 2020 · 0 comments
Open

Debug build on Windows fails without -j1 #2442

jpe opened this issue Oct 19, 2020 · 0 comments

Comments

@jpe
Copy link

jpe commented Oct 19, 2020

Compiling pillow for a debug build on windows fails without -j1 because distutils parallelizes the build, but there are problems with locking the .pdb file during when compiling the C files. An example of the error message from a cl.exe command is:

fatal error C1041: cannot open program database 'C:\src\tmp\pillow-test\Pillow-7.2.0\vc140.pdb'; if multiple CL.EXE write to the same .PDB file, please use /FS

Building works with setup.py build_ext --disable-jpeg --disable-tiff --disable-zlib --debug build -j1

My guess is the fix is not to parallelize by default in a debug build; a /FS arg to cl.exe could be used, but that doesn't seem to be recommended.

I realize this might be considered a pillow bug, but my guess is that it affects other packages as well

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