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

On Thu, Apr 29, 2010 at 14:17, Alexander Hansen <[email protected]
> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 4/29/10 8:11 AM, Alan wrote:
> > Hi there,
> >
> > Trying to compile a programme here and I found out that:
> >
> > /sw/bin/mpicc is linking to /usr/bin/gcc and not /sw/bin/gcc-4
> >
> > see:
> >
> > /sw/bin/mpicc -v
> > Using built-in specs.
> > Target: i686-apple-darwin10
> > Configured with: /var/tmp/gcc/gcc-5659~1/src/configure
> > --disable-checking --enable-werror --prefix=/usr --mandir=/share/man
> > --enable-languages=c,objc,c++,obj-c++
> > --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib
> > --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10-
> > --host=x86_64-apple-darwin10 --target=i686-apple-darwin10
> > --with-gxx-include-dir=/include/c++/4.2.1
> > Thread model: posix
> > gcc version 4.2.1 (Apple Inc. build 5659)
> >
> >
> > /sw/bin/mpif77 -v Using built-in specs. Target: x86_64-apple-darwin10
> > Configured with: ../gcc-4.4.2/configure --prefix=/sw
> > --prefix=/sw/lib/gcc4.4 --mandir=/sw/share/man --infodir=/sw/share/info
> > --enable-languages=c,c++,fortran,objc,java --with-gmp=/sw
> > --with-libiconv-prefix=/sw --with-ppl=/sw --with-cloog=/sw
> > --with-system-zlib --x-includes=/usr/X11R6/include
> > --x-libraries=/usr/X11R6/lib --disable-libjava-multilib
> > --build=x86_64-apple-darwin10 --host=x86_64-apple-darwin10
> > --target=x86_64-apple-darwin10 Thread model: posix gcc version 4.4.2
> (GCC)
> >
> >
> > So my program failed to link 'mpicc ... -lgfortran ...'. Is it a correct
> > behaviour? I don't think so.
>
> It could be that, or something else.  Without seeing more than "failed
> to link" we've no real way of knowing.
>
> >
> > How to solve this issue?
> >
> > I am using Fink 64 cvs on SL 10.6.3.
> >
>
> "fink -V | head -n2" is a provides more explicit information, e.g. when
> there's a problem with the fink package manager and need to know that
> version.
>
> > Thanks,
> >
> > Alan
> >
> > --
> > Alan Wilter S. da Silva, D.Sc. - CCPN Research Associate
> > Department of Biochemistry, University of Cambridge.
> > 80 Tennis Court Road, Cambridge CB2 1GA, UK.
> >>>http://www.bio.cam.ac.uk/~awd28<<
> >
> >
>
> Since /sw/bin/mpicc and /sw/bin/mpif77 aren't on _my_ system, I'm not
> sure what package provides them to see if I can reproduce your issue.
> How about giving us the output from
>
> dpkg -S /sw/bin/mpicc /sw/bin/mpif77
>
> ?
>
> - --
> Alexander Hansen
> Fink User Liaison
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkvZhuEACgkQB8UpO3rKjQ+frwCfdi16Hhchi8Abqmr7RcFODci7
> faQAoIvMSpZnpeBpbzxnL/EktgEI73aG
> =9R69
> -----END PGP SIGNATURE-----
>



-- 
Alan Wilter S. da Silva, D.Sc. - CCPN Research Associate
Department of Biochemistry, University of Cambridge.
80 Tennis Court Road, Cambridge CB2 1GA, UK.
>>http://www.bio.cam.ac.uk/~awd28<<
------------------------------------------------------------------------------
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to