Erkin,
Please take a look at the conversation at
https://github.com/dealii/candi/issues/309#issuecomment-1295958250
that discusses the issue. You might be able to compile by going back
to the older version as mentioned in the comment.

Alternatively, you could disable Trilinos explicit instantiations:
https://github.com/dealii/candi/blob/beef9258162adcdc80ed0d8166600d5009640332/deal.II-toolchain/packages/trilinos.package#L211

Please let us know your results by posting in that issue!

On Tue, Jan 17, 2023 at 1:38 PM erkin yildiz <e.yil...@unibs.it> wrote:
>
> Dear community I have been trying to install deal. ii on my new MacBookPRO M2 
> OSX 13. 1 (22C65) following the instructions at the webpage https: //github. 
> com/dealii/dealii/wiki/Apple-ARM-M1-OSX After brewing brew install cmake 
> open-mpi gcc@ 11 ‍
> ZjQcmQRYFpfptBannerStart
> This Message Is From an External Sender
> Use caution when opening links or attachments if you do not recognize the 
> sender.
>
> ZjQcmQRYFpfptBannerEnd
> Dear community
>
> I have been trying to install deal.ii on my new MacBookPRO M2 OSX 13.1 (22C65)
> following the instructions at the webpage 
> https://github.com/dealii/dealii/wiki/Apple-ARM-M1-OSX
>
> After brewing
>
> brew install cmake open-mpi gcc@11
>
> (I tried also gcc@12, BTW) deal.ii has been installed according to
>
> git clone https://github.com/dealii/candi
> cd candi
> ./candi.sh -j 8 --packages="hdf5 p4est trilinos dealii"
>
> An error occurs in installing Trilinos, namely
>
> [ … ]
>
> [ 69%] Linking CXX shared library libstratimikosamesos2.dylib
>
> [ 69%] Linking CXX shared library libstratimikosbelos.dylib
>
> Undefined symbols for architecture arm64:
>
>   "Amesos2::TachoSolver<Tpetra::CrsMatrix<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> >, 
> Tpetra::MultiVector<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> > 
> >::TachoSolver(Teuchos::RCP<Tpetra::CrsMatrix<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> > 
> const>, Teuchos::RCP<Tpetra::MultiVector<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> > 
> >, Teuchos::RCP<Tpetra::MultiVector<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> > 
> const>)", referenced from:
>
>       Amesos2::create_solver_with_supported_type<Amesos2::TachoSolver, 
> Tpetra::CrsMatrix<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> >, 
> Tpetra::MultiVector<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> > 
> >::apply(Teuchos::RCP<Tpetra::CrsMatrix<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> > 
> const>, Teuchos::RCP<Tpetra::MultiVector<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> > 
> >, Teuchos::RCP<Tpetra::MultiVector<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> > 
> const>) in Thyra_Amesos2LinearOpWithSolveFactory.cpp.o
>
>   "Amesos2::KLU2<Tpetra::CrsMatrix<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> >, 
> Tpetra::MultiVector<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> > 
> >::KLU2(Teuchos::RCP<Tpetra::CrsMatrix<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> > 
> const>, Teuchos::RCP<Tpetra::MultiVector<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> > 
> >, Teuchos::RCP<Tpetra::MultiVector<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> > 
> const>)", referenced from:
>
>       Amesos2::create_solver_with_supported_type<Amesos2::KLU2, 
> Tpetra::CrsMatrix<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> >, 
> Tpetra::MultiVector<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> > 
> >::apply(Teuchos::RCP<Tpetra::CrsMatrix<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> > 
> const>, Teuchos::RCP<Tpetra::MultiVector<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> > 
> >, Teuchos::RCP<Tpetra::MultiVector<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> > 
> const>) in Thyra_Amesos2LinearOpWithSolveFactory.cpp.o
>
> ld: symbol(s) not found for architecture arm64
>
> clang: error: linker command failed with exit code 1 (use -v to see 
> invocation)
>
> make[2]: *** 
> [packages/stratimikos/adapters/amesos2/src/libstratimikosamesos2.13.2.dylib] 
> Error 1
>
> make[1]: *** 
> [packages/stratimikos/adapters/amesos2/src/CMakeFiles/stratimikosamesos2.dir/all]
>  Error 2
>
> make[1]: *** Waiting for unfinished jobs....
>
> Undefined symbols for architecture arm64:
>
>   "Tpetra::MultiVector<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> 
> >::getNumVectors() const", referenced from:
>
>       Tpetra::MatrixMarket::Writer<Tpetra::CrsMatrix<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> > 
> >::writeDense(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, 
> Tpetra::MultiVector<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> > 
> const&, std::__1::basic_string<char, std::__1::char_traits<char>, 
> std::__1::allocator<char> > const&, std::__1::basic_string<char, 
> std::__1::char_traits<char>, std::__1::allocator<char> > const&, 
> Teuchos::RCP<Teuchos::basic_FancyOStream<char, std::__1::char_traits<char> > 
> > const&, Teuchos::RCP<Teuchos::basic_FancyOStream<char, 
> std::__1::char_traits<char> > > const&) in Thyra_BelosLinearOpWithSolve.cpp.o
>
>       Tpetra::MatrixMarket::Writer<Tpetra::CrsMatrix<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> > 
> >::writeDenseHeader(std::__1::basic_ostream<char, std::__1::char_traits<char> 
> >&, Tpetra::MultiVector<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> > 
> const&, std::__1::basic_string<char, std::__1::char_traits<char>, 
> std::__1::allocator<char> > const&, std::__1::basic_string<char, 
> std::__1::char_traits<char>, std::__1::allocator<char> > const&, 
> Teuchos::RCP<Teuchos::basic_FancyOStream<char, std::__1::char_traits<char> > 
> > const&, Teuchos::RCP<Teuchos::basic_FancyOStream<char, 
> std::__1::char_traits<char> > > const&) in Thyra_BelosLinearOpWithSolve.cpp.o
>
>       Tpetra::MatrixMarket::Writer<Tpetra::CrsMatrix<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> > 
> >::writeDenseColumn(std::__1::basic_ostream<char, std::__1::char_traits<char> 
> >&, Tpetra::MultiVector<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> > 
> const&, Teuchos::RCP<Teuchos::basic_FancyOStream<char, 
> std::__1::char_traits<char> > > const&, 
> Teuchos::RCP<Teuchos::basic_FancyOStream<char, std::__1::char_traits<char> > 
> > const&) in Thyra_BelosLinearOpWithSolve.cpp.o
>
>   "Tpetra::MultiVector<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> 
> >::getLocalLength() const", referenced from:
>
>       Tpetra::MatrixMarket::Writer<Tpetra::CrsMatrix<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> > 
> >::writeDenseColumn(std::__1::basic_ostream<char, std::__1::char_traits<char> 
> >&, Tpetra::MultiVector<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> > 
> const&, Teuchos::RCP<Teuchos::basic_FancyOStream<char, 
> std::__1::char_traits<char> > > const&, 
> Teuchos::RCP<Teuchos::basic_FancyOStream<char, std::__1::char_traits<char> > 
> > const&) in Thyra_BelosLinearOpWithSolve.cpp.o
>
>   "Tpetra::MultiVector<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> 
> >::getGlobalLength() const", referenced from:
>
>       Tpetra::MatrixMarket::Writer<Tpetra::CrsMatrix<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> > 
> >::writeDenseHeader(std::__1::basic_ostream<char, std::__1::char_traits<char> 
> >&, Tpetra::MultiVector<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> > 
> const&, std::__1::basic_string<char, std::__1::char_traits<char>, 
> std::__1::allocator<char> > const&, std::__1::basic_string<char, 
> std::__1::char_traits<char>, std::__1::allocator<char> > const&, 
> Teuchos::RCP<Teuchos::basic_FancyOStream<char, std::__1::char_traits<char> > 
> > const&, Teuchos::RCP<Teuchos::basic_FancyOStream<char, 
> std::__1::char_traits<char> > > const&) in Thyra_BelosLinearOpWithSolve.cpp.o
>
>   "Tpetra::MultiVector<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> 
> >::get1dCopy(Teuchos::ArrayView<float> const&, unsigned long) const", 
> referenced from:
>
>       Tpetra::MatrixMarket::Writer<Tpetra::CrsMatrix<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> > 
> >::writeDenseColumn(std::__1::basic_ostream<char, std::__1::char_traits<char> 
> >&, Tpetra::MultiVector<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> > 
> const&, Teuchos::RCP<Teuchos::basic_FancyOStream<char, 
> std::__1::char_traits<char> > > const&, 
> Teuchos::RCP<Teuchos::basic_FancyOStream<char, std::__1::char_traits<char> > 
> > const&) in Thyra_BelosLinearOpWithSolve.cpp.o
>
>   "Tpetra::MultiVector<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> 
> >::getVector(unsigned long) const", referenced from:
>
>       Tpetra::MatrixMarket::Writer<Tpetra::CrsMatrix<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> > 
> >::writeDense(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, 
> Tpetra::MultiVector<float, int, long long, 
> Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> > 
> const&, std::__1::basic_string<char, std::__1::char_traits<char>, 
> std::__1::allocator<char> > const&, std::__1::basic_string<char, 
> std::__1::char_traits<char>, std::__1::allocator<char> > const&, 
> Teuchos::RCP<Teuchos::basic_FancyOStream<char, std::__1::char_traits<char> > 
> > const&, Teuchos::RCP<Teuchos::basic_FancyOStream<char, 
> std::__1::char_traits<char> > > const&) in Thyra_BelosLinearOpWithSolve.cpp.o
>
> ld: symbol(s) not found for architecture arm64
>
> clang: error: linker command failed with exit code 1 (use -v to see 
> invocation)
>
> make[2]: *** 
> [packages/stratimikos/adapters/belos/src/libstratimikosbelos.13.2.dylib] 
> Error 1
>
> make[1]: *** 
> [packages/stratimikos/adapters/belos/src/CMakeFiles/stratimikosbelos.dir/all] 
> Error 2
>
> make: *** [all] Error 2
>
> Failure with exit status: 2
>
> Exit message: There was a problem building trilinos 13-2-0.
>
>
>
>
> Can anyone provide me some way to address the issue? Is it perhaps related to 
> the version of Trilinos? Can I install a former version (and in case, how 
> to?)?
>
> Many thanks
>
> Erkin
>
>
>
>
>
> Informativa sulla Privacy: https://www.unibs.it/it/node/1452
>
> --
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see 
> https://groups.google.com/d/forum/dealii?hl=en
> ---
> You received this message because you are subscribed to the Google Groups 
> "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to dealii+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/dealii/8439ad11-0dad-4437-83d6-c9289fee0969n%40googlegroups.com.



-- 
Timo Heister
http://www.math.clemson.edu/~heister/

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/CAMRj59GcBmRt5S%3DFVm-gYYa8f%3DDYRxbujBH8L4_fhiaEAHGxrg%40mail.gmail.com.

Reply via email to