[mpich-discuss] ifort problem

Anthony Chan chan at mcs.anl.gov
Fri Apr 29 12:16:16 CDT 2011


See the manpage of ifort, i.e. "man ifort".

----- Original Message -----
> Hi Chan
> 
> Could you pleas tell me for what these arguments are used for " -g and
> -traceback " with ifort, I'v tried to search in the web but did not
> find
> any.
> thanks in advance.
> Ali.
> 
> On Fri, Apr 29, 2011 at 7:00 PM, mohamed ali <eng1182 at gmail.com>
> wrote:
> 
> > Hi Chan
> >
> > Thanks. with your advice the program runs normally now.
> > Regards,
> > Ali.
> >
> >
> > On Fri, Apr 29, 2011 at 6:51 PM, Anthony Chan <chan at mcs.anl.gov>
> > wrote:
> >
> >>
> >> Try mpif90 -g -traceback -o matrixvecor matrixvector.f90
> >>
> >> ----- Original Message -----
> >> > hi Chan
> >> >
> >> > i have recompiled using the command:
> >> > mpif90 -o -traceback -g matrixvector matrixvector.f90
> >> >
> >> > the result was these errors:
> >> > matrixvector: In function `_start':
> >> > (.text+0x0): multiple definition of `_start'
> >> >
> >> /usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib64/crt1.o:(.text+0x0):
> >> > first defined here
> >> > matrixvector: In function `_fini':
> >> > (.fini+0x0): multiple definition of `_fini'
> >> >
> >> /usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib64/crti.o:(.fini+0x0):
> >> > first defined here
> >> > matrixvector:(.rodata+0x0): multiple definition of
> >> > `_IO_stdin_used'
> >> >
> >> /usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib64/crt1.o:(.rodata.cst4+0x0):
> >> > first defined here
> >> > matrixvector: In function `__data_start':
> >> > (.data+0x0): multiple definition of `__data_start'
> >> >
> >> /usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib64/crt1.o:(.data+0x0):
> >> > first defined here
> >> > matrixvector: In function `__data_start':
> >> > (.data+0x8): multiple definition of `__dso_handle'
> >> > /usr/lib/gcc/x86_64-linux-gnu/4.4.5/crtbegin.o:(.data+0x0): first
> >> > defined
> >> > here
> >> > matrixvector: In function `main':
> >> > (.text+0xf0): multiple definition of `main'
> >> >
> >> /opt/intel/composerxe-2011.3.174/compiler/lib/intel64/for_main.o:/export/users/nbtester/efi2linux_nightly/branch-12_0/20110310_010000/libdev/frtl/src/libfor/for_main.c:(.text+0x0):
> >> > first defined here
> >> > matrixvector: In function `_init':
> >> > (.init+0x0): multiple definition of `_init'
> >> >
> >> /usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib64/crti.o:(.init+0x0):
> >> > first defined here
> >> > /tmp/ifortfJVDX2.o: In function `main':
> >> > /root/mpi/number-sum/matrixvector.f90:1: multiple definition of
> >> > `MAIN__'
> >> > matrixvector:(.text+0x140): first defined here
> >> > /usr/lib/gcc/x86_64-linux-gnu/4.4.5/crtend.o:(.dtors+0x0):
> >> > multiple
> >> > definition of `__DTOR_END__'
> >> > matrixvector:(.dtors+0x8): first defined here
> >> > ld: error in matrixvector(.eh_frame); no .eh_frame_hdr table will
> >> > be
> >> > created.
> >> >
> >> > don't know if i need to install more libraries or what?
> >> >
> >> > thanks in advance.
> >> >
> >> > On Fri, Apr 29, 2011 at 5:28 PM, Anthony Chan <chan at mcs.anl.gov>
> >> > wrote:
> >> >
> >> > >
> >> > > your program most likely was accessing some invalid memory.
> >> > > You should recompile your code with -g and -traceback (since
> >> > > you are
> >> > > using ifort). If that does not show you the problem, you need
> >> > > to use a debugger.
> >> > >
> >> > > ----- Original Message -----
> >> > > > Hi there
> >> > > > i have found this problem when executing an mpi program
> >> > > > compiled
> >> > > > with
> >> > > > mpif90. my command of execution was
> >> > > > >mpiexec -n 2 ./matrixvector
> >> > > >
> >> > > > that matrixvector, is the executable file, i have found this
> >> > > > error:
> >> > > >
> >> > > > forrtl: severe (174): SIGSEGV, segmentation fault occurred
> >> > > > Image PC Routine Line
> >> > > > Source
> >> > > > matrixvector 00000000004046ED Unknown Unknown Unknown
> >> > > > matrixvector 0000000000404477 Unknown Unknown Unknown
> >> > > > matrixvector 00000000004040AC Unknown Unknown Unknown
> >> > > > libc.so.6 00007F678EEBBD8E Unknown Unknown Unknown
> >> > > > matrixvector 0000000000403FA9 Unknown Unknown Unknown
> >> > > > [mpiexec at mohamed-XPS-L501X] ONE OF THE PROCESSES TERMINATED
> >> > > > BADLY:
> >> > > > CLEANING
> >> > > > UP
> >> > > > APPLICATION TERMINATED WITH THE EXIT STRING: Killed (signal
> >> > > > 9)
> >> > > >
> >> > > > any suggestions?
> >> > > > thanks in advance.
> >> > > > Ali
> >> > > >
> >> > > > _______________________________________________
> >> > > > mpich-discuss mailing list
> >> > > > mpich-discuss at mcs.anl.gov
> >> > > > https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
> >> > > _______________________________________________
> >> > > mpich-discuss mailing list
> >> > > mpich-discuss at mcs.anl.gov
> >> > > https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
> >> > >
> >>
> >
> >


More information about the mpich-discuss mailing list