On 2015-03-30 22:38+0900 Hiroyasu Yasuda wrote:

> Hello Alan,
>
> Thank you for your kindness. I ran your suggested commands and that results 
> as below:
>
> hiro$ PKG_CONFIG_PATH="/Users/hiro/Desktop/plplot_ifort/lib/pkgconfig" 
> pkg-config --cflags plplotd-f95
> -I/Users/hiro/Desktop/plplot_ifort/include/plplot 
> -I/Users/hiro/Desktop/plplot_ifort/lib/fortran/modules/plplot 
> -I/Users/hiro/Desktop/plplot_ifort/include/plplot
>
> hiro$ make x00f
> /usr/bin/ifort  x00f.f90 -o x00f  
> `PKG_CONFIG_PATH="/Users/hiro/Desktop/plplot_ifort/lib/pkgconfig" pkg-config  
> --cflags --libs plplotd-f95` -lplf95demolibd
> x00f.f90(24): error #7002: Error in opening the compiled module file.  Check 
> INCLUDE paths.   [PLPLOT_STR]
>    use plf95demolib
> --------^
> compilation aborted for x00f.f90 (code 1)
> make: *** [x00f] Error 1
>
> Also I intend a file list in specified fold with pkg-config as below:
>
> hiro$ ls -l /Users/hiro/Desktop/plplot_ifort/include/plplot
> total 560
> -rw-r--r--  1 hiro  staff   3255 Mar 30 17:49 disptab.h
> -rw-r--r--  1 hiro  staff   7284 Mar 30 17:49 drivers.h
> -rw-r--r--  1 hiro  staff   5398 Mar 30 17:49 gcw.h
> -rw-r--r--  1 hiro  staff   4043 Mar 30 17:49 pdf.h
> -rw-r--r--  1 hiro  staff   3304 Mar 30 17:51 plConfig.h
> -rw-r--r--  1 hiro  staff   2802 Mar 30 17:51 plDevs.h
> -rw-r--r--  1 hiro  staff   2763 Mar 30 17:49 pldebug.h
> -rw-r--r--  1 hiro  staff   5761 Mar 30 17:51 pldll.h
> -rw-r--r--  1 hiro  staff   7509 Mar 30 17:49 plevent.h
> -rw-r--r--  1 hiro  staff  77370 Mar 30 17:49 plplot.h
> -rw-r--r--  1 hiro  staff  32642 Mar 30 17:49 plplotP.h
> -rw-r--r--  1 hiro  staff  28357 Mar 30 17:49 plplotcanvas.h
> -rw-r--r--  1 hiro  staff  42350 Mar 30 17:49 plstream.h
> -rw-r--r--  1 hiro  staff  30762 Mar 30 17:49 plstrm.h
> -rw-r--r--  1 hiro  staff   4466 Mar 30 17:49 plxwd.h
> -rw-r--r--  1 hiro  staff   2633 Mar 30 17:49 qsastime.h
> -rw-r--r--  1 hiro  staff   1612 Mar 30 17:49 qsastimedll.h
>
> hiro$ ls -l /Users/hiro/Desktop/plplot_ifort/lib/fortran/modules/plplot
> total 392
> -rw-r--r--  1 hiro  staff    2447 Mar 30 17:51 plf95demolib.mod
> -rw-r--r--  1 hiro  staff  125957 Mar 30 17:51 plplot.mod
> -rw-r--r--  1 hiro  staff     629 Mar 30 17:51 plplot_flt.mod
> -rw-r--r--  1 hiro  staff   62576 Mar 30 17:51 plplotp.mod
>

> Those results seem to be working fine except error #7002. Since
error #7002 is an intrinsic error message, the built result of *.mod
with ifort is suspected. If there are some ifort compiling options to
obtain a normal built result, an built result of *.mod with ifort will
be equaled to an built results with gfortran. Are there some compiling
option for option?

I could be wrong, but my interpretation of the error message is ifort
cannot find the fortran modules (specifically the plf95demolib module
file) despite the -I option pointing right to them.  That is an
extremely puzzling result. That is also similar to a result another
user got with ifort back in 2011, see
<https://sourceforge.net/p/plplot/bugs/107/>.

According to <http://inside.mines.edu/mio/man/ifort.html> the -I
option should be recognized by ifort to help that compiler find the
modules, but since that appears not to be working for your platform I
wonder if you have a different version of ifort that does not
recognize this option? What does your own ifort manual say about the
option that should be used to find modules?

Also, I suggest you experiment with the build command to see what you
have to modify to get it to work.

Currently, according to your result above, the Makefile generates the
following command.

/usr/bin/ifort  x00f.f90 -o x00f  \
`PKG_CONFIG_PATH="/Users/hiro/Desktop/plplot_ifort/lib/pkgconfig" \
pkg-config --cflags --libs plplotd-f95` -lplf95demolibd

I would run that by hand (outside the Makefile) to confirm you get the
same error, then cut and paste the result of


PKG_CONFIG_PATH="/Users/hiro/Desktop/plplot_ifort/lib/pkgconfig" \
pkg-config --cflags --libs plplotd-f95

to remove pkg-config from the result.  Then modify the relevant -I
option according to what your ifort documentation says to do to see if
you can convince ifort to find your installed modules directory at
/Users/hiro/Desktop/plplot_ifort/lib/fortran/modules/plplot.

Sorry I cannot be of more explicit help, but this is a tough issue
that I think can only be figured out by experimentation on your part.

Alan

__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to