Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Build problem on Linux (ubuntu 22.04): No known features for CXX compiler "GNU" version 9.3.0. #308

Closed
compressionist opened this issue Mar 4, 2022 · 4 comments

Comments

@compressionist
Copy link

Hey all, I'm having an issue on a Linux machine (ubuntu 22.04):

When running "cmake . -B build -DCMAKE_CUDA_COMPILER=/usr/local/cuda-11.6/bin/nvcc" I get

-- Using X11 for window creation
-- OptiX_INSTALL_DIR value: /usr/local/NVIDIA-OptiX-SDK-7.4.0-linux64-x86_64
-- pybind11 v2.7.1 
CMake Warning (dev) at /snap/cmake/1005/share/cmake-3.22/Modules/CMakeDependentOption.cmake:84 (message):
  Policy CMP0127 is not set: cmake_dependent_option() supports full Condition
  Syntax.  Run "cmake --help-policy CMP0127" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
  dependencies/pybind11/CMakeLists.txt:98 (cmake_dependent_option)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Targeting GPU architectures: 75
-- Configuring done
CMake Error in CMakeLists.txt:
  No known features for CXX compiler

  "GNU"

  version 9.3.0.

How to fix it?

@wyhuai
Copy link

wyhuai commented Mar 5, 2022

I got the same problem for gcc 7.5.0

@Tom94
Copy link
Collaborator

Tom94 commented Mar 7, 2022

Does it help to manually set environment variables as described in #28?

@compressionist
Copy link
Author

compressionist commented Mar 7, 2022

I compiled it with:

export CC=/usr/bin/gcc-11
export CXX=/usr/bin/g++-11
cmake .  -DCMAKE_CUDA_COMPILER=/usr/local/cuda-11.6/bin/nvcc
make
I then ran: "~/instant-ngp$ ./testbed --no-gui --scene data/nerf/fox"

It looks like it works. But, how long should this example run on a 6000 Quadro RTX?
How can I know that everything compiled fine?

@Tom94
Copy link
Collaborator

Tom94 commented Mar 23, 2022

You can use the provided python bindings (scripts/run.py contains an example) to train for a set number of steps and to render an image afterwards. Cheers!

@Tom94 Tom94 closed this as completed Mar 23, 2022
@NVlabs NVlabs locked and limited conversation to collaborators Mar 23, 2022
@Tom94 Tom94 converted this issue into discussion #375 Mar 23, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants