I\'m very new to Yesod and I\'m having trouble building Yesod statically so I can deploy to Heroku.
I have changed the default .cabal file to reflect static compilat
You have several issues.
You should not build production binaries on bleeding edge distributions. The libraries on the production system will not be forward compatible.
You should not link glibc statically - it will always at runtime try to load additional libraries. For example cpu-based assembly. That is what your first warnings are about.
The last linker errors look like they are related to a missing openssl library on the command line.
But all in all - downgrade your distribution.