-
Notifications
You must be signed in to change notification settings - Fork 106
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
Build and tests fail on MINGW platform #342
Comments
Why would skipping be a good idea at all? |
If the temporary files are not supported by mingw for example (I am not sure though, it looks like it would work fine with MSVC), then probably it would be better to skip and mark as not supported features |
Why would temporary files not being supported cause a segfault? |
Well the true issue appears to be in these lines: |
Haha this is such garbage code. Can you just do something like |
And Python doesn't have real threads due to the GIL so it probably doesn't matter here. |
Updated patch with segfault fix: msys2/MINGW-packages#17095 |
Affected Operating Systems
Affected py-lmdb Version
1.4.1
py-lmdb Installation Method
See PKGBUILD file
Using bundled or distribution-provided LMDB library?
Bundled
Distribution name and LMDB library version
Both built from this package and using latest available from system.
Describe Your Problem
Build fails as setup.py script assumes that everything built on windows is built with MSVC, which is not true in case of MINGW setup.
env_test.py
tests segfault on opening temp files.See patch file for details and potential solution.
Related issues
Affects msys2/MINGW-packages#17025
Potential solution
See the patch above. I would suggest adding compilations flags specifically for mingw compilers on windows and either skip or fix segfault in tests.
The text was updated successfully, but these errors were encountered: