OpenSolaris currently requires that you build it on a version of Solaris that is very close to the version that you are building. E.g. you can't build OpenSolaris on Solaris 9 (or even early releases of Solaris 10.)
I believe that the primary reason for this is differences in system headers and libraries that the compilers are being pointed to. Back while at Sun, I worked with some unbundled projects that had similar OS dependencies, and I found that it was not very hard to use -YI, -YP, and such to convince a recent compiler to build our product using the "right" headers from a proto area instead of the versions that were on my build host. (This let us have a single build server which could build versions of our software for Solaris 2.6, 7, and 8 at the time. And yes, there were big differences due to headers and libraries. It was ugly software, and I don't want to elaborate on it further other than to point out that it _can_ be done.) Has anyone given any thought to convincing OpenSolaris to use its own proto area (populated by the install_h target or somesuch) instead of assuming local system headers? What about libraries? Startup code? Tools? Are there other dependencies I'm missing? Is there anyone else interested in being able to cross-compile Solaris like this? I'm willing to work on an effort to make this work if others are interested (and particularly if someone from inside Sun is willing to work with me on the process -- I suspect such a change would require non-trivial ARC review.) And, briefly, while on the subject, has anyone in the compilers group considered adding support for cross-compilation? (It would be nice to be able to cross build for a variety of reasons, not least of which is that my Opteron system is a lot faster and has local disks relative to the Sun Blade 100 that I am currently using for building for SPARC software. :-) -- Garrett D'Amore, Principal Software Engineer Tadpole Computer / Computing Technologies Division, General Dynamics C4 Systems http://www.tadpolecomputer.com/ Phone: 951 325-2134 Fax: 951 325-2191 _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
