Opened 9 years ago

Last modified 8 years ago

#47696 closed defect

PETSc port doesn't compile with +complex — at Initial Version

Reported by: drososkourounis@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc:
Port: petsc

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

Change History (1)

Changed 9 years ago by drososkourounis@…

Attachment: main.log added

Log file of the configure script

Note: See TracTickets for help on using tickets.