The Egyptian government has borrowed large sums to build a dam.