Page 1 of 1

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

Posted: September 14 2005
by Hiranya Peiris
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

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

Posted: September 15 2005
by Dragan Huterer
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.

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

Posted: September 17 2005
by Andrew Jaffe
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!

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

Posted: September 21 2005
by Hiranya Peiris
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

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

Posted: June 01 2006
by Pierre Vandergheynst
I have the same problems trying to compile Healpix 2 on a G5 with the nagware compiler. Anyone had success with this one ?

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

Posted: July 26 2006
by Jason McEwen
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...

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

Posted: July 26 2006
by Martin Reinecke
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?