Skip to content
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

boost-1.86.0 multiprecision won't include due to include file error: 'gmp.h': No such file or directory #43041

Open
etheory opened this issue Jan 1, 2025 · 1 comment · May be fixed by #43056
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@etheory
Copy link

etheory commented Jan 1, 2025

Describe the bug
boost-1.86.0 multiprecision doesn't include without error

Environment

  • OS: Windows 10 Pro - 10.0.19045 Build 19045
  • Compiler: MSBuild version 17.12.12+1cce77968, Visual Studio Community 2022

To Reproduce
Steps to reproduce the behavior:

  1. ./vcpkg install boost-multiprecision
  2. within code use:
  3. #include <boost/multiprecision/mpfr.hpp>
  4. typedef boost::multiprecision::mpfr_float mp_type;
  5. mp_type x(1.f);
  6. compiler error: "vcpkg\installed\x64-windows\include\boost\multiprecision\gmp.hpp(54,10): error C1083: Cannot open include file: 'gmp.h': No such file or directory"Expected behaviorI would expect that this works. Are we missing a dependency on another library that would make this work?

Further, once I DO install gmp using "vcpkg.exe install gmp" I get a different error now:
error C1083: Cannot open include file: 'mpfr.h': No such file or directory

UPDATE - additionally installing "mpfr" fixed the issue.
So I am asking here to add the dependencies of gmp and mpfr to complete this package.

Failure logs
See above

Additional context
This is from following the boost docs here: https://live.boost.org/doc/libs/1_86_0/libs/math/doc/html/math_toolkit/hypergeometric/hypergeometric_pfq.html
and attempting to install the dependency using vcpkg.

FWIW I am using boost and vcpkg for multiple other libraries (including within boost) with no issues.

Thanks!

@jimwang118 jimwang118 self-assigned this Jan 2, 2025
@jimwang118 jimwang118 added the category:port-bug The issue is with a library, which is something the port should already support label Jan 2, 2025
@jimwang118
Copy link
Contributor

This issue has been reproduced locally.

@jimwang118 jimwang118 linked a pull request Jan 2, 2025 that will close this issue
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants