[MacPorts] #47696: PETSc port doesn't compile with +complex
#47696: PETSc port doesn't compile with +complex -------------------------------+-------------------------------- Reporter: drososkourounis@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: PETSc+complex | Port: -------------------------------+-------------------------------- Dear developers, I tried to compile slepc-3.5.3 with FEAST support. Unfortunately it reports that FEAST is supported only with complex numbers. {{{ :~/Work/Software/Optimization/FENICS/slepc-3.5.3$ ./configure --prefix=~/Work/Software/Optimization/FENICS/slepc-3.5.3/build --with- feast --with-feast- dir=~/Work/Software/Optimization/FENICS/FEAST/2.1/lib/osx --with-feast- flags='-lfeast_sparse -lfeast' Checking environment... Checking PETSc installation... ERROR: FEAST is supported only with complex numbers. ERROR: See "arch-darwin-c-opt/conf/configure.log" file for details }}} This happens because of the following: {{{ $cat config/feast.py }}} {{{ .......................................................................... def Check(conf,vars,cmake,tmpdir,directory,libs): if petscconf.SCALAR != 'complex': log.Exit('ERROR: FEAST is supported only with complex numbers.') }}} which means that PETSc needs to be compiled with +complex. I tried to compile PETSc this way and unfortunately no options succeeded. {{{ sudo port install petsc@3.5.3_1+accelerate+hypre+openmpi+parmetis+suitesparse+complex -mpich sudo port clean blabla sudo port uninstall blabla sudo port install petsc@3.5.3_1+accelerate+hypre+openmpi+parmetis+suitesparse+complex sudo port install petsc@3.5.3_1+accelerate+hypre+parmetis+suitesparse+complex }}} {{{ ~/Work/Software/Optimization/FENICS/slepc-3.5.3$ sudo port install petsc@3.5.3_1+accelerate+hypre+openmpi+parmetis+suitesparse+complex -mpich Password: ---> Computing dependencies for petsc ---> Fetching archive for petsc ---> Attempting to fetch petsc-3.5.3_1+accelerate+complex+hypre+openmpi+parmetis+suitesparse.darwin_13.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/petsc ---> Attempting to fetch petsc-3.5.3_1+accelerate+complex+hypre+openmpi+parmetis+suitesparse.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/petsc ---> Attempting to fetch petsc-3.5.3_1+accelerate+complex+hypre+openmpi+parmetis+suitesparse.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/petsc ---> Fetching distfiles for petsc ---> Verifying checksums for petsc ---> Extracting petsc ---> Applying patches to petsc ---> Configuring petsc Error: org.macports.configure for port petsc returned: configure failure: command execution failed Please see the log file for port petsc for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_petsc/petsc/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port petsc failed But anyone of the above without the +complex works. Below I attach the error log }}} -- Ticket URL: <https://trac.macports.org/ticket/47696> MacPorts <https://www.macports.org/> Ports system for OS X
#47696: petsc @3.5.3_1+complex: configure fails --------------------------------+-------------------- Reporter: drososkourounis@… | Owner: sean@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: petsc | --------------------------------+-------------------- Changes (by larryv@…): * keywords: PETSc+complex => * owner: macports-tickets@… => sean@… * port: => petsc Old description:
Dear developers, I tried to compile slepc-3.5.3 with FEAST support. Unfortunately it reports that FEAST is supported only with complex numbers. {{{ :~/Work/Software/Optimization/FENICS/slepc-3.5.3$ ./configure --prefix=~/Work/Software/Optimization/FENICS/slepc-3.5.3/build --with- feast --with-feast- dir=~/Work/Software/Optimization/FENICS/FEAST/2.1/lib/osx --with-feast- flags='-lfeast_sparse -lfeast' Checking environment... Checking PETSc installation... ERROR: FEAST is supported only with complex numbers. ERROR: See "arch-darwin-c-opt/conf/configure.log" file for details }}}
This happens because of the following:
{{{ $cat config/feast.py }}}
{{{ .......................................................................... def Check(conf,vars,cmake,tmpdir,directory,libs):
if petscconf.SCALAR != 'complex': log.Exit('ERROR: FEAST is supported only with complex numbers.')
}}}
which means that PETSc needs to be compiled with +complex. I tried to compile PETSc this way and unfortunately no options succeeded.
{{{ sudo port install petsc@3.5.3_1+accelerate+hypre+openmpi+parmetis+suitesparse+complex -mpich sudo port clean blabla sudo port uninstall blabla sudo port install petsc@3.5.3_1+accelerate+hypre+openmpi+parmetis+suitesparse+complex sudo port install petsc@3.5.3_1+accelerate+hypre+parmetis+suitesparse+complex }}}
{{{
~/Work/Software/Optimization/FENICS/slepc-3.5.3$ sudo port install petsc@3.5.3_1+accelerate+hypre+openmpi+parmetis+suitesparse+complex -mpich Password: ---> Computing dependencies for petsc ---> Fetching archive for petsc ---> Attempting to fetch petsc-3.5.3_1+accelerate+complex+hypre+openmpi+parmetis+suitesparse.darwin_13.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/petsc ---> Attempting to fetch petsc-3.5.3_1+accelerate+complex+hypre+openmpi+parmetis+suitesparse.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/petsc ---> Attempting to fetch petsc-3.5.3_1+accelerate+complex+hypre+openmpi+parmetis+suitesparse.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/petsc ---> Fetching distfiles for petsc ---> Verifying checksums for petsc ---> Extracting petsc ---> Applying patches to petsc ---> Configuring petsc Error: org.macports.configure for port petsc returned: configure failure: command execution failed Please see the log file for port petsc for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_petsc/petsc/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port petsc failed
But anyone of the above without the +complex works. Below I attach the error log }}}
New description: Dear developers,\\ I tried to compile slepc-3.5.3 with FEAST support. Unfortunately it reports that FEAST is supported only with complex numbers. {{{ :~/Work/Software/Optimization/FENICS/slepc-3.5.3$ ./configure --prefix=~/Work/Software/Optimization/FENICS/slepc-3.5.3/build --with- feast --with-feast- dir=~/Work/Software/Optimization/FENICS/FEAST/2.1/lib/osx --with-feast- flags='-lfeast_sparse -lfeast' Checking environment... Checking PETSc installation... ERROR: FEAST is supported only with complex numbers. ERROR: See "arch-darwin-c-opt/conf/configure.log" file for details }}} This happens because of the following: {{{ $cat config/feast.py }}} {{{ .......................................................................... def Check(conf,vars,cmake,tmpdir,directory,libs): if petscconf.SCALAR != 'complex': log.Exit('ERROR: FEAST is supported only with complex numbers.') }}} which means that PETSc needs to be compiled with +complex. I tried to compile PETSc this way and unfortunately no options succeeded. {{{ sudo port install petsc@3.5.3_1+accelerate+hypre+openmpi+parmetis+suitesparse+complex -mpich sudo port clean blabla sudo port uninstall blabla sudo port install petsc@3.5.3_1+accelerate+hypre+openmpi+parmetis+suitesparse+complex sudo port install petsc@3.5.3_1+accelerate+hypre+parmetis+suitesparse+complex }}} {{{ ~/Work/Software/Optimization/FENICS/slepc-3.5.3$ sudo port install petsc@3.5.3_1+accelerate+hypre+openmpi+parmetis+suitesparse+complex -mpich Password: ---> Computing dependencies for petsc ---> Fetching archive for petsc ---> Attempting to fetch petsc-3.5.3_1+accelerate+complex+hypre+openmpi+parmetis+suitesparse.darwin_13.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/petsc ---> Attempting to fetch petsc-3.5.3_1+accelerate+complex+hypre+openmpi+parmetis+suitesparse.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/petsc ---> Attempting to fetch petsc-3.5.3_1+accelerate+complex+hypre+openmpi+parmetis+suitesparse.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/petsc ---> Fetching distfiles for petsc ---> Verifying checksums for petsc ---> Extracting petsc ---> Applying patches to petsc ---> Configuring petsc Error: org.macports.configure for port petsc returned: configure failure: command execution failed Please see the log file for port petsc for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_petsc/petsc/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port petsc failed }}} But anyone of the above without the +complex works. Below I attach the error log -- Comment: Thanks for the report. In future tickets, please Cc any port maintainers (`port info --maintainers petsc`). -- Ticket URL: <https://trac.macports.org/ticket/47696#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#47696: petsc @3.5.3_1+complex: configure fails --------------------------------+-------------------- Reporter: drososkourounis@… | Owner: sean@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: invalid | Keywords: Port: petsc | --------------------------------+-------------------- Changes (by sean@…): * status: new => closed * resolution: => invalid Comment: At the end of the error log is the reason: {{{ Cannot use hypre with complex numbers it is not coded for this capability }}} If you remove `+hypre` then it should build fine. I should figure out a way to print this error to the user but don't have the time as it is. -- Ticket URL: <https://trac.macports.org/ticket/47696#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#47696: petsc @3.5.3_1+complex: configure fails --------------------------------+-------------------- Reporter: drososkourounis@… | Owner: sean@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: invalid | Keywords: Port: petsc | --------------------------------+-------------------- Comment (by dstrubbe@…): I just came across this ticket. It might be helpful to point out that I added FEAST as a port several months ago. -- Ticket URL: <https://trac.macports.org/ticket/47696#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts