Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: Re: [OMPI devel] [OMPI svn-full] svn:open-mpi r16909 (f77_hello compiler error)
From: Ethan Mallove (ethan.mallove_at_[hidden])
Date: 2007-12-12 14:15:06


Hello,

Is this change (or r16908) causing the below error in the MTT
trivial test (f77_hello)? The error occurs on Solaris and
Linux.

  ...
  NOTICE: Invoking /ws/ompi-tools/SUNWspro/SOS11/bin/f90 -f77 -ftrap=%none -I<scratch>/installs/cGmK/install/include/v9 -xarch=amd64 hello.f -o f77_hello -R<scratch>/installs/cGmK/install/lib/amd64 -R/opt/mx/lib -L<scratch>/installs/cGmK/install/lib/amd64 -lmpi_f77 -lmpi -lopen-rte -lopen-pal -lsocket -lnsl -lrt -lm
  hello.f:
   MAIN main:
  Undefined first referenced
   symbol in file
  intercept_extra_state_t_class <scratch>/installs/cGmK/install/lib/amd64/libmpi_f77.so
  ld: fatal: Symbol referencing errors. No output written to f77_hello

See also http://www.open-mpi.org/mtt/index.php?do_redir=475.

Didn't look that closely here, just noted the line change
involving "intercept_extra_state".

-Ethan

On Sun, Dec/09/2007 07:19:59PM, bosilca_at_[hidden] wrote:
> Author: bosilca
> Date: 2007-12-09 19:19:58 EST (Sun, 09 Dec 2007)
> New Revision: 16909
> URL: https://svn.open-mpi.org/trac/ompi/changeset/16909
>
> Log:
> Avoid a compiler warning about the function being defined but not
> used when we compile the profiling layer.
>
> Text files modified:
> trunk/ompi/mpi/f77/register_datarep_f.c | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> Modified: trunk/ompi/mpi/f77/register_datarep_f.c
> ==============================================================================
> --- trunk/ompi/mpi/f77/register_datarep_f.c (original)
> +++ trunk/ompi/mpi/f77/register_datarep_f.c 2007-12-09 19:19:58 EST (Sun, 09 Dec 2007)
> @@ -90,6 +90,9 @@
> MPI_Aint *extra_state_f77;
> } intercept_extra_state_t;
>
> +OBJ_CLASS_DECLARATION(intercept_extra_state_t);
> +
> +#if !OMPI_PROFILE_LAYER
> static void intercept_extra_state_constructor(intercept_extra_state_t *obj)
> {
> obj->read_fn_f77 = NULL;
> @@ -98,9 +101,6 @@
> obj->extra_state_f77 = NULL;
> }
>
> -OBJ_CLASS_DECLARATION(intercept_extra_state_t);
> -
> -#if !OMPI_PROFILE_LAYER
> OBJ_CLASS_INSTANCE(intercept_extra_state_t,
> opal_list_item_t,
> intercept_extra_state_constructor, NULL);
> _______________________________________________
> svn-full mailing list
> svn-full_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/svn-full