As it happens the only FreeBSD build slave (right now at least) is a 64-bit machine, and Cog is strictly 32-bit. Force this with -m32.