-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
_decimal failed to build with system libmpdec 2.5 #85474
Comments
In bpo-40874, mpdecimal.h in the vendored libmpdec has defines of UNUSED while the standalone released version of mpdecimal 2.5.0 doesn't. This breaks _decimal module build with system libmpdec due to UNUSED is undefined. Errors are like: cpython/Modules/_decimal/_decimal.c:277:36: error: expected ‘;’, ‘,’ or ‘)’ before ‘UNUSED’ Reproducible in both 3.8 branch and master (didn't test 3.9, but should be affected too). |
Thank you for the report, I'll add the define or remove UNUSED in 3.9 3.8 is still supposed to use libmpdec-2.4.2, though it would be Are you planning to use libmpdec-2.5.0 with 3.8? |
Yes, I am currently defining it manually as a workaround for building 3.8.4 in Arch. Also opened #65680 for this :) |
Thanks for the patch! The integrated libmpdec-2.4.2 in Python 3.8 still has a couple of Strictly speaking though, this would be a feature for 3.8 and not On the other hand, if Debian also plans to use 2.5.0 with 3.8, |
I'm going to reclassify this as a build fix for 3.8. 3.8 promises: #if !defined(MPD_VERSION_HEX) || MPD_VERSION_HEX < 0x02040100
#error "libmpdec version >= 2.4.1 required"
#endif So it seems reasonable to support at least two or three consecutive |
Closing, thanks for all the patches! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: