[MacPorts] #27223: PETSc doesn't compile
MacPorts
noreply at macports.org
Sat Jul 30 05:15:50 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 abenpst@…):
I want to confirm that what jonimpel suggested worked for me.
I tried to install PETSc using "port install petsc" without changing the
Portfile. It stopped at the configure stage with the "Fortran could not
successfully link C++" error
I included --with-fc=/opt/local/bin.openmpif90 in the Portfile and then
using "port install petsc." Same error.
I included --LDFLAGS=-lstdc++ to the Portfile and then using "port install
petsc". Same error.
Finally, I did:
cd
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_petsc/petsc/work/petsc-3.1-p7
export
PETSC_DIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_petsc/petsc/work/petsc-3.1-p7
sudo ./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/petsc/work/destroot/opt/local/lib/petsc
--with-cc=/opt/local/bin/openmpicc --with-cxx=/opt/local/bin/openmpicxx
--with-mpiexec=/opt/local/bin/openmpiexec --with-
fc=/opt/local/bin/openmpif90
Everything worked this time. I then had to do some "make" commands, just
following what it told me to do.
PETSc seems to be up and running.
--
Ticket URL: <https://trac.macports.org/ticket/27223#comment:10>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list