In this particular case of Barracks, they require food in order to start construction. If your food production is negative it is not possible to predict when you will have a sufficient amount of food on hand to begin construction.
You need to focus on your economic production first. To produce more food build industrial complexes and infrastructure in food producing provinces. Same with other resources.