aws / aws/aws-codebuild-docker-images

Failed to build aws/codebuild/standard:5.0 on Debian GNU/Linux 10 (buster) - PHP error

Open
#524 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Dockerfile
Stars
1.2k
Forks
971
Avg merge
2h 47m
Merged PRs (30d)
1

Description

**Describe the bug**
I tried to build aws/codebuild/standard:5.0 on a ubuntu 20.04 and also on an AWS EC2 Instance with Debian GNU/Linux 10 (buster) and I got both time the same error

**Step to reproduce**

- checkout `master` (git sha `282c6634e8c83c2a9841719b09aabfced3461981`)

**Logs**

```
Alright!
| Execute:
| `phpenv commands` to see all you can do
| `phpenv help ` for information on a specific command

Removing intermediate container 55939ea98708
---> 119135d97efc
Step 71/133 : ENV PATH="/root/.phpenv/shims:/root/.phpenv/bin:$PATH"
---> Running in cd95d78496eb
Removing intermediate container cd95d78496eb
---> 308a121aca90
Step 72/133 : COPY tools/runtime_configs/php/$PHP_73_VERSION /root/.phpenv/plugins/php-build/share/php-build/definitions/$PHP_73_VERSION
---> 92a8b2a33ab7
Step 73/133 : RUN phpenv install $PHP_73_VERSION && rm -rf /tmp/* && phpenv global $PHP_73_VERSION
---> Running in 6fa1589a4e4d
[Info]: Loaded extension plugin
[Info]: Loaded apc Plugin.
[Info]: Loaded composer Plugin.
[Info]: Loaded github Plugin.
[Info]: Loaded uprofiler Plugin.
[Info]: Loaded xdebug Plugin.
[Info]: Loaded xhprof Plugin.
[Info]: Loaded zendopcache Plugin.
[Info]: php.ini-production gets used as php.ini
[Info]: Building 7.3.25 into /root/.phpenv/versions/7.3.25
[Downloading]: https://secure.php.net/distributions/php-7.3.25.tar.bz2
[Preparing]: /tmp/php-build/source/7.3.25
[Compiling]: /tmp/php-build/source/7.3.25

-----------------
| BUILD ERROR |
-----------------

Here are the last 10 lines from the log:

-----------------------------------------
shtool:echo:Warning: unable to determine terminal sequence for bold mode
shtool:echo:Warning: unable to determine terminal sequence for bold mode
configure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: none, min: 204, excluded: ).
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
configure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: none, min: 204, excluded: ).
mkdir: cannot create directory 'ext/opcache/.libs': File exists
make: *** [Makefile:728: ext/pcre/pcre2lib/pcre2_match.lo] Error 1
make: *** Waiting for unfinished jobs....
-----------------------------------------

The full Log is available at '/tmp/php-build.7.3.25.20220425045928.log'.
[Warn]: Aborting build.
The command '/bin/sh -c phpenv install $PHP_73_VERSION && rm -rf /tmp/* && phpenv global $PHP_73_VERSION' returned a non-zero code: 2

$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

```

**Platform (please complete the following information):**
- Ubuntu 20.04
- Debian GNU/Linux 10 (buster)

Contributor guide

Open the contributing guide

Research direction

Reproduce the aws/codebuild/standard:5.0 build on Ubuntu 20.04 or Debian 10, then inspect the Docker build around steps 71–73 and tools/runtime_configs/php/$PHP_73_VERSION. Use the phpenv 7.3.25 build log to determine the cause of the ext/pcre failure; done means the image builds successfully on the reported platforms.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, php
Domain
build-system, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.