Building Issues on BGL

Niall Moran nmoran at thphys.nuim.ie
Tue Oct 13 08:28:06 CDT 2009


Hi,

I am having issues compiling the latest version of PETSc on a Bluegene/ 
L machine. I am using the IBM compilers version
V1R3M3_420_2007-071023.

The error I am getting during compile is

...../petsc-3.0.0-p8/src/sys/viewer/impls/socket
"send.c", line 105.12: 1540-0274 (S) The name lookup for  
"gethostbyname" did not find a declaration.
"send.c", line 110.37: 1540-0251 (S) The "->" operator cannot be  
applied to the undefined class "struct hostent".
"send.c", line 110.48: 1540-0251 (S) The "->" operator cannot be  
applied to the undefined class "struct hostent".
"send.c", line 112.21: 1540-0251 (S) The "->" operator cannot be  
applied to the undefined class "struct hostent".
"send.c", line 115.21: 1540-0251 (S) The "->" operator cannot be  
applied to the undefined class "struct hostent".
"send.c", line 188.8: 1540-0274 (S) The name lookup for  
"gethostbyname" did not find a declaration.
"send.c", line 191.21: 1540-0251 (S) The "->" operator cannot be  
applied to the undefined class "struct hostent".
"send.c", line 197.34: 1540-0274 (S) The name lookup for  
"SO_REUSEADDR" did not find a declaration.
/usr/bin/ar: send.o: No such file or directory

The config file I am using is below. I have tried commenting out some  
of the variables defined in the petscconf.h but to no avail. The  
variables I tried were
PETSC_USE_SOCKET_VIEWER
PETSC_HAVE_SYS_SOCKET_H
PETSC_HAVE_GETHOSTBYNAME
PETSC_HAVE_SOCKET

I never encountered such issues with PETSc pre release 3. Any help is  
greatly appreciated.

Regards,

Niall.

configure_options = [
'--with-cc=mpixlc',
'--with-cxx=mpixlcxx',
'--with-fc=mpixlf90 -qnosave -qfixed=72',
'--with-mpi-dir=/bgl/BlueLight/ppcfloor/bglsys',  # required by BLACS  
to get mpif.h
'--with-clanguage=cxx',

'--with-is-color-value-type=short',
'--with-shared=0',
'-COPTFLAGS=-O3 -qbgl -qarch=440d -qtune=440 -qmaxmem=-1',
'-CXXOPTFLAGS=-O3 -qbgl -qarch=440d -qtune=440 -qmaxmem=-1',
'-FOPTFLAGS=-O3 -qbgl -qarch=440d -qtune=440 -qmaxmem=-1',
'-LIBS=-lc -lnss_files -lnss_dns -lresolv',
'--with-debugging=0',
'--with-scalar-type=complex',

# the following option gets automatically enabled on BGL/with IBM  
compilers.
# '--with-fortran-kernels=bgl'

'--with-batch=1',
'--with-memcmp-ok',
'--sizeof_char=1',
'--sizeof_void_p=4',
'--sizeof_short=2',
'--sizeof_int=4',
'--sizeof_long=4',
'--sizeof_size_t=4',
'--sizeof_long_long=8',
'--sizeof_float=4',
'--sizeof_double=8',
'--bits_per_byte=8',
'--sizeof_MPI_Comm=4',
'--sizeof_MPI_Fint=4',
'--have-mpi-long-double=1',

'--download-f-blas-lapack=1',
'--download-hypre=0',
'--download-spooles=0',
'--download-superlu=0',
'--download-parmetis=0',
'--download-superlu_dist=0',
'--download-blacs=1',
'--download-scalapack=1',
'--download-mumps=0'
]


More information about the petsc-users mailing list