From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 1BCAEBC28 for ; Wed, 3 Nov 2004 23:38:28 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id iA3McRLY011442 for ; Wed, 3 Nov 2004 23:38:27 +0100 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id XAA21223 for ; Wed, 3 Nov 2004 23:38:27 +0100 (MET) Received: from biscayne-one-station.mit.edu (BISCAYNE-ONE-STATION.MIT.EDU [18.7.7.80]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id iA3McQ8s011429 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 3 Nov 2004 23:38:27 +0100 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by biscayne-one-station.mit.edu (8.12.4/8.9.2) with ESMTP id iA3McP7l003595; Wed, 3 Nov 2004 17:38:25 -0500 (EST) Received: from scrubbing-bubbles.mit.edu (SCRUBBING-BUBBLES.MIT.EDU [18.7.16.68]) (authenticated bits=56) (User authenticated as jfc@ATHENA.MIT.EDU) by outgoing.mit.edu (8.12.4/8.12.4) with ESMTP id iA3McN1V008811 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 3 Nov 2004 17:38:24 -0500 (EST) Received: (from jfc@localhost) by scrubbing-bubbles.mit.edu (8.12.9) id iA3McNl4008481; Wed, 3 Nov 2004 17:38:23 -0500 (EST) Message-Id: <200411032238.iA3McNl4008481@scrubbing-bubbles.mit.edu> To: Dale Harris Cc: caml-list@inria.fr Subject: Re: [Caml-list] Compiling on Solaris 64 bit In-Reply-To: Your message of "Wed, 03 Nov 2004 14:02:05 PST." <20041103220205.GA28822@maybe.org> Date: Wed, 03 Nov 2004 17:38:23 -0500 From: John Carr X-Scanned-By: MIMEDefang 2.42 X-Miltered: at concorde with ID 41895DE3.003 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 41895DE2.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 jfc:01 ocaml:01 compiler:01 ocamlyacc:01 ocamlyacc:01 stdlib:01 compiler:01 ocamlc:01 ocaml:01 ocamlrun:01 ocamlc:01 -warn-error:01 -nostdlib:01 pervasives:01 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.0 X-Spam-Level: > 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)