Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 669084 - net-vpn/strongswan-5.7.1: rdrand_rng.c:86:3: error: impossible constraint in ‘asm’
Summary: net-vpn/strongswan-5.7.1: rdrand_rng.c:86:3: error: impossible constraint in ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Normal normal
Assignee: Patrick Lauer
URL: https://wiki.strongswan.org/issues/337
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-20 16:34 UTC by ernsteiswuerfel
Modified: 2018-12-01 19:06 UTC (History)
0 users

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


Attachments
build.log (strongswan-5.7.1:20181020-162333.log,206.50 KB, text/plain)
2018-10-20 16:34 UTC, ernsteiswuerfel
Details
emerge --info (file_669084.txt,5.86 KB, text/plain)
2018-10-20 16:35 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2018-10-20 16:34:03 UTC
Created attachment 551968 [details]
build.log

make[5]: Entering directory '/var/tmp/portage/net-vpn/strongswan-5.7.1/work/strongswan-5.7.1/src/libstrongswan/plugins/rdrand'
/bin/sh ../../../../libtool  --tag=CC   --mode=compile powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../../..  -I../../../../src/libstrongswan  -rdynamic -O2 -mcpu=powerpc -pipe -include /var/tmp/portage/net-vpn/strongswan-5.7.1/work/strongswan-5.7.1/config.h -c -o rdrand_plugin.lo rdrand_plugin.c
/bin/sh ../../../../libtool  --tag=CC   --mode=compile powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../../..  -I../../../../src/libstrongswan  -rdynamic -O2 -mcpu=powerpc -pipe -include /var/tmp/portage/net-vpn/strongswan-5.7.1/work/strongswan-5.7.1/config.h -c -o rdrand_rng.lo rdrand_rng.c
libtool: compile:  powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../src/libstrongswan -rdynamic -O2 -mcpu=powerpc -pipe -include /var/tmp/portage/net-vpn/strongswan-5.7.1/work/strongswan-5.7.1/config.h -c rdrand_rng.c  -fPIC -DPIC -o .libs/rdrand_rng.o
libtool: compile:  powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../src/libstrongswan -rdynamic -O2 -mcpu=powerpc -pipe -include /var/tmp/portage/net-vpn/strongswan-5.7.1/work/strongswan-5.7.1/config.h -c rdrand_plugin.c  -fPIC -DPIC -o .libs/rdrand_plugin.o
rdrand_rng.c: In function ‘get_bytes’:
rdrand_rng.c:86:3: error: impossible constraint in ‘asm’
   asm(".byte 0x0f;.byte 0xc7;.byte 0xf0;" /* rdrand */
   ^~~
rdrand_rng.c:64:3: error: impossible constraint in ‘asm’
   asm(".byte 0x66;.byte 0x0f;.byte 0xc7;.byte 0xf0; " /* rdrand */
   ^~~
[...]
Comment 1 ernsteiswuerfel archtester 2018-10-20 16:35:02 UTC
Created attachment 551970 [details]
emerge --info
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2018-11-15 12:41:54 UTC
I am going to mask that "strongswan_plugins_rdrand" on non amd64/x86 architectures following upstream (see $URL).
Comment 3 Larry the Git Cow gentoo-dev 2018-11-15 12:59:53 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=917c309a28f1d65f1d79b72cacf9a48b98f55757

commit 917c309a28f1d65f1d79b72cacf9a48b98f55757
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2018-11-15 12:57:09 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2018-11-15 12:57:09 +0000

    profiles: net-vpn/strongswan: enable padlock and rdrand plugin only for amd64 and x86
    
    Closes: https://bugs.gentoo.org/669084
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 profiles/arch/amd64/package.use.mask | 5 +++++
 profiles/arch/base/package.use.mask  | 7 ++++++-
 profiles/arch/x86/package.use.mask   | 5 +++++
 3 files changed, 16 insertions(+), 1 deletion(-)
Comment 4 Larry the Git Cow gentoo-dev 2018-12-01 19:06:01 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=082206844bfec503de8d4aaf73b71e385f6a04f6

commit 082206844bfec503de8d4aaf73b71e385f6a04f6
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2018-12-01 19:01:20 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2018-12-01 19:05:49 +0000

    profiles: net-vpn/strongswan: don't enable padlock on amd64
    
    This commit reverts changes from commit 917c309a28f1d65f1d79b72cacf9a48b98f55757.
    
    Closes: https://github.com/gentoo/gentoo/pull/10512
    Bug: https://bugs.gentoo.org/669084
    Closes: https://bugs.gentoo.org/576340
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 profiles/arch/amd64/package.use.mask | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)