Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 725090 - net-libs/pjproject fails to compile
Summary: net-libs/pjproject fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Jaco Kroon
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-05-24 17:55 UTC by Agostino Sarubbo
Modified: 2020-07-20 09:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,143.65 KB, text/plain)
2020-05-24 17:55 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-05-24 17:55:13 UTC
This is an auto-filed bug because net-libs/pjproject fails to compile.
The issue was originally discovered on amd64, but it may be reproducible on other arches as well.
If you think that a different summary clarifies the issue better, feel free to change it.
Attached build log and emerge --info.

NOTE:
If you need further logs, feel free to ask.
Comment 1 Agostino Sarubbo gentoo-dev 2020-05-24 17:55:18 UTC
Created attachment 641450 [details]
build.log

build log and emerge --info
Comment 2 Jaco Kroon 2020-06-11 21:31:20 UTC
Hi Agostino,

I'm very much unable to reproduce this ... on my system pjproject is using gcc to link, which correctly handles -Wl ... on your system it's attempting to invoke ???-ld directly.  Do you happen to have LD= in your environment which the ./configure may pick up on?  Because that's the ONLY way I get to reproduce:

LD=/bin/false USE="-* ipv6 ssl" ebuild pjproject-2.9-r2.ebuild clean compile

Results in:

/bin/false -o ../lib/libpj.so.2 \
    ...

So if you have LD in your environment set to x86_64-pc-linux-gnu-ld that would explain the failure.

As I see it there is one of two possibilities:

1.  This isn't a bug as the build system is honouring your wishes to use x86_64-pc-linux-gnu-ld for linking.
2.  I need to set LD=$(tc-getCC)

Kind Regards,
Jaco
Comment 3 Agostino Sarubbo gentoo-dev 2020-06-16 12:14:24 UTC
Hi Jaco, yes I have LD set in make.conf that points to ld.
Comment 4 Jaco Kroon 2020-06-17 09:25:43 UTC
Hi,

Please unset LD, and re-open if you can reproduce without LD being explicitly set.

Kind Regards,
Jaco
Comment 5 Agostino Sarubbo gentoo-dev 2020-06-17 09:39:03 UTC
Unfortunately this is not invalid...

The goal of these type of bugs is be able to compile for example with another compiler/linker like Clang/LLVM. To to it I have to set LD/CC and so on in make.conf.
Comment 6 Larry the Git Cow gentoo-dev 2020-07-20 09:01:33 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e60793bb055448f0933c709034185fc45d5cb363

commit e60793bb055448f0933c709034185fc45d5cb363
Author:     Jaco Kroon <jaco@uls.co.za>
AuthorDate: 2020-07-07 20:19:45 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2020-07-20 09:01:20 +0000

    net-libs/pjproject: fix invalid LD build issue.
    
    Closes:  https://bugs.gentoo.org/725090
    Signed-off-by: Jaco Kroon <jaco@uls.co.za>
    Closes: https://github.com/gentoo/gentoo/pull/16630
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 net-libs/pjproject/pjproject-2.9-r2.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)