[petsc-users] Error during compiling my own code

Matthew Knepley knepley at gmail.com
Fri Sep 23 10:10:54 CDT 2016


On Fri, Sep 23, 2016 at 10:08 AM, Melanie Li Sing How <ml2448 at cornell.edu>
wrote:

> Ok Thank you. I only have include “mpif.h” in both modules that are
> conflicting but thank you for your help.
>

Obviously from the message, you have a USE statement that eventually uses
mpi.

   Matt


> On Sep 23, 2016, at 11:06 AM, Matthew Knepley <knepley at gmail.com> wrote:
>
> On Fri, Sep 23, 2016 at 10:01 AM, Melanie Li Sing How <ml2448 at cornell.edu>
>  wrote:
>
>> make[1]: Entering directory `/glade/u/home/lisingh/hippstr2.0/src'
>> make[2]: Entering directory `/glade/u/home/lisingh/hippstr
>> 2.0/src/library'
>> make[2]: `/glade/u/home/lisingh/hippstr2.0/lib/liblibrary.a' is up to
>> date.
>> make[2]: Leaving directory `/glade/u/home/lisingh/hippstr2.0/src/library'
>> make[2]: Entering directory `/glade/u/home/lisingh/hippstr2.0/src/p3dfft'
>> make[2]: `/glade/u/home/lisingh/hippstr2.0/lib/libp3dfft.a' is up to
>> date.
>> make[2]: Leaving directory `/glade/u/home/lisingh/hippstr2.0/src/p3dfft'
>> make[2]: Entering directory `/glade/u/home/lisingh/hippstr2.0/src/config'
>> make[2]: `/glade/u/home/lisingh/hippstr2.0/lib/libconfig.a' is up to
>> date.
>> make[2]: Leaving directory `/glade/u/home/lisingh/hippstr2.0/src/config'
>> make[2]: Entering directory `/glade/u/home/lisingh/hippstr2.0/src/fluid'
>> make[2]: `/glade/u/home/lisingh/hippstr2.0/lib/libfluid.a' is up to date.
>> make[2]: Leaving directory `/glade/u/home/lisingh/hippstr2.0/src/fluid'
>> make[2]: Entering directory `/glade/u/home/lisingh/hippstr
>> 2.0/src/particles'
>> mpif90 -O2 -ip   -I/glade/u/home/lisingh/hippstr2.0/mod  -c
>> particles_global.f90 -o /glade/u/home/lisingh/hippstr2.0/obj/particles_global.o
>> -module /glade/u/home/lisingh/hippstr2.0/mod
>> /opt/ibmhpc/pecurrent/mpich2/intel/include64/mpif.h(9): error #6401: The
>> attributes of this name conflict with those made accessible by a USE
>> statement.   [MPI_SOURCE]
>>        INTEGER MPI_SOURCE, MPI_TAG, MPI_ERROR
>> ---------------^
>> /opt/ibmhpc/pecurrent/mpich2/intel/include64/mpif.h(9): error #6401: The
>> attributes of this name conflict with those made accessible by a USE
>> statement.   [MPI_TAG]
>>        INTEGER MPI_SOURCE, MPI_TAG, MPI_ERROR
>> ---------------------------^
>> /opt/ibmhpc/pecurrent/mpich2/intel/include64/mpif.h(9): error #6401: The
>> attributes of this name conflict with those made accessible by a USE
>> statement.   [MPI_ERROR]
>>        INTEGER MPI_SOURCE, MPI_TAG, MPI_ERROR
>> ------------------------------------^
>> /opt/ibmhpc/pecurrent/mpich2/intel/include64/mpif.h(11): error #6401:
>> The attributes of this name conflict with those made accessible by a USE
>> statement.   [MPI_STATUS_SIZE]
>>        INTEGER MPI_STATUS_SIZE
>> ---------------^
>> /opt/ibmhpc/pecurrent/mpich2/intel/include64/mpif.h(13): error #6401:
>> The attributes of this name conflict with those made accessible by a USE
>> statement.   [MPI_STATUS_IGNORE]
>>        INTEGER MPI_STATUS_IGNORE(MPI_STATUS_SIZE)
>> ---------------^
>> /opt/ibmhpc/pecurrent/mpich2/intel/include64/mpif.h(14): error #6401:
>> The attributes of this name conflict with those made accessible by a USE
>> statement.   [MPI_STATUSES_IGNORE]
>>        INTEGER MPI_STATUSES_IGNORE(MPI_STATUS_SIZE,1)
>> ---------------^
>> /opt/ibmhpc/pecurrent/mpich2/intel/include64/mpif.h(15): error #6401:
>> The attributes of this name conflict with those made accessible by a USE
>> statement.   [MPI_ERRCODES_IGNORE]
>>        INTEGER MPI_ERRCODES_IGNORE(1)
>> ---------------^
>> /opt/ibmhpc/pecurrent/mpich2/intel/include64/mpif.h(16): error #6401:
>> The attributes of this name conflict with those made accessible by a USE
>> statement.   [MPI_ARGVS_NULL]
>>        CHARACTER*1 MPI_ARGVS_NULL(1,1)
>> -------------------^
>> /opt/ibmhpc/pecurrent/mpich2/intel/include64/mpif.h(17): error #6401:
>> The attributes of this name conflict with those made accessible by a USE
>> statement.   [MPI_ARGV_NULL]
>>        CHARACTER*1 MPI_ARGV_NULL(1)
>> -------------------^
>> /opt/ibmhpc/pecurrent/mpich2/intel/include64/mpif.h(18): error #6401:
>> The attributes of this name conflict with those made accessible by a USE
>> statement.   [MPI_SUCCESS]
>>        INTEGER MPI_SUCCESS
>> ---------------^
>> /opt/ibmhpc/pecurrent/mpich2/intel/include64/mpif.h(20): error #6401:
>> The attributes of this name conflict with those made accessible by a USE
>> statement.   [MPI_ERR_OTHER]
>>        INTEGER MPI_ERR_OTHER
>> ---------------^
>> /opt/ibmhpc/pecurrent/mpich2/intel/include64/mpif.h(22): error #6401:
>> The attributes of this name conflict with those made accessible by a USE
>> statement.   [MPI_ERR_COUNT]
>>        INTEGER MPI_ERR_COUNT
>> ---------------^
>> /opt/ibmhpc/pecurrent/mpich2/intel/include64/mpif.h(24): error #6401:
>> The attributes of this name conflict with those made accessible by a USE
>> statement.   [MPI_ERR_SPAWN]
>>        INTEGER MPI_ERR_SPAWN
>> ---------------^
>> /opt/ibmhpc/pecurrent/mpich2/intel/include64/mpif.h(26): error #6401:
>> The attributes of this name conflict with those made accessible by a USE
>> statement.   [MPI_ERR_LOCKTYPE]
>>        INTEGER MPI_ERR_LOCKTYPE
>> ---------------^
>> /opt/ibmhpc/pecurrent/mpich2/intel/include64/mpif.h(28): error #6401:
>> The attributes of this name conflict with those made accessible by a USE
>> statement.   [MPI_ERR_OP]
>>        INTEGER MPI_ERR_OP
>> ---------------^
>> /opt/ibmhpc/pecurrent/mpich2/intel/include64/mpif.h(30): error #6401:
>> The attributes of this name conflict with those made accessible by a USE
>> statement.   [MPI_ERR_DUP_DATAREP]
>>        INTEGER MPI_ERR_DUP_DATAREP
>> ---------------^
>> /opt/ibmhpc/pecurrent/mpich2/intel/include64/mpif.h(32): error #6401:
>> The attributes of this name conflict with those made accessible by a USE
>> statement.   [MPI_ERR_UNSUPPORTED_DATAREP]
>>        INTEGER MPI_ERR_UNSUPPORTED_DATAREP
>> ---------------^
>> /opt/ibmhpc/pecurrent/mpich2/intel/include64/mpif.h(34): error #6401:
>> The attributes of this name conflict with those made accessible by a USE
>> statement.   [MPI_ERR_TRUNCATE]
>>        INTEGER MPI_ERR_TRUNCATE
>> ---------------^
>> /opt/ibmhpc/pecurrent/mpich2/intel/include64/mpif.h(36): error #6401:
>> The attributes of this name conflict with those made accessible by a USE
>> statement.   [MPI_ERR_INFO_NOKEY]
>>        INTEGER MPI_ERR_INFO_NOKEY
>> ---------------^
>> /opt/ibmhpc/pecurrent/mpich2/intel/include64/mpif.h(38): error #6401:
>> The attributes of this name conflict with those made accessible by a USE
>> statement.   [MPI_ERR_ASSERT]
>>        INTEGER MPI_ERR_ASSERT
>> ---------------^
>> /opt/ibmhpc/pecurrent/mpich2/intel/include64/mpif.h(40): error #6401:
>> The attributes of this name conflict with those made accessible by a USE
>> statement.   [MPI_ERR_FILE_EXISTS]
>>        INTEGER MPI_ERR_FILE_EXISTS
>> ---------------^
>> /opt/ibmhpc/pecurrent/mpich2/intel/include64/mpif.h(42): error #6401:
>> The attributes of this name conflict with those made accessible by a USE
>> statement.   [MPI_ERR_PENDING]
>>        INTEGER MPI_ERR_PENDING
>> ---------------^
>> /opt/ibmhpc/pecurrent/mpich2/intel/include64/mpif.h(44): error #6401:
>> The attributes of this name conflict with those made accessible by a USE
>> statement.   [MPI_ERR_COMM]
>>        INTEGER MPI_ERR_COMM
>> ---------------^
>> /opt/ibmhpc/pecurrent/mpich2/intel/include64/mpif.h(46): error #6401:
>> The attributes of this name conflict with those made accessible by a USE
>> statement.   [MPI_ERR_KEYVAL]
>>        INTEGER MPI_ERR_KEYVAL
>> ---------------^
>> /opt/ibmhpc/pecurrent/mpich2/intel/include64/mpif.h(48): error #6401:
>> The attributes of this name conflict with those made accessible by a USE
>> statement.   [MPI_ERR_NAME]
>>        INTEGER MPI_ERR_NAME
>> ---------------^
>> /opt/ibmhpc/pecurrent/mpich2/intel/include64/mpif.h(50): error #6401:
>> The attributes of this name conflict with those made accessible by a USE
>> statement.   [MPI_ERR_REQUEST]
>>        INTEGER MPI_ERR_REQUEST
>> ---------------^
>> /opt/ibmhpc/pecurrent/mpich2/intel/include64/mpif.h(52): error #6401:
>> The attributes of this name conflict with those made accessible by a USE
>> statement.   [MPI_ERR_TYPE]
>>        INTEGER MPI_ERR_TYPE
>> ---------------^
>> /opt/ibmhpc/pecurrent/mpich2/intel/include64/mpif.h(54): error #6401:
>> The attributes of this name conflict with those made accessible by a USE
>> statement.   [MPI_ERR_INFO_VALUE]
>>        INTEGER MPI_ERR_INFO_VALUE
>> ---------------^
>> /opt/ibmhpc/pecurrent/mpich2/intel/include64/mpif.h(56): error #6401:
>> The attributes of this name conflict with those made accessible by a USE
>> statement.   [MPI_ERR_RMA_SYNC]
>>        INTEGER MPI_ERR_RMA_SYNC
>> ---------------^
>> /opt/ibmhpc/pecurrent/mpich2/intel/include64/mpif.h(58): error #6401:
>> The attributes of this name conflict with those made accessible by a USE
>> statement.   [MPI_ERR_NO_MEM]
>>        INTEGER MPI_ERR_NO_MEM
>> ---------------^
>> particles_global.f90(655): catastrophic error: Too many errors, exiting
>> compilation aborted for particles_global.f90 (code 1)
>> make[2]: *** [particles_global.o] Error 1
>> make[2]: Leaving directory `/glade/u/home/lisingh/hippstr
>> 2.0/src/particles'
>> make[2]: Entering directory `/glade/u/home/lisingh/hippstr2.0/src/io'
>> make[2]: `/glade/u/home/lisingh/hippstr2.0/lib/libio.a' is up to date.
>> make[2]: Leaving directory `/glade/u/home/lisingh/hippstr2.0/src/io'
>> make[2]: Entering directory `/glade/u/home/lisingh/hippstr
>> 2.0/src/monitor'
>> make[2]: `/glade/u/home/lisingh/hippstr2.0/lib/libmonitor.a' is up to
>> date.
>> make[2]: Leaving directory `/glade/u/home/lisingh/hippstr2.0/src/monitor'
>> make[2]: Entering directory `/glade/u/home/lisingh/hippstr2.0/src/core'
>> make[2]: `/glade/u/home/lisingh/hippstr2.0/lib/libcore.a' is up to date.
>> make[2]: Leaving directory `/glade/u/home/lisingh/hippstr2.0/src/core'
>> make[1]: Leaving directory `/glade/u/home/lisingh/hippstr2.0/src'
>> make[1]: Entering directory `/glade/u/home/lisingh/hippstr2.0/src'
>> mpif90     /glade/u/home/lisingh/hippstr2.0/obj/driver.o
>> /glade/u/home/lisingh/hippstr2.0/lib/libcore.a
>> /glade/u/home/lisingh/hippstr2.0/lib/libmonitor.a
>> /glade/u/home/lisingh/hippstr2.0/lib/libio.a
>> /glade/u/home/lisingh/hippstr2.0/lib/libparticles.a
>> /glade/u/home/lisingh/hippstr2.0/lib/libfluid.a
>> /glade/u/home/lisingh/hippstr2.0/lib/libconfig.a
>> /glade/u/home/lisingh/hippstr2.0/lib/libp3dfft.a
>> /glade/u/home/lisingh/hippstr2.0/lib/liblibrary.a -o
>> /glade/u/home/lisingh/hippstr2.0/bin/hippstr
>> ld: warning: libhdf5_hl.so.7, needed by /glade/apps/opt/netcdf/4.2/int
>> el/default/lib/libnetcdf_c++4.so.1, may conflict with libhdf5_hl.so.8
>> ld: warning: libhdf5.so.7, needed by /glade/apps/opt/netcdf/4.2/int
>> el/default/lib/libnetcdf_c++4.so.1, may conflict with libhdf5.so.8
>> ld: warning: libhdf5_fortran.so.7, needed by
>> /glade/apps/opt/netcdf/4.2/intel/default/lib/libnetcdf.so.7, may
>> conflict with libhdf5_fortran.so.8
>> ld: warning: libhdf5hl_fortran.so.7, needed by
>> /glade/apps/opt/netcdf/4.2/intel/default/lib/libnetcdf.so.7, may
>> conflict with libhdf5hl_fortran.so.8
>> ld: warning: libhdf5_cpp.so.7, needed by /glade/apps/opt/netcdf/4.2/intel/default/lib/libnetcdf.so.7,
>> may conflict with libhdf5_cpp.so.8
>> ld: warning: libhdf5_hl_cpp.so.7, needed by /glade/apps/opt/netcdf/4.2/intel/default/lib/libnetcdf.so.7,
>> may conflict with libhdf5_hl_cpp.so.8
>> /glade/u/home/lisingh/hippstr2.0/lib/libcore.a(simulation.o): In
>> function `simulation_mp_simulation_run_':
>> simulation.f90:(.text+0x139): undefined reference to
>> `particles_neighborlist_'
>> make[1]: *** [hippstr] Error 1
>> make[1]: Leaving directory `/glade/u/home/lisingh/hippstr2.0/src'
>> make: *** [default] Error 2
>>
>> Would it be easier to send you the two modules that I think are
>> conflicting? Thank you so much
>>
>
> No. This is not really a PETSc error. You have some module that does
> something like "use mpi", and another
> that probably does #include "mpif.h". We can't debug other people's code.
>
>   Thanks,
>
>     Matt
>
>
>> On Sep 23, 2016, at 10:59 AM, Matthew Knepley <knepley at gmail.com> wrote:
>>
>> On Fri, Sep 23, 2016 at 9:53 AM, Melanie Li Sing How <ml2448 at cornell.edu>
>>  wrote:
>>
>>> Hi,
>>> I happened to fall on your link (http://lists.mcs.anl.gov/pipe
>>> rmail/petsc-users/2010-April/006170.html) to the same problem I am
>>> having. I am a yellowstone user and I could not find a contact detail for
>>> the same error I am having:
>>>
>>> /error #6401: The attributes of this name conflict with those made
>>> accessible by a USE statement.   [MPI_TAG]
>>>        INTEGER MPI_SOURCE, MPI_TAG, MPI_ERROR
>>>
>>> Could you please provide some advice on this?
>>>
>>
>> As Satish says, show us what you are doing, or at least the whole error
>> message.
>>
>>    Matt
>>
>>
>>> Thank you
>>>
>>>
>>
>>
>> --
>> 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
>>
>>
>>
>
>
> --
> 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
>
>
>


-- 
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/20160923/8308f84b/attachment-0001.html>


More information about the petsc-users mailing list