Endava/docker-php

Transient Error on Php 8.3.x build amd64 with imagick: make: *** [Makefile:196: /tmp/pear/temp/imagick/Imagick_arginfo.h] Error 1

Opened this issue · 5 comments

#38 11.32 PHP-Parser-5.0.0alpha3/lib/PhpParser/Parser.php
#38 11.32 PHP-Parser-5.0.0alpha3/lib/PhpParser/Parser/
#38 11.32 PHP-Parser-5.0.0alpha3/lib/PhpParser/Parser/Php7.php
#38 11.32 PHP-Parser-5.0.0alpha3/lib/PhpParser/Parser/Php8.php
#38 11.32 PHP-Parser-5.0.0alpha3/lib/PhpParser/ParserAbstract.php
#38 11.32 PHP-Parser-5.0.0alpha3/lib/PhpParser/ParserFactory.php
#38 11.32 PHP-Parser-5.0.0alpha3/lib/PhpParser/PhpVersion.php
#38 11.32 PHP-Parser-5.0.0alpha3/lib/PhpParser/PrettyPrinter.php
#38 11.32 PHP-Parser-5.0.0alpha3/lib/PhpParser/PrettyPrinter/
#38 11.32 PHP-Parser-5.0.0alpha3/lib/PhpParser/PrettyPrinter/Standard.php
#38 11.32 PHP-Parser-5.0.0alpha3/lib/PhpParser/PrettyPrinterAbstract.php
#38 11.32 PHP-Parser-5.0.0alpha3/lib/PhpParser/Token.php
#38 11.32 PHP-Parser-5.0.0alpha3/lib/PhpParser/compatibility_tokens.php
#38 11.32 PHP-Parser-5.0.0alpha3/phpstan-baseline.neon
#38 11.32 PHP-Parser-5.0.0alpha3/phpstan.neon.dist
#38 11.34 Saved /tmp/pear/temp/imagick/ImagickPixel_arginfo.h
#38 11.34 Saved /tmp/pear/temp/imagick/ImagickPixelIterator_arginfo.h
#38 11.35 Parse /tmp/pear/temp/imagick/ImagickKernel.stub.php to generate /tmp/pear/temp/imagick/ImagickKernel_arginfo.h
#38 11.35 Saved /tmp/pear/temp/imagick/ImagickDraw_arginfo.h
#38 11.38 In /tmp/pear/temp/imagick/Imagick.stub.php:
#38 11.38 Unterminated preprocessor conditions
#38 11.39 make: *** [Makefile:196: /tmp/pear/temp/imagick/Imagick_arginfo.h] Error 1
#38 11.39 make: *** Waiting for unfinished jobs....
#38 11.41 Saved /tmp/pear/temp/imagick/ImagickKernel_arginfo.h
#38 11.41 Installing header files:          /tmp/pear/temp/pear-build-defaultuserhbpaOF/install-imagick-3.7.0/usr/include/php83/
#38 11.44 ERROR: `make INSTALL_ROOT="/tmp/pear/temp/pear-build-defaultuserhbpaOF/install-imagick-3.7.0" install' failed

e.g. in https://github.com/Endava/docker-php/actions/runs/7009886813/job/19071577630

But a rerun does not show any of those "PHP-Parser-5.0.0alpha3" anymore and it NEVER happens on arm - only amd64!

Added ticket upstream Imagick/imagick#643

