Using -xipo flag gives error "glibc detected"
Hi,
I just downloaded the Sun compiler for linux (preview). I compiled MPICH2 with the sun compilers. The readme on the website says to use -xipo flag while compiling as well as linking. But when i do this I get a error message. See below
# mpif90 example.f -o example -xipo -fast
*** glibc detected *** free(): invalid pointer: 0x0805160b ***
sunf90: Fatal error in ipo: Aborted
The file compiles fine without the -xipo flag.
Does anybody have an idea regarding this issue?
Thanks,
Winston
# 2
Hi Alexey,
The actual code i want to compile is proprietary so will not be able to post it. Anyway the compiler gives the same error on a simple mpi file as below so i dont think it has anything to do with the code i am trying to compile. And as i mentioned earlier the code does compile and run without the -xipo flag.
example.f
program mpi_test
include 'mpif.h'
integerierr
integerrc
integermyID
integernproc
integernslaves
call mpi_init( ierr )
call mpi_comm_rank( MPI_COMM_WORLD, myID, ierr )
call mpi_comm_size( MPI_COMM_WORLD, nProc, ierr )
nSlaves = nProc-1
write(*,*) 'I am proc #',myID
call mpi_finalize(rc)
end
Thanks
Winston
# 5
Winston,unfortunately I can not reproduce the problemcould you please show the result of sunf90 example.f -o example -xipo -fast -vand even better the full outputvalgrind --trace-children=yes --tool=memcheck sunf90 example.f -o example -xipo -fast -v
horsh at 2007-7-6 23:03:51 >
