Aluriak / webclingo-example

Example of clingo usage on website as a client-side JS program
https://aluriak.github.io/webclingo-example/
12 stars 3 forks source link

Can't Reproduce Build #28

Closed d4hines closed 5 years ago

d4hines commented 5 years ago

I can't seem to reproduce this build. I tried for a while on my Mac, as well as on a Ubuntu machine, but got different errors. I'd like to establish a reproducible procedure. This is as far as I've got:

docker run -it alpine
# in the docker container...
apk add bash git python wget
git clone https://github.com/Aluriak/webclingo-example
cd webclingo-example
mkdir lua
bash compile_web.sh

This is the latest error I'm stuck on:

bash-5.0# emmake make generic local
cache:INFO: generating system asset: is_vanilla.txt... (this will be cached in "/root/.emscripten_cache/is_vanilla.txt" for subsequent builds)
cache:INFO:  - ok
shared:ERROR: Error running make: "make generic local"
Traceback (most recent call last):
  File "/webclingo-example/emscripten/emsdk-portable/emscripten/1.38.31/emmake.py", line 52, in <module>
    run()
  File "/webclingo-example/emscripten/emsdk-portable/emscripten/1.38.31/emmake.py", line 46, in run
    shared.Building.make(sys.argv[1:])
  File "/webclingo-example/emscripten/emsdk-portable/emscripten/1.38.31/tools/shared.py", line 1690, in make
    res = run_process(args, stdout=stdout, stderr=stderr, env=env, shell=WINDOWS, check=False)
  File "/webclingo-example/emscripten/emsdk-portable/emscripten/1.38.31/tools/shared.py", line 170, in run_process
    proc = Popen(cmd, *args, **kw)
  File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

What do ya'll suggest?

Many thanks, Daniel Hines

Aluriak commented 5 years ago

Did you test outside docker, and in a fresh env ?

d4hines commented 5 years ago

Yes, the Ubuntu environment was spun up for the purpose. If I can get an idea of your environment, hopefully I can replicate it with Docker, and then we'll at least have a baseline to measure against.

d4hines commented 5 years ago

@domoritz, since you've been able to build the latest version, what's your environment like?

domoritz commented 5 years ago

I've had issues on Linux as well. And yes, it would be great to have reproducible builds on docker so let's see what we can do!

I'm using Mac OS as my build environment.

d4hines commented 5 years ago

I'm closing this since we're picking it up at https://github.com/domoritz/clingo-wasm