jemalloc / jemalloc/jemalloc

include/jemalloc/internal/rtree.h:106:33: error: variably modified 'root' at file scope on Alpine

Open
#2,318 5 comments 4 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.