Fwd: problem building petsc port

Ryan Schmidt ryandesign at macports.org
Mon Dec 6 09:15:51 PST 2010


Begin forwarded message:

> From: Frédéric Dubois <Frederic.Dubois at univ-montp2.fr>
> Date: December 6, 2010 11:01:20 CST
> To: Ryan Schmidt <ryandesign at macports.org>
> Subject: Re: problem building petsc port
> 
> Hello,
> Sorry for the delay.
> I have seen this ticket before and It helps me managing the problem with gfortran.
> Concerning this problem it seems that when you have already installed gfortran (through a dmg)
> macport won't find the gfortran installed in {prefix}/bin (with the name gfortran-mp ...) .
> Removing my old gfortran was not sufficient I what  obliged to do a symlink from /usr/local/bin/gfortran on  {prefix}/bin/gfortran-mp-xxx
> 
> 
> Concerning my problem it seems that gfortran is now well detected, but problem arises when petsc
> tries to see if it is possible to run mpi with fortran. Without adding --with-fc=/opt/local/bin/openmpif90
> it doesn't work.
> 
> Regards.
> 
> 
> Le 03/12/10 13:37, Ryan Schmidt a écrit :
>> On Dec 3, 2010, at 01:35, Frédéric Dubois wrote:
>> 
>>> Hello,
>>> For a mysterious reason I am not able to generate petsc package on my mac (os 10.6.x)
>>> As suggested I had a look to the main.log file.
>>> It seems that the problem comes from the configuration stage.
>>> When I modify slightly the macport generated command it works !!
>>> For example here I only need to add "--with-fc=/opt/local/bin/openmpif90" to the
>>> configure.py options of petsc to make it work.
>>> And at the end I was able to build the package by hand.
>>> But finally I don't know how to put the build library in the macport filesystem (/opt/local/xxx).
>>> 
>>> I guess that the best should be that macport do the job by itself but
>>> I don't understand how I can tell macport to add this option ...
>>> 
>>> Any idea ?
>> It sounds like something that should be reported in our issue tracker.
>> 
>> Does this issue match what you see?
>> 
>> http://trac.macports.org/ticket/27223
>> 
>> If so, you should add your observations to that ticket.
>> 
>> If not, you should file a new ticket.
>> 
>> 
>> 
>> 
>> 
> 
> -- 
> Frédéric Dubois, Eng, PhD
> LMGC - UMR CNRS 5508
> Université de Montpellier 2, cc 048
> Place Eugène Bataillon
> 34095 Montpellier Cedex 05
> Tel 33/0 467144984 - Fax 33/0 467143923
> http://www.lmgc.univ-montp2.fr/~dubois/LMGC90
> 



More information about the macports-users mailing list