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

From: Konstantin Olchanski <olchansk_at_triumf.ca>
Date: Thu, 28 Jun 2007 18:46:58 -0700

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

-- 
Konstantin Olchanski
Data Acquisition Systems: The Bytes Must Flow!
Email: olchansk-at-triumf-dot-ca
Snail mail: 4004 Wesbrook Mall, TRIUMF, Vancouver, B.C., V6T 2A3, Canada
Received on Fri Jun 29 2007 - 03:47:07 CEST

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