English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Compiling on Solaris 64 bit
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-11-03 (22:38)
From: John Carr <jfc@M...>
Subject: Re: [Caml-list] Compiling on Solaris 64 bit

> 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:

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)