From: Alan W. I. <ir...@be...> - 2007-08-28 16:18:03
|
On 2007-08-28 13:44+0200 Michael M. Tung wrote: >> Date: Mon, 27 Aug 2007 09:19:30 -0700 (PDT) >> [...] I think you want full control over your fortran >> compiler rather than the default g77 one picked by cmake. To give you that >> control, use the FC environment variable (where you can specify the fortran >> command and associated options) before cmake is invoked in an empty >> directory for the first time (assuming you are doing an out-of-source >> build). e.g., >> >> export FC='f95 -O2' >> cmake -D options <path to PLplot source> >> make >> make install >> >> This is documented at http://www.miscdebris.net/plplot_wiki >> (look for "1.2.1.2 (Optional) set environment variables to specify the >> compilers and compiler flags"), but I can see why you missed it since there >> is a lot of information to absorb from our wiki when encountering cmake >> for the first time. >> >> If you run into any trouble with the above scenario for deciding your >> fortran compiler, please post to the list the actual export and cmake >> commands you used and the complete output from the cmake command (which >> will >> help us to diagnose the problem). >> >> Alan > > Dear Alan: > > I also reply to your message on this list, in case > other people face similar questions. > > I had been trying setting the F95 command before, in > two ways, exporting from the command line (as you > suggested in the last message) and from within the > ccmake menu. In both cases cmake is reconfiguring > and setting finally ENABLE_f95 to OFF. I tried to > force ENABLE_f95 ON desperately, but ccmake/cmake > doesn't seem to like it! Hi Michael: It sounds like you have a stale cache problem from attempting to re-run after the first error is encountered. ccmake also has caching issues that obfuscate problems. Therefore, please start again in an empty build tree following the directions above (export; cmake [not ccmake]; make; etc.). If the problem persists, we can only help you further if you give us complete specifics (i.e., exact export and cmake commands, full cmake output from the time you run cmake in an empty build tree, full make output). My personal experience is setting the FC environment variable "just works" for systems which have either g77 or gfortran. Other developers here have reported good success with a number of additional fortran compilers. Thus, whatever the issue you are having, I feel confident we can solve it if you give us the requested specifics. 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 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 __________________________ |