Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Error] "This compiler appears to be too old to be supported by Eigen" in building rasterize #111

Open
GiBucci opened this issue Jun 22, 2022 · 2 comments

Comments

@GiBucci
Copy link

GiBucci commented Jun 22, 2022

Hi everyone.

I am trying to install Dirt but I had lots of trouble with CUDA, version mismatches, OpenGL libraries and so on.

I tried many times to do a clean installation, and after many attempts I finally managed to solve CUDA problems, and now this happens:

Scanning dependencies of target rasterise
[ 16%] Building CXX object CMakeFiles/rasterise.dir/rasterise_egl.cpp.o
In file included from /mnt/c/Users/GiovanniBucci/Documents/Tests/dirt/csrc/rasterise_egl.cpp:24:
/home/gbucci/anaconda3/envs/tf/lib/python3.9/site-packages/tensorflow/include/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceCuda.h:3:2: warning: #warning "Deprecated header file, please either include the main Eigen/CXX11/Tensor header or the respective TensorDeviceGpu.h file" [-Wcpp]
    3 | #warning "Deprecated header file, please either include the main Eigen/CXX11/Tensor header or the respective TensorDeviceGpu.h file"
      |  ^~~~~~~
[ 33%] Building CUDA object CMakeFiles/rasterise.dir/rasterise_egl.cu.o
In file included from /home/gbucci/anaconda3/envs/tf/lib/python3.9/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/Core:19,
                 from /home/gbucci/anaconda3/envs/tf/lib/python3.9/site-packages/tensorflow/include/unsupported/Eigen/CXX11/Tensor:14,
                 from /home/gbucci/anaconda3/envs/tf/lib/python3.9/site-packages/tensorflow/include/third_party/eigen3/unsupported/Eigen/CXX11/Tensor:1,
                 from /home/gbucci/anaconda3/envs/tf/lib/python3.9/site-packages/tensorflow/include/tensorflow/core/framework/tensor.h:22,
                 from /mnt/c/Users/GiovanniBucci/Documents/Tests/dirt/csrc/rasterise_egl.cu:5:
/home/gbucci/anaconda3/envs/tf/lib/python3.9/site-packages/tensorflow/include/unsupported/Eigen/CXX11/../../../Eigen/src/Core/util/Macros.h:674:2: error: #error This compiler appears to be too old to be supported by Eigen
  674 | #error This compiler appears to be too old to be supported by Eigen
      |  ^~~~~
make[2]: *** [CMakeFiles/rasterise.dir/build.make:76: CMakeFiles/rasterise.dir/rasterise_egl.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/rasterise.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

I am currently trying to install it in Ubuntu for Windows.
Here you can find my system specifications:

System: Linux GiovanniBucci 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Nvidia-smi: NVIDIA-SMI 470.87 Driver Version: 472.56 CUDA Version: 11.4
GPU: NVIDIA GeForce RTX 3060 Laptop GPU

Configuration results:
-- The CXX compiler identification is GNU 9.4.0
-- The CUDA compiler identification is NVIDIA 11.7.64
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working CUDA compiler: /usr/local/cuda-11.7/bin/nvcc
-- Check for working CUDA compiler: /usr/local/cuda-11.7/bin/nvcc -- works
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so found components: OpenGL EGL

CUDA_HOME=/usr/local/cuda-11.7
PATH=PATH=/usr/local/cuda-11.7/bin:/home/gbucci/anaconda3/envs/tf/bin:/home/gbucci/anaconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:[........]

Let me know if you have any idea on why this happens, or if you need further information.

Waiting for your answer, thank you in advance, and have a nice day.

Giovanni

@Ashurali
Copy link

Ashurali commented Aug 4, 2022

I got same error too when trying to compile on WSL2 Ubuntu using 3060 laptop GPU
Changed the arch in CMakeLists to sm_86, otherwise untouched

@strangenerd
Copy link

strangenerd commented Nov 6, 2022

I got same error too when trying to compile on WSL2 Ubuntu using 3060 laptop GPU Changed the arch in CMakeLists to sm_86, otherwise untouched

How to change arch to sm_86?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants