pierotofy/OpenSplat

compiler error linux (ubuntu 22.04 / gcc11 / cuda 11.8)

Opened this issue · 2 comments

"parameter packs not expanded with" error using gcc 11.4.0 on ubuntu 22.04 x86_64

[  4%] Building CUDA object CMakeFiles/gsplat.dir/vendor/gsplat/forward.cu.o
/usr/include/c++/11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’:
  435 |         function(_Functor&& __f)
      |                                                                                                                                                 ^ 
/usr/include/c++/11/bits/std_function.h:435:145: note:         ‘_ArgTypes’
/usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’:
  530 |         operator=(_Functor&& __f)
      |                                                                                                                                                  ^ 
/usr/include/c++/11/bits/std_function.h:530:146: note:         ‘_ArgTypes’

This loos like a C++20 feature. Please update docs if there is a recommended compiler configuration known to work (clang or more bleeding edge compiler on linux). If this is misconfiguration it doesn't seem obvious regarding a possible misstep.

It might be an issue with nvcc and gcc 11. NVIDIA/nccl#650

Thanks, I'll review that, and see what I can do. Since this is a fairly up to date system I use for development, I guess I will need to deal with maintaining multiple compilers.