jprendes / emception

Run Emscripten in the browser
Other
285 stars 35 forks source link

Build Fails #8

Closed james-pre closed 1 year ago

james-pre commented 1 year ago

The LLVM part of the build fails when building CXX object tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/Interp/Disasm.cpp.o, see the screenshot for more details.

image

Ran on Ubuntu 22.04.1 (LTS). Ran using sudo ./build-with-docker.sh

pmp-p commented 1 year ago

could be not enough ram/swap available ( oom killer )

jprendes commented 1 year ago

It looks like the compiler process was externally killed with SIGKILL. I agree with @pmp-p that it might be the OOM killer.

james-pre commented 1 year ago

@jprendes @pmp-p

The VM has 8 GiB of RAM (no swap) and 3 cores with a 2.9 GHz base and 4.8 GHz boost.

How much memory does it use?

jprendes commented 1 year ago

8 GiB is rather low for building LLVM. I would try with at least 32 GiB.

james-pre commented 1 year ago

I have 32, so I'll try that.

james-pre commented 1 year ago

image

Gave it 30 GB of memory, but now it's failing at pyodide (though not from memory).

pmp-p commented 1 year ago

tbh, you should try stock cpython, 3.11+ allows for wasm builds and build system is way simpler.

jprendes commented 1 year ago

It looks like the zlib version required by cpython in the pinned version of pyodide is not available in zlib.net anymore.

jprendes commented 1 year ago

With the latest commit I've updated the version of pyodide to use a version zlib available online.

It does build for me now. I'm closing the issue, please do let me know if you encounter any other issue.