[Pw_forum] Compilation Error - Cygwin - PGI 8.0.4 Compilers
Axel Kohlmeyer
akohlmey at cmm.chem.upenn.edu
Fri Mar 27 21:19:24 CET 2009
On Fri, 2009-03-27 at 13:15 -0700, snd2mra at yahoo.com wrote:
> Dear Giannozzi,
>
> Thanks for the reply. I tried commenting the 'stack.o' in the 'Makefile' present in clib/, without altering the contents of 'make.depend'. Now it proceeds all the way upto compiling 'pw.x', but could not find 'clib.a' and quit with the following error. Any suggestions will greatly be appreciated.
please read up on makefile syntax. you not only commented out
one object but all lines following with a continuation character '\'.
try just deleting it.
axel.
> Thank you.
>
> - Madan
>
> ----------------------------------------
> Madan Mithra .L.M
> Senior Research Fellow
> Dept.of Physics
> Indian Institute of Science
> Bangalore - 560 012
> INDIA
> .........................................
> e-mail : mit at physics.iisc.ernet.in
> : snd2mra at yahoo.com
> Phone : 91-80-22932313 (Lab)
> : 91-80-22932918 (Hostel-S 46)
> FAX : (080) 360 2602
> -----------------------------------------
>
>
> ---- Error -----
> Appending add_vuspsi_nc.o
> Appending add_vuspsi.o
> Appending add_efield.o
> Appending add_bfield.o
> Appending a2fmod.o
> ranlib libpw.a
> make[1]: *** No rule to make target `../clib/clib.a', needed by `pw.x'. Stop.
> make[1]: Leaving directory `/d/Comp/p404new/PW'
> make: *** [pw] Error 2
> ----------------------------------
>
>
> ----- Contents of the Makefile present in clib/ ----------
> # Makefile for clib
>
> include ../make.sys
>
> OBJS = \
> # stack.o \
> c_mkdir.o \
> cptimer.o \
> fft_stick.o \
> indici.o \
> memstat.o \
> qsort.o
>
> all : clib.a
>
> clib.a : $(OBJS)
> $(AR) $(ARFLAGS) $@ $?
> $(RANLIB) $@
>
> source :
> co -l $(OBJS:.o=.c)
>
> clean :
> - rm -f clib.a *.o *.mod *.i core*
>
> include make.depend
> -------------
>
>
> --- On Wed, 3/25/09, Paolo Giannozzi <giannozz at democritos.it> wrote:
>
> > From: Paolo Giannozzi <giannozz at democritos.it>
> > Subject: Re: [Pw_forum] Compilation Error - Cygwin - PGI 8.0.4 Compilers
> > To: snd2mra at yahoo.com, "PWSCF Forum" <pw_forum at pwscf.org>
> > Date: Wednesday, March 25, 2009, 2:06 AM
> > On Mar 24, 2009, at 19:58 , snd2mra at yahoo.com wrote:
> >
> > > checking for dummy main to link with Fortran
> > libraries... unknown
> > > configure: error: linking to Fortran libraries from C
> > fails
> >
> > in the cvs version you may try "configure
> > --disable-check"
> >
> > > PGC-F-0206-Can't find include file sys/resource.h
> > (stack.c: 11)
> >
> >
> > clib/stack.c is used only by the Intel compiler, so you can
> > just
> > comment the routine stack.c
> >
> > P.
> > ---
> > Paolo Giannozzi, Democritos and University of Udine, Italy
>
>
>
>
> _______________________________________________
> Pw_forum mailing list
> Pw_forum at pwscf.org
> http://www.democritos.it/mailman/listinfo/pw_forum
--
=======================================================================
Axel Kohlmeyer akohlmey at cmm.chem.upenn.edu http://www.cmm.upenn.edu
Center for Molecular Modeling -- University of Pennsylvania
Department of Chemistry, 231 S.34th Street, Philadelphia, PA 19104-6323
tel: 1-215-898-1582, fax: 1-215-573-6233, office-tel: 1-215-898-5425
=======================================================================
If you make something idiot-proof, the universe creates a better idiot.
More information about the users
mailing list