Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 May 2019 08:16:00 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 237722] lang/php73: No PCRE2 JIT support on  amd64
Message-ID:  <bug-237722-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237722

            Bug ID: 237722
           Summary: lang/php73: No PCRE2 JIT support on  amd64
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: tz@freebsd.org
          Reporter: jon@herrskogen.se
             Flags: maintainer-feedback?(tz@freebsd.org)
          Assignee: tz@freebsd.org

Hi,

When compiling this package using this port on a amd64/x86_64 machine, no J=
IT
support will be compiled for PCRE2.

> checking for JIT support in PCRE2... no

PCRE2 JIT is supported on amd64/x86_64 and this not being compiled can caus=
e a
(sometimes huge) performance decrease in certain PHP scripts relying on reg=
ex
matching.

In the Makefile the following line is specified:

GNU_CONFIGURE=3D  yes

This option will append this to the configure arguments.

--build=3D${CONFIGURE_TARGET}

Where CONFIGURE_TARGET defaults to ${ARCH}-portbld-${OPSYS:tl}${OSREL}, and
$ARCH in our case is "amd64".

Specifying --build to the PHP configure script will override PHP:s
"config.guess" which otherwise will try to find out which machine it's buil=
ding
for. If "config.guess" HAD run, it whould have discovered "amd64" but then
translated it to "x86_64" before returning it. Now instead, because of the
--build is stating the target architecture, the configure script have the v=
alue
"amd64".

Later in the script, when deciding if it should compile with
HAVE_PCRE_JIT_SUPPORT, it runs the following check.

19706         case $host_cpu in
19707         arm*|i3456786|x86_64|mips*|powerpc*|sparc)

The check will fail as $host_cpu is "amd64" which it doesn't think is a
supported architecture and no JIT support will be compiled into the binary.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-237722-7788>