Files
Language-Server/docs/agent-workflow/tasks/T-GCC-PREP-008.md
T
faumaray da8003f6d4 Implement the VLS roadmap on the native VBS build
Native VBS and CMake builds of the server and every registered suite:
protocol and document sync, VBS/compdb providers, stock GCC diagnostics
(including in-process default profile preparation), the stock occurrence
observer and hover/definition, the bounded Scheduler, C++ module graph,
scan and artifact cache with real CMI production, the context-aware
symbol index with schema-2 snapshot migration, navigation and guarded
rename, reflection provenance with splice-origin extraction, index-backed
completion and signature help, live GCC worker control with a registered
DAP suite, and the Neovim and VS Code clients.

VoidLibrary follows main. The private GCC 16.2.0 frontend is reproduced
from the versioned patches and verified stepping reflection/template code
with projected values 17/34 and 41/82.
2026-12-05 14:06:50 +03:00

7.1 KiB

Make the private GCC 16.2 prototype reproducible from its release archive

Task ID: T-GCC-PREP-008 Role: sol_implementer Status: READY

1. Context and baseline

Shared worktree feat/implement-roadmap ca04975. This is an implementation of the approved private GCC/D-030 feasibility prototype and reproducibility requirement. Official local release build/gcc-gate/gcc-16.2.0.tar.xz passed SHA512 c51c30ca7422d0cbecf504b2e0f33c3aca31e0f90a76b65217f465163fa6fa17b3f5de39e145c47e5bab90ac0ce7fff3b03c8d553ae36e01faaea5a50f8648d1. Two checked-in patches (0001 evaluator and 0002 IDE) have been applied to GCC with zero fuzz and compiled. Compiler prototype leaf and IDE/evaluator harnesses now work. Existing build has unreproducible absolute scratch driver and hand-configured paths. Root owns it; work only in new paths.

2. Objective and deliverables

The earlier assignment returned HTTP 429 before writing the helper or instructions. The stock GCC/GDB experiment remains independent. Keep this opt-in reproducer confined to its two owned paths. Provide a user-runnable, opt-in local preparation/build helper and short dedicated build/verification instructions for the two private compiler patches and reference header parity. It must reproduce cc1plus on this Nix host without editing installed toolchain or requiring /usr/include. Reuse checked source if available with verification; no binary distribution.

3. Scope and non-goals

Only the local tool preparation and experimental README. Do not integrate an installed compiler into default VLS or choose a product license. Do not change existing active compiler build, baseline or GCC patches, user shell or external repo. No new package manager configuration.

4. Files to inspect

Read build/gcc-gate/{release.sha512,configure.log,build.log,build-sysheaders.log,reference-cxx,reference-includes.json,macro-differences.json}, compiler-build/config.log actual invocations, GCC generated Makefile configure-* targets and gcc/Makefile stmp-fixinc. Read current repo compiler-patches and tests/corpus/frontend/{verify-gcc,verify-gcc-events,verify-gcc-ide}.py, tests/corpus/modules/verify.py, tools/prepare-voidlibrary. Existing dev cpp-gcc shell GCC wrapper includes headers reference must match. Avoid reading or logging private Nix/runtime config.

5. Write ownership and coordination

Write scope: tools/prepare-gcc-prototype; experiments/frontend/README.md Private build/gcc-reproduction allowed. Root owns other sources/docs and all shared build directories and source extracts. Never append to active build/gcc-gate files or touch siblings. No branch/commit/network publication/child agents or user sends. Download of official GCC public RELEASE into own ignored directory only if explicitly requested by tool flag; local archive already available for verification.

6. Implementation or investigation approach

Use actual public release URL and pinned SHA512 checked before extraction, only owned generation output, guard against shared wrong dir/tar traversal, command nonzero/abort and partial build retry safely. Pin versions via release+patch contents and build config; avoid rewriting a previous known-good generation. Use own GCC source/build, patch --fuzz=0 in order, explicit absolute paths, build cc1plus directly via actual prerequisite targets or a legitimately fixed top-level build. Derive GMP/MPFR/MPC include/lib via explicit options or authoritative toolchain discovery (Nix split outputs, pkg-config may lack files); avoid host-specific hardcoded /nix/store paths in checked-in sources. Provide targeted flags/options for prerequisite discovery and verify your actual chosen command. Keep complete command arguments in local output state with no ambient environment dumps.

7. Interfaces and data contracts

NEW standalone command tools/prepare-gcc-prototype: document actual options --archive FILE, --build-dir DIRECTORY or equivalent, -j/--jobs, optional environment Nix prerequisites. Must write machine-readable provenance and helper to use private cc1plus via the matching reference g++ wrapper for language corpus. Capture real reference include search output, PIE/default preinclude/predefines; check macro differences not guessed Nix paths. Use only trusted user-selected reference compiler, safe subprocess argument lists; avoid shell injection in generated wrappers for paths with spaces. Fixed leaf/direct IDE -nostdinc is separate from actual full standard lib editor-context gate.

8. Dependencies and integration

Independent package under D-030 (local only). Root owns CPP run supervisor and both default builds; your helper can use all existing tests without altering them. Early final command-line recipe handoff helps root doc links. Verify genuine independent GCC build in your OWN output if feasible, run jobs<=4 while integrated builds active; ample disk but report any external prerequisite. Exact GCC 16.2 release archive available locally; gate all mutations on verified owned output.

9. Edge cases security and performance

Concurrent runs for a destination must not corrupt it. Reject unverified archive, existing nonowned directory contents and symlink source/build retarget; standard archive tarfile data filter or properly checked extraction. Avoid source-directory mtime/patch state causing silent wrong binary reuse after patch changes; digest provenance. Make errors leave previous usable image; no automatic install, uploads or network fallback on failure.

10. Acceptance criteria

Demonstrate --help, refusal of corrupt archive/occupied output, real clean/configure/targeted compile in isolated dir, exact two patch digest/ELF hash, cold/warm repeated invocation, actual private language19, evaluator and IDE harness checks (expected deliberate errors) + native module probes. If a long build starts, provide root exact PID/session and partial result; root can take over recorded handle. No substitute of stock cc1plus on verification.

11. Verification commands and evidence

Use dev cpp-gcc -c tools/prepare-gcc-prototype with absolute verified archive and reserved build/gcc-reproduction (or unique child); print exact options used. Python syntax with ast.parse; lint new script via normal shell/check only. Record actual sha512sum outputs and source-target exit statuses, not just paths. Root builds regular VLS separately.

12. Constraints and stop conditions

Stop for irreversible actions outside owned ignored folder, unexpected downloaded dependencies, changed/rebased GCC patches mid-build or inability to find building prerequisites. If host toolchain discovery fails, return actual error/hypothesis and continue independent documentation/testing. No replacing or distribution of proprietary binaries.

13. Authorization and decisions

Approved local private versioned compiler prototype under D-030, native VBS remains main server build and VoidLibrary tracks main. GPT-6.2 Sol at Max for this general reproducibility package. Product compiler license distribution deferred.

14. Return format

T-GCC-PREP-008 DONE/PARTIAL/BLOCKED, exact helper/docs, command lines, compiler/patch/source identities, proof of distinct private build, cold/warm & failure cases, residual host/tool prerequisites and live handle if applicable.