[ncl-install] Compiling issues 6.4.0, PGI on Cray

brown wrap gramos at yahoo.com
Wed Jun 28 13:17:00 MDT 2017


That did the trick. I don't know if the code runs, but it compiled now. Thank you so much.

Greg 
 

    On Wednesday, June 28, 2017 10:31 AM, Mary Haley <haley at ucar.edu> wrote:
 

 Okay, let me back up a bit.
I wasn't clear about why I was having you run the "ncargf77" program.

This program does *not* produce an executable when you run it without any arguments. It simply echoes the compile line that it would normally use if you did provide an argument. And, as I said in my original email, running this command without any arguments is going to produce an error, so it doesn't surprise me that you saw all those errors.
I was having you run "ncargf77" by itself so you could see what it takes to normally compile an NCAR Graphics program. You could then copy and paste this information for compiling your own NCAR Graphics program.
I shouldn't have confused you by asking you to run "ncargf77".
Instead, I should have just simply had you type this:
ncargex agex01 -clean -W pdf
because "ncargex" actually calls "ncargf77" to compile the program, and it also echoes the compile line.  
When you ran that command, you told me the output was:
NCAR Graphics Fortran  Example <agex01>
  Copying agex01.f
Compiling and linking...pgf90 -tp k8-64 -O -Msignextend -Mreentrant -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -mp -O -o agex01 agex01.f -L/lustre/local/ncl_ncarg-6.4.0-pgi/lib -L/lustre/local/lib -lncarg -lncarg_gks -lncarg_c -lX11 -lcairo -lXrender -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -liconv -lbz2
Executing <agex01>...Warning: ieee_inexact is signalingFORTRAN STOP
cairo PDF file is named agex01.pdf.
This output indicates to me that the program compiled and executed successfully, and produced a file called "agex01.pdf".  I also don't see any error messages.  There is a warning, but I don't think is a problem.
Please use the same compile line to try compiling your own NCAR Graphics program, but replace "agex01" and "agex01.f" with the name of your own program and executable name. For example, if your program is called "testprogram.f", then try compiling it with:
pgf90 -tp k8-64 -O -Msignextend -Mreentrant -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -mp -O -o testprogram testprogram.f -L/lustre/local/ncl_ncarg-6.4.0-pgi/lib -L/lustre/local/lib -lncarg -lncarg_gks -lncarg_c -lX11 -lcairo -lXrender -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -liconv -lbz2

If the above produces an error, then please include the compile line that you are using and the errors that follow.
--Mary



On Wed, Jun 28, 2017 at 11:08 AM, brown wrap <gramos at yahoo.com> wrote:

I guess I am not making myself clear. I was able to produce the Cairo pdf,  but still have the original error:
/lustre/local/ncl_ncarg-6.4.0- pgi/lib/libncarg_gks.a( crodisplay.o): In function `croActivateX11':/lustre/users/ramos/ncl_ncarg- 6.4.0-pgi/ncarg2d/src/ libncarg_gks/cdrivers/./ crodisplay.c:350: undefined reference to `cairo_xlib_surface_get_ display'/lustre/users/ramos/ncl_ncarg- 6.4.0-pgi/ncarg2d/src/ libncarg_gks/cdrivers/./ crodisplay.c:350: undefined reference to `cairo_xlib_surface_get_ drawable'/lustre/users/ramos/ncl_ncarg- 6.4.0-pgi/ncarg2d/src/ libncarg_gks/cdrivers/./ crodisplay.c:359: undefined reference to `cairo_surface_flush'/lustre/users/ramos/ncl_ncarg- 6.4.0-pgi/ncarg2d/src/ libncarg_gks/cdrivers/./ crodisplay.c:399: undefined reference to `cairo_xlib_surface_set_size'
 

    On Wednesday, June 28, 2017 9:59 AM, Mary Haley <haley at ucar.edu> wrote:
 

 Are you able to open the agex01.pdf file?  It should like like the file that is attached.
I don't know what "ieee_inexact is signaling" is.  This is a PGI error. I just googled it, and it seems to come from the STOP statement in agex01.f. You can try this:
ncargex agex01 -W pdf -n
This simply copies the program to your current directory, but doesn't run it.
Then, edit the agex01.f file and remove the STOP line.
Compile and run the agex01.f program with:
ncargf77 -o agex01 agex01.f./agex01
This should produce a cairo1.pdf file (not an agex01.pdf) file.  Have a look at this file and see if it looks like the file I attached.
If you want to see if an X11 window output works, try this:
 ncargex agex01 -W x11 -cleanInstead of a PDF file, you should see a window pop up with a plot that looks like the agex02.pdf file.  To make this "x11" window go away, click on it with your left mouse button.--Mary




On Wed, Jun 28, 2017 at 10:50 AM, brown wrap <gramos at yahoo.com> wrote:

OK, I modified ncargf90  and ncargf77 and I was able to produce cpex08 and  the Cairo pdf, but I still get the original error':
ncargex agex01 -W pdf -clean
NCAR Graphics Fortran  Example <agex01>
  Copying agex01.f
Compiling and linking...pgf90 -tp k8-64 -O -Msignextend -Mreentrant -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -mp -O -o agex01 agex01.f -L/lustre/local/ncl_ncarg-6.4. 0-pgi/lib -L/lustre/local/lib -lncarg -lncarg_gks -lncarg_c -lX11 -lcairo -lXrender -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -liconv -lbz2
Executing <agex01>...Warning: ieee_inexact is signalingFORTRAN STOP
cairo PDF file is named agex01.pdf.
ramos at grace:~>
We don't have an X11 directory. I substituted /lustre/local/lib for the X11 directory and it worked. But as I mentioned, I still have the original error.
Greg



   



   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20170628/39250317/attachment-0001.html 


More information about the ncl-install mailing list