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

Compilation fails #18

Open
armpogart opened this issue Sep 27, 2017 · 16 comments
Open

Compilation fails #18

armpogart opened this issue Sep 27, 2017 · 16 comments

Comments

@armpogart
Copy link

We are using gulp-imagemin but this issue is related exactly to jpegtran. We have a build system running in docker container and base on node:alpine, recently it started to fail. The minimal case to replicate the problem.

  1. docker run -it node:alpine /bin/sh
    Install some build dependencies
  2. apk add --update --no-cache make g++ automake autoconf libtool nasm libpng-dev
  3. npm install optipng-bin

We get following output that is worth mentioning

> [email protected] postinstall /node_modules/optipng-bin
> node lib/install.js

  ⚠ spawn /node_modules/optipng-bin/vendor/optipng ENOENT
  ⚠ optipng pre-build test failed
  ℹ compiling from source
  ✖ Error: ./configure --with-system-zlib --prefix="/node_modules/optipng-bin/vendor" --bindir="/node_modules/optipng-bin/vendor" && make install
Command failed: ./configure --with-system-zlib --prefix="/node_modules/optipng-bin/vendor" --bindir="/node_modules/optipng-bin/vendor"
/bin/sh: ./configure: not found

    at ChildProcess.exithandler (child_process.js:270:12)
    at emitTwo (events.js:125:13)
    at ChildProcess.emit (events.js:213:7)
    at maybeClose (internal/child_process.js:927:16)
    at Socket.stream.socket.on (internal/child_process.js:348:11)
    at emitOne (events.js:115:13)
    at Socket.emit (events.js:210:7)
    at Pipe._handle.close [as _onclose] (net.js:545:12)

Previously it was running ok on the same build system. I can't say exactly when it first started to fail as I was using cache and I have noticed the problem after cleaning the cache.

@armpogart
Copy link
Author

Maybe related to imagemin/jpegtran-bin#83

@naseem-qadium
Copy link

Likewise issues with this plugin using node-alpine docker image.

@naseem-qadium
Copy link

I believe this might have to do with Sourceforge being down.

@stevenscg
Copy link

@naseem-qadium @armpogart Were you able to resolve this issue? I am seeing it again in the last 48 hours, but not as recently as 3 days ago on the same build.

@stevenscg
Copy link

I am seeing this failure in an Alpine Linux 3.7 container.

node 8.9.3
npm 5.5.1

@accnops
Copy link

accnops commented Mar 1, 2018

I'm also seeing this. Latest node:alpine image.

@stevenscg
Copy link

@accnops Was it working for you previously and recently started failing?

@accnops
Copy link

accnops commented Mar 1, 2018

@stevenscg, that's exactly what I'm experiencing. Nothing changed, and now it fails.

@sebastian-schlecht
Copy link

Same here on node:8-alpine

@bericp1
Copy link

bericp1 commented Mar 2, 2018

We're seeing the same issue today. It appears the binary isn't building correctly for alpine during yarn/npm install/npm rebuild even though other packages with native binaries are building correctly. Version didn't change at all (locked with yarn.lock) and nor did the alpine docker image we're using. Check out this possibly relevant discussion here on the Unix stackexchange.

screenshot of terminal

@bericp1
Copy link

bericp1 commented Mar 2, 2018

This is definitely because of the SourceForge outage :/

terminal screenshot

(for the sake of clarity, that tar.gz file is downloaded by imagemin/optipng-bin during it's build/postinstall phase)

I'd recomend thumbsuping imagemin/optipng-bin#94 so that this is at least more apparent when it occurs.

@dylansmith
Copy link

I opened a PR to resolve this: imagemin/optipng-bin#95, please give it a 👍!

@stevenscg
Copy link

Thanks @bericp1 and @dylansmith! I added thumbsup and subscribed to both of those. Pretty nasty failure mode.

@armpogart
Copy link
Author

@stevenscg yep, same issue now, it was resolved before that. I think it was just SourceForge problem as it resolved by itself a couple of days later. And now again my build are failing.

@brabeji
Copy link

brabeji commented Mar 3, 2018

I think this is more of a bin-build issue: imagemin/optipng-bin#84 (comment)

@gjovanov
Copy link

gjovanov commented Mar 4, 2018

Any other alternative to download it for alpine precompiled?

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

9 participants