php-src icon indicating copy to clipboard operation
php-src copied to clipboard

PHP 8.0.15 - OPCache compilation issue on `aarch64-darwin` ?

Open drupol opened this issue 4 years ago • 7 comments

Description

Hi,

I'm trying to update to PHP 8.0.15 in NixOS, the current version 8.0.14. We have to use a patch to get it working: https://github.com/php/php-src/issues/7978

While trying to get it compiled on Github CI using platform aarch64-darwin, it is failing with the following test:

  • Blacklist (with glob, quote and comments) [tests/blacklist.phpt]

Find the build log here: https://logs.nix.ci/?key=nixos/nixpkgs.158560&attempt_id=e2d1ee35-adce-467e-a754-e70c9d655d42 Find the original pull request on NixOS: https://github.com/NixOS/nixpkgs/pull/158560

I cannot reproduce the issue locally as I don't have such architecture available.

Could you please let me know if this is a genuine issue and/or what I can do to fix the problem?

Thanks.

PHP Version

PHP 8.0.15

Operating System

Github CI - aarch64-darwin

drupol avatar Feb 15 '22 08:02 drupol

What is the diff of the failing test? Try something like make test TESTS='--show-diff tests/blacklist.phpt'

cmb69 avatar Feb 15 '22 09:02 cmb69

What is the diff of the failing test? Try something like make test TESTS='--show-diff tests/blacklist.phpt'

In a particular directory?

drupol avatar Feb 15 '22 09:02 drupol

Run that from the php-src root directory.

cmb69 avatar Feb 15 '22 09:02 cmb69

Sorry for the late reply, I added the command in the build steps and I get nothing interesting, see the log: https://logs.nix.ci/?key=nixos/nixpkgs.158560&attempt_id=e319f970-6f87-42b7-bc7c-801f94609a26 (CTRL+F make test).

Maybe I'm adding it at the wrong place?

drupol avatar Feb 15 '22 21:02 drupol

Uh, I have no idea how that build system works. Usually you do ./buildconf; ./configure; make; make test, but that appears to happen under the hood. My point is that make test should be substituted by something like make test TESTS='--show-diff' to be able to see the difference in the expected test output.

cmb69 avatar Feb 16 '22 08:02 cmb69

@derickr, did you re-open deliberately? This ticket had been closed quite a while ago.

cmb69 avatar Apr 01 '22 12:04 cmb69

Apparently, the ticket was re-opened accidentially.

cmb69 avatar Apr 01 '22 13:04 cmb69