<div class="gmail_quote">On Thu, Aug 4, 2011 at 09:16, huyaoyu <span dir="ltr">&lt;<a href="mailto:huyaoyu1986@gmail.com">huyaoyu1986@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
--------------Error detected during compile or<br>
link!-----------------------<br>
See<br>
<a href="http://www.mcs.anl.gov/petsc/petsc-2/documentation/troubleshooting.html" target="_blank">http://www.mcs.anl.gov/petsc/petsc-2/documentation/troubleshooting.html</a><br>
/home/huyaoyu/Downloads/petsc-3.1-p8/linux-gnu-c-debug/bin/mpif90 -c<br>
-fPIC  -Wall -Wno-unused-variable -g<br>
-I/home/huyaoyu/Downloads/petsc-3.1-p8/linux-gnu-c-debug/include<br>
-I/home/huyaoyu/Downloads/petsc-3.1-p8/include<br>
-I/home/huyaoyu/Downloads/petsc-3.1-p8/linux-gnu-c-debug/include<br>
-I/usr/lib/openmpi/include -I/usr/lib/openmpi/lib<br>
-I/home/huyaoyu/Downloads/petsc-3.1-p8/linux-gnu-c-debug/include<br>
-I/home/huyaoyu/Downloads/petsc-3.1-p8/linux-gnu-c-debug/include<br>
-I/usr/lib/openmpi/include -I/usr/lib/openmpi/lib    -o ex5f.o ex5f.F<br>
ex5f.F:92.72:<br>
<br>
      call PetscOptionsGetReal(PETSC_NULL_CHARACTER,&#39;-par&#39;,lambda,<br>
<br>
1<br>
Warning: Line truncated at (1)<br></blockquote><div><br></div><div>This is harmless, the Fortran compiler is creating a spurious warning. The problem has been fixed in gcc-4.6.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
huyaoyu@ubuntu:~/Downloads/deal.II-non-threads/examples/step-17<br>
$ ./step-17<br>
[ubuntu:23497] *** Process received signal ***<br>
[ubuntu:23497] Signal: Segmentation fault (11)<br>
[ubuntu:23497] Signal code: Address not mapped (1)<br>
[ubuntu:23497] Failing at address: 0x44000098<br>
[ubuntu:23497] [ 0] /lib/x86_64-linux-gnu/libpthread.so.0(+0xfc60)<br>
[0x7f111b24ac60]<br>
[ubuntu:23497] [ 1] /usr/lib/libmpi.so.0(MPI_Comm_rank+0x5e)<br>
[0x7f111adbf3ce]<br>
[ubuntu:23497]<br>
[ 2] /home/huyaoyu/Downloads/petsc-3.1-p8/linux-gnu-c-debug/lib/libpetsc.so(PetscInitialize+0x5d1) [0x7f11190b97df]<br>
[ubuntu:23497] [ 3] ./step-17(main+0x3b) [0x42539f]<br>
[ubuntu:23497] [ 4] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main<br>
+0xff) [0x7f1119793eff]<br>
[ubuntu:23497] [ 5] ./step-17() [0x4252a9]<br>
[ubuntu:23497] *** End of error message ***<br>
Segmentation fault<br>
<br>
After debug the deal.II program I found that it failed at the following<br>
line<br>
<br>
pinit.c line 578:<br>
ierr = MPI_Comm_rank(MPI_COMM_WORLD,&amp;PetscGlobalRank);CHKERRQ(ierr);<br></blockquote><div><br></div><div>Can you send the output of &quot;ldd dealii-example&quot;?</div><div><br></div><div>This normally happens when a different MPI is linked from that which is compiled (or it&#39;s inconsistent between PETSc and deal.ii).</div>
<div> </div></div>