You are activating the SD SPI interface, and the wondering why there is trash on the SPI interface.
That is interesting. It works fine for me. Does the OP have undisclosed equipment connected to pin 4 that is causing the compile issue? If nothing is effectivly connected to pin 4, then what is the orgin of the "trash"?