codership / mysql-wsrep

wsrep API patch for MySQL server
Other
64 stars 34 forks source link

Build on armv7l failed #291

Open krombel opened 8 years ago

krombel commented 8 years ago

I run cmake -DWITH_WSREP=ON -DWITH_INNODB_DISALLOW_WRITES=ON ./ make as advised on the document page of galeracluster

I am trying to build on an odroid c1

Then build (make) fails with following output:


Scanning dependencies of target innobase [ 27%] Building CXX object storage/innobase/CMakeFiles/innobase.dir/api/api0api.cc.o In file included from /build/mysql-wsrep/storage/innobase/include/ut0ut.h:36:0, from /build/mysql-wsrep/storage/innobase/include/univ.i:602, from /build/mysql-wsrep/storage/innobase/api/api0api.cc:27: /build/mysql-wsrep/storage/innobase/include/os0sync.h:504:4: error: #error "Unsupported platform"

error "Unsupported platform"

^

In file included from /build/mysql-wsrep/storage/innobase/include/sync0sync.h:833:0, from /build/mysql-wsrep/storage/innobase/include/mem0mem.h:34, from /build/mysql-wsrep/storage/innobase/include/data0data.h:33, from /build/mysql-wsrep/storage/innobase/include/que0que.h:30, from /build/mysql-wsrep/storage/innobase/include/api0misc.h:32, from /build/mysql-wsrep/storage/innobase/api/api0api.cc:38: /build/mysql-wsrep/storage/innobase/include/sync0sync.ic: In function ‘lock_word_t ib_mutex_test_and_set(ib_mutext)’: /build/mysql-wsrep/storage/innobase/include/sync0sync.ic:83:49: error: ‘os_atomic_test_and_set’ was not declared in this scope return(os_atomic_test_and_set(&mutex->lock_word)); ^ /build/mysql-wsrep/storage/innobase/include/sync0sync.ic: In function ‘void mutex_reset_lock_word(ib_mutext)’: /build/mysql-wsrep/storage/innobase/include/sync0sync.ic:112:35: error: ‘os_atomic_clear’ was not declared in this scope os_atomic_clear(&mutex->lock_word); ^ /build/mysql-wsrep/storage/innobase/include/sync0sync.ic: In function ‘lock_word_t ib_mutex_test_and_set(ib_mutext)’: /build/mysql-wsrep/storage/innobase/include/sync0sync.ic:100:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ storage/innobase/CMakeFiles/innobase.dir/build.make:54: recipe for target 'storage/innobase/CMakeFiles/innobase.dir/api/api0api.cc.o' failed make[2]: _\ [storage/innobase/CMakeFiles/innobase.dir/api/api0api.cc.o] Error 1 CMakeFiles/Makefile2:561: recipe for target 'storage/innobase/CMakeFiles/innobase.dir/all' failed make[1]: * [storage/innobase/CMakeFiles/innobase.dir/all] Error 2 Makefile:147: recipe for target 'all' failed make: * [all] Error 2

ayurchen commented 8 years ago

This does not look to be related to wsrep patch. Can you build vanilla MySQL on that platform?

krombel commented 8 years ago

Sorry that it took so long. Now I hat the time to start compiling. I took the sources from github and mysql.com. But in both cases compiling finished successfully.