From: Hiroyasu Y. <hi...@gs...> - 2015-04-01 02:51:55
|
Hello Alan and Arjen, Thank you very much for your kindness. Eventually, I’ve solved that problem. A way is to compile an code of plplot with ifort that three mod files(plplot_str.mod, plplot_strutils.mod and plplot_types.mod) copy into $PREFIX/lib/fortran/modules/plplot. Those mod files were generated in bindings/f95 of executed place with cmake and make. Also it is important to refuse conflict of build results between an older build result and a newer build result when run make install if there is an built plplot library already on an installed environment. Although there is an couple of plplot library in same environment as above method, it is easy to can be switched those libraries with makefile: F95 = gfortran-mp-4.6 F95 = ifort ifeq ($(F95),ifort) PKG_CONFIG_ENV = PKG_CONFIG_PATH="/opt/intel/lib/pkgconfig" else PKG_CONFIG_ENV = PKG_CONFIG_PATH="/opt/local/lib/pkgconfig" endif Your advices give useful suggestion to solve the problem of build plplot with ifort. Thank you very much indeed. Actually it is still unknown why gfortran and intel fortran are different in build results. Sincerely. Hiro > On Mar 31, 2015, at 03:37, Alan W. Irwin <ir...@be...> wrote: > > 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 > __________________________ - - - - - 安田 浩保 〒950-2181 新潟市西区五十嵐二の町8050 新潟大学 災害・復興科学研究所 総合研究棟(環境エネルギ系)213号室 TEL : 025-262-7053 FAX : 025-262-7050 E-mail : hi...@gs... Hiroyasu YASUDA Laboratory of River Research Research Institute for Natural Hazards & Disaster Recovery Niigata University Ikarashi 2-no-cho, Nis-ku, Niigata, 950-2181, Japan Phone +81-25-262-7053 Facsimile +81-25-262-7050 E-mail hi...@gs... URL http://rde.nhdr.niigata-u.ac.jp/lab/ .´ ̄`. : (` : `. `´ : `・--´ |