Compilation failure on modern GCC (GCC 16+) due to missing <cstdint> in config.hpp
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 88/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- cpp
- Domain
- build-system
Research direction
Start in src/config.hpp and inspect the standard-library includes around the digit_token_ids declaration. Reproduce the failure with the provided CMake and Ninja commands, then verify the project builds and tests pass with GCC 16.1.0 after the missing include is addressed.
Written by the indexing model from the issue text.
Description
Describe the bug
When attempting to compile moss-transcribe.cpp on a fresh environment using a modern compiler (GCC 16.1.0 via MinGW/Ninja on Windows), the compilation fails at src/model_loader.cpp due to an unhandled template argument and undeclared types (int32_t). Modern GCC versions are much stricter with implicit header inclusions and no longer automatically pull in <cstdint> through other standard library files.
Error Log
[path/to/project]/src/config.hpp:21:17: error: 'int32_t' was not declared in this scope
21 | std::vector<int32_t> digit_token_ids; // 10 ids for "0".."9"
| ^~~~~~~
[path/to/project]/src/config.hpp:4:1: note: 'int32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
Environment
- OS: Windows 11
- Compiler: GCC 16.1.0 (MinGW-W64)
- Build System: CMake + Ninja
Steps to Reproduce
- Clone the repository recursively.
- Configure the build:
cmake -B build -G "Ninja" -DMT_BUILD_TESTS=ON - Run the build step:
cmake --build build -j
Suggested Fix
Explicitly include <cstdint> inside src/config.hpp. Adding #include <cstdint> right below #include <vector> fixes the compilation error entirely, allowing the project to compile and run tests successfully.
- Dominant language
- C++
- Stars
- 57
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from localai-org/moss-transcribe.cpp
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
All issues in localai-org/moss-transcribe.cpp
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NVIDIA/cuda-samples#453 ·