Heat a heavy-bottomed pot over medium-low heat. Add the olive oil followed by the onions. Cook until the onions are fragrant and translucent, 4 to 5 minutes. Stir in the squash, potato, and carrot. Continue to cook for until the squash begins to soften, 5 minutes or so. Stir in the garlic, cook for a minute then add in all the spices, cooking for another minute more.