← Back to team overview

kicad-developers team mailing list archive

MacOS build issue with new geometry tests

 

Hi folks!

There's a build failure on the new geometry test stuff with MacOS.

qa/geometry/geom_test_utils.h:33:18: error: constexpr variable 'PI'
must be initialized by a constant expression
constexpr double PI = atan(1.0) * 4.0;
^ ~~~~~~~~~~~~~~~
qa/geometry/geom_test_utils.h:33:23: note: non-constexpr function
'atan' cannot be used in a constant expression
constexpr double PI = atan(1.0) * 4.0;

There are a few others, all which look about the same.  I am on my way
out of town today so I don't have time to look for a solution, but a
user actually reported it to me due to using the new MacOS build
scripts! :D

Adam Wolf


Follow ups