Hmm. There's probably some trick you could pull with
Mordenkainen's magnificent mansion to do it with a couple of spells.
If you're not being quite so munchkin about it... let's see. One or two castings of
move earth will suffice to prepare the ground. After that, it's time for the actual building.
Wall of stone is 5th level and creates one 5-foot square per level, to a thickness of 1 inch per level. At 18th level, this comes out to 675 cubic feet of stone. If you apply the Widen Spell feet, that doubles all numerical measurements, so you get one 10-foot square per level, 2 inches thick per level. (I'm not going to try to argue that you should get
two 10-foot squares per level.) So your 8th and 9th level slots can produce 5400 cubic feet each.
But you're going to be making buttresses and arches and such-like, so halve the output of your spells: 337.5 cubic feet and 2700 cubic feet.
You're a 3E caster, so let's assume you're being reasonably smart about your stat allocation and started with 18 in your primary casting stat. You then dumped all your level bonuses into it, bringing it to 22, and got a +6 stat item, bringing it to 28. (You may have some inherent bonuses as well, but I'm disregarding those for now.)
If you're a sorceror or favored soul, you have 22 spell slots in the 5th-7th level range, and 10 slots in the 8th-9th level range. If you're a wizard or cleric, you have 15 spell slots in the 5th-7th level range, and 6 slots in the 8th-9th level range. Specializing in conjuration or taking the Earth domain will give you 18 and 8 slots respectively.
So, putting all this together:
A sorceror/favored soul can produce 34,425 cubic feet of stonework per day.
A generalist wizard/cleric can produce 21,265.5 cubic feet.
A specialized conjuror or a cleric of earth can produce 27,675 cubic feet.
Now, how much do you need to build a cathedral? Well, according to
this document, Washington National Cathedral is built of limestone and weighs 150,000 tons. Based on
this link, 150 pounds per cubic foot seems a reasonable estimate of limestone's density. So we're looking at 2 million cubic feet. But Washington National Cathedral is pretty damn big, so let's assume you're a bit more conservative and scale it down to a mere 1 million, and we get:
A sorceror/favored soul can build a cathedral in 29 days.
A generalist wizard/cleric can build a cathedral in 47 days.
A specialized conjuror or a cleric of earth can build a cathedral in 36 days.
Of course, that's just for the stonework. You also have to furnish the thing. While you've been spending 2-3 minutes a day conjuring up stonemasonry and the rest of the time kicking back with your coterie of scantily clad grey elf wizard-groupies, your fighter buddy has been hard at work chopping down trees and hauling bags of sand to the site. Once the building itself is constructed, you'll cast
fabricate a few times (one day's worth of castings will be more than enough for this); the sand will turn into stained glass windows, the trees will turn into pews, and voila! Cathedral complete.
(This does assume that you're willing to dump your entire spell allocation at 5th level and higher into conjure-work. In practice, you'll want to keep at least a couple of spells in reserve in case of trouble. It also assumes you're willing to burn a feat on Widen Spell; without that, your output will be drastically reduced.)
This specific question is just one instance of me trying to get a feel for what poses a good challenge for high level adventure design. Another idea I had was a deep deep pit entirely full of 1000 low-level zombies so you basically have to burn spells or turning attempts to move (the goal being to get Pelor's sun thingy down to the bottom of it where the darkness comes from and burn them all with its light).
Why would the PCs not simply
teleport to the destination?