Can you not set the GPS to give magnetic heading, and fly in zero wind and use that to calibrate the compass?
Of course; and an IFR GPS gives you MH anyway. But you need zero wind.
My long post described a way of doing this when the wind is
not zero.