[GH-ISSUE #2578] setup: a build folder configured without the engine target fails twice with "unknown target 'strata'" and is not reconfigured (follow-up to #2054) #1030

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

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

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

What happens (from the post-mortem in #2054). A build-cuda12/ folder that had been configured without the
engine's definitions (an interrupted earlier attempt, plus a manual cmake -S . -B build-cuda12) made the engine
build configure "successfully" and then stop at ninja: error: unknown target 'strata'. The build is tried a
second time, which fails the same way, and the last message does not point at the build folder. Deleting the folder
and running setup again fixed it.

Where. setup.py:3827 (cmake_build, 296b59d2) configures the existing folder, then runs the build twice.
Since 0.1.43.1, build_engine (setup.py:3962) says "the build folder ... may be configured for something else:
delete it and run this again" when the build finishes without a new engine. It does not reach that line when the
target does not exist, because cmake_build stops first.

Possible change. After configuring, check that the target exists (cmake --build <dir> --target help, or
ninja -t targets). If it does not, configure a fresh copy of the folder once before giving up, the way
isa_floor_defs (setup.py:3868) already deletes CMakeCache.txt when the ISA floor changes. Or name the folder
in the error.

Not reproduced here: I did not find which cached setting removes the strata target, since setup passes
-DSTRATA_ENABLE_CUDA=ON on every configure.

Originally created by @qiuzan2001 on GitHub (Oct 15, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/2578 Follow-up to #2054 (the maintainer asked for it as its own issue). **What happens (from the post-mortem in #2054).** A `build-cuda12/` folder that had been configured without the engine's definitions (an interrupted earlier attempt, plus a manual `cmake -S . -B build-cuda12`) made the engine build configure "successfully" and then stop at `ninja: error: unknown target 'strata'`. The build is tried a second time, which fails the same way, and the last message does not point at the build folder. Deleting the folder and running setup again fixed it. **Where.** `setup.py:3827` (`cmake_build`, `296b59d2`) configures the existing folder, then runs the build twice. Since 0.1.43.1, `build_engine` (`setup.py:3962`) says "the build folder ... may be configured for something else: delete it and run this again" when the build finishes without a new engine. It does not reach that line when the target does not exist, because `cmake_build` stops first. **Possible change.** After configuring, check that the target exists (`cmake --build <dir> --target help`, or `ninja -t targets`). If it does not, configure a fresh copy of the folder once before giving up, the way `isa_floor_defs` (`setup.py:3868`) already deletes `CMakeCache.txt` when the ISA floor changes. Or name the folder in the error. Not reproduced here: I did not find which cached setting removes the `strata` target, since setup passes `-DSTRATA_ENABLE_CUDA=ON` on every configure.
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:6271115601 --> @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#1030
No description provided.