← Back to team overview

maria-discuss team mailing list archive

Re: [Pbxt-discuss] Compile failure on OS

 

Hi Sergey,

We are using GCC atomicity primitives and they seem to be not available on PPC version of GCC. Do you know what is available on PPC (what MySQL is using) ?

BR,
Vlad

Sergey Petrunya wrote:
Hi!

We're getting a compile error when trying to compile PBXT+Maria on ppc MacOS X:

http://askmonty.org/buildbot/builders/macosx-g5-dbg/builds/12/steps/compile/logs/stdio

looking at the bottom there, one sees:

if ccache gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include
  -I../../../include -I../../../regex -I../../../storage/innobase/include
  -I../../../sql -I.    -g  -Wimplicit -Wreturn-type -Wswitch -Wtrigraphs
  -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare
  -Wwrite-strings -Wunused-function -Wunused-label -Wunused-value
  -Wunused-variable -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor
  -felide-constructors -fno-exceptions -fno-rtti  -DUNIV_MUST_NOT_INLINE
  -DEXTRA_DEBUG -DFORCE_INIT_OF_VARS  -DSAFEMALLOC -DPEDANTIC_SAFEMALLOC -O0
  -g3 -gdwarf-2   -fno-implicit-templates -fno-exceptions -fno-rtti
  -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ
  -DIGNORE_SIGHUP_SIGQUIT  -DDONT_DECLARE_CXA_PURE_VIRTUAL -MT
  libpbxt_a-datalog_xt.o -MD -MP -MF ".deps/libpbxt_a-datalog_xt.Tpo" -c -o
  libpbxt_a-datalog_xt.o `test -f 'datalog_xt.cc' || echo './'`datalog_xt.cc; \
    then mv -f ".deps/libpbxt_a-datalog_xt.Tpo"
    ".deps/libpbxt_a-datalog_xt.Po"; else rm -f
    ".deps/libpbxt_a-datalog_xt.Tpo"; exit 1; fi
lock_xt.h: In function 'void xt_atomic_inc2(volatile u_int16_t*)':
lock_xt.h:194: error: '__sync_fetch_and_add' was not declared in this scope
lock_xt.h: In function 'void xt_atomic_dec2(volatile u_int16_t*)':
lock_xt.h:209: error: '__sync_fetch_and_sub' was not declared in this scope
lock_xt.h: At global scope:
lock_xt.h:584: warning: 'struct XTRowLockList' only defines private
constructors and has no friends
lock_xt.h:640: warning: 'struct XTRowLocks' only defines private
constructors and has no friends

Is PBXT expected to work on MacOS X G5?

BR
 Sergey


--
--
Best Regards,
Vladimir




References