From: Hiroyasu Y. <hi...@gs...> - 2015-03-29 05:27:12
|
Hello Alan, Thank you for the reply. > If all appears to be well with that option, then please send the > Makefile located at $PREFIX/plplot5.10.0/examples/f95/Makefile > as well as the results from > > make x00f >& x00f.out > > in that directory. At my last mail, according to your mail as above I attached an output of result when I ran Make in $PREFIX/plplot5.10.0/examples/f95/ as “make x00f >& x00f.out”. If your intention misunderstood me, please let me know your request as specific commands again. Sincerely, Hiro > On Mar 29, 2015, at 03:05, Alan W. Irwin <ir...@be...> wrote: > > On 2015-03-28 17:31+0900 Hiroyasu Yasuda wrote: > >>> (2) pkg-config issue? >> >> I would like to send you a build result as attached filed: x00f.out. >> > > Hi Hiro: > > Please review my original reply where I asked you a question about the > pkg-config output on your system. I need that information to proceed > further. > > 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 > __________________________<x00f.out> > >> On Mar 28, 2015, at 02:18, Alan W. Irwin <ir...@be...> > wrote: > >> > >> On 2015-03-27 19:34+0900 Hiroyasu Yasuda wrote: > >> > >>> Hello all > >>> > >>> I’ve tried to build plplot with ifort on OS X as below > follows: > >>> > >>> export CC="gcc -O2" > >>> export CXX="g++ -O2" > >>> export FC=“ifort -O2" > >>> > >>> cmake -DCMAKE_INSTALL_PREFIX=~/Desktop/plplot_ifort > -DENABLE_tcl=OFF -DENABLE_tk=OFF -DENABLE_python=OFF > -DENABLE_qt=OFF -DENABLE_java=OFF -DENABLE_lua=OFF > -DENABLE_wxwidgets=OFF .. > >>> > >>> make > >>> > >>> make install > >>> > >> > >>> Actually processes of build and install are seemingly success > >> according to attached cmake.t, make.t and make.install.t. However when > >> build example codes of f95 in share/plplot5.10.0/examples/f95, build > >> process stopped with as below error messages: > >> > >>> x00f.f90(24): error #7002: Error in opening the compiled module file. > Check INCLUDE paths. [PLPLOT_STR] > >> > >>> If latest plplot support the ifort as fortran compilers, would you > like to tell me a way to build plplot with ifort? > >> > >> Hi Hiro: > >> > >> Thanks for your interest in PLplot. To answer your question, it > appears all went well with > >> the core build and install of PLplot, but the subsequent build of the > >> installed examples is giving you some trouble. > >> > >> > >> We actually have two separate build systems for installed examples. > >> The traditional one uses make and pkg-config to build the examples, > >> and we have also implemented a CMake-based build system for the > >> installed examples as well. If you changed directory to > >> $PREFIX/plplot5.10.0/examples/f95 (where $PREFIX is your install > >> prefix ~/Desktop/plplot_ifort) and ran the "make" command, then > >> you are using the traditional build system. Some relevant questions > >> in that case are (1) are the module files installed properly, and > >> (2) if so, what pkg-config issue is preventing those from being > >> seen by the ifort compiler? > >> > >> (1) Module files installed properly? > >> > >> On my (Debian stable) system, the relevant Fortran module files are > >> installed at $PREFIX/lib/fortran/modules/plplot/. For my gfortran case > >> those files are called > >> > >> software@raven> ls -l > >> total 576 > >> -rw-r--r-- 1 software software 246325 Mar 26 12:12 plf95demolib.mod > >> -rw-r--r-- 1 software software 243851 Mar 26 12:12 plplot.mod > >> -rw-r--r-- 1 software software 3394 Mar 26 12:12 plplot_graphics.mod > >> -rw-r--r-- 1 software software 6764 Mar 26 12:12 plplot_str.mod > >> -rw-r--r-- 1 software software 2896 Mar 26 12:12 plplot_strutils.mod > >> -rw-r--r-- 1 software software 1318 Mar 26 12:12 plplot_types.mod > >> -rw-r--r-- 1 software software 72858 Mar 26 12:12 plplotp.mod > >> > >> For ifort you should have equivalent files (probably with the same > >> names, but with very different content since ifort uses a different > >> module file format than gfortran) installed in that location for all > >> these modules. In fact, if you look at your make.install.t file, the > >> following lines appear > >> > >> -- Installing: > /Users/hiro/Desktop/plplot_ifort/lib/fortran/modules/plplot/plplot.mod > >> -- Installing: > /Users/hiro/Desktop/plplot_ifort/lib/fortran/modules/plplot/plplotp.mod > >> -- Installing: > /Users/hiro/Desktop/plplot_ifort/lib/fortran/modules/plplot/plplot_flt.mod > > >> -- Installing: > /Users/hiro/Desktop/plplot_ifort/lib/fortran/modules/plplot/plf95demolib.m > od > >> > >> I think you are likely fine, and the difference between the two > >> platforms is simply I am using the master tip version of PLplot (which > >> has more Fortran modules) while you are using the 5.10.0 version. > >> (By the way, PLplot-5.11.0 is coming soon based on the git master tip > >> version of PLplot.) > >> > >> (2) pkg-config issue? > >> > >> When you execute the "make" command above, that should automatically > invoke > >> pkg-config to find the relevant compile options for the ifort case. > >> > >> If you look carefully at the Makefile, the command it uses to find the > >> necessary compile flags to build one of the f95 examples is > >> > >> PKG_CONFIG_PATH=$PREFIX/lib/pkg-config pkgconfig --cflags plplot-f95 > >> > >> When I run that command here with appropriate $PREFIX, here are the > >> results: > >> > >> -I<PREFIX>/include/plplot -I<PREFIX>/lib/fortran/modules/plplot > >> > >> where the <PREFIX> result should be the same as $PREFIX. > >> > >> What are the results of that command there? > >> > >> Note the reference above to -I<PREFIX>/lib/fortran/modules/plplot > >> which your results should have as well. That is the compiler option > that > >> guarantees that gfortran (in my case) and ifort (in your case) finds > >> the relevant installed module files. > >> > >> If all appears to be well with that option, then please send the > >> Makefile located at $PREFIX/plplot5.10.0/examples/f95/Makefile > >> as well as the results from > >> > >> make x00f >& x00f.out > >> > > > > > > > >> in that directory. > >> > >> 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/ .´ ̄`. : (` : `. `´ : `・--´ |