kripken/emscripten — Issue #243: Thet Test test_poppler Keep Failing with `No such file or directory`
Author: peterleecomcn
Created: 2012-02-10 18:48:30+00:00
State: open

Hi,

I followed the instructions from https://github.com/kripken/emscripten/wiki/Tutorial

Then when I tried to run the tests, I kept getting `No such file or directory` error. Here is the command and ERROR info:

```
plee@sos:~/Dev/emscripten$ python tests/runner.py test_poppler
Running Emscripten tests...
(Emscripten: Running sanity checks)
test_poppler (__main__.default) ... ERROR

======================================================================
ERROR: test_poppler (__main__.default)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/runner.py", line 4514, in test_poppler
configure_args=['--disable-libjpeg', '--disable-libpng', '--disable-poppler-qt', '--disable-poppler-qt4', '--disable-cms', '--disable-cairo-output', '--disable-abiword-output', '--enable-shared=no'])
File "tests/runner.py", line 275, in get_library
copy_project=True)
File "/home/plee/Dev/emscripten/tools/shared.py", line 458, in build_library
cache[cache_name].append((basename, open(f, 'rb').read()))
IOError: [Errno 2] No such file or directory: '/home/plee/tmp/emscripten_test_default_ZvPyO6/building/poppler/utils/pdftoppm.o'

----------------------------------------------------------------------
Ran 1 test in 48.122s

FAILED (errors=1)
```

And here is my `~/.emscripten` file:

```
# This file will be copied to ~/.emscripten if that file doesn't exist. Or, this is that copy.
# IMPORTANT: Edit the *copy* with the right paths!

EMSCRIPTEN_ROOT = os.path.expanduser('~/Dev/emscripten') # this helps projects using emscripten find it

# LLVM_ROOT = os.path.expanduser('~/Dev/llvm-3.0/cbuild/bin')
LLVM_ROOT = os.path.expanduser('~/Dev/clang_llvm-3.0/bin')

# See below for notes on which JS engine(s) you need
NODE_JS = 'node'
SPIDERMONKEY_ENGINE = [os.path.expanduser('~/Dev/mozilla-central/js/src/js'), '-m', '-n']
V8_ENGINE = os.path.expanduser('~/Dev/v8/d8') # Not compiled or installed

CLOSURE_COMPILER = os.path.expanduser('~/Dev/closure-compiler/compiler.jar') # optional (needed for the benchmarks)

TEMP_DIR = os.path.expanduser('~/tmp')

########################################################################################################

# Pick the JS engine to use for running the compiler. This engine must exist, or
# nothing can be compiled.
#
# Recommendation: If you already have node installed, use that. Otherwise, build v8 or
# spidermonkey from source. Any of these three is fine, as long as it's
# a recent version (especially for v8 and spidermonkey).

COMPILER_ENGINE = NODE_JS
#COMPILER_ENGINE = V8_ENGINE
#COMPILER_ENGINE = SPIDERMONKEY_ENGINE

# All JS engines to use when running the automatic tests. Not all the engines in this list
# must exist (if they don't, they will be skipped in the test runner).
#
# Recommendation: If you already have node installed, use that. If you can, also build
# spidermonkey from source as well to get more test coverage (node can't
# run all the tests due to node issue 1669). v8 is currently not recommended
# here because of v8 issue 1822.

JS_ENGINES = [NODE_JS, SPIDERMONKEY_ENGINE]
```