Re: Compiling Amber7 for linux

From: <caldwell.heimdal.compchem.ucsf.edu>
Date: Fri, 14 Mar 2003 08:59:07 -0800 (PST)

Make sure you have:

source /opt/intel/compiler70/ia32/bin/ifcvars.csh

(or whatever your ifc release is)

in your .cshrc You are missing the "directions"
to the intel libraries.

jim


On Fri, 14 Mar 2003, Miguel de Federico wrote:

> I want to compile Amber7 on a dual Intel Xeon server with Red Hat 8.0
> linux. Altough in future I would like to compile for parallel operation,
> for the moment I'm trying for one processor.
>
> I have installed intel fortran compiler 7.0 and I have used the
> Machine.ifc file provided with amber 7.
>
> Then I have typed "make install", and I have got a very long error
> message. Could anybody help me about this?
>
> Thank you in advance,
>
>
> Miguel.
>
>
> Here is the error:
> ---------------------------
>
>
> [root.qorpc1 src]# make install
> mkdir ../exe
> mkdir: cannot create directory `../exe': File exists
> make: [install] Error 1 (ignored)
> cd lib; make install
> make[1]: Entering directory `/usr/local/amber7/src/lib'
> ../Compile L0 -P -DNEWPARM nxtsec.f
> cat nxtsec.f | /lib/cpp -traditional -P -DNEWPARM -DLinux
> -DMEM_ALLOC > _nxtsec_.f
> ifc -c -w -O2 _nxtsec_.f
> external subroutine NXTSEC
> external function NNBCHR
>
> 363 Lines Compiled
> ../Compile LOAD -o new2oldparm new2oldparm.o nxtsec.o
> ifc -o new2oldparm new2oldparm.o nxtsec.o -lPEPCF90
> /usr/lib/crt1.o: In function `_start':
> /usr/lib/crt1.o(.text+0x18): undefined reference to `main'
> new2oldparm.o: In function `MAIN__':
> new2oldparm.o(.text+0x63): undefined reference to `s_rsfe'
> new2oldparm.o(.text+0x7a): undefined reference to `do_fio'
> new2oldparm.o(.text+0x88): undefined reference to `e_rsfe'
> new2oldparm.o(.text+0x95): undefined reference to `s_wsfe'
> new2oldparm.o(.text+0xba): undefined reference to `do_fio'
> new2oldparm.o(.text+0xc8): undefined reference to `e_wsfe'
> new2oldparm.o(.text+0x134): undefined reference to `s_rsfe'
> new2oldparm.o(.text+0x14b): undefined reference to `do_fio'
> new2oldparm.o(.text+0x162): undefined reference to `do_fio'
> new2oldparm.o(.text+0x179): undefined reference to `do_fio'
> new2oldparm.o(.text+0x190): undefined reference to `do_fio'
> new2oldparm.o(.text+0x1a7): undefined reference to `do_fio'
> new2oldparm.o(.text+0x1be): more undefined references to `do_fio' follow
>
> new2oldparm.o: In function `MAIN__':
> new2oldparm.o(.text+0x402): undefined reference to `e_rsfe'
> new2oldparm.o(.text+0x40e): undefined reference to `s_wsfe'
> new2oldparm.o(.text+0x425): undefined reference to `do_fio'
> new2oldparm.o(.text+0x43c): undefined reference to `do_fio'
> new2oldparm.o(.text+0x453): undefined reference to `do_fio'
> new2oldparm.o(.text+0x46a): undefined reference to `do_fio'
> new2oldparm.o(.text+0x481): undefined reference to `do_fio'
> new2oldparm.o(.text+0x498): more undefined references to `do_fio' follow
>
> new2oldparm.o: In function `MAIN__':
> new2oldparm.o(.text+0x6c7): undefined reference to `e_wsfe'
> new2oldparm.o(.text+0x7f0): undefined reference to `s_rsfe'
> new2oldparm.o(.text+0x810): undefined reference to `do_fio'
> new2oldparm.o(.text+0x81e): undefined reference to `e_rsfe'
> new2oldparm.o(.text+0x82b): undefined reference to `s_wsfe'
> new2oldparm.o(.text+0x84b): undefined reference to `do_fio'
> new2oldparm.o(.text+0x859): undefined reference to `e_wsfe'
> new2oldparm.o(.text+0x8c5): undefined reference to `s_rsfe'
> new2oldparm.o(.text+0x8e5): undefined reference to `do_fio'
> new2oldparm.o(.text+0x8f3): undefined reference to `e_rsfe'
> new2oldparm.o(.text+0x900): undefined reference to `s_wsfe'
> new2oldparm.o(.text+0x920): undefined reference to `do_fio'
> ...
> ...
> ...
> new2oldparm.o(.text+0x3976): undefined reference to `do_fio'
> new2oldparm.o(.text+0x397b): undefined reference to `e_wsfe'
> new2oldparm.o(.text+0x398c): undefined reference to `s_wsfe'
> new2oldparm.o(.text+0x3991): undefined reference to `e_wsfe'
> new2oldparm.o(.text+0x39a9): undefined reference to `s_wsfe'
> make[1]: *** [new2oldparm] Error 1
> make[1]: Leaving directory `/usr/local/amber7/src/lib'
> make: *** [install] Error 2
>
>

-- 
----------------------------------------------------------------------------
NOTE NEW MAILING ADDRESS & FAX NUMBER:
James W. Caldwell                         (voice) 415-476-8603
Department of Pharmaceutical Chemistry    (fax)   415-514-3866  
UCSF Box 2240                             (email) caldwell.heimdal.ucsf.edu
600 16th Street
University of California
San Francisco, CA 94143-2240
----------------------------------------------------------------------------
Received on Fri Mar 14 2003 - 17:53:01 PST
Custom Search