I am trying to work with Arduino Mega and SparkFun RS232 Shield (RS232 Shield - DEV-11958 - SparkFun Electronics)
When connecting both of them together the mega does not compile any new software.
The shield is working great with the UNO.
I bet it compiles, but will not upload.
Under File:Preferences, check the Verbose Outputs, and drag the seperating line at the bottom of the IDE window up so you can see what's happening.
You are likely seeing the RS232 outputs interfering with the 16U2 outputs.
Not much you can do about that - RS232 chip does not have an Output Enable output.
Unplug it during downloads.
Option: use some jumpers to connect up +5, Gnd, and Rx/Tx to a different Mega serial port without plugging the shield onto the Mega.