From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=SPF_FAIL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 58FBCBC50 for ; Sat, 16 Sep 2006 21:55:59 +0200 (CEST) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by concorde.inria.fr (8.13.6/8.13.6) with SMTP id k8GJtwhN002316 for ; Sat, 16 Sep 2006 21:55:59 +0200 Received: (qmail invoked by alias); 16 Sep 2006 19:55:46 -0000 Received: from dyn-212-77-186-168.r-adsl.de (EHLO circe.entropie.net) [212.77.186.168] by mail.gmx.net (mp029) with SMTP; 16 Sep 2006 21:55:46 +0200 X-Authenticated: #2227385 Received: by circe.entropie.net (Postfix, from userid 500) id 81AD6D816; Sat, 16 Sep 2006 21:55:45 +0200 (CEST) Date: Sat, 16 Sep 2006 21:55:45 +0200 From: "Martin S. Weber" To: Oliver Bandel Cc: caml-list@inria.fr Subject: Re: [Caml-list] OCamlon 64 Bit-Sun compiled as 32-Bit Message-ID: <20060916195545.GB6039@circe.entropie.net> References: <20060916185514.GA6087@first.in-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060916185514.GA6087@first.in-berlin.de> User-Agent: Mutt/1.4.2.2i X-Y-GMX-Trusted: 0 X-Miltered: at concorde with ID 450C56CE.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; bandel:01 ocaml:01 compilation:01 compiler:01 iirc:01 compiler:01 gcc:01 ocaml:01 bug:01 gcc:01 cpp:01 cpp:01 2006:98 workstation:98 workstation:98 Moin Oliver, On Sat, Sep 16, 2006 at 08:55:14PM +0200, Oliver Bandel wrote: > Hello, > > in the project I'm working, I have todo Perl-Programming. > But in a free minute I compiled OCaml on the workstation. > The compilation was without problems, it seems. > > But the ocaml-distri (3.09.2) compiled as 32-Bit. > I asked the admin, and he said, it's a 64-Bit workstation. > This doesn't mean the compiler is set to generate 64bit objects by default, iirc the solaris 8 boxes I worked on ran 64 bit on 64 bit and nevertheless compiled stuff as 32bit. (yay). See if you can pass a CPPFLAGS=-m64 to your compiler (gcc option, if you're using sunpro pass the appropriate flag to the compiler to enable/force 64bit compiling)... I.e. no ocaml bug. Maybe have a look at (gcc: gcc -dumpspecs which should among many other things also tell you the default build/compile options... E.g. on my sparc64, gcc tells me ... *cpp_arch: %{m32:%(cpp_arch32)} %{m64:%(cpp_arch64)} %{!m32:%{!m64:%(cpp_arch_default)}} (read as: passed m32? select cpp_arch32. passed m64? select cpp_arch64. passed neither m32 nor m64 ? select cpp_arch_default.) ..and.. *cpp_arch32: *cpp_arch64: -D__arch64__ *cpp_arch_default: -D__arch64__ ) Regards, -Martin