Bug 226302

Summary: lang/php72: DTRACE option on PowerPC causes ld(1) link probe failures; Relocations in generic ELF
Product: Ports & Packages Reporter: Chip Cuccio <chip.cuccio>
Component: Individual Port(s)Assignee: Mark Linimon <linimon>
Status: Closed FIXED    
Severity: Affects Only Me CC: linimon, powerpc, tz
Priority: --- Flags: tz: maintainer-feedback+
Version: Latest   
Hardware: powerpc   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224271
Attachments:
Description Flags
lang/php72 Makefile patch to exclude DTRACE option from powerpc arch. none

Description Chip Cuccio 2018-03-02 17:19:11 UTC
Created attachment 191139 [details]
lang/php72 Makefile patch to exclude DTRACE option from powerpc arch.

DTRACE option exclusions exist for a couple other archs exhibiting this behavior. However, PowerMC is not one of the exclusions. When selecting DTRACE, the build will fail with linking/relocation errors:


*** Warning: Linking the shared library libphp7.la against the non-libtool
*** objects  Zend/zend_dtrace.d.o is not portable!
/usr/bin/ld: BFD 2.17.50 [FreeBSD] 2007-07-03 assertion fail /usr/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf32-ppc.c:3606
/usr/bin/ld: BFD 2.17.50 [FreeBSD] 2007-07-03 assertion fail /usr/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf32-ppc.c:6579
gcc: Internal error: Segmentation fault (program ld)

I have attached a patch which will exclude the DTRACE option in the lang/php72/Makefile for the powerpc arch (tested locally on two powerpc's).
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2018-03-02 18:09:08 UTC
I have also seen this on my builds.  I already have permission from tz@ to commit for armvX and so I will roll this into my next commit.  (I still need to test on amd64 to prove "do no harm".)

tz, you can assign this one to me if you wish.
Comment 2 Torsten Zuehlsdorff freebsd_committer freebsd_triage 2018-03-02 18:30:21 UTC
Great, thanks for taking care of it! :)
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2018-06-11 04:34:19 UTC
Committed as r464849.