Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bugzilla DB migration completed. Please report issues to Infra team via email via or IRC

Bug 678300

Summary: app-crypt/dieharder-3.31.1-r2 with CFLAGS="-O0" - ../libdieharder/.libs/ undefined reference to `insertBit'
Product: Gentoo Linux Reporter: Ben Kohler <bkohler>
Component: Current packagesAssignee: Crypto team [DISABLED] <crypto+disabled>
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: build.log

Description Ben Kohler gentoo-dev 2019-02-18 16:13:14 UTC
Created attachment 565722 [details]

This package seems to build ok with -O1 or -O2 or -O3 in CFLAGS.  

It fails with -O0 or -Os (or with -O param omitted entirely).  You can even reproduce failure with just CFLAGS="".

Build log attached.
Comment 1 Larry the Git Cow gentoo-dev 2019-02-23 22:22:12 UTC
The bug has been closed via the following commit(s):

commit e0851dfe8e3bc56f435fc0a71fdf562794df903d
Author:     Alon Bar-Lev <>
AuthorDate: 2019-02-23 22:20:39 +0000
Commit:     Alon Bar-Lev <>
CommitDate: 2019-02-23 22:21:28 +0000

    app-crypt/dieharder: resolve undefined symbols
    Thanks: Ben Kohler
    Signed-off-by: Alon Bar-Lev <>
    Package-Manager: Portage-2.3.51, Repoman-2.3.11

 ...3.31.1-r2.ebuild => dieharder-3.31.1-r3.ebuild} |   2 +-
 .../dieharder/files/dieharder-3.31.1-build.patch   | 158 +++++++++++++++++++++
 2 files changed, 159 insertions(+), 1 deletion(-)