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

fatal error: enclose_io.h: No such file or directory #160

Open
suntong opened this issue Feb 18, 2022 · 0 comments
Open

fatal error: enclose_io.h: No such file or directory #160

suntong opened this issue Feb 18, 2022 · 0 comments

Comments

@suntong
Copy link

suntong commented Feb 18, 2022

I'm getting the fatal error: enclose_io.h: No such file or directory error when using the the Unstable Pre-release:

  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.

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

1 participant