1. Get latest OpenSolaris.
2. Install latest SunStudio
3. download latest source of Python (3.1) and Ruby (1.9.1).
4. Try to build them with CC=/opt/SUNWspro/bin/cc" CFLAGS="-m64"
5. See the results. Run make test for ruby.
Both impls appear to work well enough on a wide range of platforms, the sun compiler is not exactly what makes or breaks it.
btw, Solaris will stay on its niche like FreeBSD.
After that, your problem disappears.