libtool: compile: x86_64-pc-linux-gnu-gcc -m32 -mfpmath=sse -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-libs/libgcrypt-1.11.0/work/libgcrypt-1.11.0/random -I.. -I../src -I/var/tmp/portage/dev-libs/libgcrypt-1.11.0/work/libgcrypt-1.11.0/src -O0 -pipe -march=native -mtune=native -O2 -pipe -march=native -mtune=native -fvisibility=hidden -fno-delete-null-pointer-checks -Wall -c /var/tmp/portage/dev-libs/libgcrypt-1.11.0/work/libgcrypt-1.11.0/random/rndjent.c -fPIC -DPIC -o .libs/rndjent.o In file included from /var/tmp/portage/dev-libs/libgcrypt-1.11.0/work/libgcrypt-1.11.0/random/rndjent.c:99: /var/tmp/portage/dev-libs/libgcrypt-1.11.0/work/libgcrypt-1.11.0/random/jitterentropy-base.c:58:3: error: #error "The CPU Jitter random number generator must not be compiled with optimizations. See documentation. Use the compiler switch -O0 for compiling jitterentropy.c." 58 | #error "The CPU Jitter random number generator must not be compiled with optimizations. See documentation. Use the compiler switch -O0 for compiling jitterentropy.c." | ^~~~~ make[2]: *** [Makefile:777: rndjent.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [Makefile:502: all-recursive] Error 1 make: *** [Makefile:434: all] Error 2 * ERROR: dev-libs/libgcrypt-1.11.0::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=dev-libs/libgcrypt-1.11.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-libs/libgcrypt-1.11.0::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-libs/libgcrypt-1.11.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libgcrypt-1.11.0/temp/environment'. * Working directory: '/var/tmp/portage/dev-libs/libgcrypt-1.11.0/work/libgcrypt-1.11.0-abi_x86_32.x86' * S: '/var/tmp/portage/dev-libs/libgcrypt-1.11.0/work/libgcrypt-1.11.0' * Messages for package net-print/cups-2.4.10: * * For information about installing a printer and general cups setup * take a look at: https://wiki.gentoo.org/wiki/Printing * Messages for package dev-libs/libgcrypt-1.11.0: * ERROR: dev-libs/libgcrypt-1.11.0::gentoo failed (compile phase): * emake failed Reproducible: Always Steps to Reproduce: 1. emerge --sync 2. emerge -auvDN world Actual Results: Failed to build Expected Results: not to fail
Created attachment 896314 [details] build.log
Created attachment 896315 [details] emerge -pqv '=dev-libs/libgcrypt-1.11.0::gentoo'
Created attachment 896316 [details] emerge --info '=dev-libs/libgcrypt-1.11.0::gentoo'
It failed in update few minutes ago.
*** This bug has been marked as a duplicate of bug 934801 ***
Setting CPPFLAGS="-O2 -pipe -march=native -mtune=native" is probably not a great idea. This will end up duplicating your flags in most cases since both CPPFLAGS and CFLAGS/CXXFLAGS are passed to the compiler.