Crafting the Ultima Weapon in Kingdom Hearts takes some preparation. First, you need the Ultimate Recipe, found at the Twilight Town mansion near the end of the game (as Sora), in the room with Donald and Goofy's pods.
You should also reach Moogle level 9 so S-rank materials count for half. Here's what you'll need:
You'll also want an Energy Crystal to halve the material cost. These drop from Bookmasters (green-hatted, floating, book-carrying enemies) first seen in Radiant Garden and later in Space Paranoids.
Other crystals: Mythril from certain chests or by synchronizing; Dense from Berserker Nobodies in Naught's Skyway; Twilight from Sorcerers in the World That Never Was; and Serenity from Assassins, Berserkers, Samurai, and Sorcerers.
Equip Lucky Lucky gear like the Genji Shield (clear the Titan Cup) or Meteor Staff (a chest in Port Royal's Ship Graveyard), plus the Lucky Ring if you have it. You can also get Orichalcum from rare Bulky Vendors or chests, and you likely have one already.