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

ERROR: Service 'php-worker' failed to build : Build failed #3292

Closed
Silassiai opened this issue Nov 2, 2022 · 5 comments
Closed

ERROR: Service 'php-worker' failed to build : Build failed #3292

Silassiai opened this issue Nov 2, 2022 · 5 comments

Comments

@Silassiai
Copy link
Contributor

Silassiai commented Nov 2, 2022

Description:

(using PHP 8.1) build php-worker fails when INSTALL_IMAP=true

Expected Behavior:

Context information:

Output of git rev-parse HEAD

ba64feda04d1ff732d8dcacefb9828f262a347e6

Output of docker version

20.10.21

Output of docker-compose version

 1.29.2

System info: Mac, Windows or Linux. Include which disto/version

Ubuntu 20.04

Steps to reproduce the issue:

  1. set PHP_WORKER_INSTALL_IMAP=true
  2. run docker-compose build php-worker

Stacktrace & Additional info:

The command '/bin/sh -c if [ ${INSTALL_IMAP} = true ]; then   apk add --update imap-dev &&   docker-php-ext-configure imap --with-imap --with-imap-ssl &&   docker-php-ext-install imap   ;fi' returned a non-zero code: 1
ERROR: Service 'php-worker' failed to build : Build failed
@jrbecart
Copy link

jrbecart commented Dec 2, 2022

I have the same problem
make: /bin/sh: Operation not permitted

creating libtool
appending configuration tag "CXX" to libtool
configure: patching config.h.in
configure: creating ./config.status
config.status: creating config.h
make: /bin/sh: Operation not permitted
make: *** [Makefile:211: gd.lo] Error 127
/bin/sh /usr/src/php/ext/gd/libtool --mode=compile cc -I. -I/usr/src/php/ext/gd -I/usr/src/php/ext/gd/include -I/usr/src/php/ext/gd/main -I/usr/src/php/ext/gd -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/include/libpng16  -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H  -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64   -I/usr/src/php/ext/gd/libgd -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/gd/gd.c -o gd.lo  -MMD -MF gd.dep -MT gd.lo
Removing intermediate container 9693699c739d
Service 'php-worker' failed to build: The command '/bin/sh -c if [ ${INSTALL_GD} = true ]; then   apk add --update --no-cache freetype-dev libjpeg-turbo-dev jpeg-dev libpng-dev;   if [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ] && [ $(php -r "echo PHP_MINOR_VERSION;") = "4" ]; then   docker-php-ext-configure gd --with-freetype --with-jpeg;   else   docker-php-ext-configure gd --with-freetype-dir=/usr/lib/ --with-jpeg-dir=/usr/lib/ --with-png-dir=/usr/lib/;   fi;   docker-php-ext-install gd   ;fi' returned a non-zero code: 2
ERROR: Job failed: exit status 1`

@jrbecart
Copy link

jrbecart commented Dec 2, 2022

[FIXED]

I updated docker from 19.03.x to 20.10.x and the error is gone.

For docker-compose I have:

docker-compose version 1.24.1, build 4667896b
docker-py version: 3.7.3
CPython version: 3.6.8
OpenSSL version: OpenSSL 1.1.0j  20 Nov 2018

@stale
Copy link

stale bot commented Mar 19, 2023

Hi 👋 this issue has been automatically marked as stale 📌 because it has not had recent activity 😴. It will be closed if no further activity occurs. Thank you for your contributions ❤️.

1 similar comment
@stale
Copy link

stale bot commented Jun 18, 2023

Hi 👋 this issue has been automatically marked as stale 📌 because it has not had recent activity 😴. It will be closed if no further activity occurs. Thank you for your contributions ❤️.

@stale stale bot added the Stale label Jun 18, 2023
@stale
Copy link

stale bot commented Aug 12, 2023

Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.

@stale stale bot closed this as completed Aug 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants