Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Instructions #2

Open
hex-4d5a9000 opened this issue Nov 21, 2024 · 1 comment
Open

Build Instructions #2

hex-4d5a9000 opened this issue Nov 21, 2024 · 1 comment

Comments

@hex-4d5a9000
Copy link

Hi @xphung,

I'd like to test out your Plan9 port myself. Would you like to share about how to build this project?

@nglibc
Copy link

nglibc commented Nov 22, 2024

Hi @hex-4d5a9000,
There are build instructions in config.mak, which goes as follows:

# This requires wasm32 clang installed at ~/Downloads/llvm-build/bin/clang
#
#  To build, type:
#   make
#
#  To deploy, use webserver.py script to start mini-webserver with wasm mimetype configured
#  To run the server, type:
#   ./webserver.py
#
#  Then open http://localhost:8001/web/shell.html in Chrome browser

This probably wasn't a good place to put the build instructions, but anyone wanting to build it would need to edit config.mak anyway to suit their system.

In case you were wondering why there was the strange requirement to have clang installed in ~/Downloads/LLVM, this is because at the time (6 years ago), wasm compilers were limited outside of emscriptem, and so this project used the then (new) wasm backend for clang/LLVM (this had to be compiled from source with wasm enabled).

The toolchain for wasm has matured substantially since then, but I can't guarantee this will build with modern tooling.
However, I should point you to the pull request from @acomagu last year who seems to have managed to get the project to work in 2023 and even updated the mini-webserver from python2 to python3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants