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-math] Build error on x64-linux #38955

Closed
alexlee728 opened this issue May 27, 2024 · 3 comments · Fixed by #38728
Closed

[boost-math] Build error on x64-linux #38955

alexlee728 opened this issue May 27, 2024 · 3 comments · Fixed by #38728
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@alexlee728
Copy link

Package: boost-math:x64-linux@1.85.0

Host Environment

  • Host: x64-linux
  • Compiler: GNU 7.5.0
  • vcpkg-tool version: 2024-04-23-d6945642ee5c3076addd1a42c331bbf4cfc97457
    vcpkg-scripts version: 01f6021 2024-05-24 (2 天前)

To Reproduce

vcpkg install pcl:x64-linux

Failure logs

-- Downloading https://github.com/boostorg/math/archive/boost-1.85.0.tar.gz -> boostorg-math-boost-1.85.0.tar.gz...
-- Extracting source /home/code/external/vcpkg/downloads/boostorg-math-boost-1.85.0.tar.gz
-- Applying patch build-old-libs.patch
-- Applying patch opt-random.diff
-- Using source at /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean
-- Configuring x64-linux
-- Building x64-linux-rel
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: /usr/local/bin/cmake --build . --config Release --target install -- -v -j5
    Working Directory: /home/code/external/vcpkg/buildtrees/boost-math/x64-linux-rel
    See logs for more information:
      /home/code/external/vcpkg/buildtrees/boost-math/install-x64-linux-rel-out.log

Call Stack (most recent call first):
  installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  installed/x64-linux/share/vcpkg-boost/boost-install.cmake:65 (vcpkg_cmake_install)
  ports/boost-math/portfile.cmake:15 (boost_configure_and_install)
  scripts/ports.cmake:175 (include)



/home/code/external/vcpkg/buildtrees/boost-math/install-x64-linux-rel-out.log
Change Dir: '/home/code/external/vcpkg/buildtrees/boost-math/x64-linux-rel'

Run Build Command(s): /home/code/external/vcpkg/downloads/tools/ninja/1.10.2-linux/ninja -v -v -j5 install
[1/133] /usr/bin/c++  -I/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/src/tr1 -I/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include -fPIC -O3 -DNDEBUG -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT libs/math/CMakeFiles/boost_math_tr1.dir/src/tr1/assoc_laguerre.cpp.o -MF libs/math/CMakeFiles/boost_math_tr1.dir/src/tr1/assoc_laguerre.cpp.o.d -o libs/math/CMakeFiles/boost_math_tr1.dir/src/tr1/assoc_laguerre.cpp.o -c /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/src/tr1/assoc_laguerre.cpp
[2/133] /usr/bin/c++  -I/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/src/tr1 -I/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include -fPIC -O3 -DNDEBUG -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT libs/math/CMakeFiles/boost_math_c99.dir/src/tr1/cbrt.cpp.o -MF libs/math/CMakeFiles/boost_math_c99.dir/src/tr1/cbrt.cpp.o.d -o libs/math/CMakeFiles/boost_math_c99.dir/src/tr1/cbrt.cpp.o -c /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/src/tr1/cbrt.cpp
[3/133] /usr/bin/c++  -I/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/src/tr1 -I/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include -fPIC -O3 -DNDEBUG -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT libs/math/CMakeFiles/boost_math_tr1.dir/src/tr1/comp_ellint_1.cpp.o -MF libs/math/CMakeFiles/boost_math_tr1.dir/src/tr1/comp_ellint_1.cpp.o.d -o libs/math/CMakeFiles/boost_math_tr1.dir/src/tr1/comp_ellint_1.cpp.o -c /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/src/tr1/comp_ellint_1.cpp
[4/133] /usr/bin/c++  -I/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/src/tr1 -I/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include -fPIC -O3 -DNDEBUG -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT libs/math/CMakeFiles/boost_math_tr1.dir/src/tr1/beta.cpp.o -MF libs/math/CMakeFiles/boost_math_tr1.dir/src/tr1/beta.cpp.o.d -o libs/math/CMakeFiles/boost_math_tr1.dir/src/tr1/beta.cpp.o -c /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/src/tr1/beta.cpp
FAILED: libs/math/CMakeFiles/boost_math_tr1.dir/src/tr1/beta.cpp.o 
/usr/bin/c++  -I/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/src/tr1 -I/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include -fPIC -O3 -DNDEBUG -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT libs/math/CMakeFiles/boost_math_tr1.dir/src/tr1/beta.cpp.o -MF libs/math/CMakeFiles/boost_math_tr1.dir/src/tr1/beta.cpp.o.d -o libs/math/CMakeFiles/boost_math_tr1.dir/src/tr1/beta.cpp.o -c /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/src/tr1/beta.cpp
In file included from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/tools/roots.hpp:23:0,
                 from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/detail/igamma_inverse.hpp:16,
                 from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/gamma.hpp:2219,
                 from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:15,
                 from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/src/tr1/beta.cpp:11:
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/next.hpp: In function ‘boost::math::tools::promote_args_t<RT1, RT2> boost::math::float_distance(const T&, const U&, const Policy&)’:
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/next.hpp:698:4: error: expected ‘;’ before ‘{’ token
    {
    ^
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/next.hpp:708:4: error: ‘else’ without a previous ‘if’
    else
    ^~~~
In file included from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/detail/igamma_inverse.hpp:16:0,
                 from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/gamma.hpp:2219,
                 from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:15,
                 from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/src/tr1/beta.cpp:11:
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/tools/roots.hpp: In function ‘std::pair<_FIter, _FIter> boost::math::tools::detail::quadratic_roots_imp(const T&, const T&, const T&)’:
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/tools/roots.hpp:907:7: warning: ‘if constexpr’ only available with -std=c++1z or -std=gnu++1z
    if constexpr (std::is_floating_point<T>::value)
       ^~~~~~~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/tools/roots.hpp:947:12: warning: ‘if constexpr’ only available with -std=c++1z or -std=gnu++1z
    else if constexpr (boost::math::tools::is_complex_type<T>::value)
            ^~~~~~~~~
In file included from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/src/tr1/beta.cpp:11:0:
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp: In function ‘T boost::math::detail::ibeta_power_terms(T, T, T, T, const boost::math::lanczos::undefined_lanczos&, bool, const Policy&, T, const char*)’:
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:484:10: error: expected ‘;’ before ‘{’ token
          {
          ^
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:488:10: error: expected ‘}’ before ‘else’
          else
          ^~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:507:10: error: expected ‘;’ before ‘{’ token
          {
          ^
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:511:10: error: ‘else’ without a previous ‘if’
          else
          ^~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:518:16: error: ‘power1’ was not declared in this scope
                power1 = pow((x * y * c * c) / (a * b), b);
                ^~~~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:518:16: note: suggested alternative: ‘powm1’
                power1 = pow((x * y * c * c) / (a * b), b);
                ^~~~~~
                powm1
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:519:16: error: ‘power2’ was not declared in this scope
                power2 = pow((x * c) / a, a - b);
                ^~~~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:519:16: note: suggested alternative: ‘pow’
                power2 = pow((x * c) / a, a - b);
                ^~~~~~
                pow
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:522:16: error: ‘need_logs’ was not declared in this scope
                need_logs = true;
                ^~~~~~~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:526:7: error: expected ‘;’ before ‘{’ token
       {
       ^
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:532:11: error: ‘need_logs’ was not declared in this scope
       if (need_logs)
           ^~~~~~~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:567:13: error: ‘power1’ was not declared in this scope
             power1 = exp(log(xc_a) * a + log(yc_b) * b);
             ^~~~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:567:13: note: suggested alternative: ‘powm1’
             power1 = exp(log(xc_a) * a + log(yc_b) * b);
             ^~~~~~
             powm1
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:568:13: error: ‘power2’ was not declared in this scope
             power2 = 1;
             ^~~~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:568:13: note: suggested alternative: ‘pow’
             power2 = 1;
             ^~~~~~
             pow
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:573:13: error: ‘power1’ was not declared in this scope
             power1 = exp(a * boost::math::log1p((x * b - y * a) / a + p * (x * c / a)));
             ^~~~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:573:13: note: suggested alternative: ‘powm1’
             power1 = exp(a * boost::math::log1p((x * b - y * a) / a + p * (x * c / a)));
             ^~~~~~
             powm1
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:574:13: error: ‘power2’ was not declared in this scope
             power2 = 1;
             ^~~~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:574:13: note: suggested alternative: ‘pow’
             power2 = 1;
             ^~~~~~
             pow
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:579:13: error: ‘power1’ was not declared in this scope
             power1 = exp(b * boost::math::log1p((y * a - x * b) / b + p * (y * c / b)));
             ^~~~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:579:13: note: suggested alternative: ‘powm1’
             power1 = exp(b * boost::math::log1p((y * a - x * b) / b + p * (y * c / b)));
             ^~~~~~
             powm1
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:580:13: error: ‘power2’ was not declared in this scope
             power2 = 1;
             ^~~~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:580:13: note: suggested alternative: ‘pow’
             power2 = 1;
             ^~~~~~
             pow
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:583:23: error: ‘power1’ was not declared in this scope
       return prefix * power1 * power2 * scaled_tgamma_no_lanczos(c, pol) / (scaled_tgamma_no_lanczos(a, pol) * scaled_tgamma_no_lanczos(b, pol));
                       ^~~~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:583:23: note: suggested alternative: ‘powm1’
       return prefix * power1 * power2 * scaled_tgamma_no_lanczos(c, pol) / (scaled_tgamma_no_lanczos(a, pol) * scaled_tgamma_no_lanczos(b, pol));
                       ^~~~~~
                       powm1
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:583:32: error: ‘power2’ was not declared in this scope
       return prefix * power1 * power2 * scaled_tgamma_no_lanczos(c, pol) / (scaled_tgamma_no_lanczos(a, pol) * scaled_tgamma_no_lanczos(b, pol));
                                ^~~~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:583:32: note: suggested alternative: ‘pow’
       return prefix * power1 * power2 * scaled_tgamma_no_lanczos(c, pol) / (scaled_tgamma_no_lanczos(a, pol) * scaled_tgamma_no_lanczos(b, pol));
                                ^~~~~~
                                pow
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp: At global scope:
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:586:4: error: ‘T’ does not name a type
    T power1 = pow(x, a);
    ^
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:587:4: error: ‘T’ does not name a type
    T power2 = pow(y, b);
    ^
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:588:4: error: ‘T’ does not name a type
    T bet = beta_imp(a, b, l, pol);
    ^
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:590:4: error: expected unqualified-id before ‘if’
    if(!(boost::math::isnormal)(power1) || !(boost::math::isnormal)(power2) || !(boost::math::isnormal)(bet))
    ^~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:622:4: error: expected unqualified-id before ‘return’
    return prefix * power1 * (power2 / bet);
    ^~~~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp: In function ‘T boost::math::ibeta_series(T, T, T, T, const boost::math::lanczos::undefined_lanczos&, bool, T*, T, const Policy&)’:
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:734:30: error: ‘minimum_argument_for_bernoulli_recursion’ was not declared in this scope
       const T min_sterling = minimum_argument_for_bernoulli_recursion<T>();
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:734:30: note: suggested alternative:
In file included from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:15:0,
                 from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/src/tr1/beta.cpp:11:
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/gamma.hpp:365:5: note:   ‘boost::math::detail::minimum_argument_for_bernoulli_recursion’
 int minimum_argument_for_bernoulli_recursion()
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/src/tr1/beta.cpp:11:0:
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:734:72: error: expected primary-expression before ‘>’ token
       const T min_sterling = minimum_argument_for_bernoulli_recursion<T>();
                                                                        ^
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:734:74: error: expected primary-expression before ‘)’ token
       const T min_sterling = minimum_argument_for_bernoulli_recursion<T>();
                                                                          ^
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp: In function ‘T boost::math::beta_small_b_large_a_series(T, T, T, T, T, T, const Policy&, bool)’:
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:967:32: error: ‘Pn_size’ is not a member of ‘boost::math::detail’
    T p[ ::boost::math::detail::Pn_size<T>::value ] = { 1 };  // see 9.3.
                                ^~~~~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:967:32: note: suggested alternative:
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:900:8: note:   ‘boost::math::Pn_size’
 struct Pn_size
        ^~~~~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:967:41: error: expected primary-expression before ‘>’ token
    T p[ ::boost::math::detail::Pn_size<T>::value ] = { 1 };  // see 9.3.
                                         ^
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:967:44: error: ‘::value’ has not been declared
    T p[ ::boost::math::detail::Pn_size<T>::value ] = { 1 };  // see 9.3.
                                            ^~~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:984:35: error: ‘p’ was not declared in this scope
    for(unsigned n = 1; n < sizeof(p)/sizeof(p[0]); ++n)
                                   ^
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp: In function ‘T boost::math::ibeta_derivative_imp(T, T, T, const Policy&)’:
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:1549:12: error: ‘ibeta_power_terms’ was not declared in this scope
       f1 = ibeta_power_terms<T>(a, b, x, 1 - x, lanczos_type(), true, pol, 1 / y, function);
            ^~~~~~~~~~~~~~~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:1549:12: note: suggested alternative:
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:448:3: note:   ‘boost::math::detail::ibeta_power_terms’
 T ibeta_power_terms(T a,
   ^~~~~~~~~~~~~~~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:1549:31: error: expected primary-expression before ‘>’ token
       f1 = ibeta_power_terms<T>(a, b, x, 1 - x, lanczos_type(), true, pol, 1 / y, function);
                               ^
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp: At global scope:
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:1592:17: error: ‘tools’ has not been declared
 inline typename tools::promote_args<RT1, RT2, A>::type
                 ^~~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:1592:36: error: expected unqualified-id before ‘<’ token
 inline typename tools::promote_args<RT1, RT2, A>::type
                                    ^
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:1601:17: error: ‘tools’ has not been declared
 inline typename tools::promote_args<RT1, RT2>::type
                 ^~~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:1601:36: error: expected unqualified-id before ‘<’ token
 inline typename tools::promote_args<RT1, RT2>::type
                                    ^
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:1608:17: error: ‘tools’ has not been declared
 inline typename tools::promote_args<RT1, RT2, RT3>::type
                 ^~~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:1608:36: error: expected unqualified-id before ‘<’ token
 inline typename tools::promote_args<RT1, RT2, RT3>::type
                                    ^
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:1625:17: error: ‘tools’ has not been declared
 inline typename tools::promote_args<RT1, RT2, RT3>::type
                 ^~~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:1625:36: error: expected unqualified-id before ‘<’ token
 inline typename tools::promote_args<RT1, RT2, RT3>::type
                                    ^
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:1641:17: error: ‘tools’ has not been declared
 inline typename tools::promote_args<RT1, RT2, RT3>::type
                 ^~~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:1641:36: error: expected unqualified-id before ‘<’ token
 inline typename tools::promote_args<RT1, RT2, RT3>::type
                                    ^
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:1648:17: error: ‘tools’ has not been declared
 inline typename tools::promote_args<RT1, RT2, RT3>::type
                 ^~~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:1648:36: error: expected unqualified-id before ‘<’ token
 inline typename tools::promote_args<RT1, RT2, RT3>::type
                                    ^
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:1664:17: error: ‘tools’ has not been declared
 inline typename tools::promote_args<RT1, RT2, RT3>::type
                 ^~~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:1664:36: error: expected unqualified-id before ‘<’ token
 inline typename tools::promote_args<RT1, RT2, RT3>::type
                                    ^
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:1671:17: error: ‘tools’ has not been declared
 inline typename tools::promote_args<RT1, RT2, RT3>::type
                 ^~~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:1671:36: error: expected unqualified-id before ‘<’ token
 inline typename tools::promote_args<RT1, RT2, RT3>::type
                                    ^
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:1687:17: error: ‘tools’ has not been declared
 inline typename tools::promote_args<RT1, RT2, RT3>::type
                 ^~~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:1687:36: error: expected unqualified-id before ‘<’ token
 inline typename tools::promote_args<RT1, RT2, RT3>::type
                                    ^
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:1694:17: error: ‘tools’ has not been declared
 inline typename tools::promote_args<RT1, RT2, RT3>::type
                 ^~~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:1694:36: error: expected unqualified-id before ‘<’ token
 inline typename tools::promote_args<RT1, RT2, RT3>::type
                                    ^
In file included from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/src/tr1/beta.cpp:11:0:
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:1710:17: error: ‘tools’ has not been declared
 inline typename tools::promote_args<RT1, RT2, RT3>::type
                 ^~~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:1710:36: error: expected unqualified-id before ‘<’ token
 inline typename tools::promote_args<RT1, RT2, RT3>::type
                                    ^
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/beta.hpp:1717:1: error: expected declaration before ‘}’ token
 } // namespace boost
 ^
[5/133] /usr/bin/c++  -I/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/src/tr1 -I/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include -fPIC -O3 -DNDEBUG -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT libs/math/CMakeFiles/boost_math_tr1.dir/src/tr1/assoc_legendre.cpp.o -MF libs/math/CMakeFiles/boost_math_tr1.dir/src/tr1/assoc_legendre.cpp.o.d -o libs/math/CMakeFiles/boost_math_tr1.dir/src/tr1/assoc_legendre.cpp.o -c /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/src/tr1/assoc_legendre.cpp
FAILED: libs/math/CMakeFiles/boost_math_tr1.dir/src/tr1/assoc_legendre.cpp.o 
/usr/bin/c++  -I/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/src/tr1 -I/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include -fPIC -O3 -DNDEBUG -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT libs/math/CMakeFiles/boost_math_tr1.dir/src/tr1/assoc_legendre.cpp.o -MF libs/math/CMakeFiles/boost_math_tr1.dir/src/tr1/assoc_legendre.cpp.o.d -o libs/math/CMakeFiles/boost_math_tr1.dir/src/tr1/assoc_legendre.cpp.o -c /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/src/tr1/assoc_legendre.cpp
In file included from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/tools/roots.hpp:23:0,
                 from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/detail/igamma_inverse.hpp:16,
                 from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/gamma.hpp:2219,
                 from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/factorials.hpp:14,
                 from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/legendre.hpp:17,
                 from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/src/tr1/assoc_legendre.cpp:11:
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/next.hpp: In function ‘boost::math::tools::promote_args_t<RT1, RT2> boost::math::float_distance(const T&, const U&, const Policy&)’:
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/next.hpp:698:4: error: expected ‘;’ before ‘{’ token
    {
    ^
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/next.hpp:708:4: error: ‘else’ without a previous ‘if’
    else
    ^~~~
In file included from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/detail/igamma_inverse.hpp:16:0,
                 from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/gamma.hpp:2219,
                 from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/factorials.hpp:14,
                 from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/legendre.hpp:17,
                 from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/src/tr1/assoc_legendre.cpp:11:
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/tools/roots.hpp: In function ‘std::pair<_FIter, _FIter> boost::math::tools::detail::quadratic_roots_imp(const T&, const T&, const T&)’:
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/tools/roots.hpp:907:7: warning: ‘if constexpr’ only available with -std=c++1z or -std=gnu++1z
    if constexpr (std::is_floating_point<T>::value)
       ^~~~~~~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/tools/roots.hpp:947:12: warning: ‘if constexpr’ only available with -std=c++1z or -std=gnu++1z
    else if constexpr (boost::math::tools::is_complex_type<T>::value)
            ^~~~~~~~~
[6/133] /usr/bin/c++  -I/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/src/tr1 -I/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include -fPIC -O3 -DNDEBUG -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT libs/math/CMakeFiles/boost_math_tr1.dir/src/tr1/comp_ellint_3.cpp.o -MF libs/math/CMakeFiles/boost_math_tr1.dir/src/tr1/comp_ellint_3.cpp.o.d -o libs/math/CMakeFiles/boost_math_tr1.dir/src/tr1/comp_ellint_3.cpp.o -c /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/src/tr1/comp_ellint_3.cpp
[7/133] /usr/bin/c++  -I/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/src/tr1 -I/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include -fPIC -O3 -DNDEBUG -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT libs/math/CMakeFiles/boost_math_tr1.dir/src/tr1/comp_ellint_2.cpp.o -MF libs/math/CMakeFiles/boost_math_tr1.dir/src/tr1/comp_ellint_2.cpp.o.d -o libs/math/CMakeFiles/boost_math_tr1.dir/src/tr1/comp_ellint_2.cpp.o -c /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/src/tr1/comp_ellint_2.cpp
[8/133] /usr/bin/c++  -I/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/src/tr1 -I/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include -fPIC -O3 -DNDEBUG -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT libs/math/CMakeFiles/boost_math_tr1.dir/src/tr1/cyl_bessel_i.cpp.o -MF libs/math/CMakeFiles/boost_math_tr1.dir/src/tr1/cyl_bessel_i.cpp.o.d -o libs/math/CMakeFiles/boost_math_tr1.dir/src/tr1/cyl_bessel_i.cpp.o -c /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/src/tr1/cyl_bessel_i.cpp
FAILED: libs/math/CMakeFiles/boost_math_tr1.dir/src/tr1/cyl_bessel_i.cpp.o 
/usr/bin/c++  -I/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/src/tr1 -I/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include -fPIC -O3 -DNDEBUG -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT libs/math/CMakeFiles/boost_math_tr1.dir/src/tr1/cyl_bessel_i.cpp.o -MF libs/math/CMakeFiles/boost_math_tr1.dir/src/tr1/cyl_bessel_i.cpp.o.d -o libs/math/CMakeFiles/boost_math_tr1.dir/src/tr1/cyl_bessel_i.cpp.o -c /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/src/tr1/cyl_bessel_i.cpp
In file included from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/tools/roots.hpp:23:0,
                 from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/detail/igamma_inverse.hpp:16,
                 from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/gamma.hpp:2219,
                 from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/detail/bessel_jy.hpp:14,
                 from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/bessel.hpp:20,
                 from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/src/tr1/cyl_bessel_i.cpp:11:
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/next.hpp: In function ‘boost::math::tools::promote_args_t<RT1, RT2> boost::math::float_distance(const T&, const U&, const Policy&)’:
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/next.hpp:698:4: error: expected ‘;’ before ‘{’ token
    {
    ^
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/next.hpp:708:4: error: ‘else’ without a previous ‘if’
    else
    ^~~~
In file included from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/detail/igamma_inverse.hpp:16:0,
                 from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/gamma.hpp:2219,
                 from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/detail/bessel_jy.hpp:14,
                 from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/special_functions/bessel.hpp:20,
                 from /home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/src/tr1/cyl_bessel_i.cpp:11:
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/tools/roots.hpp: In function ‘std::pair<_FIter, _FIter> boost::math::tools::detail::quadratic_roots_imp(const T&, const T&, const T&)’:
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/tools/roots.hpp:907:7: warning: ‘if constexpr’ only available with -std=c++1z or -std=gnu++1z
    if constexpr (std::is_floating_point<T>::value)
       ^~~~~~~~~
/home/code/external/vcpkg/buildtrees/boost-math/src/ost-1.85.0-7b137ed96b.clean/libs/math/include/boost/math/tools/roots.hpp:947:12: warning: ‘if constexpr’ only available with -std=c++1z or -std=gnu++1z
    else if constexpr (boost::math::tools::is_complex_type<T>::value)
            ^~~~~~~~~
ninja: build stopped: subcommand failed.
@jimwang118 jimwang118 self-assigned this May 27, 2024
@jimwang118 jimwang118 added the category:port-bug The issue is with a library, which is something the port should already support label May 27, 2024
@jimwang118
Copy link
Contributor

You can try this PR 38814, it is fixing this issue.

@Osyotr
Copy link
Contributor

Osyotr commented May 27, 2024

You can try this PR 38814, it is fixing this issue.

Ahem #38728

@alexlee728
Copy link
Author

Compiled successfully after using patch #38814 #38728

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.

3 participants