[GH-ISSUE #2576] setup: a default g++ newer than the CUDA toolkit accepts stops the engine build; an installed older g++ is not tried (follow-up to #2054) #1032

Closed
opened 2026-11-04 01:47:52 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @qiuzan2001 on GitHub (Oct 15, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2576

Follow-up to #2054 (the maintainer asked for it as its own issue).

What happens. On a rolling distribution the system g++ can move past what the installed CUDA toolkit accepts.
In #2054, gcc went from 14 to 16 on CachyOS with CUDA 12.8, and the engine build stopped in CMake's CUDA compiler
check with nvcc's #error -- unsupported GNU version! gcc versions later than 14 are not supported, although
g++-14 was installed. The same build had worked the day before.

Where. setup.py:3876 (host_compiler_defs, 296b59d2) passes CMAKE_C_COMPILER / CMAKE_CXX_COMPILER /
CMAKE_CUDA_HOST_COMPILER only when the user sets CC / CXX / CUDAHOSTCXX (#1645). Otherwise CMake takes the
default g++, and nothing tries an older one.

Workaround (from #2054). CC=gcc-14 CXX=g++-14 CUDAHOSTCXX=g++-14 ./update.sh.

Possible change. When none of the three is set and the default g++ is newer than the toolkit accepts, look for
an installed g++-N / gcc-N the toolkit does accept (newest first) and pass it as the host compiler, saying so.
Or, at least, catch nvcc's "unsupported GNU version" and print the workaround.

Not reproduced here: this box (Ubuntu, CUDA 13.1, gcc 15.2) builds with its default compiler.

Originally created by @qiuzan2001 on GitHub (Oct 15, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/2576 Follow-up to #2054 (the maintainer asked for it as its own issue). **What happens.** On a rolling distribution the system `g++` can move past what the installed CUDA toolkit accepts. In #2054, gcc went from 14 to 16 on CachyOS with CUDA 12.8, and the engine build stopped in CMake's CUDA compiler check with nvcc's `#error -- unsupported GNU version! gcc versions later than 14 are not supported`, although `g++-14` was installed. The same build had worked the day before. **Where.** `setup.py:3876` (`host_compiler_defs`, `296b59d2`) passes `CMAKE_C_COMPILER` / `CMAKE_CXX_COMPILER` / `CMAKE_CUDA_HOST_COMPILER` only when the user sets `CC` / `CXX` / `CUDAHOSTCXX` (#1645). Otherwise CMake takes the default `g++`, and nothing tries an older one. **Workaround (from #2054).** `CC=gcc-14 CXX=g++-14 CUDAHOSTCXX=g++-14 ./update.sh`. **Possible change.** When none of the three is set and the default `g++` is newer than the toolkit accepts, look for an installed `g++-N` / `gcc-N` the toolkit does accept (newest first) and pass it as the host compiler, saying so. Or, at least, catch nvcc's "unsupported GNU version" and print the workaround. Not reproduced here: this box (Ubuntu, CUDA 13.1, gcc 15.2) builds with its default compiler.
Author
Owner

@wilmer2000 commented on GitHub (Oct 17, 2026):

Same here:

Image

Fedora 44

<!-- gh-comment-id:6242917340 --> @wilmer2000 commented on GitHub (Oct 17, 2026): Same here: <img width="1746" height="790" alt="Image" src="https://github.com/user-attachments/assets/0e3e4bb7-079b-48d1-a6ab-7b93e748418a" /> Fedora 44
Author
Owner

@Niko1221 commented on GitHub (Oct 19, 2026):

Thanks for taking the time to report this.

We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6271113685 --> @Niko1221 commented on GitHub (Oct 19, 2026): Thanks for taking the time to report this. We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1032
No description provided.