Healpix 2.0 compilation problem: G5 and (XLF90 or g95)

Use of Healpix, camb, CLASS, cosmomc, compilers, etc.
Post Reply
Hiranya Peiris
Posts: 54
Joined: September 28 2004
Affiliation: University College London

Healpix 2.0 compilation problem: G5 and (XLF90 or g95)

Post by Hiranya Peiris » September 14 2005

Has anyone succeeded in compiling Healpix 2.0 on a G5 (under either Tiger or Panther) using one or both of the above f90 compilers? XLF90 barfs at the link stage with some undefined symbols which appear to belong to the cfitsio library (which exists and is in the link path), and g95 appears to fail on the first F90 file it comes across. I can supply the gory details if necessary. It appears to compile fine on a G4 with g95.

I would be very grateful for any insights from people who have compiled successfully in this environment.

Cheers
Hiranya

Dragan Huterer
Posts: 24
Joined: July 18 2005
Affiliation: University of Michigan
Contact:

Healpix 2.0 compilation problem: G5 and (XLF90 or g95)

Post by Dragan Huterer » September 15 2005

Add the Intel Fortran Compiler to that list.... same problem as one Hiranya
mentioned for g95. Has anyone successfully compiled Healpix 2.0 on a G5?
Many thanks.

Andrew Jaffe
Posts: 7
Joined: September 25 2004
Affiliation: Imperial College

Healpix 2.0 compilation problem: G5 and (XLF90 or g95)

Post by Andrew Jaffe » September 17 2005

Hi All-

I was able to get it up on a *G4* with g95, but I needed to do the following:
  • * install the latest cctools available from the g95 page
    * add the following to the LDFLAGS in the Makefile: -lSystemStubs
then it seems to work!

Hiranya Peiris
Posts: 54
Joined: September 28 2004
Affiliation: University College London

Healpix 2.0 compilation problem: G5 and (XLF90 or g95)

Post by Hiranya Peiris » September 21 2005

I just got it to work on a G5 running Tiger with XLF90. The modifications required were:

use gcc, rather than cc, for compiling both CFITSIO and Healpix (not sure this is essential, I haven't retried with cc once everything worked).

When compiling the CFITSIO library, do the following:
setenv CFLAGS -DIBMR2Fortran=1
./configure
make

When compiling Healpix, as Andrew says, you need to add -lSystemStubs to the end of the LDFLAGS.

Cheers
Hiranya

Pierre Vandergheynst
Posts: 1
Joined: June 01 2006
Affiliation: EPFL
Contact:

Healpix 2.0 compilation problem: G5 and (XLF90 or g95)

Post by Pierre Vandergheynst » June 01 2006

I have the same problems trying to compile Healpix 2 on a G5 with the nagware compiler. Anyone had success with this one ?

Jason McEwen
Posts: 13
Joined: January 29 2005
Affiliation: University of Cambridge
Contact:

Healpix 2.0 compilation problem: G5 and (XLF90 or g95)

Post by Jason McEwen » July 26 2006

Perhaps these problems are due to changes in the cfitsio libraries.

I just downloaded the latest cfitsio libraries and Healpix 2.01 failed to build using the gfortran and g95 compilers. I had copies of the old cfitsio libraries laying around and after reverting to these Healpix compiled fine with both compilers.

I guess this is not much help if older version of cfitsio are no longer available for download though...

Martin Reinecke
Posts: 13
Joined: July 26 2006
Affiliation: Max-Planck-Institute for Astrophysics

Re: Healpix 2.0 compilation problem: G5 and (XLF90 or g95)

Post by Martin Reinecke » July 26 2006

Jason McEwen wrote:Perhaps these problems are due to changes in the cfitsio libraries.

I just downloaded the latest cfitsio libraries and Healpix 2.01 failed to build using the gfortran and g95 compilers. I had copies of the old cfitsio libraries laying around and after reverting to these Healpix compiled fine with both compilers.
Healpix 2.01 should work fine with the current version of cfitsio (v3.006); the C++ implementation actually requires this version.

To look further into this, we need a more detailed description of the problem. Do you also get the errors about unresolved symbols?

Post Reply