These versions of GCC have a bug where they don't accept non-literal constants in static initializers. This leads to the following warning:
src/feature/dirclient/dirclient.c: In function ‘dir_client_decompress_response_body’: ./src/lib/log/ratelim.h:55:27: error: initializer element is not constant
If you're running into this issue, you can fix it with the attached patch, which will also go into the next 0.4.6.x release.
References: https://gitlab.torproject.org/tpo/core/tor/-/issues/40410 https://gitlab.torproject.org/tpo/core/tor/-/merge_requests/398/commits#note...