Macronutrients are: Water (non-caloric), fats, carbohydrates, and proteins. All of these provide basic building 'materials' for all of the functions your body does for homeostasis, and daily tissue building/repair.
Approximate caloric values:
Water: Zero
Fats: 9 kCal/g
Carbohydrates: 5 kCal/g
Protein: 5 kCal/g
HCl is produced in the stomach to hydrolyze proteins (break them down into amino acids) primarily. And to provide a low pH environment favorable to enzyme activity there.
Acidity also facilitates absorption of some micronutrients in the intestine.
Fat digestion/absorption depends on bile production in the liver, carbohydrates break down into simple sugars in the presence of enzymes and bacteria. They can move though most of the mucosal membranes in the digestive tract. Acidity may play a small role. Ex: you can absorb glucose from fruit juice into your bloodstream in your mouth. Insulin dependent diabetics use fructose/glucose tablets to raise bad, low blood sugar levels by dissolving them in the mouth. This fast uptake of simple sugars is often discussed in the context of glycemic load and glycemic index.
Lower acid levels in the stomach (ex: antacid medicines or advanced age) may require supplementation or diet change. For example, Calcium citrate is sometimes preferred as a calcium supplement for older patients with problems like osteoporosis. It is better absorbed in a higher pH gut. I am oversimplifying here, as there may be a LOT of other issues involved, but the mian idea is that some citrate salts are better absorbed in people with low acid levels.
Diet is a factor on intestinal pH levels.
Here is a very interesting review of papers on the effects of changing:
pH, sodium, potassium, chloride, and carbonate levels
of humans diets over the past 200 years.
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3195546/
Note the complete reversal of potassium to sodium ratios.
Then: ~ 10 Potassium: 1 sodium
Now: ~ 1 Potassium: 3 sodium
The ~ character means 'approximately'
Chloride has also become far more prevalent.