Hi Saurabh,
NCAR Graphics is known to compile on FC systems; I regularly build it
there, albeit with GCC compilers only. NCAR Graphics
does also compile under various systems with the PGI compilers.
In case you have not seen the build instructions before, they are
at: http://ngwww.ucar.edu/ng4.4/installsrc.html#BuildNCARGFromSource
> [root_at_yyy ncarg-4.4.1]# cat /etc/redhat-release
> Fedora Core release 4 (Stentz)
>
> [root_at_yyy ncarg-4.4.1]# uname -a
> Linux 2.6.17-1.2142_FC4smp #1 SMP i686 i686 i386 GNU/Linux
>
> [root_at_yyy ncarg-4.4.1]# pgf90 -V
> pgf90 6.2-5 32-bit target on x86 Linux
>
> [root_at_yyy ncarg-4.4.1]# gcc -v
> gcc version 4.0.2 20051125 (Red Hat 4.0.2-8)
All of this looks just fine.
> I'm trying to compile NCAR Graphics with the following options
> (from config/Site.local):
> ------------
> #define YmakeRoot /usr/local/ncarg
>
> #define IncSearch -I/usr/include -I/usr/X11R6/include
>
>
> #define BuildWithF90 TRUE
> #define FCompiler pgf90
>
> #define BuildUdunits FALSE
> #define UdUnitslib
> #define BuildHDFEOS FALSE
> #define HDFEOSlib
> #define BuildV5D TRUE
> #define BuildDODS FALSE
This file is generated by running the "Configure" script in the top-
level $NCARGSRC source directory. Did you run this script?
As well, before doing so, you need to make sure there is a correct
"directives" script in $NCARGSRC/config. In your case, as
you're mixing GCC and PGI compilers, you'll want to take snippets
from the LINUX.GNU and LINUX.PGI compilers.
It will be important to have CPPFLAGS=-DpgiFortran set, as that's the
only way to ensure C <--> Fortran will work well together.
> After running 'make', I get a number of error messages with the final
> statement being "NOT Making install in ./ni". After the install is
> over, I
> see that the binaries 'ctrans', 'ictrans' and 'idt' have not been
> generated,
> among others.
>
> Here is what a search for the string "NOT" on the make-output file
> returns
> (I'm only giving the error messages):
>
> -------------
> NOT Making Makefiles in ./external
> NOT Making Makefiles in ./ncarg2d/src/bin/ncargsrcx
> NOT Making clean in ./external
> NOT Making clean in ./ncarg2d/src/bin/ncargsrcx
> NOT Making includes in ./external
> NOT Making includes in ./ncarg2d/src/bin/ncargsrcx
> NOT Making depend in ./external
> ...
> ...
> NOT Making ./external
> NOT Making ./ncarg2d/src/bin/ncargsrcx
> NOT Making install in ./external
> NOT Making install in ./ncarg2d/src/bin/ncargsrcx
These messages indicate that there's no top-level Makefile being
created properly; the first thing to happen is
for makefiles to be created, and the 'external' directory is one
place that happens, for example.
> Similarly, here is what a search for the string "error" on the make-
> output
> file returns (I'm only giving the error messages):
> --------------
> /usr/X11R6/include/X11/Xlib.h:83: error: conflicting types for wchar_t
> /usr/lib/gcc/i386-redhat-linux/4.0.2/include/stddef.h:326: error:
> previous
> declaration of wchar_t was here
This tends to indicate that there is a problem either with
configuration (not following the "Configure" script process) or
that your GCC installation is incorrect.
> Are there any source rpm's available for NCAR Graphics, which I can
> rebuild
> for my machine?
There are no source RPMs that I am aware of; rather there is the NCAR
Graphics download site: http://ngwww.ucar.edu/ng4.4/
installsrc.html#GetSourceCode
> Has anybody successfully compiled NCAR Graphics on an FC4 machine
> with PGI 6.2?
In this combination, no; but on FC hosts with GCC compilers, yes, and
on other Linux hosts with PGI compilers.
Please contact me directly if you have further questions.
-Rick.
----
Rick Grubin NCAR/TDD/CISL/VETS
Visualization + Enabling Technologies
grubin_at_ucar.edu 303.497.1832
_______________________________________________
ncarg-talk mailing list
ncarg-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
Received on Tue May 15 2007 - 20:10:37 MDT
This archive was generated by hypermail 2.2.0 : Fri May 18 2007 - 14:30:12 MDT