Bug 217519 - devel/pear broken with lld 4.0.0 in base
Summary: devel/pear broken with lld 4.0.0 in base
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jochen Neumeister
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-03 15:27 UTC by Shawn Webb
Modified: 2017-12-25 14:56 UTC (History)
4 users (show)

See Also:
bugzilla: maintainer-feedback? (joneum)


Attachments
devel/pear poudriere build log (10.42 KB, text/plain)
2017-03-03 15:27 UTC, Shawn Webb
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Shawn Webb 2017-03-03 15:27:32 UTC
Created attachment 180466 [details]
devel/pear poudriere build log

When WITH_LLD_IS_LD is set, the stage phase for devel/pear breaks. Log is attached.

`uname -a`: FreeBSD hbsd-build-02 12.0-CURRENT-HBSD FreeBSD 12.0-CURRENT-HBSD #0  06a32aaebc0(hardened/current/master): Fri Mar  3 01:48:30 EST 2017     shawn@hbsd-build-02:/usr/obj/usr/src/sys/LATT-POUDRIERE  amd64
Comment 1 Martin Wilke freebsd_committer freebsd_triage 2017-03-03 18:52:38 UTC
Hi,

Are you sure you haven't accidentally disabled php zlib support?

from your log it looks like it.


local package: Structures_Graph....
The extension 'zlib' couldn't be found.
Please make sure your version of PHP was built with 'zlib' support.
Comment 2 Shawn Webb 2017-03-03 19:01:00 UTC
(In reply to Martin Wilke from comment #1)

I don't have any custom options set for any of the PHP ports. I'm thinking that this is due to lld not being 100% ready to serve as a complete replacement for GNU ld. I can test with both GNU ld and lld this weekend and report back.
Comment 3 Martin Wilke freebsd_committer freebsd_triage 2017-03-03 19:03:09 UTC
(In reply to Shawn Webb from comment #2)

Okay cool, appreciate your effort.

- Martin
Comment 4 Dimitry Andric freebsd_committer freebsd_triage 2017-03-03 19:24:29 UTC
These parts in the log file look suspicious:

===>  Staging for pear-1.10.1
===>   Generating temporary packing list
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/xml.so' - /usr/local/lib/php/20131226/xml.so: Undefined symbol "executor_globals" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/zlib.so' - /usr/local/lib/php/20131226/zlib.so: Undefined symbol "OnUpdateLong" in Unknown on line 0

Warning: dl(): Unable to load dynamic library '/usr/local/lib/php/20131226/xml.so' - /usr/local/lib/php/20131226/xml.so: Undefined symbol "executor_globals" in /wrkdirs/usr/ports/devel/pear/work/pear-1.10.1/go-pear on line 581

E.g. it's complaining about a bunch of missing symbols in PHP .so files. Maybe these symbols have disappeared because of different behavior between GNU ld and lld?
Comment 5 Ed Maste freebsd_committer freebsd_triage 2017-03-03 19:28:16 UTC
Thank you for the report.

At this point it's probably premature to submit PRs for individual failures with LLD. Rafael Espíndola and I are testing LLD head with Poudriere, and there's somewhat under 300 failures (and several hundred skipped), with WIP patches to both LLD and FreeBSD. There are known issues with libtool with LLD, which affects many ports.

You can see the WIP on the FreeBSD ports side at https://github.com/emaste/freebsd-ports/tree/ports-lld
Comment 6 Ed Maste freebsd_committer freebsd_triage 2017-08-18 13:35:14 UTC
devel/pear built for me with lld 5.0.0 now in the base system - would you kindly confirm that it works for you?
Comment 7 Shawn Webb 2017-08-18 13:40:15 UTC
I'll give it a shot late next week. Thanks for reminding me.
Comment 8 Jochen Neumeister freebsd_committer freebsd_triage 2017-12-25 13:09:14 UTC
Any news here?
Comment 9 Shawn Webb 2017-12-25 14:56:06 UTC
This bug can be closed. devel/pear builds fine now.