Dear All,
I am trying to install alps on a new linux machine fedora 28. Linux 4.18.10-200.fc28.x86_64 g++ is as follows: g++ (GCC) 8.1.1 20180712 (Red Hat 8.1.1-5)
I've tried different sources (including boost): 2.2.b4, 2.2.b5 and 2.3.0 and also the latest snapshot. all versions fail compiling at the same point: Building CXX object src/alps/CMakeFiles/alps.dir/alea/observablefactory.C.o In file included from /home/gremaud/alps/alps/src/alps/alea/histogrameval.h:36, from /home/gremaud/alps/alps/src/alps/alea/observablefactory.C:38: /home/gremaud/alps/alps/src/alps/alea/histogram.h: In member function ‘alps::HistogramObservable<T>::const_iterator alps::HistogramObservable<T>::rbegin() const’: /home/gremaud/alps/alps/src/alps/alea/histogram.h:88:59: error: could not convert ‘((const alps::HistogramObservable<T>*)this)->alps::HistogramObservable<T>::histogram_.std::vector<unsign ed 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::His togramObservable<T>::const_iterator’ {aka ‘__gnu_cxx::__normal_iterator<const unsigned int*, std::vector<unsigned int> >’} const_iterator rbegin() const { return histogram_.rbegin();} ~~~~~~~~~~~~~~~~~^~ /home/gremaud/alps/alps/src/alps/alea/histogram.h: In member function ‘alps::HistogramObservable<T>::const_iterator alps::HistogramObservable<T>::rend() const’: /home/gremaud/alps/alps/src/alps/alea/histogram.h:90:55: error: could not convert ‘((const alps::HistogramObservable<T>*)this)->alps::HistogramObservable<T>::histogram_.std::vector<unsign ed 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::Histo gramObservable<T>::const_iterator’ {aka ‘__gnu_cxx::__normal_iterator<const unsigned int*, std::vector<unsigned int> >’} const_iterator rend() const { return histogram_.rend();}
The same versions were perfectly compiling a while ago on fedora 27 and centos 7.
I've also tried without boost sources but the installed one from fedora but it didn't work as well.
Can you help me? thanks
Best regards,
Benoît
--------------------
Researcher at CNRS,
Centre de Physique Théorique (Marseille, France) and UMI MajuLab (Singapore)
Visiting Associate Professor at the Centre for Quantum Technologies (NUS, Singapore)
comp-phys-alps-users@lists.phys.ethz.ch