-
-
Notifications
You must be signed in to change notification settings - Fork 11
Failed to build Docker containers due to Emscripten error #152
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
Comments
Active version of Emsdk in my environment:
|
I found out that this is caused by Emscripten's regression bug. I will report it to Emscripten. |
[Workaround] apply this patch: diff --git a/src/wasm/Dockerfile b/src/wasm/Dockerfile
index dab2fd5..003e372 100644
--- a/src/wasm/Dockerfile
+++ b/src/wasm/Dockerfile
@@ -840,6 +840,7 @@ fi;
# Build the final .wasm file
RUN mkdir /root/output
COPY build-assets/phpwasm-emscripten-library.js /root/phpwasm-emscripten-library.js
+RUN sed -i -e 's/for (var elem of param.elements) {/for (var elem of param.elements) { if (elem)/' /root/emsdk/upstream/emscripten/tools/acorn-optimizer.mjs
RUN source /root/emsdk/emsdk_env.sh && \
export EXPORTED_FUNCTIONS=$'["_php_wasm_init", \n\
"_phpwasm_destroy_uploaded_files_hash", \n\ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
I tried to build the Docker containers by
make build
, but it failed with the below error message:It ocurred for all versions, i.e., from
build-5.6
tobuild-8.3
.Environment
More detailed log
The text was updated successfully, but these errors were encountered: