[Bug 266175] lang/php81 fails to build WITH=ZTS on aarch64

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 02 Sep 2022 13:26:39 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266175

            Bug ID: 266175
           Summary: lang/php81 fails to build WITH=ZTS on aarch64
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: bofh@freebsd.org
          Reporter: thresh@nginx.com
          Assignee: bofh@freebsd.org
             Flags: maintainer-feedback?(bofh@freebsd.org)

lang/php81 version 8.1.9 fails to build on aarch64 on FreeBSD 13.1

Steps to reproduce:
1. spin up an official FreeBSD AWS aarch64 instance
2. build php81:

cd /usr/ports/lang/php81
make all-depends-list | cut -c 12- | xargs pkg install -y
export BATCH=yes
make -j4 WITH=ZTS PREFIX=/usr/opt/php81 package

The result will be:

--- libphp.la ---
ld: error: relocation R_AARCH64_TLSLE_ADD_TPREL_HI12 against _tsrm_ls_cache
cannot be used with -shared
>>> defined in Zend/.libs/zend.o
>>> referenced by TSRM.c
>>>               TSRM/.libs/TSRM.o:(tsrm_get_ls_cache_tcb_offset)

ld: error: relocation R_AARCH64_TLSLE_ADD_TPREL_LO12_NC against _tsrm_ls_cache
cannot be used with -shared
>>> defined in Zend/.libs/zend.o
>>> referenced by TSRM.c
>>>               TSRM/.libs/TSRM.o:(tsrm_get_ls_cache_tcb_offset)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** [libphp.la] Error code 1

make[1]: stopped in /usr/ports/lang/php81/work/php-8.1.9
*** [do-build] Error code 1

make: stopped in /usr/ports/lang/php81

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