I recommend you to download the Arduino IDE 1.6.0 version from here: Intel® Galileo Boards — Software Downloads. Then try to upload your sketch again. If you are still facing the same issue please attach your code.
Upgrading the Arduino IDE to 1.6.0 and Galileo to 1.0.4 solved the issue. Thanks.
I was using the sketch from Example, FYI.