gcc -m64 for Solaris10 x86
Rainer Orth
ro@TechFak.Uni-Bielefeld.DE
Mon Dec 13 17:16:00 GMT 2004
Guenter Feldmann <fld@informatik.uni-bremen.de> writes:
> could any one explain what is needed to enable the 64-bit mode in
> gcc for Solaris10 x86?
>
> I tried
> configure ... amd64-pc-solaris2.10
> and
> configure ... x86_64-pc-solaris2.10
>
> in both cases
> make bootstrap
> ended up in:
>
> > [ ... ]
> > checking for .preinit_array/.init_array/.fini_array support... no
> > checking if mkdir takes one argument... no
> > *** Configuration x86_64-pc-solaris2.10 not supported
Nothing: just bootstrap on Solaris 10/x86 without specifying a specific
configuration triplet. The resulting compiler will automatically support
amd64 code generation when specifying the -m64 option. Note however that
you need to use a recent version of GNU as (from CVS binutils) for the
bootstrap to succeed. You'll probably have to restrict yourself to C at
the moment: the 64-bit libstdc++ didn't build (at least as of a week ago).
Besides, there may be code generation bugs on mainline: building a 64-bit
lsof some time ago seems to have produced wrong code (though I haven't
investigate this in detail yet).
You may be better off with a modified version of GCC 3.4.3 from the
csl-sol210-3_4-branch branch documented in
http://gcc.gnu.org/cvs.html
at the moment. This compiler will be included in Solaris 10 build 73
(probably the next release of Solaris Express), btw.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University
More information about the Gcc
mailing list