On 18 May 2010 14:50, marco restelli <mrestelli@gmail.com> wrote:
On Tue, May 18, 2010 at 2:13 PM, Marcin <mrybarski@gmail.com> wrote:
> "  /usr/bin/c++ -march=athlon64 -O2 -pipe -msse3 -fPIC -Wl,-O1 -ldl -lmpi
>  CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o -o cmTryCompileExec
>  -rdynamic
>
>
>  /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-gnu/bin/ld:
>  cannot find -lmpi
> "
>
> USE="mpi" may help?
>

Hi Marcin,
  well, possibly, but I have mpich2 and I get a conflict.

[ebuild  N    ] sys-cluster/openmpi-1.2.9  USE="cxx fortran ipv6
-debug -heterogeneous -mpi-threads -pbs -romio -threads" 3,479 kB [0]
[ebuild  N    ] sci-libs/gmsh-2.4.2  USE="X jpeg mpi png zlib -blas
-cgns -chaco -doc -examples -med -metis -opencascade" 0 kB [1]
[blocks B     ] sys-cluster/openmpi ("sys-cluster/openmpi" is blocking
sys-cluster/mpich2-1.0.8)
[blocks B     ] sys-cluster/mpich2 ("sys-cluster/mpich2" is blocking
sys-cluster/openmpi-1.2.9)


Boost deps upon || ( >=sys-cluster/openmpi-1.2.9[cxx] sys-cluster/mpich2[cxx,threads] ) so if you have cxx or threads disabled it will favour openmpi raising block with the other package.

--
Pozdrawiam,
Łukasz Michalik