If you have a U-shaped tube full of water with both ends in the pool, and you lift the center of the tube up to roof height, you can pump water through that tube without regard to how high the top is.
The only resistance will be the resistance of water flowing through the tube (and solar collector).
The height will not matter.
(That's if the height is less than 10 meters. If it's more than 10 meters, air pressure will be insufficient to keep the water in the tube, and the water will evaporate, form bubbles, and separate at the top.)
You also have to make sure the tube and solar collector have no air leaks, because, depending on the height, the solar collector and its joints will be at negative pressure.
If enough air leaks into the tube, it could block the water from flowing.
ADDED: If you get bubbles in the tube or solar collector, the way to get rid of them is 1) block both lower ends of the tube so no water can flow out, 2) go to the top, fill up the tube and solar collector with water, to remove all bubbles, 3) seal it up again at the top so no air can leak in, 4) unblock the tube at the bottom ends.