The third parameter of GetModuleByAddr is documented here <https://docs.freepascal.org/docs-html/3.0.0/rtl/exeinfo/getmodulebyaddr.html> to be of type "string". In the trunk sources (for macOS) it seeems however to be of type "AnsiString" and that's what the trunk compiler requires. Is the change intentional ? Regards, Adriaan van Os