Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dolfin installation #17

Open
RICQP opened this issue Jul 1, 2016 · 4 comments
Open

Dolfin installation #17

RICQP opened this issue Jul 1, 2016 · 4 comments

Comments

@RICQP
Copy link

RICQP commented Jul 1, 2016

Hi,

I tried to install Dolfin in OSX via Homebrew. All the installation was successful, with one exception: Dolfin.

I receipt the following error(the complete message is here:: 00.pdf):

Thanks for your attention

[ 6%] Building CXX object dolfin/CMakeFiles/dolfin.dir/common/SubSystemsManager.cpp.o /tmp/dolfin-20160701-11959-1wrbr1d/dolfin-1.6.0/dolfin/common/SubSystemsManager.cpp:182:5: error: no matching function for call to 'PetscOptionsInsert' PetscOptionsInsert(&argc, &argv, PETSC_NULL); ^~~~~~~~~~~~~~~~~~ /usr/local/include/petscoptions.h:39:29: note: candidate function not viable: requires 4 arguments, but 3 were provided PETSC_EXTERN PetscErrorCode PetscOptionsInsert(PetscOptions,int*,char ***,const char[]); ^ /tmp/dolfin-20160701-11959-1wrbr1d/dolfin-1.6.0/dolfin/common/SubSystemsManager.cpp:190:5: error: no matching function for call to 'PetscOptionsSetValue' PetscOptionsSetValue("-mat_mumps_icntl_7", "0"); ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/petscoptions.h:30:29: note: candidate function not viable: requires 3 arguments, but 2 were provided PETSC_EXTERN PetscErrorCode PetscOptionsSetValue(PetscOptions,const char[],const char[]); ^ /tmp/dolfin-20160701-11959-1wrbr1d/dolfin-1.6.0/dolfin/common/SubSystemsManager.cpp:191:5: error: no matching function for call to 'PetscOptionsSetValue' PetscOptionsSetValue("-mat_superlu_dist_colperm", "MMD_AT_PLUS_A"); ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/petscoptions.h:30:29: note: candidate function not viable: requires 3 arguments, but 2 were provided PETSC_EXTERN PetscErrorCode PetscOptionsSetValue(PetscOptions,const char[],const char[]); ^ /tmp/dolfin-20160701-11959-1wrbr1d/dolfin-1.6.0/dolfin/common/SubSystemsManager.cpp:195:5: error: no matching function for call to 'PetscOptionsInsert' PetscOptionsInsert(&argc, &argv, PETSC_NULL); ^~~~~~~~~~~~~~~~~~ /usr/local/include/petscoptions.h:39:29: note: candidate function not viable: requires 4 arguments, but 3 were provided PETSC_EXTERN PetscErrorCode PetscOptionsInsert(PetscOptions,int*,char ***,const char[]); ^ 4 errors generated. make[2]: *** [dolfin/CMakeFiles/dolfin.dir/common/SubSystemsManager.cpp.o] Error 1 make[1]: *** [dolfin/CMakeFiles/dolfin.dir/all] Error 2 make: *** [all] Error 2

@dpo
Copy link
Member

dpo commented Jul 1, 2016

Those error messages are due to a recent change in PETSc 3.7. I'll look into it. There's an updated dolfin from June 23rd, which may already contain the fix.

@RICQP
Copy link
Author

RICQP commented Jul 1, 2016

Hi,

I tried the installation with the new version of Dolfin, but i find me with another message.

Thank you for your help.

==> make
Last 15 lines from /Users/ricardo/Library/Logs/Homebrew/dolfin/02.make:
/tmp/dolfin-20160701-16785-mqatt9/dolfin-2016.1.0/dolfin/fem/UFC.h:126:7: note: 'interior_facet_integrals' declared here
      interior_facet_integrals;
      ^
/tmp/dolfin-20160701-16785-mqatt9/dolfin-2016.1.0/dolfin/fem/UFC.h:282:25: error: no member named 'max_overlap_subdomain_id' in 'ufc::form'; did you mean 'max_vertex_subdomain_id'?
      if (domain < form.max_overlap_subdomain_id())
                        ^~~~~~~~~~~~~~~~~~~~~~~~
                        max_vertex_subdomain_id
/usr/local/include/ufc.h:434:25: note: 'max_vertex_subdomain_id' declared here
    virtual std::size_t max_vertex_subdomain_id() const = 0;
                        ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [dolfin/CMakeFiles/dolfin.dir/adaptivity/ErrorControl.cpp.o] Error 1
make[1]: *** [dolfin/CMakeFiles/dolfin.dir/all] Error 2
make: *** [all] Error 2

@dpo
Copy link
Member

dpo commented Oct 16, 2016

Would you mind trying #20?

@github4uw
Copy link

I tried #20.

$ brew install https://raw.githubusercontent.com/optimizers/homebrew-fenics/48265d390b7cf3c8d57ff8f59d2abda3d1db6d01/dolfin.rb

But compilation of version 2016.1.0 fails with an error.
See error log.

However, also version 1.6.0 fails to build but with another error.
See error log.

All dependencies seems to be installed and working.

$ brew info dolfin
optimizers/fenics/dolfin: stable 1.6.0, HEAD
C++/Python interface of FEniCS
https://bitbucket.org/fenics-project/dolfin
Not installed
From: https://github.com/optimizers/homebrew-fenics/blob/master/dolfin.rb
==> Dependencies
Build: cmake ✔, cppunit ✔, pkg-config ✔, swig ✔
Required: eigen ✔, homebrew/science/suite-sparse ✔, boost --without-single --with-mpi ✔, optimizers/fenics/fiat ✔, optimizers/fenics/ufl ✔, optimizers/fenics/ffc ✔, optimizers/fenics/instant ✔
Recommended: homebrew/science/vtk ----with-qt ✔, homebrew/science/hdf5 --with-mpi ✔, homebrew/science/parmetis ✔, homebrew/science/pastix ✔, homebrew/science/petsc ✔, homebrew/science/slepc ✔, homebrew/science/scotch ✔, homebrew/science/trilinos ✔
==> Requirements
Required: fortran ✔, mpi4py (python module) ✔, numpy (python module) ✔, petsc4py (python module) ✔, ply (python module) ✔, slepc4py (python module) ✔
Recommended: mpi ✔
==> Options
--with-openmp
    Build with an Open-MP-enabled compiler
--without-hdf5
    Build without hdf5 support
--without-mpi
    Build without mpi support
--without-parmetis
    Build without parmetis support
--without-pastix
    Build without pastix support
--without-petsc
    Build without petsc support
--without-scotch
    Build without scotch support
--without-slepc
    Build without slepc support
--without-trilinos
    Build without trilinos support
--without-vtk
    Build without vtk support
--HEAD
    Install HEAD version
==> Caveats
    Do not source dolfin.conf, as the DYLIB settings conflict with Homebrew.

I am clueless at this point. What could I do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants