Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 665614 - dev-libs/libgcrypt: jitterentropy-base.c fails compiling with clang
Summary: dev-libs/libgcrypt: jitterentropy-base.c fails compiling with clang
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-10 01:12 UTC by Haelwenn (lanodan) Monnier
Modified: 2018-09-10 01:39 UTC (History)
0 users

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


Attachments
emerge --info dev-libs/libgcrypt (emerge --info dev-libs__libgcrypt.log,9.63 KB, text/x-log)
2018-09-10 01:12 UTC, Haelwenn (lanodan) Monnier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Haelwenn (lanodan) Monnier 2018-09-10 01:12:09 UTC
Created attachment 546476 [details]
emerge --info dev-libs/libgcrypt

When compiling =dev-libs/libgcrypt-1.8.3 with clang I get the following error:

/var/tmp/portage/dev-libs/libgcrypt-1.8.3/work/libgcrypt-1.8.3/random/jitterentropy-base.c:60:4: error: "The CPU Jitter random number generator must not be compiled with optimizations. See documentation. Use the compiler switch -O0 for compiling jitterentropy-base.c."

I found a related NixOS bug, with a patch but it doesn’t fix the issue: https://github.com/NixOS/nixpkgs/issues/27906#issuecomment-320305941
Comment 1 Haelwenn (lanodan) Monnier 2018-09-10 01:39:15 UTC
Okay, it works with o-flag-munging, so I’ll mark it as resolved. Sorry for the noise.

Anyway could we have a mention of clang in the USE flag description? I wasn’t sure that this was what I wanted until trying to build it and waiting.