Re: Opteron with Intel Fortran and Gnu C problems

From: Craig Tremback (tremback AT atmet.com)
Date: Mon Oct 04 2004 - 10:56:07 MDT


I am having this same issue recently also. If I have tracked it down
correctly, either ymake or ymake-filter is using cpp. It seems that
older versions of cpp was assuming that any line beginning with a "#"
was a comment if not followed by a valid cpp command. The newer versions
of GNU cpp seem to be generating an error in this case.

And the yMakefile's are full of comments! I have not looked yet to see
if there is a command line switch to go back to the old behavior.

Is ymake used for anything else but the "#include" command? If not, most
recent make commands do have their own "include" capability, as does GNU
make, which can be installed on any machine. This would greatly simplify
the NCARG build process.

- Craig

=====================================================================
Craig J. Tremback - mailto:tremback AT unknown
                      phone: 303-530-5200 x205 fax: 303-530-5201
ATMET, LLC
P.O. Box 19195, Boulder, Colorado 80308-2195
=====================================================================

-------
----- Original Message -----
From: Steve Cousins <cousins AT unknown>
To: ncarg-talk AT unknown
Sent: 10/01/2004 08:18:44 AM
Subject: Opteron with Intel Fortran and Gnu C problems

> 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:58: invalid preprocessing directive #The
> ymake.tmp7662:59: invalid preprocessing directive #all
> ymake.tmp7662:60: invalid preprocessing directive #It
> ymake.tmp7662:61: invalid preprocessing directive #rebuilding
> ymake.tmp7662:76: invalid preprocessing directive #The
> ymake.tmp7662:77: invalid preprocessing directive #are
> ymake.tmp7662:78: invalid preprocessing directive #code
> ymake.tmp7662:79: invalid preprocessing directive #are
> ymake.tmp7662:95: invalid preprocessing directive #The
> 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
>
> ______________________________________________________________________
> Steve Cousins, Ocean Modeling Group Email: cousins AT unknown
> Marine Sciences, 208 Libby Hall http://rocky.umeoce.maine.edu
> Univ. of Maine, Orono, ME 04469 Phone: (207) 581-4302
>
> _______________________________________________
> ncarg-talk mailing list
> ncarg-talk AT unknown
> http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
>
_______________________________________________
ncarg-talk mailing list
ncarg-talk AT unknown
http://mailman.ucar.edu/mailman/listinfo/ncarg-talk



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