Public bug reported:
I followed the tutorial http://kripken.github.io/emscripten-
site/docs/getting_started/Tutorial.html#tutorial and created a simple
hello_world.c:
>cat hello_world.c
#include<stdio.h>
int main() {
printf("hello, world!\n");
return 0;
}
I tried to compile:
>emcc hello_world.c -s ASM_JS=1 -O1
INFO root: =======================================
INFO root: bootstrapping relooper...
INFO root: bootstrap phase 1
clang: warning: argument unused during compilation: '-nostdinc++'
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/python2.7/multiprocessing/pool.py", line 389, in
_handle_results
task = get()
TypeError: ('__init__() takes at least 3 arguments (1 given)', <class
'subprocess.CalledProcessError'>, ())
^CProcess PoolWorker-2:
Process PoolWorker-3:
Process PoolWorker-1:
Process PoolWorker-4:
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/bin/emcc", line 1646, in <module>
Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
ERROR root: bootstrapping relooper failed. You may need to manually create
relooper.js by compiling it, see src/relooper/emscripten
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
Traceback (most recent call last):
File "/usr/share/emscripten/emscripten.py", line 1490, in <module>
self.run()
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python2.7/multiprocessing/pool.py", line 102, in worker
self.run()
self.run()
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python2.7/multiprocessing/pool.py", line 102, in worker
_main(environ=os.environ)
File "/usr/share/emscripten/emscripten.py", line 1478, in _main
task = get()
File "/usr/lib/python2.7/multiprocessing/queues.py", line 372, in get
final = shared.Building.emscripten(final, append_ext=False,
extra_args=extra_args)
File "/usr/share/emscripten/tools/shared.py", line 1457, in emscripten
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
self.run()
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python2.7/multiprocessing/pool.py", line 102, in worker
task = get()
File "/usr/lib/python2.7/multiprocessing/queues.py", line 374, in get
return recv()
KeyboardInterrupt
temp_files.run_and_clean(lambda: main(
File "/usr/share/emscripten/tools/tempfiles.py", line 39, in run_and_clean
racquire()
task = get()
File "/usr/lib/python2.7/multiprocessing/queues.py", line 372, in get
KeyboardInterrupt
racquire()
KeyboardInterrupt
self._target(*self._args, **self._kwargs)
File "/usr/lib/python2.7/multiprocessing/pool.py", line 102, in worker
jsrun.timeout_run(Popen(cmdline, stdout=PIPE), None, 'Compiling')
File "/usr/share/emscripten/tools/jsrun.py", line 14, in timeout_run
task = get()
File "/usr/lib/python2.7/multiprocessing/queues.py", line 372, in get
return func()
File "/usr/share/emscripten/emscripten.py", line 1486, in <lambda>
racquire()
KeyboardInterrupt
out = proc.communicate()
File "/usr/lib/python2.7/subprocess.py", line 791, in communicate
DEBUG_CACHE=DEBUG_CACHE,
File "/usr/share/emscripten/emscripten.py", line 1364, in main
shared.Building.ensure_relooper(relooper)
File "/usr/share/emscripten/tools/shared.py", line 1709, in ensure_relooper
stdout = _eintr_retry_call(self.stdout.read)
1/0
File "/usr/lib/python2.7/subprocess.py", line 476, in _eintr_retry_call
ZeroDivisionError: integer division or modulo by zero
return func(*args)
KeyboardInterrupt
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: emscripten 1.22.1-1
ProcVersionSignature: Ubuntu 3.19.0-18.18-generic 3.19.6
Uname: Linux 3.19.0-18-generic x86_64
ApportVersion: 2.17.2-0ubuntu1.1
Architecture: amd64
CurrentDesktop: GNOME
Date: Tue Jul 14 17:36:58 2015
SourcePackage: emscripten
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: emscripten (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug vivid
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1474449
Title:
Cannot compile simple hello world program
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/emscripten/+bug/1474449/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs