Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 516620 - dev-libs/nss-3.16.1 - ?
Summary: dev-libs/nss-3.16.1 - ?
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-07 16:16 UTC by Witold Piłat
Modified: 2014-07-08 02:27 UTC (History)
0 users

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


Attachments
emerge --info (emerge.log,5.35 KB, text/x-log)
2014-07-07 16:16 UTC, Witold Piłat
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Witold Piłat 2014-07-07 16:16:24 UTC
Created attachment 380380 [details]
emerge --info

nss throws a bunch of -Wstrict-aliasing warnings with gcc-4.8.3
Here is an interesting discussion on analogous issue in nspr (and nss):
https://bugzilla.mozilla.org/show_bug.cgi?id=439144

 * QA Notice: Package triggers severe warnings which indicate that it
 *            may exhibit random runtime failures.
 * mpi/mpcpucache.c:681:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
 * mpi/mpcpucache.c:682:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
 * mpi/mpcpucache.c:683:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
 * sslsnce.c:1232:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]

etc.

Proposed solution:
inherit flag-o-matic
append-flags -fno-strict-aliasing

or append them only for affected files.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-07-08 00:00:57 UTC
The same output would also tell you not to file a bug report here, but upstream.
Comment 2 Witold Piłat 2014-07-08 02:27:47 UTC
Which doesn't mean nss should remain broken when it can be easily fixed. These warnings take years to iron out (see link) and there are real bugs behind them. (Bug 270098)

grep -r "fno-strict-aliasing" * | wc -l
in the main portage tree yields 636 so I assume it's common practice.