Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 640468 - dev-libs/libgcrypt-1.8.1: can't build with clang.
Summary: dev-libs/libgcrypt-1.8.1: can't build with clang.
Status: RESOLVED DUPLICATE of bug 629410
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-10 08:07 UTC by Yuta SATOH
Modified: 2017-12-18 07:28 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH 2017-12-10 08:07:47 UTC
This package fails to build with clang.
I've checked that dev-libs/libgcrypt-1.5.6-r100 can be compiled.

It is necessary to create amd64-fbsd/clang stages.

Thanks.

/bin/sh ../libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-libs/libgcrypt-1.8.1/work/libgcrypt-1.8.1/random -I..  -I../src -I/var/tmp/portage/dev-libs/libgcrypt-1.8.1/work/libgcrypt-1.8.1/src   -O2 -pipe -mtune=generic -fvisibility=hidden -Wall -c -o rndlinux.lo /var/tmp/portage/dev-libs/libgcrypt-1.8.1/work/libgcrypt-1.8.1/random/rndlinux.c
In file included from /var/tmp/portage/dev-libs/libgcrypt-1.8.1/work/libgcrypt-1.8.1/random/rndjent.c:86:
/var/tmp/portage/dev-libs/libgcrypt-1.8.1/work/libgcrypt-1.8.1/random/jitterentropy-base.c:53:13: warning: unknown pragma ignored [-Wunknown-pragmas]
#pragma GCC optimize ("O0")
            ^
/var/tmp/portage/dev-libs/libgcrypt-1.8.1/work/libgcrypt-1.8.1/random/jitterentropy-base.c:60:4: error: "The CPU Jitter random number generator must not be compiled with optimizations. See documentation. Use the compiler switch -O0 for compiling jitterentropy-base.c."
  #error "The CPU Jitter random number generator must not be compiled with optimizations. See documentation. Use the compiler switch -O0 for compiling jitterentropy-base.c."
   ^
1 warning and 1 error generated.
gmake[2]: *** [Makefile:699: rndjent.lo] Error 1
gmake[2]: *** Waiting for unfinished jobs....
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-libs/libgcrypt-1.8.1/work/libgcrypt-1.8.1/random -I.. -I../src -I/var/tmp/portage/dev-libs/libgcrypt-1.8.1/work/libgcrypt-1.8.1/src -O2 -pipe -mtune=generic -fvisibility=hidden -Wall -c /var/tmp/portage/dev-libs/libgcrypt-1.8.1/work/libgcrypt-1.8.1/random/rndlinux.c  -fPIC -DPIC -o .libs/rndlinux.o
gmake[2]: Leaving directory '/var/tmp/portage/dev-libs/libgcrypt-1.8.1/work/libgcrypt-1.8.1-abi_x86_64.amd64_fbsd/random'
gmake[1]: *** [Makefile:488: all-recursive] Error 1
gmake[1]: Leaving directory '/var/tmp/portage/dev-libs/libgcrypt-1.8.1/work/libgcrypt-1.8.1-abi_x86_64.amd64_fbsd'
gmake: *** [Makefile:420: all] Error 2
 * ERROR: dev-libs/libgcrypt-1.8.1::gentoo failed (compile phase):
 *   emake failed

Reproducible: Always
Comment 1 Fabian Groffen gentoo-dev 2017-12-18 07:28:35 UTC
this

*** This bug has been marked as a duplicate of bug 629410 ***