Skip to content

Cannot install on macOS #2

@ruizbaier

Description

@ruizbaier

Hi,

I cannot install LEoPart on macOS. I have FEniCS 2019.1.0 installed through Anaconda.

I do

git clone https://bitbucket.org/jakob_maljaars/leopart/

then

cd leopart/source/cpp/

then cmake . throws
-- The C compiler identification is AppleClang 13.0.0.13000029
-- The CXX compiler identification is AppleClang 13.0.0.13000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: /Users/rrui0002/anaconda3/envs/fenicsproject/bin/python (found version "3.10.1")
-- Found PythonLibs: /Users/rrui0002/anaconda3/envs/fenicsproject/lib/libpython3.10.dylib
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Performing Test HAS_FLTO_THIN
-- Performing Test HAS_FLTO_THIN - Success
-- Found pybind11: /Users/rrui0002/anaconda3/envs/fenicsproject/include (found version "2.8.1" )
-- Found PkgConfig: /Users/rrui0002/anaconda3/envs/fenicsproject/bin/pkg-config (found version "0.29.2")
-- Checking for one of the modules 'craypetsc_real;PETSc;petsc'
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of PetscInt
-- Check size of PetscInt - done
-- Checking for one of the modules 'crayslepc_real;SLEPc;slepc'
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/rrui0002/codes/leopart/source/cpp

