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
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.
I run
cmake -DWITH_WSREP=ON -DWITH_INNODB_DISALLOW_WRITES=ON ./
make
as advised on the document page of galeraclusterI 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