Bug #7146 Fails to build on sparc
Submitted: 9 Dec 2004 20:26 Modified: 21 Feb 2005 7:50
Reporter: Christian Hammers (Silver Quality Contributor) (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S2 (Serious)
Version:4.1.7 OS:Linux (Debian GNU/Linux on Sparc)
Assigned to: CPU Architecture:Any

[9 Dec 2004 20:26] Christian Hammers
Description:
Hello

I'm unable to compile MySQL on Sparc. It works on i386, hppa and s390...
The complete build log is available at:
http://buildd.debian.org/fetch.php?&pkg=mysql-dfsg-4.1&ver=4.1.7-4&arch=sparc&stamp=110243...

bye,

-christian-

make[4]: Entering directory `/build/buildd/mysql-dfsg-4.1-4.1.7/bdb/build_unix'
/bin/sh ./libtool --mode=compile gcc -c -I. -I../.././bdb/dist/.. -I../.././bdb/dist/../dbinc  -D_GNU_SOURCE -D_REENTRANT -O3 -DDBUG_OFF -DBIG_JOINS=1   ../.././bdb/dist/../mutex/mut_tas.c
gcc -c -I. -I../.././bdb/dist/.. -I../.././bdb/dist/../dbinc -D_GNU_SOURCE -D_REENTRANT -O3 -DDBUG_OFF -DBIG_JOINS=1 ../.././bdb/dist/../mutex/mut_tas.c -o mut_tas.o
../../bdb/mutex/mut_tas.c: In function `__db_tas_mutex_lock':
../../bdb/mutex/mut_tas.c:108: error: impossible constraint in `asm'
make[4]: *** [mut_tas.o] Error 1

How to repeat:
-

Suggested fix:
-
[20 Feb 2005 13:29] Aleksey Kishkin
Hi! Cannot reproduce it on sparc. I tested on 

#uname -a
Linux bitch 2.4.18 #2 Thu Apr 11 14:37:17 EDT 2002 sparc64 unknown

#cat /etc/debian_version
3.0

with configure options tat you provided and  hit to bug http://bugs.mysql.com/bug.php?id=8162, when I removed ndb options, mysql was compiled without that error. 

If you have ideas how to reproduce this error or what could be a cause of it, please let us know.
[20 Feb 2005 15:26] Christian Hammers
I cannot reproduce this bug with 4.1.10 neither so if seems to have been fixed in the meantime. You can close it. -christian-