kripken/emscripten — Issue #203: Missing header file when compiling spider monkey
Author: hanm
Created: 2012-02-01 17:46:38+00:00
State: open

I've got an error when building spider monkey using lastest emscripten on Ubuntu 11.10.

cd js-1.8.5/js/src (enter spider monkey source directory)
autoconf2.13 (generate configuration file for spider monkey)
emconfigure ./configure (an error here complaining link.h can't be located)

The missing header file link.h is obviously not included in the libc bundle comes with emscripten. It seems to me that the file is required because autoconf uses the system include headers (glibc on Unbuntu in this case), which makes sense. Then I simply ignores this error and go ahead with make, and I got another error:

./perf/pm_linux.cpp:47:10: fatal error: 'linux/perf_event.h" file not found
#include

pm_linux.cpp is a source file from spider monkey : js-1.8.5/js/src/perf/pm_linux.cpp

Any ideas on how to work around these issues?