The Phase Ib part will determine the Maximum Tolerated Dose (MTD)/Recommended Phase II Dose (RP2D) of buparlisib in combination with docetaxel. Subsequently the MTD/RP2D will be investigated in a Phase II randomized trial in patients with advanced or metastatic squamous NSCLC.