I remember that there was a stranded spacecraft and several splinter groups made up from its survivors/desendants set up camps nearby, one of which was a "Planet" built up by using deceased crewmembers. It was a short novel, 180-200 pages. I read it in the 80's. The opposing factions of the living had to work together to repair the main spacecraft to escape whereever it was they had been stranded. Edit- IIRC, Gravity played a major factor in the tale.
This is "Raft" by Stephen Baxter.
The novel is an elaborated version of his 1989 short story of the same title, Raft. The story follows a group of humans who have accidentally entered an alternate universe where the gravitational force is far stronger than our own, a "billion" times as strong. Planets do not exist, as they would immediately collapse under their own gravity; stars are only a mile across and have extremely brief life-spans, becoming cooled kernels a hundred yards wide with a surface gravity of five g. Human bodies possess a "respectable" gravity field in and of themselves. "Gravitic chemistry" also exists, where gravity is the dominant force on an atomic scale.