Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 934791

Summary: dev-libs/libgcrypt-1.11.0 #error The CPU Jitter random number generator must not be compiled with optimizations
Product: Gentoo Linux Reporter: email200202
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: normal CC: email200202, moritz.brunner+gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=707330
https://bugs.gentoo.org/show_bug.cgi?id=902765
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge -pqv '=dev-libs/libgcrypt-1.11.0::gentoo'
emerge --info '=dev-libs/libgcrypt-1.11.0::gentoo'

Description email200202 2024-06-24 01:11:25 UTC
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
Comment 1 email200202 2024-06-24 01:12:07 UTC
Created attachment 896314 [details]
build.log
Comment 2 email200202 2024-06-24 01:13:34 UTC
Created attachment 896315 [details]
emerge -pqv '=dev-libs/libgcrypt-1.11.0::gentoo'
Comment 3 email200202 2024-06-24 01:14:48 UTC
Created attachment 896316 [details]
emerge --info '=dev-libs/libgcrypt-1.11.0::gentoo'
Comment 4 email200202 2024-06-24 01:20:03 UTC
It failed in update few minutes ago.
Comment 5 Agostino Sarubbo gentoo-dev 2024-06-24 13:13:53 UTC

*** This bug has been marked as a duplicate of bug 934801 ***
Comment 6 Mike Gilbert gentoo-dev 2024-06-24 15:51:58 UTC
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.