This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/59678] Segmentation fault on equalizing variables of a complex derived data type


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59678

--- Comment #6 from Hossein Talebi <talebi.hossein at gmail dot com> ---
Thank you for trying it. Please spend 5 minutes to read and follow this. I
have attached a zip files in proper folder which you have to overwrite to
your local copy of PERMIX. I have modified the these to make it easy to
compile and test.

Method 1)

You have OpenMPI or another mpi library and you want to compile PERMIX with
it. After you overwrote the Makefile.minimal_mpi in the src/MAKE, just go
to permix_home/src and type 'make minimal_mpi'.
This will only need mpif90, mpicc and mpic++ to compile.

That error you reported happened because you have not initialized MPI.
Maybe if you add MPI initialization commands it will fix. But, I have
updated the new permix.f90 with these commands and you just replace it.

Method 2)
You want to compile PERMIX in a full serial version. This case you need to
supply some dummy MPI functions which are located in permix_home/src/STUBS
folder. I have precompiled them (in the attached file,
permix_home/externals/libmpiseq.a ). In case you have to compile
libmpiseq.a by yourself go to permix_home/src/STUBS and run  'build.sh'
which is the simplest way of compiling and linking in Linux.

So, when you have the libmpiseq.a in the right place go to src folder and
type 'make minimal_serial' .


Please do not forget to replace every single file that I attached now,
otherwise it won't work.

Cheers
Hossein











On Sun, Jan 5, 2014 at 4:45 PM, dominiq at lps dot ens.fr <
gcc-bugzilla@gcc.gnu.org> wrote:

> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59678
>
> Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>              Status|UNCONFIRMED                 |WAITING
>    Last reconfirmed|                            |2014-01-05
>      Ever confirmed|0                           |1
>
> --- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> After providing the link to the openmpi library, the executable is
> generated
> but fails at runtime with:
>
> [Book15] permix_home/src% ../bin/permix_minimal_serial
> *** The MPI_Comm_f2c() function was called before MPI_INIT was invoked.
> *** This is disallowed by the MPI standard.
> *** Your MPI job will now abort.
> [Book15.local:34330] Local abort before MPI_INIT completed successfully;
> not
> able to aggregate error messages, and not able to guarantee that all other
> processes were killed!
>
> BTW I don't understand why serial make needs mpi stuff.
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
> You reported the bug.
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]