<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="font-family: Verdana; line-height: 15px; "><div>Hi all.</div><div>I'm new to this list.</div>I followed the instructions for using MPICH (1.0.7) located here : <a href="http://wiki.freepascal.org/MPICH">http://wiki.freepascal.org/MPICH</a>, and it works perfectly under Linux (Centos 5.2) and Win32 (XP). <br>However, trying to do the same thing on Leopard (10.5.5) fails. <br>First, to compile well, i had to add the following directive : {$Linklib mpi} to the HelloWorld1 sample. If i don't, ld outputs : "Symbol not found : _MPI_Init" ...: the library cannot be found, even if i have added the library path to /etc/fpc.cfg, or if i put the library in location already covered by the paths (i checked the link.res file). I checked libpmpi.a with nm, and symbols are well present. <br>After having added the {$Linklib mpi} directive (or manually change the ppaslink.sh file or even directly using ld), it compiles well, but can't run. <br>Here's the behaviour : <br><br>nemes:mpich2 jideel$ mpiexec -n 1 HelloWorld1 <br>[nemes:00407] *** Process received signal *** <br>[nemes:00407] Signal: Segmentation fault (11) <br>[nemes:00407] Signal code: Address not mapped (1) <br>[nemes:00407] Failing at address: 0x44000088 <br>[ 1] [0xbffff4d8, 0x44000088] (-P-) <br>[ 2] (PASCALMAIN + 0x45) [0xbffff4f8, 0x00001705] <br>[ 3] (FPC_SYSTEMMAIN + 0x45) [0xbffff508, 0x0001b475] <br>[ 4] (start + 0xfc) [0xbffff548, 0x0000169c] <br>[ 5] (start + 0x29) [0xbffff56c, 0x000015c9] <br>[ 6] [0x00000000, 0x00000001] (FP-) <br>[nemes:00407] *** End of error message *** <br>mpiexec noticed that job rank 0 with PID 407 on node nemes.local exited on signal 11 (Segmentation fault). <br>nemes:mpich2 jideel$ <br><br>if i use gdb, it outputs : <br><br>Reading symbols for shared libraries . done <br>.... <br>Program received signal EXC_BAD_ACCESS, Could not access memory. <br>Reason: KERN_INVALID_ADDRESS at address: 0x44000088 <br>0x000df006 in MPI_Comm_rank () <br><br><br>Platform is a Macbook Pro Intel Core 2 Duo, Xcode 3.0 installed. <br><br>I checked there was no other MPI libraries that could conflict, it doesn't seems there is. <br><br>I tried all the manipulations either from Lazarus (0.9.27) or directly from command line, using fpc and a modified Makefile to 'cut' Lazarus component from the build process, behaviour is the same. <br><br>I checked other forums, there's somewhat similar problems, but with openmpi, or some other libraries, but no solution provided. <br><br>Any idea or suggestion are welcome <img alt="Smile" border="0" height="15" width="19" src="cid:60801099-A791-4FB1-9FB1-CA52D87D89F6"> <br>Thanks.</span></body></html>