From: Alan W. I. <ir...@be...> - 2006-05-14 17:58:48
|
On 2006-05-14 16:38+0900 Valery Pipin wrote: > Hello Alan, > > I've tried to build plplot with f95 support from cvs distribution. > I've got error for building f95 libraries: > ................ > gcc -shared .libs/sc3d.o .libs/sccont.o .libs/scstubs.o -Wl,--rpath -Wl,/home2/vv/RPM/BUILD/plplot/src/.libs -Wl,--rpath -Wl,/usr/local/lib ../../src/.libs/libplplotd.so -mieee-fp -Wl,-soname -Wl,libplplotf95cd.so.0 -o .libs/libplplotf95cd.so.0.0.0 > (cd .libs && rm -f libplplotf95cd.so.0 && ln -s libplplotf95cd.so.0.0.0 > libplplotf95cd.so.0) > (cd .libs && rm -f libplplotf95cd.so && ln -s libplplotf95cd.so.0.0.0 > libplplotf95cd.so) > ar cru .libs/libplplotf95cd.a sc3d.o sccont.o scstubs.o > ranlib .libs/libplplotf95cd.a > creating libplplotf95cd.la > (cd .libs && rm -f libplplotf95cd.la && ln -s ../libplplotf95cd.la > libplplotf95cd.la) > /bin/sh ../../libtool --mode=compile f95 -I. -g -O2 -c -o strutil.lo > strutil.f95 > libtool: compile: unable to infer tagged configuration > libtool: compile: specify a tag with `--tag' > make[4]: *** [strutil.lo] Error 1 > make[4]: Leaving directory `/home2/vv/RPM/BUILD/plplot/bindings/f95' > make[3]: *** [all] Error 2 > make[3]: Leaving directory `/home2/vv/RPM/BUILD/plplot/bindings/f95' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/home2/vv/RPM/BUILD/plplot/bindings' > > Something is wrong with libtool. I've get this error on altlinux and on > ubuntu-dapper as well. So far, I am the only person that has been successful with it. There are lots more reports like yours on plplot-devel. However, because of my success we hope to find a small tweak that will allow building the f95 interface on more than just my platform. My platform (Ubuntu Breezy with gfortran-4.0.1) had no g77 installed. (g77 tends to confuse issues with gfortran.) To emulate that, be sure to set the F77 and F95 environment variables to be the same as FC and FCFLAGS. (Those variables are reported in config.summary). Also, be sure that gfortran is installed. (/usr/bin/f95 symlinks to gfortran on my system.) My experience is that the gfortran compiler is fine for compiling both our f77 and f95 interfaces. Finally, you might want to try the --tag=F77 option for the above libtool command to see if that variation works by hand. I will be most interested to hear of any tweak success/failures to follow what happens on my platform, i.e., both the f77 and f95 interfaces are built by gfortran with no problems. 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); PLplot scientific plotting software package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |