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
OCamlon 64 Bit-Sun compiled as 32-Bit
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-09-16 (19:55)
From: Martin S. Weber <Ephaeton@g...>
Subject: Re: [Caml-list] OCamlon 64 Bit-Sun compiled as 32-Bit
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 ...

%{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.)