Compilation on macOS with Clang is failing
Compilation with Clang on macOS is failing on the master branch:
In file included from /Users/gsell/src/OPAL/src/src/Solvers/MGPoissonSolver.cpp:35:
In file included from /Users/gsell/src/OPAL/src/src/Solvers/MGPoissonSolver.h:36:
In file included from /Users/gsell/src/OPAL/src/src/Solvers/PoissonSolver.h:5:
In file included from /Users/gsell/src/OPAL/src/src/Classic/Algorithms/PBunchDefs.h:4:
In file included from /Users/gsell/src/OPAL/src/src/Classic/Algorithms/Vektor.h:4:
In file included from /Users/gsell/src/OPAL/src/ippl/src/AppTypes/Vektor.h:15:
In file included from /Users/gsell/src/OPAL/src/ippl/src/Utility/PAssert.h:9:
In file included from /Users/gsell/src/OPAL/src/ippl/src/Utility/IpplInfo.h:46:
In file included from /Users/gsell/src/OPAL/src/ippl/src/Utility/Inform.h:34:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iostream:37:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:215:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:14:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:504:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string_view:175:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__string:56:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:643:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2338:5: error:
delete called on 'IrregularDomain' that is abstract but has non-virtual destructor
[-Werror,-Wdelete-abstract-non-virtual-dtor]
delete __ptr;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2651:7: note:
in instantiation of member function 'std::__1::default_delete<IrregularDomain>::operator()' requested here
__ptr_.second()(__tmp);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2605:19: note:
in instantiation of member function 'std::__1::unique_ptr<IrregularDomain, std::__1::default_delete<IrregularDomain>
>::reset' requested here
~unique_ptr() { reset(); }
^
/Users/gsell/src/OPAL/src/src/Solvers/MGPoissonSolver.cpp:74:18: note: in instantiation of member function
'std::__1::unique_ptr<IrregularDomain, std::__1::default_delete<IrregularDomain> >::~unique_ptr' requested here
MGPoissonSolver::MGPoissonSolver ( PartBunch *beam,
^
1 error generated.
make[2]: *** [src/CMakeFiles/libOPAL.dir/build.make:6186: src/CMakeFiles/libOPAL.dir/Solvers/MGPoissonSolver.cpp.o] Error 1
make[2]: Leaving directory '/Users/gsell/src/OPAL/build-master'
make[1]: *** [CMakeFiles/Makefile2:735: src/CMakeFiles/libOPAL.dir/all] Error 2
make[1]: Leaving directory '/Users/gsell/src/OPAL/build-master'
make: *** [Makefile:130: all] Error 2
Edited by gsell