feat(translation,ide): add native C driver, Ninja custom commands, CMake CXX_MODULES, and vbs ide integration
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 3s
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 3s
This commit is contained in:
1 parent
5e1916dc5c
commit
6c225c2dff
27 files changed
+3443
-331
No files matched your search
+2
-1
@@ -14,7 +14,7 @@ The SDK uses namespace `Void::Build`, `PascalCase` types/enum constants, and `sn
|
||||
`Profiles` supports:
|
||||
- `add(name, compile_options)`
|
||||
- `inherit(name, parent, compile_options)`
|
||||
- `define(ProfileDescription)` (supports `compile_options`, `link_options`, `defines`, `parent`, `compiler`, `cxx_standard`, `lto`, `sanitizers`, `sysroot`, `compiler_path`, `reproducibility_epoch`, `nondeterministic`)
|
||||
- `define(ProfileDescription)` (supports `compile_options`, `link_options`, `defines`, `parent`, `compiler`, `c_standard`, `cxx_standard`, `lto`, `sanitizers`, `sysroot`, `compiler_path`, `reproducibility_epoch`, `nondeterministic`)
|
||||
- `resolve(name, compiler_or_opt, os, architecture)` -> returns an immutable `ProfileContext`, throwing `std::invalid_argument` on unknown profile names, missing parents, or profile inheritance cycles.
|
||||
|
||||
## Targets and Usage Requirements
|
||||
@@ -44,6 +44,7 @@ Target names must be nonempty and unique per `Project`. Operations validate inpu
|
||||
| `.link_option(opt, visibility)` | Scoped linker flags |
|
||||
| `.link(Target\|ImportedTarget, visibility)` | Local or foreign imported library links (`Visibility::Private`, `Public`, `Interface`) |
|
||||
| `.depends_on(Target)` | Explicit action prerequisite ordering (for example, codegen producer before consumer) |
|
||||
| `.c_standard(CStandard)` | `Default`, `C11`, `C17`, `C23` (used with `gcc`/`clang` C driver for `.c` sources) |
|
||||
| `.cxx_standard(CxxStandard)` | `Default`, `Cxx17`, `Cxx20`, `Cxx23`, `Cxx26` |
|
||||
| `.precompiled_header(path)` / `.unity_build(enabled, batch_size)` | PCH and deterministic unity batching |
|
||||
| `.lto(LtoMode)` / `.sanitizer(Sanitizer)` | `LtoMode::None\|Full\|Thin`; `Sanitizer::Address\|Undefined\|Thread\|Memory\|Leak` |
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
Updated: 2026-11-27
|
||||
Branch: main
|
||||
Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1 & 2A + Track A (zero-CMake `.native_builder()` self-host, full `VOID_TEST` migration, & bit-identical Stage 2 == Stage 3 bootstrap) complete
|
||||
Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B1–B3) + Track E1 + `vbs ide` & `build.cpp` CompDB integration complete
|
||||
|
||||
## Completed delivery waves
|
||||
|
||||
@@ -48,10 +48,15 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1 & 2A + Track A (zero-CMake
|
||||
- **Track A1 (`builder == "native"`)**: Extended `ProviderRequest` in `include/Void/Build/Provider/Provider.hpp` and implemented `run_native_provider` in `src/Provider/Provider.cpp` handling both pure `build.cpp` subprojects and built-in `VoidLibrary` recipe closure (`VOID_ENABLED_MODULES`), complete with `Log`/`Async`-complete `Testing` closure in `recipes/VoidLibrary/VoidLibraryRecipe.cpp`, reverse-DFS static archive link ordering, `Void::*` target aliasing, `MetadataOnly` cache isolation, and `/proc/self/exe`-first SDK/binary discovery in `src/Main.cpp`. Switched root `build.cpp`'s `VoidLibrary` dependency from `.cmake(...)` to `.native_builder(...)`.
|
||||
- **Track A2 (Full `VOID_TEST` `VL-009` Migration & Complete Self-Test `build.cpp`)**: Converted all 40 existing test cases across `tests/{SdkDeclarations,ExampleContexts,CoreEngineTests,FullV1Tests,RegistryTests,SelfHostTests}.cpp` to VoidLibrary's self-registering `VOID_TEST(Suite, name)` macro, removed `VoidTestScanner.cmake` invocation from `CMakeLists.txt` and `tests/CMakeLists.txt`, and declared `vbs_benchmarks` plus all 5 `Void::Testing` executables (`vbs_sdk_tests`, `vbs_core_tests`, `vbs_v1_tests`, `vbs_registry_tests`, `vbs_selfhost_tests`) alongside `vbs_self_smoke` in root `build.cpp` (13 targets total).
|
||||
- **Track A3 (Bit-Identical Stage 2 == Stage 3 Bootstrap)**: Removed `$BUILD_DIR` from `GenerateBootstrapConfig` (`binary_dir = ""`), added disjoint `{profile_build_dir, "/vbs-build"}` prefix mapping in `src/Graph/Graph.cpp`, emitted `-frandom-seed=<filename>` on deterministic GCC compiles and `TZ=UTC`/`LC_ALL=C` on links in `src/Toolchain/Driver.cpp`, and verified `sha256(stage2/vbs) == sha256(stage3/vbs)` (`9280ea998492cd3f48833cf87b06d91940c1f465f29f3871289c1e01bcf2e0b3`) plus `libVoidBuildSdk.a` and `libVoidBuildCore.a` bit-for-bit equality with `cmake` trapped on `PATH`.
|
||||
- **Wave 10 (Track B [B1–B3] Foreign Translation Expansion + First-Class `vbs ide` & `build.cpp` CompDB Integration)**:
|
||||
- **Track B1 (First-Class C Driver & Mixed C/C++ Translation)**: Added `CStandard` (`Default`, `C11`, `C17`, `C23`) across `include/Void/Build.hpp`, `src/Build.cpp`, and `src/Config/Frontend.cpp`; extended `ToolchainCapabilities`/`CompileRequest` in `Driver.hpp`/`Driver.cpp` with `c_compiler` discovery/probing/caching and C lowering; extended `Graph.cpp` & `CompDb.cpp` for C compilation and `c_standard` emission; and upgraded `Translator.cpp` + `Provider.cpp` to pass `-DCMAKE_C_COMPILER`/`CC` and lower multi-compile-group mixed C/C++ CMake and Meson targets cleanly with `PerFileOption`.
|
||||
- **Track B2 (Bounded `build.ninja` `CUSTOM_COMMAND` Translation)**: Implemented shared `parse_ninja_custom_graph` & `CustomActionMaterializer` in `src/Provider/Translator.cpp` supporting hermetic CMake `add_custom_command`/`UTILITY` and Meson `custom_target`/`generated_sources` lowered to `TargetKind::CustomAction`, while explicitly rejecting `console` pools, `.util`-only side-effects, out-of-tree writes, in-tree codegen tools, and `run` targets.
|
||||
- **Track B3 (Foreign CMake C++20 `CXX_MODULES` & NixOS `clang-scan-deps` Include Discovery)**: Populated `ToolchainCapabilities::default_include_dirs` from Clang `-E -v` so NixOS `clang-scan-deps` resolves standard library headers; added `external_module_bmis` + `ImportedTargetInterface::module_bmis` propagation in `ModuleScanner.{hpp,cpp}`, `Graph.{hpp,cpp}`, `Provider.cpp`, and `Translator.cpp`; lowered CMake `CXX_MODULES` `fileSets` natively on both GCC 16 and Clang 23, including VBS targets importing modules exported by translated CMake libraries.
|
||||
- **IDE Integration (`build.cpp` CompDB & `vbs ide generate|query`)**: Added `project_build_descriptor_commands` indexing `build.cpp`/`build.profiles.cpp`/`build-support/` with `<Void/Build.hpp>` include paths in `compile_commands.json`; implemented `vbs ide generate` (non-destructive `.clangd` with GCC flag stripping, `.vscode/{tasks,launch,settings}.json`, `.zed/{tasks,debug}.json`, `.idea/customTargets.xml`) and `vbs ide query` workspace/target JSON output in `CompDb.{hpp,cpp}`, `Watcher.cpp`, `Main.cpp`, `tests/CliContracts.cmake`, and `tests/FullV1Tests.cpp`.
|
||||
|
||||
## Remaining future scope
|
||||
|
||||
- **Post-v1 Expansion Roadmap ([21-expansion-roadmap.md](../roadmap/21-expansion-roadmap.md) & [20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md))**: Track B (C driver, Ninja custom-command translation, foreign C++20 modules, Conan2), Track C (macOS/Windows ports + cross-compilation), Track D (shared HTTP CAS + parallel hashing + SBOM/signatures), and Track E2–E4 (`workspace.cpp`, local daemon, `Void::Net`/`Void::Sqlite` alignment) remain planned scope.
|
||||
- **Post-v1 Expansion Roadmap ([21-expansion-roadmap.md](../roadmap/21-expansion-roadmap.md) & [20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md))**: Live `conan` CLI verification (Track B3), Track C (macOS/Windows ports + dual-profile cross-compilation), Track D (shared HTTP CAS + parallel hashing + SBOM/signatures), Track E2 (`workspace.cpp`), Track E3 (`vbs daemon` local socket server + external editor plugins), and Track E4 (`Void::Net`/`Void::Sqlite` alignment) remain planned scope.
|
||||
|
||||
## Environment notes & upstream boundaries
|
||||
|
||||
|
||||
@@ -16,4 +16,5 @@ Base HEAD: `fe0d1a6`
|
||||
| Wave 7 (Plan 20 Slice 1 Bounded CMake Native Translation, Self-Testing `build.cpp`, `VL-009` `VOID_TEST`, & Warm Cache Hardening) | Bounded single-config C++ CMake File API audit + native `Graph::BuildGraph` translation + explicit fallback; self-test target `vbs_self_smoke` in `build.cpp`; `VL-009` `VOID_TEST` zero-CMake basename-collision test; stat-validated `StateStore` cache + `Scheduler` `RunDigestCache` | COMPLETE & VERIFIED | `include/Void/Build/Provider/Translator.hpp`, `src/Provider/Translator.cpp`, `tests/SelfBuildSmoke.cpp`, `src/State/StateStore.{hpp,cpp}`, `src/Execution/Scheduler.cpp`, `build.cpp`, `CMakeLists.txt`, `recipes/SelfHost/VbsSelfHostRecipe.cpp`, expanded tests & docs |
|
||||
| Wave 8 (Plan 20 Slice 2A Meson Native Translation, Everyday DX CLI, & Expansion Roadmap) | Bounded Meson `intro-targets.json` + `build.ninja` native translation & unified `resolve_foreign_with_translation`; `vbs build\|test --native-foreign`, `vbs init`, `vbs clean`, `vbs doctor`, `vbs graph`; 5-track post-v1 expansion roadmap | COMPLETE & VERIFIED | `include/Void/Build/Provider/Translator.hpp`, `src/Provider/Translator.cpp`, `src/Main.cpp`, `tests/FullV1Tests.cpp`, `tests/CliContracts.cmake`, `docs/roadmap/21-expansion-roadmap.md`, updated docs |
|
||||
| Wave 9 (Track A — Zero-CMake Self-Hosting, Full `VOID_TEST` Suite, & Bit-Identical Stage 2 == Stage 3) | First-class `builder == "native"` provider + `.native_builder()` in `build.cpp`; all tests migrated to `VOID_TEST(Suite, name)` & `VoidTestScanner.cmake` removed; all 13 targets (`vbs_benchmarks` + 6 test suites) declared in `build.cpp`; `binary_dir = ""` + `/vbs-build` prefix map + `-frandom-seed` Stage 2 == Stage 3 reproducibility verified with trapped `cmake` | COMPLETE & VERIFIED | `include/Void/Build/Provider/Provider.hpp`, `src/Provider/Provider.cpp`, `src/Graph/Graph.cpp`, `src/Toolchain/Driver.cpp`, `src/Main.cpp`, `recipes/VoidLibrary/VoidLibraryRecipe.{hpp,cpp}`, `build.cpp`, `CMakeLists.txt`, `tests/*`, docs |
|
||||
| Future (Tracks B–E2/E4 / Plan 20 Slices 2B–3) | C driver & Ninja custom-command translation, foreign C++20 modules & Conan2, macOS/Windows/cross-compile, shared HTTP CAS & SBOM/signatures, `workspace.cpp` & daemon | PLANNED (unimplemented) | [21-expansion-roadmap.md](../roadmap/21-expansion-roadmap.md), [20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md) |
|
||||
| Wave 10 (Track B [B1–B3] + First-Class `vbs ide` Integration) | Native C driver (`CStandard`) & mixed C/C++ CMake/Meson translation (`PerFileOption`); bounded `build.ninja` `CUSTOM_COMMAND` translation (`CustomAction`); foreign CMake `CXX_MODULES` `fileSets` & cross-target `module_bmis` + Clang `default_include_dirs`; `build.cpp` SDK CompDB indexing + `vbs ide generate\|query` | COMPLETE & VERIFIED | `include/Void/Build.hpp`, `Driver.{hpp,cpp}`, `ModuleScanner.{hpp,cpp}`, `Graph.{hpp,cpp}`, `CompDb.{hpp,cpp}`, `Provider.cpp`, `Translator.{hpp,cpp}`, `Watcher.cpp`, `Main.cpp`, `tests/{FullV1Tests.cpp,CliContracts.cmake}`, docs |
|
||||
| Future (Plan 20 Slice 3 / Tracks C–D, E2, E3 daemon, E4, live `conan`) | Live `conan` CLI verification; macOS/Windows/cross-compile; shared HTTP CAS & SBOM/signatures; `workspace.cpp`, `vbs daemon`, `Void::Net`/`Void::Sqlite` alignment | PLANNED (unimplemented) | [21-expansion-roadmap.md](../roadmap/21-expansion-roadmap.md), [20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md) |
|
||||
@@ -29,24 +29,24 @@ dev cpp-gcc -c clang-format --dry-run --Werror \
|
||||
registry/include/Void/Build/Registry/*.hpp registry/service/*.cpp \
|
||||
benchmarks/*.cpp tests/*.cpp
|
||||
```
|
||||
- Exit status: `0` (all 70 owned C++ headers/sources pass with zero formatting diffs).
|
||||
- Exit status: `0` (all owned C++ headers and sources pass with zero formatting diffs).
|
||||
|
||||
## CTest Suite Results (`dev cpp-gcc`)
|
||||
|
||||
```sh
|
||||
dev cpp-gcc -c ctest --test-dir build/dev --output-on-failure
|
||||
```
|
||||
- Exit status: `0` — **8 / 8 passed (100%) in 121.31 sec**:
|
||||
- Exit status: `0` — **8 / 8 passed (100%) in 132.20 sec**:
|
||||
|
||||
| # | CTest Name | Scope Verified | Result | Time |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| 1 | `vbs_sdk_tests` | 17 self-registered `VOID_TEST` cases (`SdkDeclarations` 14 + `ExampleContexts` 3 for 13-target `.native_builder()` `build.cpp` and pin `3e254055...`; zero CMake test scanner) | Passed | 0.01s |
|
||||
| 2 | `vbs_core_tests` | 6 `VOID_TEST` cases: `Void::Crypto` SHA-256 NIST vectors, `Void::Process` exec-fail & stubborn grandchild `SIGKILL`, profile inheritance/cycles, snapshot mutation/symlinks/header-shadowing (`Void::FileSystem`), stat-cached `StateStore` CAS recovery/GC, end-to-end native frontend + deterministic build + `RunDigestCache` | Passed | 11.41s |
|
||||
| 3 | `vbs_v1_tests` | 12 `VOID_TEST` cases: CompDB ticket races & `atomic_symlink_swap`, `Void::FileSystem::DirectoryWatcher` + `MetadataOnly` boundary, `Void::Data::Toml` + `Void::Semver::parse_range` PubGrub solver + CAS `vbs.lock`, `Void::Archive` `.tar` determinism & security rejection, real CMake & Meson providers + `VbsDeps.cmake` bridge + relocatable install + CLI `vbs install`/`vbs uninstall`, GCC 16 P1689 modules + full Plan 08 graph integration, **Plan 20 Slice 1** CMake translation, **Plan 20 Slice 2A** Meson translation, **Wave 8 DX CLI** E2E (`vbs init` -> `vbs test` -> `vbs graph` -> `vbs doctor` -> `vbs clean`), AND **Track A1** pure `build.cpp` subproject `.native_builder()` build with trapped `cmake` on `PATH` | Passed | 23.95s |
|
||||
| 4 | `vbs_registry_tests` | 2 `VOID_TEST` cases: `vbs-registry` HTTP/1.1 security/RBAC/CSRF/XSS/tar-422/backup-restore + full live CLI E2E `vbs publish` -> `vbs deps resolve` -> `vbs build --locked` | Passed | 4.02s |
|
||||
| 5 | `vbs_selfhost_tests` | 5 `VOID_TEST` cases: basename-collision-safe `vbs gen-tests`, strict non-CMake native `VoidLibrary` + direct `VOID_TEST` `SdkDeclarations.cpp` (zero scanner) + Stage 2, full Stage 0 -> Stage 1 native `VbsSelfHostRecipe` -> Stage 2 `vbs test` with trapped `cmake`, `VL-009` `VOID_TEST(suite, name)` colliding basenames (`alpha/Unit.cpp`, `beta/Unit.cpp`), AND **Track A3** cross-build-dir SHA-256 bit-identical reproducibility (`librepro_lib.a` & `repro_app` with `custom_action` + anonymous namespace + trapped `cmake`) | Passed | 81.80s |
|
||||
| 1 | `vbs_sdk_tests` | 17 self-registered `VOID_TEST` cases (`SdkDeclarations` 14 + `ExampleContexts` 3 for 13-target `.native_builder()` `build.cpp` and pin `3e254055...`; zero CMake test scanner) | Passed | 0.02s |
|
||||
| 2 | `vbs_core_tests` | 6 `VOID_TEST` cases: `Void::Crypto` SHA-256 NIST vectors, `Void::Process` exec-fail & stubborn grandchild `SIGKILL`, profile inheritance/cycles, snapshot mutation/symlinks/header-shadowing (`Void::FileSystem`), stat-cached `StateStore` CAS recovery/GC, end-to-end native frontend + deterministic build + `RunDigestCache` | Passed | 11.43s |
|
||||
| 3 | `vbs_v1_tests` | 16 `VOID_TEST` cases: CompDB ticket races & `atomic_symlink_swap`, `Void::FileSystem::DirectoryWatcher` + `MetadataOnly` boundary, `Void::Data::Toml` + `Void::Semver::parse_range` PubGrub solver + CAS `vbs.lock`, `Void::Archive` `.tar` determinism & security rejection, real CMake & Meson providers + `VbsDeps.cmake` bridge + relocatable install + CLI `vbs install`/`vbs uninstall`, GCC 16 P1689 modules + full Plan 08 graph integration, **Plan 20 Slice 1/2A** CMake & Meson translation (`USES_TERMINAL` / `console: true` fallback), **Wave 8 DX CLI**, **Track A1** pure `build.cpp` subproject `.native_builder()` with trapped `cmake`, **Track B1** pure C17+C++23 & mixed C/C++ CMake/Meson native translation + CompDB separation, **Track B2** hermetic `build.ninja` `CUSTOM_COMMAND` CMake/Meson native translation + `.util`/out-of-tree/`run_target` rejection, **Track B3** foreign CMake `CXX_MODULES` + cross-target `module_bmis`, AND **IDE Integration** (`build.cpp` CompDB `-fsyntax-only` check + `.clangd`/`.vscode`/`.zed`/`.idea` non-destructive generation + `vbs ide query`) | Passed | 34.05s |
|
||||
| 4 | `vbs_registry_tests` | 2 `VOID_TEST` cases: `vbs-registry` HTTP/1.1 security/RBAC/CSRF/XSS/tar-422/backup-restore + full live CLI E2E `vbs publish` -> `vbs deps resolve` -> `vbs build --locked` | Passed | 3.99s |
|
||||
| 5 | `vbs_selfhost_tests` | 5 `VOID_TEST` cases: basename-collision-safe `vbs gen-tests`, strict non-CMake native `VoidLibrary` + direct `VOID_TEST` `SdkDeclarations.cpp` (zero scanner) + Stage 2, full Stage 0 -> Stage 1 native `VbsSelfHostRecipe` -> Stage 2 `vbs test` with trapped `cmake`, `VL-009` `VOID_TEST(suite, name)` colliding basenames (`alpha/Unit.cpp`, `beta/Unit.cpp`), AND **Track A3** cross-build-dir SHA-256 bit-identical reproducibility (`librepro_lib.a` & `repro_app` with `custom_action` + anonymous namespace + trapped `cmake`) | Passed | 82.58s |
|
||||
| 6 | `vbs_sdk_registration` | 17 `VOID_TEST` registrations verified (`SdkDeclarations.*`, `ExampleContexts.*`); named JSON case executed | Passed | 0.01s |
|
||||
| 7 | `vbs_cli_contract` | 32 native CLI & auto-generated `Void::Argparse::Parser` help/subcommand/error contracts verified | Passed | 0.05s |
|
||||
| 7 | `vbs_cli_contract` | 37 native CLI & auto-generated `Void::Argparse::Parser` help/subcommand/error contracts verified (including `vbs ide` & `vbs ide generate|query`) | Passed | 0.05s |
|
||||
| 8 | `vbs_description_contract` | Four runtime profile/compiler contexts (`debug`/`release` x `gcc`/`clang` for 13-target `.native_builder()` `build.cpp`), auto-generated `vbs_describe --help`, and five error contracts verified | Passed | 0.06s |
|
||||
|
||||
## Real Zero-CMake Self-Build, Native Test Suite & Bit-Identical Stage 2 == Stage 3 (`vbs test` / `vbs build`)
|
||||
@@ -57,9 +57,9 @@ VBS_VOID_SOURCE_DIR=/home/faumaray/Projects/VoidBuildSystem/build/voidlibrary-pi
|
||||
dev cpp-gcc -c sh -c 'PATH="$PWD/build/cmake-trap:$PATH" build/dev/bin/vbs test --build-dir build/vbs-stage2 --profile release --target vbs --target vbs_self_smoke --target vbs_sdk_tests --target vbs_core_tests --jobs 8'
|
||||
```
|
||||
- Exit status: `0`:
|
||||
- `VoidLibrary` built completely natively without CMake in `12.57s` (`27 executed, 0 cached`), exporting 60 targets.
|
||||
- Root `build.cpp` built cleanly in `41.87s` (`42 executed, 0 cached`).
|
||||
- `vbs test` passed `vbs_sdk_tests` (`4 ms`), `vbs_self_smoke` (`2 ms`), and `vbs_core_tests` (`11324 ms`) with zero `cmake` invocations.
|
||||
- `VoidLibrary` built completely natively without CMake in `12.30s` (`27 executed, 0 cached`), exporting 60 targets.
|
||||
- Root `build.cpp` built cleanly in `41.92s` (`42 executed, 0 cached`, 13 targets, 55 actions).
|
||||
- `vbs test` passed `vbs_sdk_tests` (`6 ms`), `vbs_self_smoke` (`2 ms`), and `vbs_core_tests` (`11167 ms`) with zero `cmake` invocations.
|
||||
|
||||
### Stage 2 -> Stage 3: Bit-Identical Reproducible Self-Build (`sha256(stage2) == sha256(stage3)`) with trapped `cmake` (`--no-cache`)
|
||||
```sh
|
||||
@@ -69,28 +69,26 @@ sha256sum build/vbs-stage2/profiles/release/out/bin/vbs build/vbs-stage3/profile
|
||||
build/vbs-stage2/profiles/release/out/libVoidBuildSdk.a build/vbs-stage3/profiles/release/out/libVoidBuildSdk.a \
|
||||
build/vbs-stage2/profiles/release/out/libVoidBuildCore.a build/vbs-stage3/profiles/release/out/libVoidBuildCore.a
|
||||
```
|
||||
- Exit status: `0` — `32 executed, 0 cached` in `38.36s`; exact bit-for-bit SHA-256 matches across distinct build directories:
|
||||
- `vbs`: `9280ea998492cd3f48833cf87b06d91940c1f465f29f3871289c1e01bcf2e0b3` (Stage 2 == Stage 3)
|
||||
- `libVoidBuildSdk.a`: `8f1ec2ea226fcb93a55e78e658ce62bc2769941edaaaf097045ba7f8e6027483` (Stage 2 == Stage 3)
|
||||
- `libVoidBuildCore.a`: `07f3ff5fd96e5c7cce3d5dfb0f25f071f09003ae850def63d605d9b0d2b1a4a3` (Stage 2 == Stage 3)
|
||||
- Exit status: `0` — `32 executed, 0 cached` in `38.12s`; exact bit-for-bit SHA-256 matches across distinct build directories:
|
||||
- `vbs`: `7fa4b54eeaecd21ade1d2877b45a86f215082b78dc0746299ec659b85f6880e6` (Stage 2 == Stage 3)
|
||||
- `libVoidBuildSdk.a`: `20d3070d70fc5f6efe68058560617d6f2e6b0ec96229b67a34e1c0ee5a4b796c` (Stage 2 == Stage 3)
|
||||
- `libVoidBuildCore.a`: `bf3accc339a11ba9fe5d429e5e4d90fecfcaad54ee561b0f6a46aedd1464d19e` (Stage 2 == Stage 3)
|
||||
|
||||
### Remaining Native Test Suites via Stage 2 `vbs test`
|
||||
### Native `vbs_v1_tests` via Stage 2 `vbs test`
|
||||
```sh
|
||||
VBS_VOID_SOURCE_DIR=/home/faumaray/Projects/VoidBuildSystem/build/voidlibrary-pinned \
|
||||
dev cpp-gcc -c build/vbs-stage2/profiles/release/out/bin/vbs test --build-dir build/vbs-stage2 --profile release --target vbs_v1_tests --target vbs_registry_tests --target vbs_selfhost_tests --jobs 8
|
||||
dev cpp-gcc -c build/vbs-stage2/profiles/release/out/bin/vbs test --build-dir build/vbs-stage2 --profile release --target vbs_v1_tests --jobs 8
|
||||
```
|
||||
- Exit status: `0` (`9.60s` build, `9 executed, 32 cached`):
|
||||
- `vbs test: PASSED 'vbs_v1_tests'` (`23226 ms`)
|
||||
- `vbs test: PASSED 'vbs_selfhost_tests'` (`59753 ms`)
|
||||
- `vbs test: PASSED 'vbs_registry_tests'` (`2851 ms`)
|
||||
- Exit status: `0` (`10.38s` build, `2 executed, 32 cached`):
|
||||
- `vbs test: PASSED 'vbs_v1_tests'` (`32658 ms`)
|
||||
|
||||
## Clang 23.1.3 Target Matrix (`dev cpp`)
|
||||
|
||||
```sh
|
||||
dev cpp -c build/dev/bin/vbs_v1_tests --no-color --filter clang23
|
||||
dev cpp -c build/dev/bin/vbs_v1_tests --no-color --filter "clang23|track_b3"
|
||||
```
|
||||
- Exit status: `0` — `1 tests: 1 ✔ in 771.0ms` (`FullV1Tests.clang23_target_toolchain_and_p1689_module_scan`).
|
||||
- Verified inside `dev cpp`: Clang 23.1.3 + `clang-scan-deps` target probing, C++20 compilation, and full `Graph::lower_project_graph` + `Execution::execute_graph` build of module partition (`vbs.clangcalc:part`) + primary interface (`vbs.clangcalc`) + consumer `main.cpp` using two-step `--precompile` `.pcm` -> `.o` with transitive `-fmodule-file=`.
|
||||
- Exit status: `0` — **2 / 2 passed in 2.37s** (`clang23_target_toolchain_and_p1689_module_scan` `836.6ms`, `track_b3_foreign_cmake_cxx20_modules_native_translation` `1535.3ms`).
|
||||
- Verified inside `dev cpp`: Clang 23.1.3 + `clang-scan-deps` target probing (with `default_include_dirs` NixOS system include discovery), C++20 compilation, intra-target module partitions (`vbs.clangcalc`), and native translation of a foreign CMake C++20 `CXX_MODULES` library (`vbs.trackb3.math`) plus cross-build-system VBS consumer import using two-step `--precompile` `.pcm` -> `.o` with `-fmodule-file=`.
|
||||
|
||||
## Benchmarks (`dev cpp-gcc`)
|
||||
|
||||
@@ -99,13 +97,13 @@ dev cpp-gcc -c build/dev/bin/vbs_benchmarks --files 15
|
||||
```
|
||||
- Exit status: `0`:
|
||||
```json
|
||||
{"fixture_files":16,"compiler":"g++ (GCC) 16.2.0","snapshot_ms":20,"cold_build_ms":337,"cold_executed":17,"warm_noop_ms":5,"warm_executed":0,"warm_cached":17}
|
||||
{"fixture_files":16,"compiler":"g++ (GCC) 16.2.0","snapshot_ms":19,"cold_build_ms":334,"cold_executed":17,"warm_noop_ms":4,"warm_executed":0,"warm_cached":17}
|
||||
```
|
||||
|
||||
## Limits and Unrun Checks
|
||||
|
||||
1. **HTTPS git fetch in proxy-restricted environment**: Inside this execution environment, outbound HTTPS to `https://git.faumaray.com/Void/VoidLibrary.git` encountered `Proxy CONNECT aborted`; CMake configure and `vbs test` were therefore verified against a clean local detached checkout of the exact pinned commit `3e254055e081a104f08df68dde39711bc7813518` via `VBS_VOID_SOURCE_DIR`.
|
||||
2. **Conan2 live installation**: `conan` is absent in `dev cpp-gcc`; automated testing verified explicit missing-prerequisite failure (`FullV1Tests.cpp`).
|
||||
2. **Conan2 live installation**: `conan` is absent in `dev cpp-gcc`; automated testing verified explicit missing-prerequisite failure (`FullV1Tests.cpp`). Live `conan` container verification (Track B3) remains unrun.
|
||||
3. **Optional external VoidLibrary modules (`Void::Net`, `Void::Sqlite`)**: `Boost`, `OpenSSL`, and `SQLite3` are not installed in `dev cpp-gcc`, so VBS continues using its pure-C++/POSIX loopback HTTP adapters (`HttpServer`, `RegistryClient`) and journaled atomic CAS store (`StateStore`), while retaining optional `Void::Sqlite` CMake detection.
|
||||
4. **CI workflow & Web UI browser**: [.github/workflows/ci.yml](../../.github/workflows/ci.yml) has not been executed on remote GitHub Actions runners, and `registry/web/` was verified via HTTP/header/static-serving/API/XSS/CSRF tests without a headless browser runner.
|
||||
5. **Post-v1 Expansion Roadmap ([21-expansion-roadmap.md](../roadmap/21-expansion-roadmap.md) & [20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md))**: Track B (C driver, Ninja custom-command translation, foreign C++20 module fileSets, Conan2), Track C (Windows/MSVC, macOS/Apple Clang, dual-profile cross-compilation), Track D (shared HTTP CAS, parallel hashing, SBOM/signatures), and Track E2–E4 (`workspace.cpp`, local daemon, `Void::Net`/`Void::Sqlite` alignment) remain planned scope.
|
||||
5. **Remaining Post-v1 Roadmap ([21-expansion-roadmap.md](../roadmap/21-expansion-roadmap.md) & [20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md))**: Live `conan` container verification, Track C (Windows/MSVC, macOS/Apple Clang, dual-profile cross-compilation), Track D (shared HTTP CAS, parallel hashing, SBOM/signatures), Track E2 (`workspace.cpp`), Track E3 (`vbs daemon` local socket server + external editor plugins), and Track E4 (`Void::Net`/`Void::Sqlite` alignment) remain planned scope.
|
||||
@@ -1,6 +1,6 @@
|
||||
# 09 — Compilation databases and editor selection
|
||||
|
||||
Implementation status: IMPLEMENTED & VERIFIED (2026-11-26). See
|
||||
Implementation status: IMPLEMENTED & VERIFIED (2026-11-26; extended in Wave 10 on 2026-11-27 with `build.cpp`/`build.profiles.cpp`/`build-support/` SDK CompDB entries, C standard flags, and `vbs ide generate|query` for `.clangd`, `.vscode/`, `.zed/`, & `.idea/`). See
|
||||
[STATE](../agent-workflow/STATE.md) and [VERIFICATION](../agent-workflow/VERIFICATION.md)
|
||||
for implemented files and observed checks.
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# 20 — Later native foreign execution and platform ports
|
||||
|
||||
Implementation status: **Slices 1 & 2A implemented & verified** (bounded single-config C++ CMake File API codemodel and Meson `intro-targets.json` + `build.ninja` audits, native `Graph::BuildGraph` translation, unified `resolve_foreign_with_translation`, CLI `vbs build|test --native-foreign`, equivalence & restored-mtime mutation tests, and explicit `RequireNative` / `FallbackToForeignBuild` policy in [Translator.hpp](../../include/Void/Build/Provider/Translator.hpp) and [Translator.cpp](../../src/Provider/Translator.cpp)); **Slices 2B/2C (C driver, custom-command translation, foreign C++20 module fileSets), Slice 3 (Windows/MSVC & macOS/Apple Clang ports), and remote execution remain planned scope** — see [21-expansion-roadmap.md](21-expansion-roadmap.md), [STATE](../agent-workflow/STATE.md), and [VERIFICATION](../agent-workflow/VERIFICATION.md).
|
||||
Implementation status: **Slices 1, 2A, 2B, & 2C implemented & verified** (bounded single-config C & C++ / multi-compile-group CMake File API `codemodel-v2` and Meson `intro-targets.json` + `build.ninja` audits, bounded hermetic `build.ninja` `CUSTOM_COMMAND` / `UTILITY` / `custom_target` lowering with strict rejection of `console` pools / `.util`-only side-effects / out-of-tree writes, foreign CMake C++20 `CXX_MODULES` `fileSets` lowering onto P1689 + cross-target `module_bmis`, native `Graph::BuildGraph` execution, unified `resolve_foreign_with_translation`, CLI `vbs build|test --native-foreign`, equivalence & restored-mtime mutation tests, and explicit `RequireNative` / `FallbackToForeignBuild` policy in [Translator.hpp](../../include/Void/Build/Provider/Translator.hpp) and [Translator.cpp](../../src/Provider/Translator.cpp)); **Slice 3 (Windows/MSVC & macOS/Apple Clang ports, remote execution workers, plus live `conan` CLI verification) remains planned scope** — see [21-expansion-roadmap.md](21-expansion-roadmap.md), [STATE](../agent-workflow/STATE.md), and [VERIFICATION](../agent-workflow/VERIFICATION.md).
|
||||
|
||||
## Requirements and ownership
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# 21 — Post-v1 Expansion Roadmap
|
||||
|
||||
Status: Active execution guide (Plans **01–19**, **Plan 20 Slices 1 & 2A**, **Track A [A1–A3]**, and **Track E1** are implemented and verified; **Tracks B–D & E2–E4** remain planned; see [STATE](../agent-workflow/STATE.md) and [VERIFICATION](../agent-workflow/VERIFICATION.md)).
|
||||
Status: Active execution guide (Plans **01–19**, **Plan 20 Slices 1–2C**, **Track A [A1–A3]**, **Track B [B1–B3, except live `conan` CLI container]**, **Track E1**, and **Track E3 IDE config/query tooling** are implemented and verified; **Track C**, **Track D**, **Track E2 (`workspace.cpp`)**, **Track E3 (`vbs daemon`)**, **Track E4**, and live `conan` CLI verification remain planned; see [STATE](../agent-workflow/STATE.md) and [VERIFICATION](../agent-workflow/VERIFICATION.md)).
|
||||
|
||||
This roadmap defines five orthogonal expansion tracks for taking VoidBuildSystem from a verified self-hosting Linux C++26 build system into a multi-platform, distributed, daily-driver ecosystem. Each track preserves core architectural invariants: ordinary C++ descriptions, hermetic content-verified snapshots, isolated profiles, immutable CAS publication, and explicit diagnostics over silent approximation.
|
||||
|
||||
@@ -28,15 +28,15 @@ flowchart LR
|
||||
|
||||
---
|
||||
|
||||
## Track B — Foreign Build Translation Expansion (Plan 20 Slices 2B & 2C)
|
||||
## Track B — Foreign Build Translation Expansion (Plan 20 Slices 2B & 2C) *(Implemented & Verified in Wave 10; live `conan` container pending)*
|
||||
|
||||
**Goal**: Expand bounded native translation beyond single-config C++ libraries/executables while never silently dropping unsupported rules.
|
||||
|
||||
| Phase | Concrete Scope | Acceptance Gate |
|
||||
| Phase | Concrete Scope | Acceptance Gate / Status |
|
||||
| --- | --- | --- |
|
||||
| **B1 — Native C Compiler Driver (`C` + Mixed `C`/`C++`)** | Extend `ToolchainCapabilities` with `c_compiler` (`gcc`/`clang`), C standard flags (`c11`/`c17`/`c23`), and multi-compile-group lowering in `Graph.cpp` + `Translator.cpp`. | Mixed C/C++ CMake and Meson projects (e.g., zlib/sqlite3-style fixtures) translate natively and match official tool outputs. |
|
||||
| **B2 — Bounded `build.ninja` Custom-Command Translation** | Parse configured Ninja `rule` / `build` edges for hermetic `add_custom_command` / `custom_target` code generators into VBS `ActionKind::Custom` nodes, strictly rejecting unverified side-effecting rules. | Generated-header CMake/Meson fixtures execute natively under VBS CAS caching and rebuild correctly under generator-input mutations. |
|
||||
| **B3 — Foreign C++20 `CXX_MODULES` Translation & Conan2 Binary Adapter** | Lower CMake `CXX_MODULES` `fileSets` onto VBS's P1689 scanner + `ModuleBmi` pipeline; implement live Conan2 `conan install --format=json` consumer adapter when `conan` is available. | Foreign CMake C++20 module fixture builds natively under GCC 16 and Clang 23; Conan2 fixture verified in a container with `conan` installed. |
|
||||
| **B1 — Native C Compiler Driver (`C` + Mixed `C`/`C++`)** | Extended `ToolchainCapabilities` with `c_compiler` (`gcc`/`clang`), C standard flags (`c11`/`c17`/`c23`), `PerFileOption` CompDB projection, and multi-compile-group lowering in `Graph.cpp` + `Translator.cpp`. | **Verified**: Pure VBS C17+C++23, CMake C11+C++20, and Meson C17+C++20 mixed fixtures translate and execute natively (`FullV1Tests.cpp`). |
|
||||
| **B2 — Bounded `build.ninja` Custom-Command Translation** | Shared `build.ninja` `CUSTOM_COMMAND` / `phony` parser lowering hermetic `add_custom_command`, `UTILITY`, and Meson `custom_target`/`generated_sources` into VBS `ActionKind::Custom` nodes, strictly rejecting `console` pools, `.util`-only side-effects, out-of-tree writes, and `run` targets. | **Verified**: Generated-header + generated-source CMake and Meson fixtures execute natively under `RequireNative`, while unsafe constructs reject cleanly (`FullV1Tests.cpp`). |
|
||||
| **B3 — Foreign C++20 `CXX_MODULES` Translation & Conan2 Binary Adapter** | Lowered CMake `CXX_MODULES` `fileSets` onto VBS's P1689 scanner + `ModuleBmi` pipeline (with `default_include_dirs` NixOS `clang-scan-deps` support) plus cross-target/imported `module_bmis` propagation; Conan2 adapter enforces explicit prerequisite checks. | **Verified on GCC 16 & Clang 23**: Foreign CMake C++20 module library + consumer VBS cross-target `import` pass on both toolchains; live `conan` container verification remains pending. |
|
||||
|
||||
---
|
||||
|
||||
@@ -73,15 +73,14 @@ flowchart LR
|
||||
| --- | --- | --- |
|
||||
| **E1 — Everyday CLI Ergonomics (Implemented in Wave 8)** | `vbs init` project scaffolding, `vbs clean`, `vbs doctor` environment diagnostics, `vbs graph --format dot|json`, and `vbs build --native-foreign`. | End-to-end CLI & integration tests passing in `vbs_cli_contract` and `vbs_v1_tests`. |
|
||||
| **E2 — Multi-Package Workspaces (`workspace.cpp`)** | Shared `vbs.lock`, shared CAS, cross-member local target linking, and affected-target graph selection (`vbs build --member <pkg>` / `--changed-since <ref>`). | 3-package workspace fixture building shared library + app + tests with unified lockfile. |
|
||||
| **E3 — Background Build/Metadata Daemon & IDE Integration** | Optional local Unix-socket daemon (`vbs daemon`) holding warm `StateStore`, `RunDigestCache`, and `DirectoryWatcher` so editor `compile_commands.json` refreshes and incremental `vbs build` respond in <50ms. | Daemon auto-restarts on binary upgrade, honors `SignalWatcher` graceful shutdown, and preserves ticket ordering. |
|
||||
| **E3 — IDE Config/Query & Background Daemon** | `build.cpp`/`build.profiles.cpp`/`build-support/` SDK entries in `compile_commands.json` + `vbs ide generate` (`.clangd`, `.vscode/`, `.zed/`, `.idea/customTargets.xml`) & `vbs ide query` (**Implemented & Verified in Wave 10**); optional Unix-socket `vbs daemon` holding warm `StateStore`/`RunDigestCache`/`DirectoryWatcher` (**Planned**). | `vbs ide` & `build.cpp` syntax-check verified in `FullV1Tests.cpp`; `vbs daemon` & dedicated editor extensions pending. |
|
||||
| **E4 — Transport & Storage Upstream Alignment** | Adopt `Void::Net` (`VL-004`/`VL-005`) and `Void::Sqlite` (`VL-011b`) when lightweight/bundled builds become available in minimal Nix toolchains, reducing VBS transport code further. | All `vbs_registry_tests` and `vbs_core_tests` pass on both minimal and full toolchains. |
|
||||
|
||||
---
|
||||
|
||||
## Recommended Next Execution Order
|
||||
|
||||
1. **Track B1 + B2** (highest leverage next): C compiler driver + bounded Ninja custom-command translation so real-world C/C++ CMake/Meson dependencies execute natively.
|
||||
2. **Track D1 + D2**: shared HTTP CAS cache on `vbs-registry` + parallel snapshot hashing for large repos.
|
||||
3. **Track E2**: multi-package `workspace.cpp` support.
|
||||
4. **Track B3**: foreign C++20 `CXX_MODULES` `fileSets` lowering + live Conan2 adapter.
|
||||
5. **Track C1–C4**: macOS / Windows platform ports + dual-profile cross-compilation once host CI runners are provisioned.
|
||||
1. **Track D1 + D2** (highest leverage next): shared HTTP CAS cache on `vbs-registry` + parallel snapshot hashing for large repos.
|
||||
2. **Track E2**: multi-package `workspace.cpp` support with shared lockfile and CAS.
|
||||
3. **Track E3 (`vbs daemon`) + Track E4**: persistent local background daemon and `Void::Net`/`Void::Sqlite` alignment once optional system deps are bundled.
|
||||
4. **Track C1–C4 + live `conan` container**: macOS / Windows platform ports + dual-profile cross-compilation once host CI runners are provisioned.
|
||||
@@ -1,7 +1,7 @@
|
||||
# Roadmap and delivery graph
|
||||
|
||||
Plans **01–19** and **Plan 20 Slices 1 & 2A** (bounded native CMake & Meson graph translation on Linux) are implemented and verified in the native codebase and CTest
|
||||
suites; **Plan 20 Slices 2B/2C & 3** and the five post-v1 expansion tracks in [21 — Post-v1 expansion roadmap](21-expansion-roadmap.md) define the next phases. For implemented
|
||||
Plans **01–19**, **Plan 20 Slices 1, 2A, 2B, & 2C** (bounded native C/C++ CMake & Meson translation, hermetic `build.ninja` `CUSTOM_COMMAND` rules, and CMake C++20 `CXX_MODULES` `fileSets`), **Track A**, **Track B**, **Track E1**, and **Track E3 IDE config/query tooling** are implemented and verified in the native codebase and CTest
|
||||
suites; **Plan 20 Slice 3** (Windows/MSVC, macOS/Apple Clang, remote execution, plus live `conan` CLI verification) and the remaining post-v1 tracks (**C, D, E2 `workspace.cpp`, E3 `vbs daemon`, & E4**) in [21 — Post-v1 expansion roadmap](21-expansion-roadmap.md) define the next phases. For implemented
|
||||
commands, targets, and workflow usage, see the [project README](../../README.md) and
|
||||
[verification record](../agent-workflow/VERIFICATION.md).
|
||||
|
||||
@@ -31,8 +31,8 @@ Authority: [requirements](REQUIREMENTS.md), [architecture](ARCHITECTURE.md),
|
||||
| [17 — Registry web administration](17-registry-ui.md) | Implemented & Verified | [registry/web/](../../registry/web/index.html) |
|
||||
| [18 — Native self-hosting and VoidLibrary migration](18-self-host-voidlibrary.md) | Implemented & Verified | [VoidLibraryRecipe.cpp](../../recipes/VoidLibrary/VoidLibraryRecipe.cpp), [TestRegistryGen.cpp](../../src/SelfHost/TestRegistryGen.cpp) |
|
||||
| [19 — Quality, performance and CI](19-quality-performance-ci.md) | Implemented & Verified | [tests/](../../tests/CMakeLists.txt), [EngineBenchmarks.cpp](../../benchmarks/EngineBenchmarks.cpp), [.github/workflows/ci.yml](../../.github/workflows/ci.yml) |
|
||||
| [20 — Later native foreign execution and platform ports](20-future-translation-platforms.md) | Slices 1 & 2A Implemented & Verified; 2B/2C & OS ports planned | [Translator.hpp](../../include/Void/Build/Provider/Translator.hpp), [Translator.cpp](../../src/Provider/Translator.cpp) (bounded CMake & Meson native translation + unified fallback + `--native-foreign`); C driver, custom commands, Windows/macOS ports planned |
|
||||
| [21 — Post-v1 expansion roadmap](21-expansion-roadmap.md) | Track A (A1–A3) & Track E1 Implemented; Tracks B–D, E2–E4 Planned | Five-track expansion roadmap (**Track A** zero-CMake `.native_builder()` self-host, full `VOID_TEST` suite in `build.cpp`, & bit-identical Stage 2 == Stage 3 bootstrap verified; Tracks B–E2/E4 planned) |
|
||||
| [20 — Later native foreign execution and platform ports](20-future-translation-platforms.md) | Slices 1, 2A, 2B, & 2C Implemented & Verified; Slice 3 OS/remote ports planned | [Translator.hpp](../../include/Void/Build/Provider/Translator.hpp), [Translator.cpp](../../src/Provider/Translator.cpp) (C/C++ CMake & Meson translation, Ninja `CUSTOM_COMMAND`, foreign C++20 `CXX_MODULES`, unified fallback & `--native-foreign`); Windows/macOS/remote execution planned |
|
||||
| [21 — Post-v1 expansion roadmap](21-expansion-roadmap.md) | Track A, Track B (B1–B3, except live `conan` CLI), Track E1 & Track E3 IDE configs/query Implemented; Tracks C, D, E2, E3 daemon & E4 Planned | Five-track expansion roadmap (**Track A** zero-CMake self-host, **Track B** C driver / Ninja custom commands / CMake `CXX_MODULES`, **Track E1**, & **Track E3** `build.cpp` CompDB + `vbs ide` verified; Tracks C, D, E2, `vbs daemon`, & E4 planned) |
|
||||
|
||||
## Dependency graph
|
||||
|
||||
|
||||
Reference in new issue
Block a user