The origin of the formation of building stones