caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Compiling on Solaris 64 bit
@ 2004-11-03 22:02 Dale Harris
  2004-11-03 22:38 ` [Caml-list] " John Carr
  0 siblings, 1 reply; 2+ messages in thread
From: Dale Harris @ 2004-11-03 22:02 UTC (permalink / raw)
  To: caml-list


Hi,

I've been trying unsuccessfully to compile ocaml on a Solaris 9 system,
SunFire v880z, at 64 bits.  I'm trying to use the SUNWspro C compiler
with the "-fast -xarch=v9b" or just "-xarch=v9b" options.  I get the
following result:

cp yacc/ocamlyacc boot/ocamlyacc
cd stdlib; make COMPILER=../boot/ocamlc all
make[1]: Entering directory `/home/rodmur/src/ocaml/ocaml-3.07/stdlib'
../boot/ocamlrun ../boot/ocamlc -g -warn-error A -nostdlib -nopervasives
-c pervasives.mli
make[1]: *** [pervasives.cmi] Segmentation Fault (core dumped)
make[1]: Leaving directory `/home/rodmur/src/ocaml/ocaml-3.07/stdlib'
make: *** [coldstart] Error 2


Any suggestions on what I need to do to make this work?  How do I
compile a true 64-bit version of ocaml on Solaris 9?  BTW, I do get the
basically the same result if I try "gcc -m64"

ocaml version is 3.07
cc is Forte Developer 7 C 5.4 2002/03/09
gcc is 3.3.2

-- 
Dale Harris   
rodmur@maybe.org
/.-)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] Compiling on Solaris 64 bit
  2004-11-03 22:02 Compiling on Solaris 64 bit Dale Harris
@ 2004-11-03 22:38 ` John Carr
  0 siblings, 0 replies; 2+ messages in thread
From: John Carr @ 2004-11-03 22:38 UTC (permalink / raw)
  To: Dale Harris; +Cc: caml-list


> I've been trying unsuccessfully to compile ocaml on a Solaris 9 system,
> SunFire v880z, at 64 bits.  I'm trying to use the SUNWspro C compiler
> with the "-fast -xarch=v9b" or just "-xarch=v9b" options.  I get the
> following result:
> 
> cp yacc/ocamlyacc boot/ocamlyacc
> cd stdlib; make COMPILER=../boot/ocamlc all
> make[1]: Entering directory `/home/rodmur/src/ocaml/ocaml-3.07/stdlib'
> ../boot/ocamlrun ../boot/ocamlc -g -warn-error A -nostdlib -nopervasives
> -c pervasives.mli
> make[1]: *** [pervasives.cmi] Segmentation Fault (core dumped)
> make[1]: Leaving directory `/home/rodmur/src/ocaml/ocaml-3.07/stdlib'
> make: *** [coldstart] Error 2

I have patches to make ocamlopt generate 64 bit code:
<http://www.mit.edu/~jfc/ocaml-3.08.1-sparc64.tar.gz>.

My changes only affect native code.  Byte code (ocamlrun) should work
in 32 or 64 bit mode with no source changes.  Maybe upgrading to 3.08
will help.  The Makefiles automatically add "-O" to the compiler
options so in your case there isn't much difference with or without
-fast.  You might try v9 or v9a instead of v9b just in case there
is a code generation bug.


    --John Carr (jfc@mit.edu)


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-11-03 22:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-03 22:02 Compiling on Solaris 64 bit Dale Harris
2004-11-03 22:38 ` [Caml-list] " John Carr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).