Page MenuHomeFreeBSD

Add JIT support to the PHP8 build
ClosedPublic

Authored by samm on Jan 8 2021, 6:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 7 2024, 1:08 AM
Unknown Object (File)
Mar 6 2024, 1:11 AM
Unknown Object (File)
Feb 11 2024, 1:11 AM
Unknown Object (File)
Jan 14 2024, 12:19 AM
Unknown Object (File)
Jan 12 2024, 4:02 PM
Unknown Object (File)
Dec 27 2023, 4:55 PM
Unknown Object (File)
Dec 23 2023, 3:55 PM
Unknown Object (File)
Dec 20 2023, 3:47 AM

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 36038
Build 32927: arc lint + arc unit

Event Timeline

samm requested review of this revision.Jan 8 2021, 6:15 PM

Works like charm samm, thank you very much! :) Feel free to commit it! :)

This revision is now accepted and ready to land.Jan 8 2021, 8:52 PM

@tz thank you. One thing i am still missing - if i am compiling it manually, w/o poudriere, it sets cpu to x86_64. Some autoconf magic :) Will try to find a bit more, may be this will lead to a better solution

@tz i found that! PHP has config.guess file in it distro which is _newer_ then in autoconf and has correct host name. When we compiling everything from source - its distributed for all the extensions, but if we not doing that - its not. For opcache its became a critical thing. So let me rework the patch.

@tz a bit more information:

  1. PHP has more recent config.guess then autoconf config.guess/config.sub which sets cpu target as x86_64 on amd64 FreeBSD arch
  2. This is correctly handled if building from source, but not when from port, as we are using autoreconf -i -f which overrides all files in build.
  3. I was able to fix that but this will introduce too many hacks in lang/php80, so as we need this for only one extension - i would better leave it as is.
  4. Hopefully when autoconf will be updated by upstream this hack will not be needed anymore
This revision was automatically updated to reflect the committed changes.