A circle at the base blends into a square at the top.
One Loft block takes the two profiles in order. With its ends set to run along the path, the sides leave the base and the top straight up. The loft is a blend between the two profiles' fields: no surface patches, no seams.
Open it in the editor →Runs in your browser; change anything — the demo resets on reload.