Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Sep 2022 13:26:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 266175] lang/php81 fails to build WITH=ZTS on aarch64
Message-ID:  <bug-266175-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 266175
           Summary: lang/php81 fails to build WITH=3DZTS 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=3Dyes
make -j4 WITH=3DZTS PREFIX=3D/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_ca=
che
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

--=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-266175-7788>