All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] cryptopp: fix build with host-gcc 4.7.x
@ 2018-03-10 15:29 Fabrice Fontaine
  2018-03-10 19:16 ` Peter Korsgaard
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2018-03-10 15:29 UTC (permalink / raw)
  To: buildroot

Fixes:
 - http://autobuild.buildroot.org/results/9ab386124e4a09b50598c6f95ad40b25a83d227e

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...0001-Fix-GCC-version-for-RDSEED-intrinsic.patch | 49 ++++++++++++++++++++++
 1 file changed, 49 insertions(+)
 create mode 100644 package/cryptopp/0001-Fix-GCC-version-for-RDSEED-intrinsic.patch

diff --git a/package/cryptopp/0001-Fix-GCC-version-for-RDSEED-intrinsic.patch b/package/cryptopp/0001-Fix-GCC-version-for-RDSEED-intrinsic.patch
new file mode 100644
index 0000000000..0cf30d1a37
--- /dev/null
+++ b/package/cryptopp/0001-Fix-GCC-version-for-RDSEED-intrinsic.patch
@@ -0,0 +1,49 @@
+From 31465400675c75d8ea0556d708a7efbf915bc366 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Sat, 10 Mar 2018 12:14:23 +0100
+Subject: [PATCH] Fix GCC version for RDSEED intrinsic
+
+rdseed is only available on gcc 4.8.x, not on gcc 4.7.x
+
+Fixes:
+ - http://autobuild.buildroot.org/results/9ab386124e4a09b50598c6f95ad40b25a83d227e
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+---
+ rdrand.cpp | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/rdrand.cpp b/rdrand.cpp
+index 900fcd96..64b12208 100644
+--- a/rdrand.cpp
++++ b/rdrand.cpp
+@@ -74,7 +74,7 @@
+ #  else
+ #    define GCC_RDRAND_ASM_AVAILABLE 1
+ #  endif
+-#  if defined(__RDSEED__) && (CRYPTOPP_GCC_VERSION >= 40700) && !defined(__OPTIMIZE__)
++#  if defined(__RDSEED__) && (CRYPTOPP_GCC_VERSION >= 40800) && !defined(__OPTIMIZE__)
+ #    define ALL_RDSEED_INTRIN_AVAILABLE 1
+ #  else
+ #    define GCC_RDSEED_ASM_AVAILABLE 1
+@@ -291,7 +291,7 @@ inline void RDSEED32(void* output)
+         : "=a" (*reinterpret_cast<word32*>(output))
+         : : "cc"
+     );
+-#elif defined(GCC_RDSEED_ASM_AVAILABLE) && (CRYPTOPP_GCC_VERSION >= 40700)
++#elif defined(GCC_RDSEED_ASM_AVAILABLE) && (CRYPTOPP_GCC_VERSION >= 40800)
+     __asm__ __volatile__
+     (
+         INTEL_NOPREFIX
+@@ -333,7 +333,7 @@ inline void RDSEED64(void* output)
+         : "=a" (*reinterpret_cast<word64*>(output))
+         : : "cc"
+     );
+-#elif defined(GCC_RDSEED_ASM_AVAILABLE) && (CRYPTOPP_GCC_VERSION >= 40700)
++#elif defined(GCC_RDSEED_ASM_AVAILABLE) && (CRYPTOPP_GCC_VERSION >= 40800)
+     __asm__ __volatile__
+     (
+         INTEL_NOPREFIX
+-- 
+2.14.1
+
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH 1/1] cryptopp: fix build with host-gcc 4.7.x
  2018-03-10 15:29 [Buildroot] [PATCH 1/1] cryptopp: fix build with host-gcc 4.7.x Fabrice Fontaine
@ 2018-03-10 19:16 ` Peter Korsgaard
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2018-03-10 19:16 UTC (permalink / raw)
  To: buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > Fixes:
 >  - http://autobuild.buildroot.org/results/9ab386124e4a09b50598c6f95ad40b25a83d227e

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

The DOS newlines didn't make it through the mailing list, so I had to
recreate the patch locally.

Committed with that fixed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-10 19:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-10 15:29 [Buildroot] [PATCH 1/1] cryptopp: fix build with host-gcc 4.7.x Fabrice Fontaine
2018-03-10 19:16 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.