FreeBSD is to blame here - it picks up your system fmt (/usr/local/include/fmt) instead of the one that TrinityCore supports that lives inside our repository
It sounds like preventing the use of the system fmt could resolve this? I have the specific compile errors in gists at the top.