Sebastien LeRoux <[EMAIL PROTECTED]> writes:

jyu a écrit :

Dear Siesta developers and users:
Recently I changed my linux system Redhat 9.0 with kernel 2.4.20-8smp.
When I compile the siesta package 1.3fp using intel f90 complilers
8.1. I met the problem as follows:
m2c -o alloc.o alloc.mod
make:m2c:command not found
make: *** [alloc.o] error 127

Dear Jian Yu, you need to make sure the program "m2c" is installed on
your system and,
if so, make sure that the "m2c" directory is in your PATH environment
variable so make can find it.

Just a brief correction (and explanation to accompany my previous
email) - no you don't. m2c is the compiler for
Modula-2; unfortunately GNU make by default assumes that any
filenames ending in .mod (as F90 modules are wont to do) are
Modula-2 source files, and tries to compile them as such (and,
clearly fails, since a M2 compiler is not ususally installed.

The workaround is to clear make's default suffix list, and replace
it only with those suffixes necessary for siesta's compilation;
thus the following two lines at the top of the Makefile:

.SUFFIXES:
.SUFFIXES: .f .F .o .a .f90 .F90

Toby

--
Dr. Toby White, Dept. of Earth Sciences, Downing Street, Cambridge CB2 3EQ. UK
Email: <[EMAIL PROTECTED]>
Tel: +44 1223 333409
Fax: +44 1223 333450

Reply via email to