Compiler error
Open
Beginner friendly
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 40.3k
- Forks
- 3.7k
- PR merge metrics
- No merged PRs in 30d
Description
Under Ubuntu LTS 24.04.3 I got the following compiler error:
/BitNet/src/ggml-bitnet-mad.cpp:811:18: error: cannot initialize a variable of type 'int8_t *' (aka 'signed char *') with an rvalue of type 'const int8_t *' (aka 'const signed char *')
811 | int8_t * y_col = y + col * by;
| ^ ~~~~~~~~~~~~
Using CLANG in v18.1.3 and CMAKE in v3.28.3 and GCC/G++ in v13.3.0 and Python in v3.12.3.
Needed to add "const":
811 | const int8_t * y_col = y + col * by;
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.
Research direction
Start at /BitNet/src/ggml-bitnet-mad.cpp around line 811 and reproduce the reported compiler diagnostic under Ubuntu 24.04.3 with the listed Clang or GCC versions. Confirm the pointer declaration is const-correct and that the project compiles without this error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system, compilers
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 65/100