Describe the bug
tt-metal currently fails to build on clang 18 due to the use of VLA. With the following error message. I'm using clang 18 as that's what Arch is shipping.
In file included from /home/marty/Documents/not-my-projects/tt-metal/tt_metal/common/utils.cpp:8:
In file included from /home/marty/Documents/not-my-projects/tt-metal/tt_metal/llrt/rtoptions.hpp:17:
/home/marty/Documents/not-my-projects/tt-metal/tt_metal/common/core_coord.h:291:30: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]
291 | bool grid[max_y + 1][max_x + 2];
To Reproduce
Steps to reproduce the behavior:
Build tt-metal with clang 18 (cmake .. -DCMAKE_CXX_COMPILER=clang++-18 -DCMAKE_C_COMPILER=clang-18 -DCMAKE_BUILD_TYPE=RelWithDebInfo)
Observe the error
Expected behavior
Should build successfully.
Screenshots
If applicable, add screenshots to help explain your problem.
Please complete the following environment information:
OS: Arch Linux
Commit: 259daa277bfd8119a78c9663d81cef2a33fc7d0d
Additional context
Add any other context about the problem here.
Describe the bug tt-metal currently fails to build on clang 18 due to the use of VLA. With the following error message. I'm using clang 18 as that's what Arch is shipping.
To Reproduce Steps to reproduce the behavior:
cmake .. -DCMAKE_CXX_COMPILER=clang++-18 -DCMAKE_C_COMPILER=clang-18 -DCMAKE_BUILD_TYPE=RelWithDebInfo
)Expected behavior Should build successfully.
Screenshots If applicable, add screenshots to help explain your problem.
Please complete the following environment information:
Additional context Add any other context about the problem here.