On v4.0 and v3.6 we have some builders that use the mongodbtoolchain with -link-model=dynamic, but do not disable tcmalloc. That combination became an error on those branches when backports for
SERVER-42042 were done.
- is caused by
SERVER-42042 Warn or fail early on dynamic builds with toolchain compiler and tcmalloc