[mpich-discuss] mpich2 some errors..

Reuti reuti at staff.uni-marburg.de
Wed Jul 4 11:19:20 CDT 2012


Am 04.07.2012 um 17:58 schrieb crgeng_medphys:

>  
> Hi Reuti:
> "./configure --prefix

AFAIK --prefix needs an argument, where to install to. I use something like --prefix=$HOME/local/mpich2-1.4.1p1 and this way I also don't need to install as root, as Jeff already mentioned.

To get dynamic libs, you need the argument --enable-shared to ./configure

-- Reuti


> sudo make
> sudo make install"
> this is the way I installed the MPICH2. The version is MPICH2-1.0.7rc2.
> Yes, you are right. I want to build a dynamic library with my application and try to add a static library from MPICH2.
> So what can I do with this error?
> Thanks and best regards!
> geng
>  
>  
> 2012-07-04
> crgeng_medphys
> 发件人: Reuti
> 发送时间: 2012-07-04  23:44:10
> 收件人: mpich-discuss at mcs.anl.gov
> 抄送:
> 主题: Re: [mpich-discuss] mpich2 some errors..
> Am 04.07.2012 um 09:05 schrieb crgeng_medphys:
>  
> >  
> > Dear Sir:
> >  
> > Thanks for your development of MPICH first.
> > And I have a problem after I install mpich to compile my application.
>  
> How did you install MPICH2 and which version?
>  
> Do you want to build a dynamic library with your application and try to add a static library from MPICH2?
>  
> -- Reuti
>  
>  
> > The error is following,
> > "
> > /usr/bin/ld: /home/g/mpich2/lib/libmpichcxx.a(initcxx.o): relocation R_X86_64_32S against `vtable for MPI::Datatype' can not be used when making a shared object; recompile with -fPIC
> > /home/g/mpich2/lib/libmpichcxx.a: could not read symbols: Bad value
> > collect2: ld returned 1 exit status
> > "
> >  
> > It probably means that I should recompile MPI with -fPIC. 
> > But I cannot understand the definite mean of this error, could you give me some advice?
> > Thanks and best regards!
> > Geng
> >  
> > crgeng_medphys
> > _______________________________________________
> > mpich-discuss mailing list     mpich-discuss at mcs.anl.gov
> > To manage subscription options or unsubscribe:
> > https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>  
> _______________________________________________
> mpich-discuss mailing list     mpich-discuss at mcs.anl.gov
> To manage subscription options or unsubscribe:
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
> _______________________________________________
> mpich-discuss mailing list     mpich-discuss at mcs.anl.gov
> To manage subscription options or unsubscribe:
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss



More information about the mpich-discuss mailing list