Melt extraction from a permeable compacting mantle