-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
After having run into initial build errors, I changed asm-dom.cmake
:
- ${asm-dom_SOURCE_DIR}/dist/cpp/asm-dom.js
+ ${asm-dom_SOURCE_DIR}/dist/js/asm-dom.js
and pull asm-dom
master
rather than the GIT hash that was there.
Then:
[ 16%] Building CXX object CMakeFiles/asm-dom.dir/_deps/asm-dom-src/cpp/asm-dom.cpp.o
In file included from /Users/izmar/git/asm-dom-cmake/build/_deps/asm-dom-src/cpp/asm-dom.cpp:2:
In file included from /Users/izmar/git/asm-dom-cmake/build/_deps/asm-dom-src/cpp/VNode/VNode.cpp:1:
/Users/izmar/git/asm-dom-cmake/build/_deps/asm-dom-src/cpp/VNode/VNode.hpp:48:18: error: expression is not an integral constant expression
48 | extractSel = ~0 << 12,
| ^~~~~~~~
/Users/izmar/git/asm-dom-cmake/build/_deps/asm-dom-src/cpp/VNode/VNode.hpp:48:21: note: left shift of negative value -1
48 | extractSel = ~0 << 12,
| ^
1 error generated.
make[2]: *** [CMakeFiles/asm-dom.dir/_deps/asm-dom-src/cpp/asm-dom.cpp.o] Error 1
make[1]: *** [CMakeFiles/asm-dom.dir/all] Error 2
make: *** [all] Error 2
If we appease the compiler with different code there, we run into the below:
build git:(master) ✗ make
[ 50%] Built target asm-dom
[ 66%] Generating src/main.cpp
make[2]: node_modules/.bin/gccx: No such file or directory
make[2]: *** [src/main.cpp] Error 1
make[1]: *** [CMakeFiles/main.dir/all] Error 2
make: *** [all] Error 2
If we address that by changing stuff in gccx.cmake
, we can build the project and start, but we get another missing file:
➜ build git:(master) ✗ emrun .
Now listening at http://0.0.0.0:6931/
127.0.0.1 - - [19/Mar/2025 08:42:18] code 404, message File not found: /Users/izmar/git/asm-dom-cmake/build/main.js
127.0.0.1 - - [19/Mar/2025 08:42:18] "GET /main.js HTTP/1.1" 404 -
127.0.0.1 - - [19/Mar/2025 08:42:24] code 404, message File not found: /Users/izmar/git/asm-dom-cmake/build/main.js
127.0.0.1 - - [19/Mar/2025 08:42:24] "GET /main.js HTTP/1.1" 404 -
and this in the browser:

I suppose I could hack around more to fix this, but am I missing something obvious as to why the build instructions don't work? Do I need specific versions of something?
Metadata
Metadata
Assignees
Labels
No labels