Don't forget to fill in the Port field and to Cc the maintainer of that port.
So the log says:
error: C compiler cannot create executables
Often this means Xcode is not installed, but that doesn't seem like the correct diagnosis here, because we note that gperf uses the muniversal portgroup, which means it separately handles x86_64 and i386 architectures, and we see that it correctly configured the x86_64 part and is just having trouble with the i386 part. The log also says:
See `config.log' for more details.
So let's have a look at the i386 config.log; please attach it. It's inside the directory identified by the command:
echo $(port work gperf)/*-i386