I wonder if it there exists a topological compact group $G$ (by compact, I mean Hausdorff and quasi-compact) and a non-zero group morphism $\phi : G \to \mathbb{Z}$ (without assuming any topological condition on this morphism).
For compact Lie groups, using the exponential map, the answers is no, but in general I don't know.

