Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 934791 - dev-libs/libgcrypt-1.11.0 #error The CPU Jitter random number generator must not be compiled with optimizations
Summary: dev-libs/libgcrypt-1.11.0 #error The CPU Jitter random number generator must ...
Status: RESOLVED DUPLICATE of bug 934801
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-24 01:11 UTC by email200202
Modified: 2024-06-25 00:00 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,105.79 KB, text/x-log)
2024-06-24 01:12 UTC, email200202
Details
emerge -pqv '=dev-libs/libgcrypt-1.11.0::gentoo' (file_934791.txt,244 bytes, text/plain)
2024-06-24 01:13 UTC, email200202
Details
emerge --info '=dev-libs/libgcrypt-1.11.0::gentoo' (file_934791.txt,7.08 KB, text/plain)
2024-06-24 01:14 UTC, email200202
Details

Note You need to log in before you can comment on or make changes to this bug.
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.