I heard that rainforest soil is actually pretty poor, which to me sounds weird given how much grows (and dies / falls / decomposes) there.
Looks like one of the main factors is due to the soil acidity being similar to the pH of the plant roots. Also, while there is a ton of dead organic material in the soil, the high temperatures and precipitation causes it to decompose so rapidly that most of the nutrients are lost.
Finally, the clay particles in the soil are poor for trapping the minimal nutrients remaining from the decomposing material, and what is trapped is frequently washed away from the precipitation.
But as to raw material, surprisingly little of the physical bulk of trees actually comes from soil. It comes from the air! This is where the Carbon in the CO2 -> O2 process comes into play.