And then, make gives several errors
[ 10%] Building CXX object CMakeFiles/particle_wrapper.dir/particle_wrapper.cpp.o
In file included from /Users/rrui0002/codes/leopart/source/cpp/particle_wrapper.cpp:7:
In file included from /Users/rrui0002/anaconda3/envs/fenicsproject/include/eigen3/Eigen/Dense:1:
In file included from /Users/rrui0002/anaconda3/envs/fenicsproject/include/eigen3/Eigen/Core:50:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/complex:242:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/sstream:184:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/ostream:137:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/ios:215:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__locale:15:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/string:511:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/string_view:179:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__string:57:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/algorithm:653:
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/memory:1428:5: error: delete called on non-final 'dolfin::advect_particles' that has virtual functions but non-virtual destructor [-Werror,-Wdelete-non-abstract-non-virtual-dtor]
delete _ptr;
^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/memory:1689:7: note: in instantiation of member function 'std::default_deletedolfin::advect_particles::operator()' requested here
ptr.second()(tmp);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/memory:1643:19: note: in instantiation of member function 'std::unique_ptrdolfin::advect_particles::reset' requested here
~unique_ptr() { reset(); }
^
/Users/rrui0002/anaconda3/envs/fenicsproject/include/pybind11/pybind11.h:1630:40: note: in instantiation of member function 'std::unique_ptrdolfin::advect_particles::~unique_ptr' requested here
v_h.holder<holder_type>().~holder_type();
^
/Users/rrui0002/anaconda3/envs/fenicsproject/include/pybind11/pybind11.h:1346:26: note: in instantiation of member function 'pybind11::class
dolfin::advect_particles::dealloc' requested here
record.dealloc = dealloc;
^
/Users/rrui0002/codes/leopart/source/cpp/particle_wrapper.cpp:66:3: note: in instantiation of function template specialization 'pybind11::class
dolfin::advect_particles::class
<>' requested here
py::class
dolfin::advect_particles(m, "advect_particles")
^
In file included from /Users/rrui0002/codes/leopart/source/cpp/particle_wrapper.cpp:7:
In file included from /Users/rrui0002/anaconda3/envs/fenicsproject/include/eigen3/Eigen/Dense:1:
In file included from /Users/rrui0002/anaconda3/envs/fenicsproject/include/eigen3/Eigen/Core:50:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/complex:242:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/sstream:184:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/ostream:137:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/ios:215:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__locale:15:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/string:511:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/string_view:179:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__string:57:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/algorithm:653:
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/memory:1428:5: error: delete called on non-final 'dolfin::advect_rk2' that has virtual functions but non-virtual destructor [-Werror,-Wdelete-non-abstract-non-virtual-dtor]
delete _ptr;
^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/memory:1689:7: note: in instantiation of member function 'std::default_deletedolfin::advect_rk2::operator()' requested here
ptr.second()(tmp);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/memory:1643:19: note: in instantiation of member function 'std::unique_ptrdolfin::advect_rk2::reset' requested here
~unique_ptr() { reset(); }
^
/Users/rrui0002/anaconda3/envs/fenicsproject/include/pybind11/pybind11.h:1630:40: note: in instantiation of member function 'std::unique_ptrdolfin::advect_rk2::~unique_ptr' requested here
v_h.holder<holder_type>().~holder_type();
^
/Users/rrui0002/anaconda3/envs/fenicsproject/include/pybind11/pybind11.h:1346:26: note: in instantiation of member function 'pybind11::class
dolfin::advect_rk2::dealloc' requested here
record.dealloc = dealloc;
^
/Users/rrui0002/codes/leopart/source/cpp/particle_wrapper.cpp:88:3: note: in instantiation of function template specialization 'pybind11::class
dolfin::advect_rk2::class
<>' requested here
py::class
dolfin::advect_rk2(m, "advect_rk2")
^
In file included from /Users/rrui0002/codes/leopart/source/cpp/particle_wrapper.cpp:7:
In file included from /Users/rrui0002/anaconda3/envs/fenicsproject/include/eigen3/Eigen/Dense:1:
In file included from /Users/rrui0002/anaconda3/envs/fenicsproject/include/eigen3/Eigen/Core:50:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/complex:242:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/sstream:184:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/ostream:137:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/ios:215:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__locale:15:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/string:511:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/string_view:179:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__string:57:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/algorithm:653:
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/memory:1428:5: error: delete called on non-final 'dolfin::advect_rk3' that has virtual functions but non-virtual destructor [-Werror,-Wdelete-non-abstract-non-virtual-dtor]
delete _ptr;
^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/memory:1689:7: note: in instantiation of member function 'std::default_deletedolfin::advect_rk3::operator()' requested here
ptr.second()(tmp);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/memory:1643:19: note: in instantiation of member function 'std::unique_ptrdolfin::advect_rk3::reset' requested here
~unique_ptr() { reset(); }
^
/Users/rrui0002/anaconda3/envs/fenicsproject/include/pybind11/pybind11.h:1630:40: note: in instantiation of member function 'std::unique_ptrdolfin::advect_rk3::~unique_ptr' requested here
v_h.holder<holder_type>().~holder_type();
^
/Users/rrui0002/anaconda3/envs/fenicsproject/include/pybind11/pybind11.h:1346:26: note: in instantiation of member function 'pybind11::class
dolfin::advect_rk3::dealloc' requested here
record.dealloc = dealloc;
^
/Users/rrui0002/codes/leopart/source/cpp/particle_wrapper.cpp:110:3: note: in instantiation of function template specialization 'pybind11::class
dolfin::advect_rk3::class
<>' requested here
py::class
dolfin::advect_rk3(m, "advect_rk3")
^
In file included from /Users/rrui0002/codes/leopart/source/cpp/particle_wrapper.cpp:7:
In file included from /Users/rrui0002/anaconda3/envs/fenicsproject/include/eigen3/Eigen/Dense:1:
In file included from /Users/rrui0002/anaconda3/envs/fenicsproject/include/eigen3/Eigen/Core:50:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/complex:242:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/sstream:184:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/ostream:137:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/ios:215:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__locale:15:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/string:511:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/string_view:179:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__string:57:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/algorithm:653:
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/memory:1428:5: error: delete called on non-final 'dolfin::advect_rk4' that has virtual functions but non-virtual destructor [-Werror,-Wdelete-non-abstract-non-virtual-dtor]
delete _ptr;
^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/memory:1689:7: note: in instantiation of member function 'std::default_deletedolfin::advect_rk4::operator()' requested here
ptr.second()(tmp);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/memory:1643:19: note: in instantiation of member function 'std::unique_ptrdolfin::advect_rk4::reset' requested here
~unique_ptr() { reset(); }
^
/Users/rrui0002/anaconda3/envs/fenicsproject/include/pybind11/pybind11.h:1630:40: note: in instantiation of member function 'std::unique_ptrdolfin::advect_rk4::~unique_ptr' requested here
v_h.holder<holder_type>().~holder_type();
^
/Users/rrui0002/anaconda3/envs/fenicsproject/include/pybind11/pybind11.h:1346:26: note: in instantiation of member function 'pybind11::class
dolfin::advect_rk4::dealloc' requested here
record.dealloc = dealloc;
^
/Users/rrui0002/codes/leopart/source/cpp/particle_wrapper.cpp:132:3: note: in instantiation of function template specialization 'pybind11::class
dolfin::advect_rk4::class
<>' requested here
py::class
dolfin::advect_rk4(m, "advect_rk4")
^
4 errors generated.
make[2]: *** [CMakeFiles/particle_wrapper.dir/particle_wrapper.cpp.o] Error 1
make[1]: *** [CMakeFiles/particle_wrapper.dir/all] Error 2
make: *** [all] Error 2

If instead I remove my installation of FEniCS and use the conda environment from leopart, I get exactly the same issues. Have you come across similar issues?

Thank you so much...

Ricardo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions