When copper pyrites is roasted in excess of air