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

Unterminated preprocessor conditions #668

Open
HQuest opened this issue Apr 9, 2024 · 5 comments
Open

Unterminated preprocessor conditions #668

HQuest opened this issue Apr 9, 2024 · 5 comments

Comments

@HQuest
Copy link

HQuest commented Apr 9, 2024

          So this is "not planned" as in won't work with Alpine, won't work with PHP 8.3, won't install via pecl, or lack of clarity? Just got imagemagick updated to 7.1.1_30 and in the process of updating imagick to 3.7.0 via pecl upgrade, it fails as follows (tested against PHP v8.3.4):

Saved /tmp/pear/temp/imagick/ImagickDraw_arginfo.h
Parse /tmp/pear/temp/imagick/ImagickPixelIterator.stub.php to generate /tmp/pear/temp/imagick/ImagickPixelIterator_arginfo.h
Saved /tmp/pear/temp/imagick/ImagickPixelIterator_arginfo.h
Parse /tmp/pear/temp/imagick/ImagickPixel.stub.php to generate /tmp/pear/temp/imagick/ImagickPixel_arginfo.h
Saved /tmp/pear/temp/imagick/ImagickPixel_arginfo.h
Parse /tmp/pear/temp/imagick/Imagick.stub.php to generate /tmp/pear/temp/imagick/Imagick_arginfo.h
In /tmp/pear/temp/imagick/Imagick.stub.php:
Unterminated preprocessor conditions
make: *** [Makefile:196: /tmp/pear/temp/imagick/Imagick_arginfo.h] Error 1
ERROR: `make INSTALL_ROOT="/tmp/pear/temp/pear-build-rootmGvNVN/install-imagick-3.7.0" install' failed

Originally posted by @HQuest in #667 (comment)

@TildBJ
Copy link

TildBJ commented Apr 10, 2024

Please check the discussion in #640 and in its related Pull Request #641

@phpclub
Copy link

phpclub commented Aug 6, 2024

I had some trouble on this today, so it seems like the fix is still not released.

@ghnp5
Copy link

ghnp5 commented Sep 17, 2024

This seems to be completely random.
Just need to keep running the build until it finally works...

@bpacholek
Copy link

11.10.2024 and this still is an issue. Anybody got an idea how to solve that? When I need to build two images in m CI for both AMD64 and ARM64 sometimes I need to click 20x to get it through because on random first and sometimes on random second one fails.

@HQuest
Copy link
Author

HQuest commented Nov 13, 2024

On today's definition of "insanity", after trying a few times to run "pecl upgrade --force" (because somehow "pear.php.net is using an unsupported protocols" and "This should never happen" - pecl words, not mine), I was able to get imagick rebuilt. Don't ask me how or why, but it is a hit or miss. I call the same command as of above, and sometimes it will compile, sometimes it will fail, and absolutely nothing is changed other than the clock as the time goes by.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants