Bug #69978 Fails to build on mips64(el)

Submitted: 10 Aug 2013 3:31 Modified: 4 Aug 2014 11:25
Reporter: Clint Byrum Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.5.31, 5.6.20 OS:Linux (Debian 7.0)
Assigned to: CPU Architecture:Any

[10 Aug 2013 3:31] Clint Byrum
Description:
This was originally reported in Debian. The embedded yassl encryption library fails to build on mips:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=719196

How to repeat:
* Compile mysql 5.5.31 on Debian 7.0 with embedded yaSSL.

Suggested fix:
1 character fix

http://stackoverflow.com/questions/3652153/impossible-constraint-in-asm

Index: mysql-5.5/extra/yassl/taocrypt/src/integer.cpp
===================================================================
--- mysql-5.5.orig/extra/yassl/taocrypt/src/integer.cpp	2013-08-08 18:22:54.008293778 +0800
+++ mysql-5.5/extra/yassl/taocrypt/src/integer.cpp	2013-08-08 19:22:53.416259452 +0800
@@ -192,7 +192,7 @@
                 "a" (a), "rm" (b) : "cc");
 
         #elif defined(__mips64)
-            __asm__("dmultu %2,%3" : "=h" (r.halfs_.high), "=l" (r.halfs_.low)
+            __asm__("dmultu %2,%3" : "=d" (r.halfs_.high), "=lc" (r.halfs_.low)
                 : "r" (a), "r" (b));
 
         #elif defined(_M_IX86)
[12 Aug 2013 13:34] Todd Farmer
Thanks for the bug report, Clint.  I can't immediately verify the bug (due to lack of access to MIPS platform), but will work to do so shortly.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.056 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.