Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,295,866
Community Members
 
Community Events
165
Community Groups

Bitbucket pipelines, even the ones that were successful a while ago, are failing when rerun

error seems to be 

mkdir:  cc -I. -I/usr/src/php/ext/readline -DPHP_ATOM_INC -I/usr/src/php/ext/readline/include -I/usr/src/php/ext/readline/main -I/usr/src/php/ext/readline -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/editline -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 -c /usr/src/php/ext/readline/readline.c  -fPIC -DPIC -o .libs/readline.o

cannot create directory '.libs': File exists

cc -I. -I/usr/src/php/ext/readline -DPHP_ATOM_INC -I/usr/src/php/ext/readline/include -I/usr/src/php/ext/readline/main -I/usr/src/php/ext/readline -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/editline -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 -c /usr/src/php/ext/readline/readline_cli.c -fPIC -DPIC -o .libs/readline_cli.o

In file included from /usr/local/include/php/main/php.h:37,

from /usr/src/php/ext/readline/readline.c:25:

/usr/src/php/ext/readline/readline.c: In function 'zif_readline_info':

/usr/src/php/ext/readline/readline.c:258:38: error: 'rl_mark' undeclared (first use in this function)

258 | add_assoc_long(return_value,"mark",rl_mark);

| ^~~~~~~

/usr/local/include/php/Zend/zend_API.h:402:90: note: in definition of macro 'add_assoc_long'

402 | #define add_assoc_long(__arg, __key, __n) add_assoc_long_ex(__arg, __key, strlen(__key), __n)

| ^~~

/usr/src/php/ext/readline/readline.c:258:38: note: each undeclared identifier is reported only once for each function it appears in

258 | add_assoc_long(return_value,"mark",rl_mark);

| ^~~~~~~

/usr/local/include/php/Zend/zend_API.h:402:90: note: in definition of macro 'add_assoc_long'

402 | #define add_assoc_long(__arg, __key, __n) add_assoc_long_ex(__arg, __key, strlen(__key), __n)

| ^~~

/usr/src/php/ext/readline/readline.c:260:47: error: 'rl_pending_input' undeclared (first use in this function)

260 | add_assoc_long(return_value,"pending_input",rl_pending_input);

| ^~~~~~~~~~~~~~~~

/usr/local/include/php/Zend/zend_API.h:402:90: note: in definition of macro 'add_assoc_long'

402 | #define add_assoc_long(__arg, __key, __n) add_assoc_long_ex(__arg, __key, strlen(__key), __n)

| ^~~

/usr/src/php/ext/readline/readline.c:267:60: error: 'rl_completion_suppress_append' undeclared (first use in this function)

267 | add_assoc_bool(return_value,"completion_suppress_append",rl_completion_suppress_append);

| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/local/include/php/Zend/zend_API.h:404:90: note: in definition of macro 'add_assoc_bool'

404 | #define add_assoc_bool(__arg, __key, __b) add_assoc_bool_ex(__arg, __key, strlen(__key), __b)

| ^~~

make: *** [Makefile:192: readline.lo] Error 1

make: *** Waiting for unfinished jobs....

The command '/bin/sh -c apt-get update && apt-get install -y acl apt-utils unzip libpng-dev libzip-dev libbz2-dev libgmp-dev libreadline-dev libedit-dev libxml2-dev libxslt-dev libpcre3 libpcre3-dev libpcre++-dev libzip-dev supervisor procps && docker-php-ext-install -j$(nproc) bcmath && docker-php-ext-install -j$(nproc) bz2 && docker-php-ext-install -j$(nproc) exif && docker-php-ext-install -j$(nproc) gd && docker-php-ext-install -j$(nproc) gettext && docker-php-ext-install -j$(nproc) gmp && docker-php-ext-install -j$(nproc) mysqli && docker-php-ext-install -j$(nproc) pcntl && docker-php-ext-install -j$(nproc) pdo_mysql && docker-php-ext-install -j$(nproc) readline && docker-php-ext-install -j$(nproc) shmop && docker-php-ext-install -j$(nproc) soap && docker-php-ext-install -j$(nproc) sockets && docker-php-ext-install -j$(nproc) xmlrpc && docker-php-ext-install -j$(nproc) xsl && docker-php-ext-install -j$(nproc) zip && docker-php-ext-install -j$(nproc) sysvmsg && docker-php-ext-install -j$(nproc) sysvsem && docker-php-ext-install -j$(nproc) sysvshm && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin/ --filename=composer' returned a non-zero code: 2

2021-08-27T07:54:10.474749339Z stdout P

1 answer

1 accepted

0 votes
Answer accepted

Same here, docker image bulding fails because redline even outside pipelines.

Found the error, it's because I had set

FROM php:7.4-fpm

 In one of my images but the version 7.4.23 breaks redline so I added the minor version like this:

FROM php:7.4.22-fpm

And it works now.

Like # people like this

Worked! for me it was php:7.4.22-apache

Like Sabin Petru likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,170 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you