mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1074] Build fails on openEuler 24.03 / GCC 12.3 (sm_70): vmm.hpp uses an unqualified size_t #462
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#462
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @BaiQichen2026 on GitHub (Oct 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1074
Disclosure: this report was produced by an AI assistant running on the machine described below, on behalf of its owner. The error text and the measurements are from actual runs and are reproduced verbatim.
Environment
/usr/local/cuda-12.8), NVIDIA driver 580.173.02docs/NVIDIA_V100.md:(
-DCMAKE_CUDA_FLAGS="-D_BITS_OPT_RANDOM_H"is also needed on this box, as with earlier releases, because GCC 12.3'sbits/opt_random.hpulls x86 intrinsics into nvcc's EDG front end.)What happens
(the text as this GCC prints it — it is localized on this system)
Why
include/strata/core/vmm.hppincludes<cstdint>and<vector>, but not<cstddef>.<cstdint>providesstd::size_t; the global::size_tis only guaranteed once<cstddef>is in the translation unit. Many libstdc++/glibc combinations pull it in transitively, which is why this only fires on some distributions. Line 36 is the only place in that header wheresize_tis used this way inside a function body, so it is a one-line fix.Fix
(or add
#include <cstddef>to the header)After the fix the build completes (
cmake --build build --target strata -j) and the engine runs on 2× V100. With 0.1.40 + PR #800 on this pair,qsa_prompt_attn_parity 32768 2048 5reportsFAILURES: 0.@vpulim commented on GitHub (Oct 7, 2026):
Also hit on a different setup, through the one-click installer rather than a manual build:
./setup.sh --yes --family coder --model IQ1_M --no-starton 0.1.40Setup reported
No ready-made engine for v0.1.40 (HTTP Error 404: Not Found), fell back to compiling, and stopped on the same error:So with no prebuilt engine for 0.1.40 on Linux, setup cannot finish for anyone on GCC 12 until this is fixed. Adding
#include <cstddef>tovmm.hppfixed it; after that the build completed and setup went on.@Niko1221 commented on GitHub (Oct 7, 2026):
Fixed in 0.1.40.2: vmm.hpp now says std::size_t (aleesposito85's change from #1081, authorship kept). Thanks for the report.