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

[545 byte] By [winston_lewis] at [2007-11-26 8:59:55]
# 1
Could you give us the example.f ?If source is too big for forum you can send it me - alexey.shubin@sun.com
alexey_shubin at 2007-7-6 23:03:50 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 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

winston_lewis at 2007-7-6 23:03:51 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 3
Btw. I am running Ubuntu 6.06 on x86_64 (dual intel xeon)
winston_lewis at 2007-7-6 23:03:51 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 4
OkI will look at
alexey_shubin at 2007-7-6 23:03:51 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 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 > top of Java-index,Development Tools,Solaris and Linux Development Tools...