Closed
Description
When I attempt to run this command I see the following error reported…
#12 [api_platform_php 6/37] RUN docker-php-ext-install -j$(nproc) intl;
#12 0.793 fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz
#12 1.401 fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/community/x86_64/APKINDEX.tar.gz
#12 3.049 (1/1) Installing .phpize-deps (20240909.135757)
#12 3.052 OK: 309 MiB in 93 packages
#12 3.225 Configuring for:
#12 3.225 PHP Api Version: 20220829
#12 3.225 Zend Module Api No: 20220829
#12 3.225 Zend Extension Api No: 420220829
#12 4.600 checking for grep that handles long lines and -e... configure: error: no acceptable grep could be found in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/xpg4/bin
#12 ERROR: process "/bin/sh -c docker-php-ext-install -j$(nproc) intl;" did not complete successfully: exit code: 1
This has only just started happening (as well as ftp failing to install intermittently!?)
Any idea what might have changed about the image that could have caused this?
For reference I've just modified my Dockerfile from…
ARG PHP_VERSION=8.2
# "php" stage
FROM php:${PHP_VERSION}-fpm-alpine AS api_platform_php
# persistent / runtime deps
RUN apk add --no-cache \
acl \
fcgi \
file \
gettext \
git \
gnu-libiconv \
sudo \
;
# install gnu-libiconv and set LD_PRELOAD env to make iconv work fully on Alpine image.
# see https://github.com/docker-library/php/issues/240#issuecomment-763112749
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so
ARG APCU_VERSION=5.1.21
ARG PHP_IDE_CONFIG=serverName=goodcrm-api-v2
RUN set -eux; \
apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
icu-dev \
libzip-dev \
zlib-dev \
; \
\
docker-php-ext-configure zip; \
docker-php-ext-install -j$(nproc) \
ftp \
intl \
zip \
; \
pecl install \
apcu-${APCU_VERSION} \
; \
pecl clear-cache; \
docker-php-ext-enable \
apcu \
opcache \
; \
\
runDeps="$( \
scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions \
| tr ',' '\n' \
| sort -u \
| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \
)"; \
apk add --no-cache --virtual .api-phpexts-rundeps $runDeps; \
\
apk del .build-deps
… to…
ARG PHP_VERSION=8.2
# "php" stage
FROM php:${PHP_VERSION}-fpm-alpine AS api_platform_php
# persistent / runtime deps
RUN apk add --no-cache \
acl \
fcgi \
file \
gettext \
git \
gnu-libiconv \
sudo \
;
# install gnu-libiconv and set LD_PRELOAD env to make iconv work fully on Alpine image.
# see https://github.com/docker-library/php/issues/240#issuecomment-763112749
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so
ARG APCU_VERSION=5.1.21
ARG PHP_IDE_CONFIG=serverName=goodcrm-api-v2
RUN set -eux; \
apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
icu-dev \
libzip-dev \
zlib-dev \
;
RUN docker-php-ext-configure zip;
RUN docker-php-ext-install -j$(nproc) ftp;
RUN docker-php-ext-install -j$(nproc) intl;
RUN docker-php-ext-install -j$(nproc) zip;
RUN pecl install \
apcu-${APCU_VERSION} \
;
RUN pecl clear-cache; \
RUN docker-php-ext-enable \
apcu \
opcache \
;
RUN runDeps="$( \
scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions \
| tr ',' '\n' \
| sort -u \
| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \
)"; \
apk add --no-cache --virtual .api-phpexts-rundeps $runDeps; \
RUN apk del .build-deps
… because the whole command was failing with this error before I broke it apart…
#0 building with "desktop-linux" instance using docker driver
#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 5.62kB done
#1 DONE 0.0s
#2 [internal] load metadata for docker.io/library/php:8.2-fpm-alpine
#2 ...
#3 [auth] library/php:pull token for registry-1.docker.io
#3 DONE 0.0s
#4 [auth] library/composer:pull token for registry-1.docker.io
#4 DONE 0.0s
#5 [internal] load metadata for docker.io/library/composer:2
#5 ...
#2 [internal] load metadata for docker.io/library/php:8.2-fpm-alpine
#2 DONE 1.1s
#5 [internal] load metadata for docker.io/library/composer:2
#5 DONE 1.1s
#6 [internal] load .dockerignore
#6 transferring context: 464B done
#6 DONE 0.0s
#7 [api_platform_php 1/29] FROM docker.io/library/php:8.2-fpm-alpine@sha256:a16bc43404e602adb0f8f9662a1319f83d85daf23110bf7e02152a8a0e3d7e5e
#7 DONE 0.0s
#8 [api_platform_php 2/29] RUN apk add --no-cache acl fcgi file gettext git gnu-libiconv sudo ;
#8 CACHED
#9 FROM docker.io/library/composer:2@sha256:8008ba4d8723edf5f3566bd94e9330a5cdff3d6125ed34a8502718f8d2289515
#9 CACHED
#10 [internal] load build context
#10 transferring context: 56.42kB 0.0s done
#10 DONE 0.0s
#11 [api_platform_php 3/29] RUN set -eux; apk add --no-cache --virtual .build-deps autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c icu-dev libzip-dev zlib-dev ; docker-php-ext-configure zip; docker-php-ext-install -j$(nproc) ftp intl zip ; pecl install apcu-5.1.21 ; pecl clear-cache; docker-php-ext-enable apcu opcache ; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-cache --virtual .api-phpexts-rundeps $runDeps; apk del .build-deps
#11 0.124 + apk add --no-cache --virtual .build-deps autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c icu-dev libzip-dev zlib-dev
#11 0.152 fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz
#11 0.448 fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/community/x86_64/APKINDEX.tar.gz
#11 1.867 (1/38) Installing m4 (1.4.19-r3)
#11 1.975 (2/38) Installing libbz2 (1.0.8-r6)
#11 2.011 (3/38) Installing perl (5.38.2-r0)
#11 9.555 (4/38) Installing autoconf (2.72-r0)
#11 10.29 (5/38) Installing pkgconf (2.2.0-r0)
#11 10.39 (6/38) Installing dpkg-dev (1.22.6-r1)
#11 10.80 (7/38) Installing libmd (1.1.0-r0)
#11 10.84 (8/38) Installing dpkg (1.22.6-r1)
#11 11.25 (9/38) Installing libstdc++ (13.2.1_git20240309-r0)
#11 12.00 (10/38) Installing libstdc++-dev (13.2.1_git20240309-r0)
#11 14.73 (11/38) Installing jansson (2.14-r4)
#11 14.77 (12/38) Installing binutils (2.42-r0)
#11 17.96 (13/38) Installing libatomic (13.2.1_git20240309-r0)
#11 17.99 (14/38) Installing gmp (6.3.0-r1)
#11 18.19 (15/38) Installing isl26 (0.26-r1)
#11 18.79 (16/38) Installing mpfr4 (4.2.1-r0)
#11 19.03 (17/38) Installing mpc1 (1.3.1-r1)
#11 19.09 (18/38) Installing gcc (13.2.1_git20240309-r0)
#11 57.17 (19/38) Installing musl-dev (1.2.5-r0)
#11 58.79 (20/38) Installing g++ (13.2.1_git20240309-r0)
#11 67.23 (21/38) Installing make (4.4.1-r2)
#11 67.31 (22/38) Installing re2c (3.1-r0)
#11 67.64 (23/38) Installing icu-data-en (74.2-r0)
#11 68.08 Executing icu-data-en-74.2-r0.post-install
#11 68.11 *
#11 68.11 * If you need ICU with non-English locales and legacy charset support, install
#11 68.11 * package icu-data-full.
#11 68.11 *
#11 68.11 (24/38) Installing icu-libs (74.2-r0)
#11 69.33 (25/38) Installing icu (74.2-r0)
#11 69.46 (26/38) Installing icu-dev (74.2-r0)
#11 70.15 (27/38) Installing libzip (1.10.1-r0)
#11 70.20 (28/38) Installing libzip-tools (1.10.1-r0)
#11 70.22 (29/38) Installing bzip2-dev (1.0.8-r6)
#11 70.27 (30/38) Installing xz-dev (5.6.2-r0)
#11 70.31 (31/38) Installing zlib-dev (1.3.1-r1)
#11 70.34 (32/38) Installing zstd (1.5.6-r0)
#11 70.41 (33/38) Installing zstd-dev (1.5.6-r0)
#11 70.45 (34/38) Installing libzip-dev (1.10.1-r0)
#11 70.49 (35/38) Installing .build-deps (20240909.143815)
#11 70.49 (36/38) Installing perl-error (0.17029-r2)
#11 70.52 (37/38) Installing perl-git (2.45.2-r0)
#11 70.58 (38/38) Installing git-perl (2.45.2-r0)
#11 70.61 Executing busybox-1.36.1-r29.trigger
#11 70.63 OK: 309 MiB in 92 packages
#11 70.71 + docker-php-ext-configure zip
#11 72.24 fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz
#11 72.53 fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/community/x86_64/APKINDEX.tar.gz
#11 73.10 (1/1) Installing .phpize-deps-configure (20240909.143926)
#11 73.10 OK: 309 MiB in 93 packages
#11 73.26 Configuring for:
#11 73.26 PHP Api Version: 20220829
#11 73.26 Zend Module Api No: 20220829
#11 73.26 Zend Extension Api No: 420220829
#11 74.61 checking for grep that handles long lines and -e... /bin/grep
#11 74.81 checking for egrep... /bin/grep -E
#11 74.81 checking for a sed that does not truncate output... /bin/sed
#11 74.90 checking for pkg-config... /usr/bin/pkg-config
#11 74.90 checking pkg-config is at least version 0.9.0... yes
#11 74.91 checking for cc... cc
#11 75.01 checking whether the C compiler works... yes
#11 75.27 checking for C compiler default output file name... a.out
#11 75.28 checking for suffix of executables...
#11 75.53 checking whether we are cross compiling... no
#11 75.86 checking for suffix of object files... o
#11 76.07 checking whether the compiler supports GNU C... yes
#11 76.50 checking whether cc accepts -g... yes
#11 76.74 checking for cc option to enable C11 features... none needed
#11 77.25 checking how to run the C preprocessor... cc -E
#11 77.53 checking for egrep -e... (cached) /bin/grep -E
#11 77.53 checking for icc... no
#11 77.59 checking for suncc... no
#11 77.65 checking for system library directory... lib
#11 77.65 checking if compiler supports -Wl,-rpath,... yes
#11 77.91 checking build system type... x86_64-pc-linux-musl
#11 77.93 checking host system type... x86_64-pc-linux-musl
#11 77.93 checking target system type... x86_64-pc-linux-musl
#11 78.07 checking for PHP prefix... /usr/local
#11 78.07 checking for PHP includes... -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
#11 78.07 checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20220829
#11 78.07 checking for PHP installed headers prefix... /usr/local/include/php
#11 78.07 checking if debug is enabled... no
#11 78.13 checking if zts is enabled... no
#11 78.20 checking for gawk... no
#11 78.20 checking for nawk... no
#11 78.20 checking for awk... awk
#11 78.20 checking if awk is broken... no
#11 78.20 checking for zip archive read/write support... yes, shared
#11 78.20 checking for libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0... yes
#11 78.24 checking for zip_file_set_mtime in -lzip... yes
#11 78.54 checking for zip_file_set_encryption in -lzip... yes
#11 78.85 checking for zip_libzip_version in -lzip... yes
#11 79.15 checking for zip_register_progress_callback_with_state in -lzip... yes
#11 79.45 checking for zip_register_cancel_callback_with_state in -lzip... yes
#11 79.76 checking for zip_compression_method_supported in -lzip... yes
#11 80.07 checking for a sed that does not truncate output... /bin/sed
#11 80.08 checking for ld used by cc... /usr/x86_64-alpine-linux-musl/bin/ld
#11 80.14 checking if the linker (/usr/x86_64-alpine-linux-musl/bin/ld) is GNU ld... yes
#11 80.15 checking for /usr/x86_64-alpine-linux-musl/bin/ld option to reload object files... -r
#11 80.15 checking for BSD-compatible nm... /usr/bin/nm -B
#11 80.15 checking whether ln -s works... yes
#11 80.15 checking how to recognize dependent libraries... pass_all
#11 80.25 checking for stdio.h... yes
#11 80.35 checking for stdlib.h... yes
#11 80.45 checking for string.h... yes
#11 80.55 checking for inttypes.h... yes
#11 80.65 checking for stdint.h... yes
#11 80.76 checking for strings.h... yes
#11 80.87 checking for sys/stat.h... yes
#11 80.97 checking for sys/types.h... yes
#11 81.09 checking for unistd.h... yes
#11 81.21 checking for dlfcn.h... yes
#11 81.33 checking the maximum length of command line arguments... 98304
#11 81.34 checking command to parse /usr/bin/nm -B output from cc object... ok
#11 81.78 checking for objdir... .libs
#11 81.79 checking for ar... ar
#11 81.79 checking for ranlib... ranlib
#11 81.79 checking for strip... strip
#11 82.13 checking if cc supports -fno-rtti -fno-exceptions... no
#11 82.25 checking for cc option to produce PIC... -fPIC
#11 82.25 checking if cc PIC flag -fPIC works... yes
#11 82.36 checking if cc static flag -static works... yes
#11 82.61 checking if cc supports -c -o file.o... yes
#11 82.75 checking whether the cc linker (/usr/x86_64-alpine-linux-musl/bin/ld -m elf_x86_64) supports shared libraries... yes
#11 82.80 checking whether -lc should be explicitly linked in... no
#11 82.96 checking dynamic linker characteristics... GNU/Linux ld.so
#11 83.00 checking how to hardcode library paths into programs... immediate
#11 83.00 checking whether stripping libraries is possible... yes
#11 83.01 checking if libtool supports shared libraries... yes
#11 83.01 checking whether to build shared libraries... yes
#11 83.01 checking whether to build static libraries... no
#11 83.41 Illegal instruction
#11 83.49
#11 83.49 creating libtool
#11 83.55 appending configuration tag "CXX" to libtool
#11 83.59 Illegal instruction
#11 83.71 configure: patching config.h.in
#11 83.72 configure: creating ./config.status
#11 83.87 config.status: creating config.h
#11 83.94 + nproc
#11 83.95 + docker-php-ext-install -j12 ftp intl zip
#11 84.13 Configuring for:
#11 84.13 PHP Api Version: 20220829
#11 84.13 Zend Module Api No: 20220829
#11 84.13 Zend Extension Api No: 420220829
#11 85.44 checking for grep that handles long lines and -e... /bin/grep
#11 85.69 checking for egrep... /bin/grep -E
#11 85.70 checking for a sed that does not truncate output... /bin/sed
#11 85.80 checking for pkg-config... /usr/bin/pkg-config
#11 85.80 checking pkg-config is at least version 0.9.0... yes
#11 85.81 checking for cc... cc
#11 85.90 checking whether the C compiler works... yes
#11 86.17 checking for C compiler default output file name... a.out
#11 86.17 checking for suffix of executables...
#11 86.43 checking whether we are cross compiling... no
#11 86.78 checking for suffix of object files... o
#11 87.01 checking whether the compiler supports GNU C... yes
#11 87.27 checking whether cc accepts -g... yes
#11 87.51 checking for cc option to enable C11 features... none needed
#11 88.03 checking how to run the C preprocessor... cc -E
#11 88.31 checking for egrep -e... (cached) /bin/grep -E
#11 88.31 checking for icc... no
#11 88.37 checking for suncc... no
#11 88.43 checking for system library directory... lib
#11 88.43 checking if compiler supports -Wl,-rpath,... yes
#11 88.71 checking build system type... x86_64-pc-linux-musl
#11 88.73 checking host system type... x86_64-pc-linux-musl
#11 88.73 checking target system type... x86_64-pc-linux-musl
#11 88.87 checking for PHP prefix... /usr/local
#11 88.87 checking for PHP includes... -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
#11 88.87 checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20220829
#11 88.87 checking for PHP installed headers prefix... /usr/local/include/php
#11 88.87 checking if debug is enabled... no
#11 88.94 checking if zts is enabled... no
#11 89.01 checking for gawk... no
#11 89.01 checking for nawk... no
#11 89.01 checking for awk... awk
#11 89.01 checking if awk is broken... no
#11 89.01 checking whether to enable FTP support... yes, shared
#11 89.01 checking whether to explicitly enable FTP SSL support... no
#11 89.03 checking for a sed that does not truncate output... /bin/sed
#11 89.03 checking for ld used by cc... /usr/x86_64-alpine-linux-musl/bin/ld
#11 89.10 checking if the linker (/usr/x86_64-alpine-linux-musl/bin/ld) is GNU ld... yes
#11 89.11 checking for /usr/x86_64-alpine-linux-musl/bin/ld option to reload object files... -r
#11 89.11 checking for BSD-compatible nm... /usr/bin/nm -B
#11 89.11 checking whether ln -s works... yes
#11 89.11 checking how to recognize dependent libraries... pass_all
#11 89.21 checking for stdio.h... yes
#11 89.32 checking for stdlib.h... yes
#11 89.46 checking for string.h... yes
#11 89.60 checking for inttypes.h... yes
#11 89.72 checking for stdint.h... yes
#11 89.84 checking for strings.h... yes
#11 89.95 checking for sys/stat.h... yes
#11 90.06 checking for sys/types.h... yes
#11 90.23 checking for unistd.h... yes
#11 90.36 checking for dlfcn.h... yes
#11 90.48 checking the maximum length of command line arguments... 98304
#11 90.50 checking command to parse /usr/bin/nm -B output from cc object... ok
#11 90.96 checking for objdir... .libs
#11 90.97 checking for ar... ar
#11 90.97 checking for ranlib... ranlib
#11 90.97 checking for strip... strip
#11 91.34 checking if cc supports -fno-rtti -fno-exceptions... no
#11 91.47 checking for cc option to produce PIC... -fPIC
#11 91.47 checking if cc PIC flag -fPIC works... yes
#11 91.59 checking if cc static flag -static works... yes
#11 91.88 checking if cc supports -c -o file.o... yes
#11 92.02 checking whether the cc linker (/usr/x86_64-alpine-linux-musl/bin/ld -m elf_x86_64) supports shared libraries... yes
#11 92.06 checking whether -lc should be explicitly linked in... no
#11 92.22 checking dynamic linker characteristics... GNU/Linux ld.so
#11 92.25 checking how to hardcode library paths into programs... immediate
#11 92.25 checking whether stripping libraries is possible... yes
#11 92.26 checking if libtool supports shared libraries... yes
#11 92.26 checking whether to build shared libraries... yes
#11 92.26 checking whether to build static libraries... no
#11 92.72
#11 92.72 creating libtool
#11 92.79 appending configuration tag "CXX" to libtool
#11 92.96 configure: patching config.h.in
#11 92.97 configure: creating ./config.status
#11 93.12 config.status: creating config.h
#11 93.21 /bin/sh /usr/src/php/ext/ftp/libtool --tag=CC --mode=compile cc -I. -I/usr/src/php/ext/ftp -I/usr/src/php/ext/ftp/include -I/usr/src/php/ext/ftp/main -I/usr/src/php/ext/ftp -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 -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 -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/ftp/php_ftp.c -o php_ftp.lo -MMD -MF php_ftp.dep -MT php_ftp.lo
#11 93.21 /bin/sh /usr/src/php/ext/ftp/libtool --tag=CC --mode=compile cc -I. -I/usr/src/php/ext/ftp -I/usr/src/php/ext/ftp/include -I/usr/src/php/ext/ftp/main -I/usr/src/php/ext/ftp -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 -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 -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/ftp/ftp.c -o ftp.lo -MMD -MF ftp.dep -MT ftp.lo
#11 93.28 Illegal instruction
#11 93.51 mkdir .libs
#11 93.51 cc -I. -I/usr/src/php/ext/ftp -I/usr/src/php/ext/ftp/include -I/usr/src/php/ext/ftp/main "" -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 -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 -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/ftp/php_ftp.c -MMD -MF php_ftp.dep -MT php_ftp.lo -fPIC -DPIC -o .libs/php_ftp.o
#11 93.52 cc -I. -I/usr/src/php/ext/ftp -I/usr/src/php/ext/ftp/include -I/usr/src/php/ext/ftp/main -I/usr/src/php/ext/ftp -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 -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 -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/ftp/ftp.c -MMD -MF ftp.dep -MT ftp.lo -fPIC -DPIC -o .libs/ftp.o
#11 94.46 cc: warning: : linker input file unused because linking not done
#11 94.46 cc: error: : linker input file not found: No such file or directory
#11 94.47 make: *** [Makefile:209: php_ftp.lo] Error 1
#11 94.47 make: *** Waiting for unfinished jobs....
#11 ERROR: process "/bin/sh -c set -eux; \tapk add --no-cache --virtual .build-deps \t\t$PHPIZE_DEPS \t\ticu-dev \t\tlibzip-dev \t\tzlib-dev \t; \t\tdocker-php-ext-configure zip; \tdocker-php-ext-install -j$(nproc) \t\tftp \t\tintl \t\tzip \t; \tpecl install \t\tapcu-${APCU_VERSION} \t; \tpecl clear-cache; \tdocker-php-ext-enable \t\tapcu \t\topcache \t; \t\trunDeps=\"$( \t\tscanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions \t\t\t| tr ',' '\\n' \t\t\t| sort -u \t\t\t| awk 'system(\"[ -e /usr/local/lib/\" $1 \" ]\") == 0 { next } { print \"so:\" $1 }' \t)\"; \tapk add --no-cache --virtual .api-phpexts-rundeps $runDeps; \t\tapk del .build-deps" did not complete successfully: exit code: 2
------
> [api_platform_php 3/29] RUN set -eux; apk add --no-cache --virtual .build-deps autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c icu-dev libzip-dev zlib-dev ; docker-php-ext-configure zip; docker-php-ext-install -j$(nproc) ftp intl zip ; pecl install apcu-5.1.21 ; pecl clear-cache; docker-php-ext-enable apcu opcache ; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-cache --virtual .api-phpexts-rundeps $runDeps; apk del .build-deps:
93.21 /bin/sh /usr/src/php/ext/ftp/libtool --tag=CC --mode=compile cc -I. -I/usr/src/php/ext/ftp -I/usr/src/php/ext/ftp/include -I/usr/src/php/ext/ftp/main -I/usr/src/php/ext/ftp -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 -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 -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/ftp/php_ftp.c -o php_ftp.lo -MMD -MF php_ftp.dep -MT php_ftp.lo
93.21 /bin/sh /usr/src/php/ext/ftp/libtool --tag=CC --mode=compile cc -I. -I/usr/src/php/ext/ftp -I/usr/src/php/ext/ftp/include -I/usr/src/php/ext/ftp/main -I/usr/src/php/ext/ftp -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 -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 -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/ftp/ftp.c -o ftp.lo -MMD -MF ftp.dep -MT ftp.lo
93.28 Illegal instruction
93.51 mkdir .libs
93.51 cc -I. -I/usr/src/php/ext/ftp -I/usr/src/php/ext/ftp/include -I/usr/src/php/ext/ftp/main "" -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 -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 -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/ftp/php_ftp.c -MMD -MF php_ftp.dep -MT php_ftp.lo -fPIC -DPIC -o .libs/php_ftp.o
93.52 cc -I. -I/usr/src/php/ext/ftp -I/usr/src/php/ext/ftp/include -I/usr/src/php/ext/ftp/main -I/usr/src/php/ext/ftp -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 -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 -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/ftp/ftp.c -MMD -MF ftp.dep -MT ftp.lo -fPIC -DPIC -o .libs/ftp.o
94.46 cc: warning: : linker input file unused because linking not done
94.46 cc: error: : linker input file not found: No such file or directory
94.47 make: *** [Makefile:209: php_ftp.lo] Error 1
94.47 make: *** Waiting for unfinished jobs....
------
Dockerfile:30
--------------------
29 |
30 | >>> RUN set -eux; \
31 | >>> apk add --no-cache --virtual .build-deps \
32 | >>> $PHPIZE_DEPS \
33 | >>> icu-dev \
34 | >>> libzip-dev \
35 | >>> zlib-dev \
36 | >>> ; \
37 | >>> \
38 | >>> docker-php-ext-configure zip; \
39 | >>> docker-php-ext-install -j$(nproc) \
40 | >>> ftp \
41 | >>> intl \
42 | >>> zip \
43 | >>> ; \
44 | >>> pecl install \
45 | >>> apcu-${APCU_VERSION} \
46 | >>> ; \
47 | >>> pecl clear-cache; \
48 | >>> docker-php-ext-enable \
49 | >>> apcu \
50 | >>> opcache \
51 | >>> ; \
52 | >>> \
53 | >>> runDeps="$( \
54 | >>> scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions \
55 | >>> | tr ',' '\n' \
56 | >>> | sort -u \
57 | >>> | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \
58 | >>> )"; \
59 | >>> apk add --no-cache --virtual .api-phpexts-rundeps $runDeps; \
60 | >>> \
61 | >>> apk del .build-deps
62 |
--------------------
ERROR: failed to solve: process "/bin/sh -c set -eux; \tapk add --no-cache --virtual .build-deps \t\t$PHPIZE_DEPS \t\ticu-dev \t\tlibzip-dev \t\tzlib-dev \t; \t\tdocker-php-ext-configure zip; \tdocker-php-ext-install -j$(nproc) \t\tftp \t\tintl \t\tzip \t; \tpecl install \t\tapcu-${APCU_VERSION} \t; \tpecl clear-cache; \tdocker-php-ext-enable \t\tapcu \t\topcache \t; \t\trunDeps=\"$( \t\tscanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions \t\t\t| tr ',' '\\n' \t\t\t| sort -u \t\t\t| awk 'system(\"[ -e /usr/local/lib/\" $1 \" ]\") == 0 { next } { print \"so:\" $1 }' \t)\"; \tapk add --no-cache --virtual .api-phpexts-rundeps $runDeps; \t\tapk del .build-deps" did not complete successfully: exit code: 2
Are these 2 separate issues, the intl install caused by breaking the command apart?
Can someone shed some light on why this is suddenly failing when it was working the other week?
Metadata
Metadata
Assignees
Labels
No labels