Preheat the oven to 350 degrees F (175 degrees C). Grease and flour three 9-inch round or square cake pans.
Sift flour, cinnamon, baking soda, and salt together in a bowl.
Beat sugar, oil, eggs, and vanilla extract together in another bowl until well blended. Add the dry ingredients gradually until well mixed. Fold in carrots, pineapple, coconut, and pecans. Divide batter evenly among the prepared cake pans.
Bake in the preheated oven until a toothpick inserted into the center comes out clean, about 35 minutes.