WebAssembly / WebAssembly/binaryen

emscripten build with cmake fails in wasm-reduce

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

Nobody has claimed this yet.

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

Description

The rest of the tools link in a build with a fairly current emscripten (1.39.4) except for wasm-reduce:

$ emconfigure cmake && emmake make -j12
...
[ 80%] Linking CXX executable bin/wasm-reduce.js
error: undefined symbol: popen
warning: To disable errors for undefined symbols use `-s ERROR_ON_UNDEFINED_SYMBOLS=0`
Error: Aborting compilation due to previous errors
shared:ERROR: '/Users/brion/src/emsdk/node/12.9.1_64bit/bin/node /Users/brion/src/emsdk/upstream/emscripten/src/compiler.js /var/folders/1l/zc63mhrx20b6mmzh5t2j_g200000gp/T/tmpugYlRM.txt' failed (1)
make[2]: *** [bin/wasm-reduce.js] Error 1
make[1]: *** [CMakeFiles/wasm-reduce.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

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 by reproducing the emconfigure cmake and emmake make -j12 command with the reported Emscripten version, focusing on the wasm-reduce target. No source file or test is named; investigate the undefined popen symbol in that target's build output, and consider the issue done when wasm-reduce.js links successfully with the other tools.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp, wasm
Domain
build-system, compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.