pierotofy / OpenSplat

Production-grade 3D gaussian splatting with CPU/GPU support for Windows, Mac and Linux 🚀
https://antimatter15.com/splat/?url=https://splat.uav4geo.com/banana.splat
GNU Affero General Public License v3.0
924 stars 87 forks source link

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

Open truedat101 opened 8 months ago

truedat101 commented 8 months ago

"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.

pierotofy commented 8 months ago

It might be an issue with nvcc and gcc 11. https://github.com/NVIDIA/nccl/issues/650

truedat101 commented 8 months ago

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.