[MacPorts] #66307: Scalapack: configure options breaking build on PPC
MacPorts
noreply at macports.org
Mon Nov 21 10:45:43 UTC 2022
#66307: Scalapack: configure options breaking build on PPC
-------------------------------------------+-----------------------
Reporter: barracuda156 | Owner: catap
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.0
Keywords: powerpc, leopard, snowleopard | Port: scalapack
-------------------------------------------+-----------------------
Existing configure fails with mpich-gcc. To begin with, it tries to
install mpich-default, warning that it gonna fail. After removing mpi
specification line, configure fails on:
{{{
-- Check for working Fortran compiler: /opt/local/bin/gfortran-mp-12 -
skipped
-- Found MPI_C: /usr/lib/libmpi.dylib (found version "2.0")
-- Could NOT find MPI_Fortran (missing: MPI_Fortran_LIB_NAMES
MPI_Fortran_F77_HEADER_DIR MPI_Fortran_MODULE_DIR MPI_Fortran_WORKS)
-- Could NOT find MPI (missing: MPI_Fortran_FOUND) (found version "2.0")
-- Found MPI_LIBRARY : FALSE
CMake Error at CMakeLists.txt:74 (message):
--> MPI Library NOT FOUND -- please set MPI_BASE_DIR accordingly --
-- Configuring incomplete, errors occurred!
}}}
Yet `mpich` ''is'' installed with `gfortran`. The problem is that
`${mpi.fc}` is not a name of a compiler, but only a prefix; naturally, it
fails to be found.
This works correctly:
{{{
pre-configure {
configure.args-append \
-DMPI_C_COMPILER=${mpi.cc}-mpich-gcc12 \
-DMPI_Fortran_COMPILER=${mpi.fc}-mpich-gcc12 \
-DMPIEXEC=${prefix}/bin/${mpi.exec} \
-DLAPACK_LIBRARIES="-L${prefix}/lib ${linalglib}"
}
}}}
Obviously, a general fix should be added either to the PG or the port. I
just quoted what fixed the failure locally.
Also, this should be added, otherwise `gcc-4.2` is picked and it fails on
configure due to unsupported flags:
{{{
compiler.blacklist *gcc-4.*
}}}
--
Ticket URL: <https://trac.macports.org/ticket/66307>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list