[Pw_forum] Compilation Error - Cygwin - PGI 8.0.4 Compilers

yccheng.nju yccheng.nju at gmail.com
Wed Mar 25 04:02:03 CET 2009


 I have successfully compile QE4.4 in cygwin using gfortran compiler.  You can  use gfortran compiler as an alternative.

------------------				 
yccheng.nju
2009-03-25

-------------------------------------------------------------
发件人:snd2mra
发送日期:2009-03-25 03:05:32
收件人:pw_forum
抄送:
主题:[Pw_forum] Compilation Error - Cygwin - PGI 8.0.4 Compilers


Hello,

	I am trying to compile pwscf 4.0.4 in CYGWIN using PGI compilers (Ver. 8.0.4). The Configure script failed and I had to create a 'make.sys' and compilation was successful for iotk, iotk.x and iotk_print_kinds.x, but eventually fails. The error are given below. Could someone please help me out to figure out the problem. I was able to compile and use pwscf in many architectures like ia32-ifort, ia64-ifort, IBM PowerPC 4 - AIX, IBM PowerPC 5 - Linux etc except CYGWIN.

Thank you.

- Madan

                         ----------------------------------------
                         Madan Mithra .L.M
                         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
                         -----------------------------------------

-----Configure Script------

./configure ARCH=cygwin --disable-parallel F90=pgf95 F77=pgf95 CC=pgcc "CPP=pgcc -P"

The Error is:

checking whether make sets $(MAKE)... yes
checking whether Fortran files must be preprocessed... yes
checking how to get verbose linking output from pgf95... -v
checking for Fortran libraries of pgf95...  -libpath:c:\prog\PGI/win32/8.0-4/lib
checking for dummy main to link with Fortran libraries... unknown
configure: error: linking to Fortran libraries from C fails

------- make.sys ------


.SUFFIXES :
.SUFFIXES : .o .c .f .f90


.f90.o:
	$(CPP) $(CPPFLAGS) $< -o $*.F90 
	$(F90) $(F90FLAGS) -c $*.F90 -o $*.o


.f.o:
	$(F77) $(FFLAGS) -c $<

.c.o:
	$(CC) $(CFLAGS)  -c $<


DFLAGS         =  -D__LINUX -D__PGI -D__FFTW -D__USE_INTERNAL_FFTW
FDFLAGS        = $(DFLAGS)

IFLAGS         = -I../include -I. -I/C/prog/PGI/win32/8.0-4/include/CC \
                 -I/C/prog/PGI/win32/8.0-4/include
                 

MODFLAGS       = -I./  -I../Modules  -I../iotk/src \
                 -I../PW  -I../PH

F90           = pgf95
CC             = pgcc
F77            = pgf77

CPP            = pgcc -P
CPPFLAGS       =  $(DFLAGS) $(IFLAGS)


CFLAGS         = -fast $(DFLAGS) $(IFLAGS) $(MODFLAGS) $(FFLAGS)
F90FLAGS       = -g $(FFLAGS) $(FDFLAGS) $(IFLAGS) $(MODFLAGS)
FFLAGS         = -O

FFLAGS_NOOPT   = -O0


LD             = pgf95
LDFLAGS        = 
LD_LIBS        =

BLAS_LIBS      = ../flib/blas.a

LAPACK_LIBS    = ../flib/lapack.a

FFT_LIBS       = 

MPI_LIBS       = 

MASS_LIBS      = 

PGPLOT_LIBS    = 

AR             = ar
ARFLAGS        = ruv
ARFLAGS_DYNAMIC= ruv

RANLIB         = ranlib

LIBOBJS        = ../flib/ptools.a ../flib/flib.a ../clib/clib.a ../iotk/src/libiotk.a
LIBS           = $(LAPACK_LIBS) $(BLAS_LIBS) $(FFT_LIBS) $(MPI_LIBS) $(MASS_LIBS) $(PGPLOT_LIBS) $(LD_LIBS)

--------------- Error--------

make[1]: Leaving directory `/d/Comp/p404/Modules'
( cd clib ; if test "make" = "" ; then make - --unix TLDEPS= all ; \
else make - --unix TLDEPS= all ; fi )
make[1]: Entering directory `/d/Comp/p404/clib'
pgcc -fast -D__LINUX -D__PGI -D__FFTW -D__USE_INTERNAL_FFTW -I../include -I. -I/C/prog/PGI/win32/8.0-4/include/CC -I/C/prog/PGI/win32/8.0-4/include -I./  -I../Modules  -I../iotk/src -I../PW  -I../PH -O  -c stack.c
PGC-F-0206-Can't find include file sys/resource.h (stack.c: 11)
PGC/x86 Windows 8.0-4: compilation aborted
make[1]: *** [stack.o] Error 2
make[1]: Leaving directory `/d/Comp/p404/clib'
make: *** [libs] Error 2





      
_______________________________________________
Pw_forum mailing list
Pw_forum at pwscf.org
http://www.democritos.it/mailman/listinfo/pw_forum


More information about the users mailing list