Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 651044 - dev-libs/nss-3.36 fails to build with clang
Summary: dev-libs/nss-3.36 fails to build with clang
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-21 01:16 UTC by Wil Reichert
Modified: 2018-03-21 07:50 UTC (History)
0 users

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


Attachments
build failure (nss-build.log,612.27 KB, text/x-log)
2018-03-21 01:16 UTC, Wil Reichert
Details
build fix (nss.patch,429 bytes, patch)
2018-03-21 01:18 UTC, Wil Reichert
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wil Reichert 2018-03-21 01:16:12 UTC
Created attachment 524628 [details]
build failure

When trying to compile nss with clang the build does not properly pick up the CXX build variable and tries to use g++ resulting in the attached failure.
Comment 1 Wil Reichert 2018-03-21 01:18:53 UTC
Created attachment 524630 [details, diff]
build fix

Makefile just seems to need the CCC environment variable defined. Build fine locally with patch.
Comment 2 Larry the Git Cow gentoo-dev 2018-03-21 07:48:59 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=3435891c71a7437cf05f1b6efa77cc09c08e209f

commit 3435891c71a7437cf05f1b6efa77cc09c08e209f
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2018-03-21 07:48:32 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2018-03-21 07:48:32 +0000

    dev-libs/nss: Fixed build with clang.
    
    Thanks-to: Wil Reichert <wil.reichert@gmail.com>
    Bug: https://bugs.gentoo.org/651044
    Package-Manager: Portage-2.3.24, Repoman-2.3.6
    Manifest-Sign-Key: 0x498FE765960E9B39

 dev-libs/nss/nss-3.36.ebuild | 1 +
 1 file changed, 1 insertion(+)}
Comment 3 Larry the Git Cow gentoo-dev 2018-03-21 07:50:29 UTC
The bug has been closed via the following commit(s):

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

commit dedfc58e5929bb90fc2020002a56d540d48659fc
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2018-03-21 07:48:32 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2018-03-21 07:50:23 +0000

    dev-libs/nss: Fixed build with clang.
    
    Thanks-to: Wil Reichert <wil.reichert@gmail.com>
    Closes: https://bugs.gentoo.org/651044
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 dev-libs/nss/nss-3.36.ebuild | 1 +
 1 file changed, 1 insertion(+)