Tim Lincecum struggled out of the gate, giving up eight hits in just four innings as the Pirates took the rubber match against the Giants.