Open suntong opened 2 years ago
I'm getting the fatal error: enclose_io.h: No such file or directory error when using the the Unstable Pre-release:
fatal error: enclose_io.h: No such file or directory
cc -o /tmp/nodec/node-140800.121803-current/out/Release/obj.target/uvwasi/deps/uvwasi/src/clocks.o ../deps/uvwasi/src/clocks.c '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-D_GNU_SOURCE' '-D_POSIX_C_SOURCE=200112' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' -I../deps/uvwasi/include -I../deps/uv/include -pthread -Wall -Wextra -Wno-unused-parameter -m64 -fvisibility=hidden -O3 -fno-omit-frame-pointer -MMD -MF /tmp/nodec/node-140800.121803-current/out/Release/.deps//tmp/nodec/node-140800.121803-current/out/Release/obj.target/uvwasi/deps/uvwasi/src/clocks.o.d.raw -c In file included from ../deps/uvwasi/src/clocks.c:8: ../deps/uv/include/uv.h:37:10: fatal error: enclose_io.h: No such file or directory 37 | #include "enclose_io.h" | ^~~~~~~~~~~~~~ compilation terminated. make[1]: *** [deps/uvwasi/uvwasi.target.mk:100: /tmp/nodec/node-140800.121803-current/out/Release/obj.target/uvwasi/deps/uvwasi/src/clocks.o] Error 1 make[1]: *** Waiting for unfinished jobs.... cc -o /tmp/nodec/node-140800.121803-current/out/Release/obj.target/uvwasi/deps/uvwasi/src/fd_table.o ../deps/uvwasi/src/fd_table.c '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-D_GNU_SOURCE' '-D_POSIX_C_SOURCE=200112' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' -I../deps/uvwasi/include -I../deps/uv/include -pthread -Wall -Wextra -Wno-unused-parameter -m64 -fvisibility=hidden -O3 -fno-omit-frame-pointer -MMD -MF /tmp/nodec/node-140800.121803-current/out/Release/.deps//tmp/nodec/node-140800.121803-current/out/Release/obj.target/uvwasi/deps/uvwasi/src/fd_table.o.d.raw -c In file included from ../deps/uvwasi/src/fd_table.c:9: ../deps/uv/include/uv.h:37:10: fatal error: enclose_io.h: No such file or directory 37 | #include "enclose_io.h" | ^~~~~~~~~~~~~~ compilation terminated. make[1]: *** [deps/uvwasi/uvwasi.target.mk:100: /tmp/nodec/node-140800.121803-current/out/Release/obj.target/uvwasi/deps/uvwasi/src/fd_table.o] Error 1 make: *** [Makefile:104: node] Error 2
Here is a minimum-set to duplicated the problem, a Dockerfile file, so we won't have a it-works-for-me case.
# Node Runtime Env:wx # Dockerfile for building exe of my wx ARG BASE_IMAGE=node:14-bullseye FROM ${BASE_IMAGE} RUN type python || apt-get update && apt-get install -yq python2 curl squashfs-tools build-essential git bsdutils; ln -s /usr/bin/python2.7 /usr/bin/python; python -V # unset proxy ENV http_proxy= ENV https_proxy= WORKDIR /usr/local/bin # Stable Releases # ARG nodec_url=https://gw.alipayobjects.com/os/enclose-prod/b6aa41a6-f6b5-4542-b777-06e4bc292c5e/nodec-v1.5.0-linux-x64.gz # RUN curl -sL $nodec_url > nodec.gz && gunzip nodec.gz && chmod +x nodec; nodec -v # Unstable Pre-release ARG nodec_url=https://github.com/pmq20/node-packer/releases/download/linux-x64/pre-release-nodec-v140800.121803-linux-x64 RUN curl -sL $nodec_url > nodec && chmod +x nodec; nodec -v RUN mkdir /src; git clone --depth 1 https://gist.github.com/22d29b8f156204fdaaae206117783197.git /src WORKDIR /src RUN script -c 'nodec index.js' || true
The log will be in the typescript file of the built image.
typescript
I'm getting the
fatal error: enclose_io.h: No such file or directory
error when using the the Unstable Pre-release:Here is a minimum-set to duplicated the problem, a Dockerfile file, so we won't have a it-works-for-me case.
The log will be in the
typescript
file of the built image.