Skip to content

Commit

Permalink
Trying to fix CI issues
Browse files Browse the repository at this point in the history
Mac builds spewed a ton of output related to math.h but the very first
output was:

In file included from /Users/runner/work/prima/prima/c/prima.c:6:
    /usr/local/Cellar/gcc@13/13.3.0/lib/gcc/13/gcc/x86_64-apple-darwin21/13/include-fixed/math.h:568:68: error: macro "__API_DEPRECATED_MSG3" requires 3 arguments, but only 2 given
      568 | __API_DEPRECATED("use `(float)INFINITY` instead", macos(10.0, 10.9)) __API_UNAVAILABLE(ios, watchos, tvos);

It looks like an error with math.h as opposed to our use of INFINITY,
but I'm going to try listening to the message and hopefully that fixes
the mac build.
  • Loading branch information
nbelakovski committed Jun 16, 2024
1 parent be6c3d0 commit 37c00fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c/prima.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ prima_rc_t prima_init_options(prima_options_t *const options)
options->rhobeg = NAN; // Will be interpreted by Fortran as not present
options->rhoend = NAN; // Will be interpreted by Fortran as not present
options->iprint = PRIMA_MSG_NONE;
options->ftarget = -INFINITY;
options->ftarget = -(float)INFINITY;
options->ctol = sqrt(DBL_EPSILON);
return PRIMA_RC_DFT;
}
Expand Down

0 comments on commit 37c00fe

Please sign in to comment.