Re: Cannot cross compile 32-bit ROOT on 64-bit machine

From: Fons Rademakers <Fons.Rademakers_at_cern.ch>
Date: Fri, 29 Jun 2007 11:43:41 +0200


Hi Konstantin,

   ROOT cross building does not work (yet). Build a 32-bit version on 32-bit and 64-bit version on a 64-bit machine. Note that most 64-bit machine have only the 32-bit run-time shared libraries installed but not the 32-bit development libraries and of course you cannot mix and match.

Cheers, Fons.

Konstantin Olchanski wrote:
> Rooters - all my fastest machines are running 64-bit Linux (SL-4.4) and
> I am trying to use them to build 32-bit ROOT (64-bit ROOT builds fine).
>
> All this is with ROOT v5.14.00f.
>
> So I do "setarch i386 my-build-script.sh" (which runs ROOT's configure,
> make clean and make) and everything works fine - ROOT's configure
> is fooled into thinking this is a 32-bit machine, all the ROOT stuff
> is compiled with "-m32" but linking bombs out because
> the freetype and pcre libraries are compiled as 64-bit no matter
> what I do. I guess their configure and libtool magical scripts have
> to be tought to use "-m32" on 32-bit machines.
>
> Another quirk I think I see is with linking g2root (anything
> that uses hbook?) - the build scripts seem to grab the 64-bit version
> of the g2c fortran runtime libraries.
>
> Next time somebody looks at these build scripts, it would be nice to have
> these problems sorted out (use -m32 when building freetype and pcre;
> grab the 32-bit fortran run-time libraries).
>

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers_at_cern.ch              Phone: +41 22 7679248
WWW:    http://fons.rademakers.org           Fax:   +41 22 7669640
Received on Fri Jun 29 2007 - 11:43:46 CEST

This archive was generated by hypermail 2.2.0 : Fri Jun 29 2007 - 23:50:01 CEST