[petsc-users] configure cannot find a c preprocessor

Santiago Andres Triana repepo at gmail.com
Wed Dec 20 17:17:58 CST 2017


thanks Satish,

did not work unfortunately, configure.log attached. Here's the output:

hpca-login:~/petsc-3.8.3> ./configure --with-cc=gcc --with-fc=gfortran
--with-cxx=g++ --with-mpi-include=/opt/sgi/mpt/mpt-2.12/include
--with-mpi-lib="-L/opt/sgi/mpt/mpt-2.12/lib -lmpi -lpthread
/usr/lib64/libcpuset.so.1 /usr/lib64/libbitmask.so.1"
===============================================================================
             Configuring PETSc to compile on your system

===============================================================================
TESTING: check from
config.libraries(config/BuildSystem/config/libraries.py:158)

*******************************************************************************
         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for
details):
-------------------------------------------------------------------------------
--with-mpi-lib=['-L/opt/sgi/mpt/mpt-2.12/lib', '-lmpi', '-lpthread',
'/usr/lib64/libcpuset.so.1', '/usr/lib64/libbitmask.so.1'] and
--with-mpi-include=['/opt/sgi/mpt/mpt-2.12/include'] did not work
*******************************************************************************

On Thu, Dec 21, 2017 at 12:07 AM, Satish Balay <balay at mcs.anl.gov> wrote:

> Its strange compiler.
>
> You can try:
>
> ./configure --with-cc=gcc --with-fc=gfortran --with-cxx=g++
> --with-mpi-include=/opt/sgi/mpt/mpt-2.12/include
> --with-mpi-lib="-L/opt/sgi/mpt/mpt-2.12/lib -lmpi -lpthread
> /usr/lib64/libcpuset.so.1 /usr/lib64/libbitmask.so.1"
>
> Satish
>
> On Wed, 20 Dec 2017, Santiago Andres Triana wrote:
>
> > This is what I get:
> >
> > hpca-login:~> mpicc -show
> > gcc -I/opt/sgi/mpt/mpt-2.12/include -L/opt/sgi/mpt/mpt-2.12/lib -lmpi
> > -lpthread /usr/lib64/libcpuset.so.1 /usr/lib64/libbitmask.so.1
> >
> > On Wed, Dec 20, 2017 at 11:59 PM, Satish Balay <balay at mcs.anl.gov>
> wrote:
> >
> > > >>>
> > > Executing: mpicc -E  -I/dev/shm/pbs.3111462.hpc-
> pbs/petsc-fdYfuH/config.setCompilers
> > > /dev/shm/pbs.3111462.hpc-pbs/petsc-fdYfuH/config.
> setCompilers/conftest.c
> > > stderr:
> > > gcc: warning: /usr/lib64/libcpuset.so.1: linker input file unused
> because
> > > linking not done
> > > gcc: warning: /usr/lib64/libbitmask.so.1: linker input file unused
> because
> > > linking not done
> > > <<<<
> > >
> > > Looks like your mpicc is printing this verbose thing on stdout [why is
> > > it doing a link check during preprocesing?] - thus confusing PETSc
> > > configure.
> > >
> > > Workarround is to fix this compiler not to print such messages. Or use
> > > different compilers..
> > >
> > > What do you have for:
> > >
> > > mpicc -show
> > >
> > >
> > > Satish
> > >
> > > On Wed, 20 Dec 2017, Santiago Andres Triana wrote:
> > >
> > > > Dear petsc-users,
> > > >
> > > > I'm trying to install petsc in a cluster using SGI's MPT. The mpicc
> > > > compiler is in the search path. The configure command is:
> > > >
> > > > ./configure --with-scalar-type=complex --with-mumps=1
> --download-mumps
> > > > --download-parmetis --download-metis --download-scalapack
> > > >
> > > > However, this leads to an error (configure.log attached):
> > > >
> > > > ============================================================
> > > ===================
> > > >              Configuring PETSc to compile on your system
> > > >
> > > > ============================================================
> > > ===================
> > > > TESTING: checkCPreprocessor from
> > > > config.setCompilers(config/BuildSystem/config/setCompilers.py:599)
> > > >
> > > > ************************************************************
> > > *******************
> > > >          UNABLE to CONFIGURE with GIVEN OPTIONS    (see
> configure.log for
> > > > details):
> > > > ------------------------------------------------------------
> > > -------------------
> > > > Cannot find a C preprocessor
> > > > ************************************************************
> > > *******************
> > > >
> > > > The configure.log says something about cpp32, here's the excerpt:
> > > >
> > > > Possible ERROR while running preprocessor: exit code 256
> > > > stderr:
> > > > gcc: error: cpp32: No such file or directory
> > > >
> > > >
> > > > Any ideas of what is going wrong? any help or comments are highly
> > > > appreciated. Thanks in advance!
> > > >
> > > > Andres
> > > >
> > >
> > >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20171221/aa689bc6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.log
Type: application/octet-stream
Size: 1268380 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20171221/aa689bc6/attachment-0001.obj>


More information about the petsc-users mailing list