Rescue workers used heavy equipment to look for survivors trapped in a building that collapsed in a magnitude-6.4 earthquake in the southern Taiwanese city of Tainan.