Dear Fateme,
I think that this bug has already been fixed in the recent ALPS source code.
Unfortunately, we can not access the latest source code as the server is currently shutdown, but a recent snapshot is available at
http://exa.phys.s.u-tokyo.ac.jp/archive/MateriApps/src/alps_20220304~r7871.orig.tar.gz
Please try this version and see if it works.
Best,
Synge
> On Jul 17, 2022, at 14:50, fateme heydari nasab <fatiheydaree@gmail.com> wrote:
>
> Dear All
>
> I'm new in ALPS, and want install it on ubuntu 21.04, but there are some problems in the installation procedure. Would you please help me to solve this problem and install ALPS correctly?! This is the complete error I have gotten:
>
> In file included from /home/fheydari/alps/src/alps/alea/histogrameval.h:36,
> from /home/fheydari/alps/src/alps/alea/observablefactory.C:38:
> /home/fheydari/alps/src/alps/alea/histogram.h: In member function ‘alps::HistogramObservable<T>::const_iterator alps::HistogramObservable<T>::rbegin() const’:
> /home/fheydari/alps/src/alps/alea/histogram.h:88:59: error: could not convert ‘((const alps::HistogramObservable<T>*)this)->alps::HistogramObservable<T>::histogram_.std::vector<unsigned int>::rbegin()’ from ‘std::vector<unsigned int>::reverse_iterator’ {aka ‘std::reverse_iterator<__gnu_cxx::__normal_iterator<unsigned int*, std::vector<unsigned int> > >’} to ‘alps::HistogramObservable<T>::const_iterator’ {aka ‘std::vector<unsigned int>::const_iterator’}
> 88 | const_iterator rbegin() const { return histogram_.rbegin();}
> | ~~~~~~~~~~~~~~~~~^~
> | |
> | std::vector<unsigned int>::reverse_iterator {aka std::reverse_iterator<__gnu_cxx::__normal_iterator<unsigned int*, std::vector<unsigned int> > >}
> /home/fheydari/alps/src/alps/alea/histogram.h: In member function ‘alps::HistogramObservable<T>::const_iterator alps::HistogramObservable<T>::rend() const’:
> /home/fheydari/alps/src/alps/alea/histogram.h:90:55: error: could not convert ‘((const alps::HistogramObservable<T>*)this)->alps::HistogramObservable<T>::histogram_.std::vector<unsigned int>::rend()’ from ‘std::vector<unsigned int>::reverse_iterator’ {aka ‘std::reverse_iterator<__gnu_cxx::__normal_iterator<unsigned int*, std::vector<unsigned int> > >’} to ‘alps::HistogramObservable<T>::const_iterator’ {aka ‘std::vector<unsigned int>::const_iterator’}
> 90 | const_iterator rend() const { return histogram_.rend();}
> | ~~~~~~~~~~~~~~~^~
> | |
> | std::vector<unsigned int>::reverse_iterator {aka std::reverse_iterator<__gnu_cxx::__normal_iterator<unsigned int*, std::vector<unsigned int> > >}
> make[2]: *** [src/alps/CMakeFiles/alps.dir/build.make:173: src/alps/CMakeFiles/alps.dir/alea/observablefactory.C.o] Error 1
> make[1]: *** [CMakeFiles/Makefile2:2758: src/alps/CMakeFiles/alps.dir/all] Error 2
> make: *** [Makefile:182: all] Error 2
>
>
>
>
> Sincerely yours,
> Fateme
>
>
> --
> Fateme Heydari-Nasab, Ph.D.
> University of Sistan and Baluchestan
> University Blvd, Zahedan, Iran
> PoBox: 98155-987
> Tel: +98-54-31136391
> https://www.usb.ac.ir/astaff/fheydari
> Email: fheydari@phys.usb.ac.ir
> fatiheydaree@gmail.com
>
>
> ----
> Comp-phys-alps-users Mailing List for the ALPS Project
> http://alps.comp-phys.org/
>
> List info: https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users
> Archive: https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users
>
> Unsubscribe by writing a mail to comp-phys-alps-users-leave@lists.phys.ethz.ch.
----
Comp-phys-alps-users Mailing List for the ALPS Project
http://alps.comp-phys.org/
List info: https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users
Archive: https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users
Unsubscribe by writing a mail to comp-phys-alps-users-leave@lists.phys.ethz.ch.