Bugs item #3305042, was opened at 2011-05-20 21:05
Message generated for change (Tracker Item Submitted) made by andrew-n
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=102915&aid=3305042&group_id=2915

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: andrewn (andrew-n)
Assigned to: Nobody/Anonymous (nobody)
Summary: f95  examples do not compile with ifort

Initial Comment:

I installed  plplot-5.9.7  from tarball as per instructions, but the f95 
examples 
will not compile with ifort 12.0.3. 

The f95 examples do compile and run OK if instead of ifort I use gfortran
(by using "setenv FC gfortran").

The exact sequence of commands I used for the install are:

setenv FC "ifort -assume byterecl"
cd ~/plplot
tar xf plplot-5.9.7.tar.gz
mkdir build_dir
mkdir install_dir
cd build_dir
cmake -DCMAKE_INSTALL_PREFIX=~/plplot/install_dir ../plplot-5.9.7 >& cmake.out
less cmake.out
make >& make.out
less make.out
make install >& make_install.out
less make_install.out


[BTW: Documentation at  
http://www.miscdebris.net/plplot_wiki/index.php?title=Additional_notes_for_ifort_users
is incorrect. The ifort option is specified as "ifort -assume byterecl" not 
"ifort --assume byterecl".
That is, a single "-" not "--".]

====================================================================
The ifort compile problem for f95 examples:

> cd ~/plplot/install_dir/share/plplot5.9.7/examples/f95

> make
/opt/intel/composerxe-2011.3.174/bin/intel64/ifort  x01f.f90 -o x01f -Wl,-rpath 
-Wl,/home/andrewn/plplot/install_dir/lib 
`PKG_CONFIG_PATH=/home/andrewn/plplot/install_dir/lib/pkgconfig pkg-config 
--cflags --libs plplotd-f95`
x01f.f90(23): error #7002: Error in opening the compiled module file.  Check 
INCLUDE paths.   [PLPLOT_TYPES]
   use plplot, PI => PL_PI
-------^
x01f.f90(32): error #6404: This name does not have a type, and must have an 
explicit type.   [PL_PARSE_FULL]
   call plparseopts(PL_PARSE_FULL)
--------------------^
x01f.f90(23): error #6581: Unresolved rename.   [PI]
   use plplot, PI => PL_PI
---------------^
x01f.f90(189): error #6498: The use-name for this local-name is not defined.   
[PI]
     y(i) = sin( x(i) * PI/180.0_plflt )
------------------------^
compilation aborted for x01f.f90 (code 1)
make: *** [x01f] Error 1


====================================================================
Further info that may be of use:

The f77 examples compile and run OK with ifort.
 
The files  
             cmake.out, 
             make.out, 
             make_install.out  
are attached as 
> cat cmake.out make.out make_install.out > output

I think the includes and libs used in  
   ~/plplot/install_dir/share/plplot5.9.7/examples/f95/Makefile  
expand with pkg-config as follows:

> setenv PKG_CONFIG_PATH /home/andrewn/plplot/install_dir/lib/pkgconfig 
> pkg-config --cflags --libs plplotd-f95
-I/home/andrewn/plplot/install_dir/include/plplot 
-I/home/andrewn/plplot/install_dir/lib/fortran/modules/plplot  
-L/home/andrewn/plplot/install_dir/lib -lplplotf95d -lplplotf95cd -lplplotd 
-lltdl -ldl -lm -lcsirocsa -lcsironn -lqhull -lqsastime


> cat /etc/redhat-release
Scientific Linux release 6.0 (Carbon)

> cat /proc/version
Linux version 2.6.32-71.24.1.el6.x86_64 (mockbu...@sl6.fnal.gov) (gcc version 
4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Fri Apr 8 01:07:23 CDT 2011



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=102915&aid=3305042&group_id=2915

------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to