galkahana / HummusJS

Node.js module for high performance creation, modification and parsing of PDF files and streams
http://www.pdfhummus.com
Other
1.15k stars 170 forks source link

Build error with newest v1.0.105 #414

Closed econner closed 5 years ago

econner commented 5 years ago

Hello! Thanks for the great lib. We started getting this build error on Heroku with the newest version 1.0.105 that appears to have been released just a few hours ago. Not sure what's to blame here, but figured I'd report it.

make: Entering directory '/tmp/node_modules/hummus/build' CXX(target) Release/obj.target/pdfwriter/src/deps/PDFWriter/AbstractContentContext.o make: Entering directory '/tmp/node_modules/hummus/build' CXX(target) Release/obj.target/pdfwriter/src/deps/PDFWriter/AbstractContentContext.o CXX(target) Release/obj.target/pdfwriter/src/deps/PDFWriter/AbstractWrittenFont.o sed: can't read ./Release/.deps/Release/obj.target/pdfwriter/src/deps/PDFWriter/AbstractContentContext.o.d.raw: No such file or directory src/deps/PDFWriter/pdfwriter.target.mk:247: recipe for target 'Release/obj.target/pdfwriter/src/deps/PDFWriter/AbstractContentContext.o' failed make: *** [Release/obj.target/pdfwriter/src/deps/PDFWriter/AbstractContentContext.o] Error 2 make: Leaving directory '/tmp/node_modules/hummus/build'

galkahana commented 5 years ago

cheers. sorry for that. can you tell me what version of node you're using there? also a bit about the compiling env? os etc.?

galkahana commented 5 years ago

oh. i see binaries were not published for some environments due to permissions with aws. travis moved or whatever. i'll rerun the build job with the cred and it'll be better then. give it ~hr

galkahana commented 5 years ago

another hour. sorry. creds and stuff. very confusing.

galkahana commented 5 years ago

electron builds for linux and osx seems to not be able to create binaries properly. ill look at it later. the rest should be fine now.

galkahana commented 5 years ago

k electron looks good too.

econner commented 5 years ago

thanks can confirm that it builds for me now too!

ebdrup commented 4 years ago

@galkahana Thank you so much for this GREAT module! I just wanted to let you know that I have this error appearing on Heroku now when trying to install Hummus 1.0.108. Was there a problem publishing the binaries again? Or is it something else? edit: actually the error is:

remote:        > hummus@1.0.108 install /tmp/build_ac91a162d2e804aa66c8cbf1caf7d515/node_modules/hummus        
remote:        > node-pre-gyp install --fallback-to-build $EXTRA_NODE_PRE_GYP_FLAGS        
remote:                
remote:        make: Entering directory '/tmp/build_ac91a162d2e804aa66c8cbf1caf7d515/node_modules/hummus/build'        
remote:        make: Entering directory '/tmp/build_ac91a162d2e804aa66c8cbf1caf7d515/node_modules/hummus/build'        
remote:          CXX(target) Release/obj.target/pdfwriter/src/deps/PDFWriter/AbstractContentContext.o        
remote:          CXX(target) Release/obj.target/pdfwriter/src/deps/PDFWriter/AbstractContentContext.o        
remote:        rm: cannot remove './Release/.deps/Release/obj.target/pdfwriter/src/deps/PDFWriter/AbstractContentContext.o.d.raw': No such file or directory        
remote:        src/deps/PDFWriter/pdfwriter.target.mk:257: recipe for target 'Release/obj.target/pdfwriter/src/deps/PDFWriter/AbstractContentContext.o' failed        
remote:        make: *** [Release/obj.target/pdfwriter/src/deps/PDFWriter/AbstractContentContext.o] Error 1        
remote:        make: Leaving directory '/tmp/build_ac91a162d2e804aa66c8cbf1caf7d515/node_modules/hummus/build'        
remote:        gyp ERR! build error         
remote:        gyp ERR! stack Error: `make` failed with exit code: 2        
remote:        gyp ERR! stack     at ChildProcess.onExit (/tmp/build_ac91a162d2e804aa66c8cbf1caf7d515/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)        
remote:        gyp ERR! stack     at ChildProcess.emit (events.js:310:20)        
remote:        gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)        
remote:        gyp ERR! System Linux 4.4.0-1066-aws        
remote:        gyp ERR! command "/tmp/build_ac91a162d2e804aa66c8cbf1caf7d515/.heroku/node/bin/node" "/tmp/build_ac91a162d2e804aa66c8cbf1caf7d515/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/tmp/build_ac91a162d2e804aa66c8cbf1caf7d515/node_modules/hummus/binding/hummus.node" "--module_name=hummus" "--module_path=/tmp/build_ac91a162d2e804aa66c8cbf1caf7d515/node_modules/hummus/binding" "--napi_version=5" "--node_abi_napi=napi"        
remote:        gyp ERR! cwd /tmp/build_ac91a162d2e804aa66c8cbf1caf7d515/node_modules/hummus        
remote:        gyp ERR! node -v v12.16.3        
remote:        gyp ERR! node-gyp -v v5.1.0        
remote:        gyp ERR! not ok         

Not entirely sure if it's the same error, I'm on node 12.16.3 and npm 6.14.5

Edit: I just tried downgrading to npm 6.14.4 and the error went away.