[MacPorts] #27223: PETSc doesn't compile

MacPorts noreply at macports.org
Fri Mar 18 02:22:43 PDT 2011


#27223: PETSc doesn't compile
-----------------------------+----------------------------------------------
 Reporter:  mkr@…            |       Owner:  mmoll@…           
     Type:  defect           |      Status:  new               
 Priority:  Normal           |   Milestone:                    
Component:  ports            |     Version:  1.9.2             
 Keywords:                   |        Port:  petsc             
-----------------------------+----------------------------------------------

Comment(by jonimpel@…):

 I don't know the first thing about port files, but while playing around i
 found the working directory and the port status file.
 When I run "port install petsc" it always stops in the configure phase. So
 I tried to do the configuring manually within the working directory.
 To do so, I just had to add the correct PETSC_DIR (the working directory)
 to the environment variables and add the "--with-
 fc=/opt/local/bin/openmpif90" option to the configure command. Then, I
 used the same command as in the configuring procedure of the port file
 (shown when starting port -v install petsc).
 And it works without errors. In just adding in the state variable the
 configure state to be completed and running "port install petsc" again it
 runs perfectly through till the end. All test of petsc run also without
 problems.
 So there shouldn't be any error, it works theoretically.
 But when I add "--with-fc=${prefix}/bin/openmpif90" to the configure.args
 in the port file, the error in the configuring phase remains.
 Strange, but as I said, I'm a totally noob about writing a Portfile.
 However, perhaps my experiences with that could help a little bit.

 The configure command that worked perfectly was:
 ./configure --prefix=/opt/local --with-python --with-debugging=0
 --with-c-support=1 --with-c+-support=1 --with-pic=fPIC --with-shared=0
 --PETSC_ARCH=darwin
 --prefix=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_petsc/work/destroot/opt/local/lib/petsc
 --with-cc=/opt/local/bin/openmpicc --with-cxx=/opt/local/bin/openmpicxx
 --with-fc=/opt/local/bin/openmpif90 --with-
 mpiexec=/opt/local/bin/openmpiexec

-- 
Ticket URL: <https://trac.macports.org/ticket/27223#comment:9>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list