SUMMARY: Compiling Software for Solaris 8

From: Thomas Bader <thomasb_at_trash.net>
Date: Sun Oct 28 2001 - 10:42:39 EST
* Thomas Bader <thomasb@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)          (\_=
;/)
Received on Sun Oct 28 15:42:39 2001

This archive was generated by hypermail 2.1.8 : Wed Mar 23 2016 - 16:32:34 EDT