Skip to contentSkip to conversation

zeromq: fix sparc32 compile

PATCH Superseded Waldemar Brodkorb 2 participants 3 messages Jun 4, 2016 – Jun 9, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 zeromq: fix sparc32 compile

Code is otherwise compiled with sparcv9 optimization and cannot be run on sparc32 (sparcv8) machine.

---
v1 -> v2:
- add git formatted patch requested by Thomas Petazzoni

---
 .../zeromq/0003-allow-to-build-sparc-v8-leon.patch |   30 ++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 package/zeromq/0003-allow-to-build-sparc-v8-leon.patch
package/zeromq/0003-allow-to-build-sparc-v8-leon.patch new file +30 -0
new file mode 100644
index 0000000..126a03b
@@ -0,0 +1,30 @@
+From d0b22397ebbef8e250c4cad25b8686018804aa15 Mon Sep 17 00:00:00 2001
+From: Waldemar Brodkorb <[email protected]>
+Date: Sat, 4 Jun 2016 09:30:49 +0200
+Subject: [PATCH] allow to build sparc (v8,leon)
+
+Only set sparcv9 optimization for sparc64 systems.
+This allows to run for example application using zeromq
+on sparc32 systems.
+
+Signed-off-by: Waldemar Brodkorb <[email protected]>
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index af8293c..cabd734 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -291,7 +291,7 @@ fi
+ 
+ # CPU-specific optimizations
+ case "${host_cpu}" in
+-    *sparc*)
++    *sparc64*)
+         AC_LANG_PUSH([C++])
+         LIBZMQ_CHECK_LANG_FLAG_PREPEND([-mcpu=v9])
+         AC_LANG_POP([C++])
+-- 
+2.7.4 (Apple Git-66)
+
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH v2 1/1 zeromq: fix sparc32 compile

Hello,

Quoted 11 lines · Waldemar Brodkorb

Code is otherwise compiled with sparcv9 optimization and cannot be run on sparc32 (sparcv8) machine.

---
v1 -> v2:
- add git formatted patch requested by Thomas Petazzoni

---
 .../zeromq/0003-allow-to-build-sparc-v8-leon.patch |   30 ++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 package/zeromq/0003-allow-to-build-sparc-v8-leon.patch

Applied to master, thanks. Please submit the patch upstream if not already done (IIRC the zeromq developers use Github, some submitting upstream is trivial).

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#2 lore raw

PATCH v2 1/1 zeromq: fix sparc32 compile

Hi Thomas,
Thomas Petazzoni wrote,

Quoted 15 lines

Hello,

Quoted 11 lines · Waldemar Brodkorb

Code is otherwise compiled with sparcv9 optimization and cannot be run on sparc32 (sparcv8) machine.

---
v1 -> v2:
- add git formatted patch requested by Thomas Petazzoni

---
 .../zeromq/0003-allow-to-build-sparc-v8-leon.patch |   30 ++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 package/zeromq/0003-allow-to-build-sparc-v8-leon.patch
Quoted 3 lines

Applied to master, thanks. Please submit the patch upstream if not already done (IIRC the zeromq developers use Github, some submitting upstream is trivial).

Yeah, it is already done and accepted upstream,
best regards
Waldemar