Building Issues on BGL

Matthew Knepley knepley at mcs.anl.gov
Tue Oct 13 08:48:28 CDT 2009


1) We always need configure.log

2) If you remove PETSC_USE_SOCKET_VIEWER, nothing in that directory will be
built

  Matt

On Tue, Oct 13, 2009 at 8:28 AM, Niall Moran <nmoran at thphys.nuim.ie> wrote:

> 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'
> ]
>



-- 
What most experimenters take for granted before they begin their experiments
is infinitely more interesting than any results to which their experiments
lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20091013/129ec621/attachment.htm>


More information about the petsc-users mailing list