Created attachment 565722 [details] build.log 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.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0851dfe8e3bc56f435fc0a71fdf562794df903d commit e0851dfe8e3bc56f435fc0a71fdf562794df903d Author: Alon Bar-Lev <alonbl@gentoo.org> AuthorDate: 2019-02-23 22:20:39 +0000 Commit: Alon Bar-Lev <alonbl@gentoo.org> CommitDate: 2019-02-23 22:21:28 +0000 app-crypt/dieharder: resolve undefined symbols Closes: https://bugs.gentoo.org/show_bug.cgi?id=678300 Thanks: Ben Kohler Signed-off-by: Alon Bar-Lev <alonbl@gentoo.org> 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(-)