-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 4/29/10 9:44 AM, Alan wrote:
> Thanks Alexander.
> 
> fink -V
> Package manager version: 0.29.10
> Distribution version: selfupdate-cvs Thu Apr 29 12:28:58 2010, 10.6, x86_64
> 
> I circumvent this problem by replacing the call 'mpicc' by:
> 
> gcc-4 -D_REENTRANT -I/sw/include -I/sw/include/openmpi -L/sw/lib/openmpi
> -lmpi -lopen-rte -lopen-pal -lutil
> 
> I got this from 'mpicc -showme', which returns:
> 
> gcc -D_REENTRANT -I/sw/include -I/sw/include/openmpi -L/sw/lib/openmpi
> -lmpi -lopen-rte -lopen-pal -lutil
> 
> But 'gcc', is /usr/bin/gcc, and from fink describe gcc44:
> 
> gcc44-4.4.2-1000: GNU Compiler Collection Version 4.4
>   GCC, the GNU Compiler Collection, includes front ends for
>   C, C++, Objective-C, Objective-C++, Fortran, Java, and Ada.
>   .
>   C, C++, Objective C and Fortran and Java are included in this package.
>   .
>   The C and C++ compilers are named gcc-4 and g++-4 to avoid
>   conflicts with gcc and g++ installed by the Apple Developer Tools
> 
> dpkg -S /sw/bin/mpif77
> openmpi-dev: /sw/bin/mpif77
> 
> I hope it may help you to help me.
> 
> Thanks, 
> 
> Alan
> 

So if you replace a call to 'mpicc' with your line then your compile
succeeds?

It seems reasonable to me that the package might need to use the same
gcc for both C and Fortran.  I don't run it myself, however, so I don't
really have a way to test it.

- -- 
Alexander Hansen
Fink User Liaison
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvZk1kACgkQB8UpO3rKjQ+gNwCfTlAgPcOE1mBwAxlDis9eC80m
t4MAn1mBx7Z7lnn1/dnGo+obznP2xDIn
=XsvS
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to