If you first switch to testing and then install packages, you are missing ecj, which is explicitly required by the building scripts.