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

Docker builds fail (local + GitHub actions) - issue with npm node-gyp / node-expat #7616

Closed
stephanegigandet opened this issue Oct 27, 2022 · 1 comment · Fixed by #7619
Closed

Comments

@stephanegigandet
Copy link
Contributor

stephanegigandet commented Oct 27, 2022

All builds are currently failing:

Complete build log is available in recently failed PRs.

#0 15.39 npm ERR! code 1
#0 15.39 npm ERR! path /opt/product-opener/node_modules/node-expat
#0 15.39 npm ERR! command failed
#0 15.39 npm ERR! command sh -c -- node-gyp rebuild
#0 15.39 npm ERR! make: Entering directory '/opt/product-opener/node_modules/node-expat/build'
#0 15.39 npm ERR!   CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlparse.o
#0 15.40 npm ERR!   CC(target) Release/obj.target/expat/deps/libexpat/lib/xmltok.o
#0 15.40 npm ERR!   CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlrole.o
#0 15.40 npm ERR!   AR(target) Release/obj.target/deps/libexpat/libexpat.a
#0 15.40 npm ERR!   COPY Release/libexpat.a
#0 15.40 npm ERR!   CXX(target) Release/obj.target/node_expat/node-expat.o
#0 15.40 npm ERR! make: Leaving directory '/opt/product-opener/node_modules/node-expat/build'
#0 15.40 npm ERR! gyp info it worked if it ends with ok
#0 15.40 npm ERR! gyp info using [email protected]
#0 15.40 npm ERR! gyp info using [email protected] | linux | x64
#0 15.40 npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
#0 15.40 npm ERR! gyp http GET https://nodejs.org/download/release/v18.12.0/node-v18.12.0-headers.tar.gz
#0 15.40 npm ERR! gyp http 200 https://nodejs.org/download/release/v18.12.0/node-v18.12.0-headers.tar.gz
#0 15.40 npm ERR! gyp http GET https://nodejs.org/download/release/v18.12.0/SHASUMS256.txt
#0 15.40 npm ERR! gyp http 200 https://nodejs.org/download/release/v18.12.0/SHASUMS256.txt
#0 15.40 npm ERR! gyp info spawn /usr/bin/python3

[..]

#0 15.42 npm ERR! make: *** [node_expat.target.mk:120: Release/obj.target/node_expat/node-expat.o] Error 1
#0 15.42 npm ERR! gyp ERR! build error 
#0 15.42 npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
#0 15.42 npm ERR! gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:201:23)
#0 15.42 npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
#0 15.42 npm ERR! gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:291:12)
#0 15.42 npm ERR! gyp ERR! System Linux 5.15.0-47-generic
#0 15.42 npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
#0 15.42 npm ERR! gyp ERR! cwd /opt/product-opener/node_modules/node-expat
#0 15.42 npm ERR! gyp ERR! node -v v18.12.0
#0 15.42 npm ERR! gyp ERR! node-gyp -v v9.1.0
#0 15.42 npm ERR! gyp ERR! not ok
@stephanegigandet
Copy link
Contributor Author

It still fails when I check out an old branch from 15 days ago, so it's not due to a recent change on our side.

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

Successfully merging a pull request may close this issue.

1 participant