include/jemalloc/internal/rtree.h:106:33: error: variably modified 'root' at file scope on Alpine
Open
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 11.2k
- Forks
- 1.6k
- Avg merge
- 4d 8h
- Merged PRs (30d)
- 13
Description
Hi,
I am trying to build jemalloc on Alpine, but when I launch the make command, I got:
include/jemalloc/internal/rtree.h:106:33: error: variably modified 'root' at file scope
106 | rtree_leaf_elm_t root[1U << (RTREE_NSB/RTREE_HEIGHT)];
| ^~~~
Any hint about how to fix that ?
Thanks 🙏
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 with include/jemalloc/internal/rtree.h at line 106 and reproduce the make failure on Alpine. Trace the RTREE_NSB and RTREE_HEIGHT definitions and compiler configuration involved; done means jemalloc builds successfully on Alpine without the file-scope variably modified root error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, linux
- Domain
- build-system, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100