* [Buildroot] [PATCH 1/1] opencv3: fix build on sparc64
@ 2018-10-21 20:05 Fabrice Fontaine
2018-11-02 8:45 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2018-10-21 20:05 UTC (permalink / raw)
To: buildroot
Fixes:
- http://autobuild.buildroot.org/results/d27fa3eb3ea600698571837981a3a15d556724ea
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
...otobuf-fix-compilation-issue-on-s390.patch | 38 +++++++++++++++++++
1 file changed, 38 insertions(+)
create mode 100644 package/opencv3/0001-3rdparty-protobuf-fix-compilation-issue-on-s390.patch
diff --git a/package/opencv3/0001-3rdparty-protobuf-fix-compilation-issue-on-s390.patch b/package/opencv3/0001-3rdparty-protobuf-fix-compilation-issue-on-s390.patch
new file mode 100644
index 0000000000..7743eae533
--- /dev/null
+++ b/package/opencv3/0001-3rdparty-protobuf-fix-compilation-issue-on-s390.patch
@@ -0,0 +1,38 @@
+From ac9ec55b37b2dd3b224144b4f20857a80719b750 Mon Sep 17 00:00:00 2001
+From: Loic Devulder <ldevulder@suse.de>
+Date: Fri, 28 Sep 2018 15:33:18 +0200
+Subject: [PATCH] 3rdparty/protobuf: fix compilation issue on s390
+
+This commit fixes an issue while trying to compile
+on s390x architecture.
+
+This is simply a backport of a fixe already applied
+in official protobuf code:
+- https://github.com/protocolbuffers/protobuf/pull/3955
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Retrieved from:
+https://github.com/opencv/opencv/commit/ac9ec55b37b2dd3b224144b4f20857a80719b750]
+---
+ .../protobuf/stubs/atomicops_internals_generic_gcc.h | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+diff --git a/3rdparty/protobuf/src/google/protobuf/stubs/atomicops_internals_generic_gcc.h b/3rdparty/protobuf/src/google/protobuf/stubs/atomicops_internals_generic_gcc.h
+index 0b0b06ce6cf..075c406abab 100644
+--- a/3rdparty/protobuf/src/google/protobuf/stubs/atomicops_internals_generic_gcc.h
++++ b/3rdparty/protobuf/src/google/protobuf/stubs/atomicops_internals_generic_gcc.h
+@@ -146,6 +146,14 @@ inline Atomic64 NoBarrier_Load(volatile const Atomic64* ptr) {
+ return __atomic_load_n(ptr, __ATOMIC_RELAXED);
+ }
+
++inline Atomic64 Release_CompareAndSwap(volatile Atomic64* ptr,
++ Atomic64 old_value,
++ Atomic64 new_value) {
++ __atomic_compare_exchange_n(ptr, &old_value, new_value, false,
++ __ATOMIC_RELEASE, __ATOMIC_ACQUIRE);
++ return old_value;
++}
++
+ #endif // defined(__LP64__)
+
+ } // namespace internal
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH 1/1] opencv3: fix build on sparc64
2018-10-21 20:05 [Buildroot] [PATCH 1/1] opencv3: fix build on sparc64 Fabrice Fontaine
@ 2018-11-02 8:45 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2018-11-02 8:45 UTC (permalink / raw)
To: buildroot
Hello,
On Sun, 21 Oct 2018 22:05:10 +0200, Fabrice Fontaine wrote:
> Fixes:
> - http://autobuild.buildroot.org/results/d27fa3eb3ea600698571837981a3a15d556724ea
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> ...otobuf-fix-compilation-issue-on-s390.patch | 38 +++++++++++++++++++
> 1 file changed, 38 insertions(+)
> create mode 100644 package/opencv3/0001-3rdparty-protobuf-fix-compilation-issue-on-s390.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-11-02 8:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-21 20:05 [Buildroot] [PATCH 1/1] opencv3: fix build on sparc64 Fabrice Fontaine
2018-11-02 8:45 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox