I've spent a while looking at this, and I found 1 other software project that was impacted with the same error, looking at the stackdump generated by teams, it appears to be an identical problem... which is stems from glibc being more critical of incorrect types for "stacksize".... it's hard to be precise, but the release for glibc notes say:-
2.1. Non-constant PTHREAD_STACK_MIN
In order to better support architectures that need a variable stack size for scalable vector registers the constant value for PTHREAD_STACK_MIN has transitioned to a non-constant value e.g. sysconf call.
You may no longer use PTHREAD_STACK_MIN in a way that treats it like a constant value. The value returned for PTHREAD_STACK_MIN is now of type long and so may generate compiler warnings when compared against an unsigned value e.g. size_t.
This will affect a lot of users in about 6 weeks when they start upgrading Ubuntu, but it seems only one other project was affected and they pushed the fix a bit more than 2 months ago.
I checked the dates that Teams on Linux has been updated:-
2020-10-05 22:13:01
2020-12-02 15:58:54
2021-03-09 23:18:50
2021-04-02 02:31:13
2021-06-08 11:55:11
Any chance this means we're overdue an update?
K