How to diagnose Mac compile error occurring with build chain

I do my Venom development on Windows, and rely on the github automated build chain to get Linux and Mac builds. Up until now I never had a problem with compilation of Mac or Linux binaries with the build chain.

I am in the process of creating a Logic module for Venom in my Dev branch, and it compiles fine on Windows and Linux, but fails for both Mac-64 and Mac-ARM. The error message coming out of the build chain is useless to me.

Anyone have any ideas how to diagnose the problem without creating a dev environment on my Macbook Air?

It looks like you’re using a variable-length array:

src/Logic.cpp:161:22: error: variable-sized object may not be initialized
      float_4 outCnt[endChannel]{}, outState[endChannel][4]{}, outVal[endChannel][4]{};
                     ^~~~~~~~~~

Variable length arrays aren’t officially a thing in C++11. I think gcc allows it as an extension, but clang doesn’t (at least not fully) which would explain why it builds on Windows and Linux but not on macOS. See c++ - what happens if you create a variable length array and compile using g++ - Stack Overflow for some useful links to specs.

1 Like

Makes sense. Thanks