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: Killed signal terminated program cc1 #159

Open
suntong opened this issue Feb 18, 2022 · 1 comment
Open

fatal error: Killed signal terminated program cc1 #159

suntong opened this issue Feb 18, 2022 · 1 comment

Comments

@suntong
Copy link

suntong commented Feb 18, 2022

whenever I build it, I'm getting the following error:

fatal error: Killed signal terminated program cc1

On several different projects, including the one from help:

git clone --depth 1 https://github.com/eggjs/examples.git
cd examples/helloworld
npm install
time nodec node_modules/egg-bin/bin/egg-bin.js

I have also tried on three of my different machines, all failed with such error, when using the Stable Releases.

Log attached, and will try the Unstable Pre-release and then update ...

failed.log

@suntong
Copy link
Author

suntong commented Feb 18, 2022

the Unstable Pre-release ended up with another error, so

I re-confirmed the problem with 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 is in the typescript file of the built image, if you need it.

thanks

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