I understand this is an xcode warning/error, however, it happens when I try to run gitk --all from the command line.
gitk --all
YuFei-Zhus-MacBook-Pro:test phi
If you are MacPorts user upgrade tcl/tk to 8.6.0:
$ sudo port install tcl tk