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.mod 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 __________________________ ------------------------------------------------------------------------------ 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