SUMMARY: Compiling Software for Solaris 8

Thomas Bader thomasb at trash.net
Sun Oct 28 10:42:39 EST 2001


* Thomas Bader <thomasb at trash.net> [011023 23:06]:
> I have a Enterprise 220R running with Solaris 8 in 64bit
> mode.  But I cannot create 64Bit executables, since I have
> no license of SUN cc.
>=20
> But I have access to a Solaris 2.6 cluster running in 32bit
> mode with appropriate SUN cc licenses.  Is it possible, to
> compile my software there and copy them to my box?

First I like to thank all the people who answered me. Thank
you, Olaf, Casper, Tajind, Kevin and Mark!

Unfortunately, my intend is not possible, because the
Solaris Cluster is missing the appropriate 64bit libraries
and linker:

[saa:~|3> cc -xarch=3Dv9
ucbcc: Option -xarch=3Dv9 is not supported on this OS version
[saa:~|4> cc -xtarget=3Dgeneric64
ucbcc: Warning: illegal option -xtarget=3Dgeneric64 ignored
[saa:~|5>

Instead, I will try -m64 with the new GCC 3.x or, if this
does not work, I will get a precompiled lsof from
http://www.sunfreeware.com/.

An other tip I received: To cross-compile with GCC, edit
gcc/config.gcc and look at the lines beetween 3211 and 3222.
If you uncomment the entire case-statement there, you're
able to compile 64bit binaries on a 32bit platform.  (But,
be carefull).

Cheers
--=20
  .-.   Thomas Bader =B7 thomasb at trash.net.remove =B7 http://www.t-bader.ch=
/  .-.
  oo|                                                                     o=
o|
 /`'\     Einen Unix-Shellaccount gibt es unter http://www.trash.net/    /`=
'\
(\_;/)       PGP Key-ID: 0x3A4B7F5D (RSA)  0x7584F5D8 (DSA/EG)          (\_=
;/)



More information about the sunmanagers mailing list