This question already has an answer here:

I read a story in an old scifi mag years back from the 60's or 70's (in Amazing Stories maybe) about a guy stranded alone on an alien planet where there was an intelligent machine that could make things. The only food he had was rotting crumbs from his pocket so all the food that the machine was able to replicate for him only made him sick.

To save his life:

in the end the machine decided to change him instead, into something it could cater for

brilliant little twist as usual. That's about all I remember. Does anyone know the name of that story? I would love to track it down again.

marked as duplicate by Mr Lister, Jason Baker, FuzzyBoots story-identification Jun 14 '16 at 19:52

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    I changed the title to something that's more descriptive, but feel free to change it to something else. – Molag Bal Jun 14 '16 at 18:13

It is possible you might be referring to A.E. van Vogt's "Enchanted Village", originally published in Other Worlds Science Stories in 1950. It does feature a man stranded on an alien planet, and the food provided by the machines does make him sick, as well as eventually transforming him into an alien creature that it could tend to.