#38 11.32 PHP-Parser-5.0.0alpha3/lib/PhpParser/Parser.php
#38 11.32 PHP-Parser-5.0.0alpha3/lib/PhpParser/Parser/
#38 11.32 PHP-Parser-5.0.0alpha3/lib/PhpParser/Parser/Php7.php
#38 11.32 PHP-Parser-5.0.0alpha3/lib/PhpParser/Parser/Php8.php
#38 11.32 PHP-Parser-5.0.0alpha3/lib/PhpParser/ParserAbstract.php
#38 11.32 PHP-Parser-5.0.0alpha3/lib/PhpParser/ParserFactory.php
#38 11.32 PHP-Parser-5.0.0alpha3/lib/PhpParser/PhpVersion.php
#38 11.32 PHP-Parser-5.0.0alpha3/lib/PhpParser/PrettyPrinter.php
#38 11.32 PHP-Parser-5.0.0alpha3/lib/PhpParser/PrettyPrinter/
#38 11.32 PHP-Parser-5.0.0alpha3/lib/PhpParser/PrettyPrinter/Standard.php
#38 11.32 PHP-Parser-5.0.0alpha3/lib/PhpParser/PrettyPrinterAbstract.php
#38 11.32 PHP-Parser-5.0.0alpha3/lib/PhpParser/Token.php
#38 11.32 PHP-Parser-5.0.0alpha3/lib/PhpParser/compatibility_tokens.php
#38 11.32 PHP-Parser-5.0.0alpha3/phpstan-baseline.neon
#38 11.32 PHP-Parser-5.0.0alpha3/phpstan.neon.dist
#38 11.34 Saved /tmp/pear/temp/imagick/ImagickPixel_arginfo.h
#38 11.34 Saved /tmp/pear/temp/imagick/ImagickPixelIterator_arginfo.h
#38 11.35 Parse /tmp/pear/temp/imagick/ImagickKernel.stub.php to generate /tmp/pear/temp/imagick/ImagickKernel_arginfo.h
#38 11.35 Saved /tmp/pear/temp/imagick/ImagickDraw_arginfo.h
#38 11.38 In /tmp/pear/temp/imagick/Imagick.stub.php:
#38 11.38 Unterminated preprocessor conditions
#38 11.39 make: *** [Makefile:196: /tmp/pear/temp/imagick/Imagick_arginfo.h] Error 1
#38 11.39 make: *** Waiting for unfinished jobs....
#38 11.41 Saved /tmp/pear/temp/imagick/ImagickKernel_arginfo.h
#38 11.41 Installing header files:          /tmp/pear/temp/pear-build-defaultuserhbpaOF/install-imagick-3.7.0/usr/include/php83/
#38 11.44 ERROR: `make INSTALL_ROOT="/tmp/pear/temp/pear-build-defaultuserhbpaOF/install-imagick-3.7.0" install' failed

e.g. in https://github.com/Endava/docker-php/actions/runs/7009886813/job/19071577630

But a rerun does not show any of those "PHP-Parser-5.0.0alpha3" anymore and it NEVER happens on arm - only amd64!

image
I have the same

The same here with php8.3 amd64:

#0 90.09 PHP-Parser-5.0.0/lib/PhpParser/PhpVersion.php
#0 90.09 PHP-Parser-5.0.0/lib/PhpParser/PrettyPrinter.php
#0 90.09 PHP-Parser-5.0.0/lib/PhpParser/PrettyPrinter/
#0 90.09 PHP-Parser-5.0.0/lib/PhpParser/PrettyPrinter/Standard.php
#0 90.09 PHP-Parser-5.0.0/lib/PhpParser/PrettyPrinterAbstract.php
#0 90.09 PHP-Parser-5.0.0/lib/PhpParser/Token.php
#0 90.09 PHP-Parser-5.0.0/lib/PhpParser/compatibility_tokens.php
#0 90.09 PHP-Parser-5.0.0/phpstan-baseline.neon
#0 90.09 PHP-Parser-5.0.0/phpstan.neon.dist
#0 90.13 Saved /tmp/pear/temp/imagick/ImagickDraw_arginfo.h
#0 90.14 Parse /tmp/pear/temp/imagick/ImagickPixelIterator.stub.php to generate /tmp/pear/temp/imagick/ImagickPixelIterator_arginfo.h
#0 90.20 Saved /tmp/pear/temp/imagick/ImagickPixelIterator_arginfo.h
#0 90.20 Parse /tmp/pear/temp/imagick/ImagickPixel.stub.php to generate /tmp/pear/temp/imagick/ImagickPixel_arginfo.h
#0 90.27 Saved /tmp/pear/temp/imagick/ImagickPixel_arginfo.h
#0 90.27 Parse /tmp/pear/temp/imagick/Imagick.stub.php to generate /tmp/pear/temp/imagick/Imagick_arginfo.h
#0 90.36 In /tmp/pear/temp/imagick/Imagick.stub.php:
#0 90.36 Unterminated preprocessor conditions
#0 90.36 make: *** [Makefile:196: /tmp/pear/temp/imagick/Imagick_arginfo.h] Error 1
#0 90.38 ERROR: `make INSTALL_ROOT="/tmp/pear/temp/pear-build-defaultuserIG9g8g/install-imagick-3.7.0" install' failed
failed to solve: process "/bin/sh -c apt-get install -y libmagickwand-dev && pecl install imagick-3.7.0 && docker-php-ext-enable imagick" did not complete successfully: exit code: 1