Just visited European XFEL a few weeks ago. The linear accelerator was about 2km long and I believe the total cost of the laser is over 1 billion Euro, but nevertheless this is an awesome idea :)
Should be cheaper to build both of those sorts of things when the "making a vacuum" bit is already taken care of, and large amounts of space are available at no cost.