Bug #10438 Raid stopped working because of change in atomic add detection
Submitted: 7 May 2005 20:28 Modified: 19 May 2005 1:47
Reporter: Kent Boortz Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S2 (Serious)
Version:4.1.12-pre OS:Linux (Linux/IA64)
Assigned to: Ramil Kalimullin CPU Architecture:Any

[7 May 2005 20:28] Kent Boortz
Description:
Might be that the new detection of HAVE_ATOMIC_ADD broke the
USE_MYSYS_NEW on Linux/IA64, as this problem just occured.

if ccache gcc -DDEFAULT_BASEDIR=\"/usr/local/mysql\" -DDATADIR="\"/usr/local/mysql/data\"" -DDEFAULT_CHARSET_HOME="\"/usr/local/mysql\"" -DSHAREDIR="\"/u\
sr/local/mysql/share/mysql\"" -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I.    -O3 -DDBUG_OFF    -fno-implicit-templates -fno-exceptions -fno-rtti -DUSE_\
MYSYS_NEW -DDEFINE_CXA_PURE_VIRTUAL  -MT my_new.o -MD -MP -MF ".deps/my_new.Tpo" -c -o my_new.o my_new.cc; \
then mv -f ".deps/my_new.Tpo" ".deps/my_new.Po"; else rm -f ".deps/my_new.Tpo"; exit 1; fi
In file included from ../include/my_global.h:286,
                 from mysys_priv.h:17,
                 from my_new.cc:22:
/usr/include/asm/atomic.h: In function `int ia64_atomic_add(int, atomic_t*)':
/usr/include/asm/atomic.h:33: syntax error before `new'
/usr/include/asm/atomic.h:39: syntax error before `=' token
/usr/include/asm/atomic.h:41: syntax error before `;' token
/usr/include/asm/atomic.h: In function `int ia64_atomic_sub(int, atomic_t*)':
/usr/include/asm/atomic.h:47: syntax error before `new'
/usr/include/asm/atomic.h:53: syntax error before `=' token
/usr/include/asm/atomic.h:54: syntax error before `)' token
/usr/include/asm/atomic.h:54: `_n_' undeclared (first use this function)
/usr/include/asm/atomic.h:54: (Each undeclared identifier is reported only once
   for each function it appears in.)
/usr/include/asm/atomic.h:55: syntax error before `;' token
gmake[2]: *** [my_new.o] Error 1

How to repeat:
Compile on Linux/IA64
[9 May 2005 15:26] Ramil Kalimullin
Fixed in 4.1.12
[19 May 2005 1:42] Paul DuBois
Not in released versions; no changelog entry needed.