Preparation by ring-closure or hydrogenation