WebAssembly / WebAssembly/binaryen

Does not compile on GCC versions < 5.0

Open
#2,150 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
WebAssembly
Stars
8.6k
Forks
885
Avg merge
1d 19h
Merged PRs (30d)
69

Description

In support/alloc.h the usage of aligned_alloc fails to compile on GCC versions older than GCC5, by checking for the feature flag in the preprocessor, we can drop to posix_memalign and it compiles just fine.

Contributor guide

Open the contributing guide

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 in support/alloc.h and inspect how aligned_alloc is selected by the preprocessor. Check the relevant feature flag and the existing posix_memalign fallback, then verify that the project compiles with GCC versions older than 5.0 without breaking newer GCC builds.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.