Re: Opteron with Intel Fortran and Gnu C problems

From: Mary Haley (haley AT ucar.edu)
Date: Mon Oct 04 2004 - 20:59:20 MDT

  • Next message: ˙ffffbd˙ffffdc ˙ffffcc˙ffffc0: "how to install NCARG in SUSE 9.1"

    >
    >
    > I'm trying to build NCAR Graphics on a dual Opteron system using the Intel
    > Fortran 8.0 compiler and Fedora Core 1 Linux with the 2.6.8 kernel.
    >
    > I've used a combination of Pete Pokrandt's "NCAR Graphics on 64 bit AMD
    > Opteron (x86_64)" email and Don Morton's "Compiling NCARG on Linux with
    > Intel compilers". I've edited the ymake file and the LINUX file and added
    > the NCARG, FC, F77, and LDFLAGS environment variables but when I run
    > ./Configure I get:
    >
    > =======================================================================
    > [root@juno ncarg-4.3.1]# ./Configure -v
    >
    > Building top-level Makefile to determine System defaults
    >
    > Making ymake from Makefile.ini in ./config first
    > cc -O -c -o ymake-filter.o ymake-filter.c
    > cc -O -o ymake-filter ymake-filter.o
    > continuing in /tmp/ncarg-4.3.1
    > In file included from config/Template:843,
    > from <stdin>:1:
    > ...
    > ymake.tmp7662:96: invalid preprocessing directive #are
    > ymake.tmp7662:97: invalid preprocessing directive #code
    > ymake.tmp7662:98: invalid preprocessing directive #are
    >
    > Error in <ymake>: Interrupted in /tmp/ncarg-4.3.1 - restoring Makefile
    > cp: cannot stat `Makefile.bak': No such file or directory
    > Unable to build Makefile - fix above errors and re-run.
    >
    > Terminating configuration procedure
    > =======================================================================
    >
    > I've looked at the Template file at line 843 and it reads:
    >
    > #include YMAKEFILE
    >
    > Does anybody have any ideas about what is going on here?
    >
    > Thanks very much,
    >
    > Steve

    Hi Steve,

    This problem has been fixed in a yet-to-be-released version of NCAR
    Graphics. Here's what you can do for a quick work-around:

    You need to edit the file $NCARG/config/ymake, and make the following
    two changes:

    1. Change:

        set cppopt = -traditional

    to:

         set cppopt = -traditional-cpp

    2. Change:

    $cpp $cppopt -I. -D_COMMENT_="" -DNGCOMM=\# $defines -DYMAKEFILE=\"$tmp1\" | \

    to:

    $cpp $cppopt -I. -D_COMMENT_\#="" -DNGCOMM=\# $defines -DYMAKEFILE=\"$tmp1\" | \

    Let me know if this doesn't fix your problem.

    --Mary

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



    This archive was generated by hypermail 2b29 : Mon Oct 04 2004 - 21:06:17 MDT