iirc, the reason a square-wave can't actually be generated is fairly simple. The amount of energy required to create a transition in the wave is related to the derivative of that change. So when a square wave goes from low to high or vice versa it has an infinite derivative and, thus, requires infinite energy.

Feel free to correct me, I'm not sure of this.