[mpich-discuss] Undefined reference to MPL

Pavan Balaji balaji at mcs.anl.gov
Mon Dec 2 07:49:21 CST 2013


Actually, you are missing two: libmpl and libopa.  But the latter might not be used for most common platforms.

A second option, that we are still experimenting with, is to build mpich as a shared library.  On more platforms libtool should generate automatic inter-library dependencies.  So when you link against libmpich, it should automatically pick up the remaining libraries.  We had this working earlier, though I haven’t tried it in a while.

  — Pavan

On Dec 2, 2013, at 7:47 AM, Jeff Hammond <jeff.science at gmail.com> wrote:

> "mpicc -show" will give you all the flags you need to link MPICH (or MVAPICH). You're missing more than one library. 
> 
> Jeff
> 
> Sent from my iPhone
> 
>> On Dec 2, 2013, at 2:48 AM, Francisco Pastor <paco at ceam.es> wrote:
>> 
>> Hi
>> 
>> I can only see   -lmpich. Maybe should try -lmpl.
>> 
>> MPI_PATH=/usr/local/mpich2-1.0.5p4
>> PAR_INCS=-I$(MPI_PATH)/src/include
>> PAR_LIBS=-L$(MPI_PATH)/lib/ -lmpich
>> 
>> 
>> In the meantime I installed mpich2-1.05p4 and the compilation has worked. Should I try to recompile with mpich-3.0.4 adding -lmpl?
>> 
>> Thank you very much
>> 
>> El 29/11/2013 11:37, Reuti escribió:
>>> Hi,
>>> 
>>>> Am 29.11.2013 um 09:07 schrieb Francisco Pastor:
>>>> 
>>>> I recently installed mpich 3.0.4 in order to compile a meteorological model, RAMS 6.0. We installed the model time ago with mpich2-1.0.5p4. Now we want to build a new cluster under Ubuntu 12.04 and MPICH.
>>>> 
>>>> When building the model I get this messages, the last ones in a longer list, and maybe they are related to mpich. As a new user of mpich I'm not sure where the problem is coming from. Should I install an older mpich2 version?
>>>> 
>>>> Thanks for your help
>>> How is RAMS linked during build - maybe it uses not the mpi... wrappers but links directly and missed to include -lmpl
>>> 
>>> -- Reuti
>>> 
>>> 
>>>> /usr/local/lib//libmpich.a(param_vals.o):param_vals.c:(.text+0xb4d): more undefined references to `MPL_env2bool' follow
>>>> /usr/local/lib//libmpich.a(param_vals.o): In function `MPIR_Param_init_params':
>>>> param_vals.c:(.text+0xbac): undefined reference to `MPL_env2range'
>>>> param_vals.c:(.text+0xbd1): undefined reference to `MPL_env2range'
>>>> param_vals.c:(.text+0xbf6): undefined reference to `MPL_env2range'
>>>> param_vals.c:(.text+0xc1b): undefined reference to `MPL_env2range'
>>>> param_vals.c:(.text+0xc38): undefined reference to `MPL_env2int'
>>>> param_vals.c:(.text+0xc55): undefined reference to `MPL_env2int'
>>>> /usr/local/lib//libmpich.a(mpid_init.o): In function `MPID_Init':
>>>> mpid_init.c:(.text+0x194): undefined reference to `MPL_env2bool'
>>>> /usr/local/lib//libmpich.a(mpid_vc.o): In function `MPIDI_Populate_vc_node_ids':
>>>> mpid_vc.c:(.text+0xb66): undefined reference to `MPL_env2int'
>>>> mpid_vc.c:(.text+0xb7d): undefined reference to `MPL_env2int'
>>>> /usr/local/lib//libmpich.a(mpi_t_util.o): In function `MPIU_Tool_strncpy':
>>>> mpi_t_util.c:(.text+0x49c): undefined reference to `MPL_strncpy'
>>>> make: *** [rams-6.0-opt] Error 1
>>>> 
>>>> -- 
>>>> -----------
>>>> Dr. Francisco Pastor
>>>> Meteorology department, Instituto Universitario CEAM-UMH
>>>> http://www.ceam.es
>>>> -----------
>>>> Mendeley profile: http://www.mendeley.com/profiles/francisco-pastor1/
>>>> Google Scholar: http://scholar.google.com/citations?user=V3mmCdkAAAAJ&hl=es
>>>> Researcher ID: http://www.researcherid.com/rid/B-8331-2008
>>>> Cosis profile: http://www.cosis.net/profile/francisco.pastor
>>>> -----------
>>>> mail: paco at ceam.es
>>>> skype: paco.pastor.guzman
>>>> -----------
>>>> Parque Tecnologico, C/ Charles R. Darwin, 14
>>>> 46980 PATERNA (Valencia), Spain
>>>> Tlf. 96 131 82 27 - Fax. 96 131 81 90
>>>> 
>>>> 
>>>> ---------------------------------------------------------------------
>>>> Este mensaje y los ficheros anexos son confidenciales. Los mismos contienen información reservada de la empresa que no puede ser difundida. Si usted ha recibido este correo por error, tenga la amabilidad de eliminarlo de su sistema y avisar al remitente mediante reenvío a su dirección electrónica; no deberá copiar el mensaje ni divulgar su contenido a ninguna persona.
>>>> 
>>>> Su dirección de correo electrónico junto a sus datos personales forman parte de un fichero titularidad de la Fundación de la Comunidad Valenciana Centro de Estudios Ambientales del Mediterráneo - CEAM, con CIF: G-46957213, cuya finalidad es la de mantener el contacto con Ud. De acuerdo con la Ley Orgánica 15/1999, usted puede ejercitar sus derechos de acceso, rectificación, cancelación y, en su caso, oposición enviando una solicitud por escrito, acompañada de una fotocopia de su DNI dirigida a: Fundación de la Comunidad Valenciana Centro de Estudios Ambientales del Mediterráneo - CEAM. C/ Charles R. Darwin, 14. Parque Tecnológico.46980 PATERNA (Valencia).
>>>> 
>>>> This message and the attached files are confidential. They contain reserved information belonging to our centre and are not to be broadcast. If you have received this email by mistake, please delete it from your system and alert the sender by returning it to his/her email address. You must not copy or divulge the contents of the message to anyone.
>>>> 
>>>> Your email address and personal data are included in a file belonging to the Fundación de la Comunidad Valenciana Centro de Estudios Ambientales del Mediterráneo - CEAM, con CIF: G-46957213. The purpose of this file is to allow us to keep in contact with you. In accordance with Organic Law 15/1999, you are permitted to access, rectify, cancel or oppose the contents of this file by submitting a written request, accompanied by a photocopy of your DNI, to: Fundación de la Comunidad Valenciana Centro de Estudios Ambientales del Mediterráneo - CEAM. C/ Charles R. Darwin, 14. Parque Tecnológico.46980 PATERNA (Valencia).
>>>> 
>>>> 
>>>> 
>>>> _______________________________________________
>>>> discuss mailing list     discuss at mpich.org
>>>> To manage subscription options or unsubscribe:
>>>> https://lists.mpich.org/mailman/listinfo/discuss
>>> _______________________________________________
>>> discuss mailing list     discuss at mpich.org
>>> To manage subscription options or unsubscribe:
>>> https://lists.mpich.org/mailman/listinfo/discuss
>> 
>> -- 
>> -----------
>> Dr. Francisco Pastor
>> Meteorology department, Instituto Universitario CEAM-UMH
>> http://www.ceam.es
>> -----------
>> Mendeley profile: http://www.mendeley.com/profiles/francisco-pastor1/
>> Google Scholar: http://scholar.google.com/citations?user=V3mmCdkAAAAJ&hl=es
>> Researcher ID: http://www.researcherid.com/rid/B-8331-2008
>> Cosis profile: http://www.cosis.net/profile/francisco.pastor
>> -----------
>> mail: paco at ceam.es
>> skype: paco.pastor.guzman
>> -----------
>> Parque Tecnologico, C/ Charles R. Darwin, 14
>> 46980 PATERNA (Valencia), Spain
>> Tlf. 96 131 82 27 - Fax. 96 131 81 90
>> 
>> 
>> ---------------------------------------------------------------------
>> Este mensaje y los ficheros anexos son confidenciales. Los mismos contienen información reservada de la empresa que no puede ser difundida. Si usted ha recibido este correo por error, tenga la amabilidad de eliminarlo de su sistema y avisar al remitente mediante reenvío a su dirección electrónica; no deberá copiar el mensaje ni divulgar su contenido a ninguna persona.
>> 
>> Su dirección de correo electrónico junto a sus datos personales forman parte de un fichero titularidad de la Fundación de la Comunidad Valenciana Centro de Estudios Ambientales del Mediterráneo - CEAM, con CIF: G-46957213, cuya finalidad es la de mantener el contacto con Ud. De acuerdo con la Ley Orgánica 15/1999, usted puede ejercitar sus derechos de acceso, rectificación, cancelación y, en su caso, oposición enviando una solicitud por escrito, acompañada de una fotocopia de su DNI dirigida a: Fundación de la Comunidad Valenciana Centro de Estudios Ambientales del Mediterráneo - CEAM. C/ Charles R. Darwin, 14. Parque Tecnológico.46980 PATERNA (Valencia).
>> 
>> This message and the attached files are confidential. They contain reserved information belonging to our centre and are not to be broadcast. If you have received this email by mistake, please delete it from your system and alert the sender by returning it to his/her email address. You must not copy or divulge the contents of the message to anyone.
>> 
>> Your email address and personal data are included in a file belonging to the Fundación de la Comunidad Valenciana Centro de Estudios Ambientales del Mediterráneo - CEAM, con CIF: G-46957213. The purpose of this file is to allow us to keep in contact with you. In accordance with Organic Law 15/1999, you are permitted to access, rectify, cancel or oppose the contents of this file by submitting a written request, accompanied by a photocopy of your DNI, to: Fundación de la Comunidad Valenciana Centro de Estudios Ambientales del Mediterráneo - CEAM. C/ Charles R. Darwin, 14. Parque Tecnológico.46980 PATERNA (Valencia).
>> 
>> 
>> 
>> _______________________________________________
>> discuss mailing list     discuss at mpich.org
>> To manage subscription options or unsubscribe:
>> https://lists.mpich.org/mailman/listinfo/discuss
> _______________________________________________
> discuss mailing list     discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss

--
Pavan Balaji
http://www.mcs.anl.gov/~balaji




More information about the discuss mailing list