8-Bromoquinoline (I) is treated with sec-BuLi in THF to afford lithium derivative (II), which then reacts with carbaldehyde (III) in THF to provide alcohol (IV). Finally, (IV) is converted into the desired compound by chlorination with SOCl2 in CH2Cl2 followed by reaction with piperazine (V) in refluxing acetonitrile.