|
From: Valery P. <pi...@is...> - 2006-05-15 05:21:18
|
After export F77=gfortran export FC=gfortran and
export F77FLAGS='-O3' export FCFLAGS='-O3'
I've get
/bin/sh ../../libtool --mode=compile gfortran -I. -O3 -c -o sfstubsf95.lo
sfstubsf95.f95
gfortran -I. -O3 -c sfstubsf95.f95 -fPIC -o .libs/sfstubsf95.o
In file sfstubsf95.f95:69
module plplot
1
In file sfstubs.f95:227
Included at sfstubsf95.f95:66
common /plplot/ tr
2
Error: Global name 'plplot' at (1) is already being used as a COMMON at (2)
make[4]: *** [sfstubsf95.lo] Ошибка 1
Then I replaced the corresponding name of common block in sfstubs.f95
from common /plplot/ to common /plplot1/.
After this compilation and checks for f95 goes smoothly.
The common blocks is obsolete in F90-95. I would recommend to use
"USE" .
This experiment was on altlinux where we have gfortran-4.1. I shall check my
dapper part this afternoon.
For intel fortran I've get the linkage error:
/bin/sh ../../libtool --mode=link ifort -I. -O3 -o
libplplotf95d.la -rpath /usr/local/lib -version-info
0:0:0 -rpath /usr/local/lib -no-undefined libplplotf95cd.la strutil.lo
configurable.lo sfstubsf95.lo
ifort -shared -nofor_main .libs/strutil.o .libs/configurable.o .libs/sfstubsf95.o -Wl,--rpath -Wl,/home/vv/RPM/RPMS/plplot/bindings/f95/.libs -Wl,--rpath -Wl,/usr/local/lib ./.libs/libplplotf95cd.so -Wl,-soname -Wl,libplplotf95d.so.0 -o .libs/libplplotf95d.so.0.0.0
IPO link: can not find ".libs/strutil.o"
ifort: error: problem during multi-file optimization compilation (code 1)
I don't know how to switch "ipo" option off.
best regards
Valery
|