Commit d36133a
fix: repair Docker dev-environment build and clarify native setup
The documented setup was failing. The native path assumes a Debian host
with LLVM 13, but aWsm's llvm-alt bindings call LLVM C-API functions
(LLVMBuildCall, LLVMBuildLoad) removed in LLVM 15+, so the build fails to
link against newer system LLVM (e.g. LLVM 21 on Ubuntu 24.04). The Docker
route exists for exactly this reason but had bit-rotted in several places.
Dockerfile.x86_64:
- Install `hey` from focal's universe repo instead of downloading the
prebuilt binary, whose hey-release S3/GCS URLs now return 403.
- Add `git config --system --add safe.directory '*'` so the root-run
`make install` doesn't abort with "dubious ownership" on the
host-owned, bind-mounted /sledge.
- Set RUSTUP_HOME/CARGO_HOME to the dev user's install so the root-run
build can resolve the default Rust toolchain instead of failing with
"no default is configured".
Makefile:
- Make the wasm_apps symlink rule idempotent (ln -srfn). The symlink is
committed to the repo, so it already exists on a fresh clone and the
old `ln -sr` failed with "File exists", breaking `make install`.
README.md:
- Recommend the Docker route and add an explicit caveat to the native
section documenting the LLVM-13/Debian requirement and why Ubuntu 24.04
(and other non-LLVM-13 hosts) cannot use it.
Verified end-to-end via `./devenv.sh setup`: aWsm, the runtime, and all
benchmark apps build, and the runtime serves fibonacci, gocr, and
resize_image requests with correct responses.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 6037e62 commit d36133a
3 files changed
Lines changed: 36 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
| 50 | + | |
| 51 | + | |
46 | 52 | | |
47 | 53 | | |
48 | 54 | | |
49 | 55 | | |
50 | 56 | | |
51 | 57 | | |
| 58 | + | |
52 | 59 | | |
53 | 60 | | |
54 | 61 | | |
| |||
57 | 64 | | |
58 | 65 | | |
59 | 66 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| |||
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
113 | 120 | | |
114 | 121 | | |
115 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
54 | 57 | | |
55 | | - | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 9 | + | |
17 | 10 | | |
18 | | - | |
| 11 | + | |
19 | 12 | | |
20 | 13 | | |
21 | 14 | | |
| |||
75 | 68 | | |
76 | 69 | | |
77 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
78 | 86 | | |
79 | 87 | | |
80 | 88 | | |
| |||
0 commit comments