So we have updated the port to 1.7.1, however the build still fails on some versions of macOS.
There seem to be two distinct cases: 10.14–10.15 (compilation errors) and <10.10 (failure to clone ut-src repo).
Error on 10.15:
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_ascent/ascent/work/Ascent-0.7.1/unit_tests/src/main.cpp:192:26: error: 'auto' not allowed in function prototype
inline bool approx(const auto& x, const auto near, const double epsilon = 1.0e-8) {
^~~~
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_ascent/ascent/work/Ascent-0.7.1/unit_tests/src/main.cpp:192:41: error: 'auto' not allowed in function prototype
inline bool approx(const auto& x, const auto near, const double epsilon = 1.0e-8) {
^~~~
2 errors generated.
make[2]: *** [unit_tests/CMakeFiles/ascent_test.dir/src/main.cpp.o] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_ascent/ascent/work/build'
make[1]: *** [unit_tests/CMakeFiles/ascent_test.dir/all] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_ascent/ascent/work/build'
make: *** [all] Error 2
https://build.macports.org/builders/ports-10.15_x86_64-builder/builds/125684/steps/install-port/logs/stdio
Error on 10.14:
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_ascent/ascent/work/Ascent-0.7.1/unit_tests/src/main.cpp:188:
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_ascent/ascent/work/build/_deps/ut-src/include/boost/ut.hpp:77:20: error: expected '{'
namespace boost::inline ext::ut::inline v1_1_8 {
^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_ascent/ascent/work/build/_deps/ut-src/include/boost/ut.hpp:77:22: error: expected unqualified-id
namespace boost::inline ext::ut::inline v1_1_8 {
^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_ascent/ascent/work/Ascent-0.7.1/unit_tests/src/main.cpp:190:17: error: use of undeclared identifier 'boost'
using namespace boost::ut;
^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_ascent/ascent/work/Ascent-0.7.1/unit_tests/src/main.cpp:192:26: error: 'auto' not allowed in function prototype
inline bool approx(const auto& x, const auto near, const double epsilon = 1.0e-8) {
^~~~
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_ascent/ascent/work/Ascent-0.7.1/unit_tests/src/main.cpp:192:41: error: 'auto' not allowed in function prototype
inline bool approx(const auto& x, const auto near, const double epsilon = 1.0e-8) {
^~~~
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_ascent/ascent/work/Ascent-0.7.1/unit_tests/src/main.cpp:196:1: error: unknown type name 'suite'
suite airy_system = []
^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_ascent/ascent/work/Ascent-0.7.1/unit_tests/src/main.cpp:198:14: error: no matching literal operator for call to 'operator""_test' with arguments of types 'const char *' and 'unsigned long', and no matching literal operator template
"airy_rk4"_test = [] {
^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_ascent/ascent/work/Ascent-0.7.1/unit_tests/src/main.cpp:200:7: error: use of undeclared identifier 'boost'
boost::ut::
^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_ascent/ascent/work/Ascent-0.7.1/unit_tests/src/main.cpp:205:14: error: no matching literal operator for call to 'operator""_test' with arguments of types 'const char *' and 'unsigned long', and no matching literal operator template
"airy_rk2"_test = [] {
^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_ascent/ascent/work/Ascent-0.7.1/unit_tests/src/main.cpp:211:18: error: no matching literal operator for call to 'operator""_test' with arguments of types 'const char *' and 'unsigned long', and no matching literal operator template
"airy_dopri45"_test = [] {
^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_ascent/ascent/work/Ascent-0.7.1/unit_tests/src/main.cpp:218:1: error: unknown type name 'suite'
suite airy_modular = []
^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_ascent/ascent/work/Ascent-0.7.1/unit_tests/src/main.cpp:220:22: error: no matching literal operator for call to 'operator""_test' with arguments of types 'const char *' and 'unsigned long', and no matching literal operator template
"airy_modular_rk4"_test = [] {
^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_ascent/ascent/work/Ascent-0.7.1/unit_tests/src/main.cpp:226:22: error: no matching literal operator for call to 'operator""_test' with arguments of types 'const char *' and 'unsigned long', and no matching literal operator template
"airy_modular_rk2"_test = [] {
^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_ascent/ascent/work/Ascent-0.7.1/unit_tests/src/main.cpp:232:24: error: no matching literal operator for call to 'operator""_test' with arguments of types 'const char *' and 'unsigned long', and no matching literal operator template
"airy_modular_pc233"_test = [] {
^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_ascent/ascent/work/Ascent-0.7.1/unit_tests/src/main.cpp:239:1: error: unknown type name 'suite'
suite exponential = []
^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_ascent/ascent/work/Ascent-0.7.1/unit_tests/src/main.cpp:241:13: error: no matching literal operator for call to 'operator""_test' with arguments of types 'const char *' and 'unsigned long', and no matching literal operator template
"exp_rk4"_test = [] {
^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_ascent/ascent/work/Ascent-0.7.1/unit_tests/src/main.cpp:246:13: error: no matching literal operator for call to 'operator""_test' with arguments of types 'const char *' and 'unsigned long', and no matching literal operator template
"exp_rk2"_test = [] {
^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_ascent/ascent/work/Ascent-0.7.1/unit_tests/src/main.cpp:251:17: error: no matching literal operator for call to 'operator""_test' with arguments of types 'const char *' and 'unsigned long', and no matching literal operator template
"exp_dopri45"_test = [] {
^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_ascent/ascent/work/Ascent-0.7.1/unit_tests/src/main.cpp:256:15: error: no matching literal operator for call to 'operator""_test' with arguments of types 'const char *' and 'unsigned long', and no matching literal operator template
"exp_pc233"_test = [] {
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
Error on 10.9:
[ 11%] Creating directories for 'ut-populate'
[ 22%] Performing download step (git clone) for 'ut-populate'
Cloning into 'ut-src'...
fatal: unable to access 'https://github.com/boost-ext/ut.git/': SSL certificate problem: Invalid certificate chain
Cloning into 'ut-src'...
fatal: unable to access 'https://github.com/boost-ext/ut.git/': SSL certificate problem: Invalid certificate chain
Cloning into 'ut-src'...
fatal: unable to access 'https://github.com/boost-ext/ut.git/': SSL certificate problem: Invalid certificate chain
-- Had to git clone more than once: 3 times.
CMake Error at ut-subbuild/ut-populate-prefix/tmp/ut-populate-gitclone.cmake:39 (message):
Failed to clone repository: 'https://github.com/boost-ext/ut.git'
make[2]: *** [ut-populate-prefix/src/ut-populate-stamp/ut-populate-download] Error 1
make[1]: *** [CMakeFiles/ut-populate.dir/all] Error 2
make: *** [all] Error 2
Log: https://build.macports.org/builders/ports-10.9_x86_64-builder/builds/214658/steps/install-port/logs/stdio
Error on 10.7:
[ 22%] Performing download step (git clone) for 'ut-populate'
Cloning into 'ut-src'...
error: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version while accessing https://github.com/boost-ext/ut.git/info/refs?service=git-upload-pack
fatal: HTTP request failed
Cloning into 'ut-src'...
error: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version while accessing https://github.com/boost-ext/ut.git/info/refs?service=git-upload-pack
fatal: HTTP request failed
Cloning into 'ut-src'...
error: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version while accessing https://github.com/boost-ext/ut.git/info/refs?service=git-upload-pack
fatal: HTTP request failed
-- Had to git clone more than once: 3 times.
CMake Error at ut-subbuild/ut-populate-prefix/tmp/ut-populate-gitclone.cmake:39 (message):
Failed to clone repository: 'https://github.com/boost-ext/ut.git'
make[2]: *** [ut-populate-prefix/src/ut-populate-stamp/ut-populate-download] Error 1
make[1]: *** [CMakeFiles/ut-populate.dir/all] Error 2
make: *** [all] Error 2
Log: https://build.macports.org/builders/ports-10.7_x86_64-builder/builds/128390/steps/install-port/logs/stdio
General info on port health: https://ports.macports.org/port/ascent/details
@stephenberry @mwalcott3 Will these be possible to fix?
So we have updated the port to 1.7.1, however the build still fails on some versions of macOS.
There seem to be two distinct cases: 10.14–10.15 (compilation errors) and <10.10 (failure to clone
ut-srcrepo).Error on 10.15:
https://build.macports.org/builders/ports-10.15_x86_64-builder/builds/125684/steps/install-port/logs/stdio
Error on 10.14:
Error on 10.9:
Log: https://build.macports.org/builders/ports-10.9_x86_64-builder/builds/214658/steps/install-port/logs/stdio
Error on 10.7:
Log: https://build.macports.org/builders/ports-10.7_x86_64-builder/builds/128390/steps/install-port/logs/stdio
General info on port health: https://ports.macports.org/port/ascent/details
@stephenberry @mwalcott3 Will these be possible to fix?