[Reaction: see text]. A synthesis of the title compounds, which have found use as inhibitors of certain receptor tyrosine kinases, was achieved using a Pictet-Spengler cyclization as a key step.