r-lidar / lidR

Airborne LiDAR data manipulation and visualisation for forestry application
https://CRAN.R-project.org/package=lidR
GNU General Public License v3.0
582 stars 130 forks source link

Intel #767

Closed Jean-Romain closed 1 month ago

Jean-Romain commented 1 month ago

Issue on CRAN with Intel

https://www.stats.ox.ac.uk/pub/bdr/Intel/lidR.out

Come from stable_sort in Quadtree.h

In file included from RcppFunction.cpp:34:
In file included from ./LAS.h:4:
In file included from /data/gannet2/ripley/R/test-MKL/RcppArmadillo/include/RcppArmadillo.h:29:
In file included from /data/gannet2/ripley/R/test-MKL/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:25:
In file included from /data/gannet2/ripley/R/test-MKL/Rcpp/include/RcppCommon.h:62:
In file included from /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/functional:64:
In file included from /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_algo.h:61:
/usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_tempbuf.h:263:8: warning: 'get_temporary_buffer<unsigned char>' is deprecated [-Wdeprecated-declarations]
  263 |                 std::get_temporary_buffer<value_type>(_M_original_len));
      |                      ^
/usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_algo.h:4996:15: note: in instantiation of member function 'std::_Temporary_buffer<__gnu_cxx::__normal_iterator<unsigned char *, std::vector<unsigned char>>, unsigned char>::_Temporary_buffer' requested here
 4996 |       _TmpBuf __buf(__first, (__last - __first + 1) / 2);
      |               ^
/usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/stl_algo.h:5070:23: note: in instantiation of function template specialization 'std::__stable_sort<__gnu_cxx::__normal_iterator<unsigned char *, std::vector<unsigned char>>, __gnu_cxx::__ops::_Iter_comp_iter<(lambda at ../inst/include/lidR/QuadTree.h:450:44)>>' requested here
 5070 |       _GLIBCXX_STD_A::__stable_sort(__first, __last,
      |                       ^
../inst/include/lidR/QuadTree.h:450:8: note: in instantiation of function template specialization 'std::stable_sort<__gnu_cxx::__normal_iterator<unsigned char *, std::vector<unsigned char>>, (lambda at ../inst/include/lidR/QuadTree.h:450:44)>' requested here
  450 |   std::stable_sort(idx.begin(), idx.end(), [&d](size_t i1, size_t i2) {return d[i1] < d[i2];});