The study (Cohorts A and B) will consist of a screening phase to establish study eligibility and document baseline measurements, an open-label treatment phase, in which the patient will receive rociletinib to ascertain safety and efficacy until disease progression as defined by RECIST Version 1.1, clinical tumor progression, or unacceptable toxicity as assessed by the investigator. For patients with clinical progression, radiographic assessment should be performed to document evidence of radiographic progression.