Mars is a desolate wasteland, and the Moon is an airless desolate wasteland.
There is zero chance of building a self-sustaining base on either within the next fifty years, and probably within the next century.
It's not a freight problem, it's an ecology problem. Designing a life support system that is stable and self-correcting and isn't in danger of running out of some essential raw material or element isn't just an unsolved problem, it's a barely considered problem.
Ironically - or perhaps not - it would be much easier to create a self-sustaining population of machines on Mars and/or the Moon than any project that relies on incredibly complex and messy human biochemistry.