Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#47696 closed defect (invalid)

petsc @3.5.3_1+complex: configure fails

Reported by: drososkourounis@… Owned by: seanfarley (Sean Farley)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc:
Port: petsc

Description (last modified by larryv (Lawrence Velázquez))

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

Attachments (1)

main.log (131.1 KB) - added by drososkourounis@… 10 years ago.
Log file of the configure script

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by drososkourounis@…

Attachment: main.log added

Log file of the configure script

comment:1 Changed 10 years ago by larryv (Lawrence Velázquez)

Description: modified (diff)
Keywords: PETSc+complex removed
Owner: changed from macports-tickets@… to sean@…
Port: petsc added
Summary: PETSc port doesn't compile with +complexpetsc @3.5.3_1+complex: configure fails

Thanks for the report. In future tickets, please Cc any port maintainers (port info --maintainers petsc).

comment:2 Changed 10 years ago by seanfarley (Sean Farley)

Resolution: invalid
Status: newclosed

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.

comment:3 Changed 9 years ago by dstrubbe (David Strubbe)

I just came across this ticket. It might be helpful to point out that I added FEAST as a port several months ago.

Note: See TracTickets for help on using tickets.