There is nothing fundamental that would stop you from creating the machine , but it would be a logistical Nightmare. The way we create robots depends entirely on a complex supply chain, you need Polymers, semiconductors, several types of alloys,rare earths, etc,.all of them coming from all over the world.
This machine would essentially be an everything factory that is fully automated, making every single electric component , refining every gram of metal, etching every Silicon wafer into an integrated circuit, it would have to have a way of reaching every single mineral deposit needed and handle the transport of such material.
The manufacturing of CPUs is already one of the most complex in the world , and fabs don't have to worry about mining their own metals and synthesizing their own chemicals.
This machine would have to be static due to the scale of production and would likely need to create it's own drive workers for maintenance and resource gathering, so it would also have to have a way of creating and maintaining such workers.
That's of course assuming it would use the kind of technology we use. The kind of technology we've developed over Centuries which has been shaped by human culture, economics and biology.
There's probably hundreds of technologies that could be self replicated very efficiently but that people overlooked because getting copper from the other side of the world was more convenient.
So I guess ultimately that would be the limiting factor, our machines are designed around us. You would need several radical designs that disregard decades of RnD