Re: NCAR Graphics and OS X with xlf?

From: Mary Haley (haley AT XXXXXX)
Date: Tue Apr 27 2004 - 07:49:13 MDT

  • Next message: jprinos@dehavilland.ca: "Windows version?"

    > I have been attempting an installation of NCAR Graphics (4.3.1)
    > recently downloaded as source on a Mac G5 running OS X (10.3.3),
    > and in particular the new IBM Fortran compiler for this: xlf.
    >
    > Two questions: (1) Has anyone brought up NCAR graphics with an
    > xlf-based installation under OS X? (And if so
    > could you share comments on whether it worked?)
    >
    > (2) My run of "make Everything", after having changed the
    > definition of the Fortran compiler to xlf (leaving the C
    > Compiler as gcc which was on my G5) gave the following glitch:
    > (where the first few lines show successful compiles, then a
    > load step fails -- f77 here = xlf)
    >
    > f77 -O -c -o sfskbk.o sfskbk.f
    > ** sfskbk === End of Compilation 1 ===
    > 1501-510 Compilation successful for file sfskbk.f.
    > f77 -O -c -o sftbkd.o sftbkd.f
    > ** sftbkd === End of Compilation 1 ===
    > 1501-510 Compilation successful for file sftbkd.f.
    > f77 -O -o fontc cfaamn.o cfrdln.o cfwrit.o ffgttk.o ffinfo.o ffphol.o ffppkt.o ffprcf.o ffprsa.o fftbkd.o ff
    > tkin.o sffndc.o sfgtin.o sfgtkw.o sfprcf.o sfskbk.o sftbkd.o -L../../.././common/src/libncarg_c -lncarg_c -L/usr/loc
    > al/ncarg/lib -L/usr/X11R6/lib -L/usr/local/lib -lU77 -lfio -lf77math
    > /usr/bin/ld: can't locate file for: -lU77
    > make[4]: *** [fontc] Error 1
    >
    > I evidently don't have a library "U77", or for that matter
    > the "fio" or "f77math".
    >
    > Searching through "Makefile" these enter via line 126:
    >
    > CTOFLIBS = -lU77 -lfio -lf77math
    >
    > The attempts to create libraries did not lead to the run of make
    > stopping at this or other identical instances.
    > After this finished, and I properly defined NCAR_ROOT, I was able
    > to test the installation by typing, for example:
    >
    > ncargex agex03
    >
    > which results in the correct copy over of code, and compilation. But,
    > linking left several ncarg specific names such as "_ishift", "_clswks"
    > etc. unresolved with the message /usr/bin/ld : undefined symbols
    > listing these. And with reviewing the "make Everything" output
    > it looks like these were left out of the compiled libraries due to
    > the missing libraries related to C to Fortran.
    >
    > Could I get by without using U77, fio, f77math with xlf + gcc,
    > or do I need to substitute something else here in Makefile?
    > Any experience or advice would be most welcome.
    >
    > Thanks,
    > Ron Gilliland
    >

    Hi Ron,

    It looks like something is wrong with the configuration file you are
    using. Look at the file "$NCARG/config/Darwin". In this file you
    will see a line like:

    #define CtoFLibraries -lU77 -lfio -lf77math

    These libraries aren't going to work in your case, since these are for
    use with the gcc/g77 libraries. However, I'm not sure what to replace
    them with since I don't have xlf on my Mac.

    You might try:

    #define CtoFLibraries -lm -lxlf90 -lxlopt

    since this is what I use for xlf on the IBMs.

    Once you make this change (or else remove/uncomment the line), you can
    try starting the build from scratch with "make Everything" from the
    $NCARG directory. This will ensure that all the Makefiles get remade
    with the change you made to $NCARG/config/Darwin.

    You may need to do this a couple of times until you figure out what
    system C-to-F libraries are needed in order for the various NCAR
    Graphics applications to be built.

    Can somebody out there who uses xlf on a Mac give some suggestions
    here?

    Thanks!

    --Mary

    -------------------------------------------------
    Mary Haley haley AT unknown
    NCAR/SCD/VETS 303-497-1254 (voice)
    1850 Table Mesa Dr 303-497-1804 (fax)
    Boulder, CO 80305
    -------------------------------------------------
    _______________________________________________
    ncarg-talk mailing list
    ncarg-talk AT unknown
    http://mailman.ucar.edu/mailman/listinfo/ncarg-talk



    This archive was generated by hypermail 2b29 : Tue Apr 27 2004 - 08:02:12 MDT