MySQL Forums
Forum List  »  NDB clusters

MySQl Cluster compilation Fail on Ubuntu 16.04 (ARM)
Posted by: Super Sayan
Date: June 14, 2017 06:47AM

Dear Community,



I try to compile MySQL Cluster on some ARM marchine with Ubuntu 16.04. But during compilation from Source i have errors : wmb(), rmb() and mb() aren't defined in the scope.



For compilation i use these commands :



apt-get update
apt-get install -y cmake libncurses5-dev libaio1 default-jre build-essential default-jdk git
cd /home/user/Download
wget https://dev.mysql.com/get/Downloads/MySQL-Cluster-7.5/mysql-cluster-gpl-7.5.6.tar.gz
tar -xzf ./mysql-cluster-gpl-7.5.6.tar.gz
cd mysql-cluster-gpl-7.5.6
cmake . -DCMAKE_INSTALL_PREFIX=/service/mysql -DMYSQL_DATADIR=/data/mysql -DMYSQL_UNIX_ADDR=/data/mysql/mysql.sock -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/usr/local/boost -DSYSCONFDIR=/service/mysql -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DENABLE_DOWNLOADS=1
make
make install





But my shell return these errors

[ 49%] Building CXX object storage/ndb/src/kernel/vm/CMakeFiles/ndbsched_mt.dir/mt.cpp.o
/home/USER/Download/mysql-cluster-gpl-7.5.6/storage/ndb/src/kernel/vm/mt.cpp: In member function ‘bool thr_send_threads::data_available() const’:
/home/USER/Download/mysql-cluster-gpl-7.5.6/storage/ndb/src/kernel/vm/mt.cpp:1497:9: error: ‘rmb’ was not declared in this scope
rmb();
^
/home/USER/Download/mysql-cluster-gpl-7.5.6/storage/ndb/src/kernel/vm/mt.cpp: In member function ‘void thr_send_threads::setNodeOverloadStatus(OverloadStatus)’:
/home/USER/Download/mysql-cluster-gpl-7.5.6/storage/ndb/src/kernel/vm/mt.cpp:1640:8: error: ‘mb’ was not declared in this scope
mb();
^
/home/USER/Download/mysql-cluster-gpl-7.5.6/storage/ndb/src/kernel/vm/mt.cpp: In member function ‘void thr_send_threads::insert_node(NodeId)’:
/home/USER/Download/mysql-cluster-gpl-7.5.6/storage/ndb/src/kernel/vm/mt.cpp:1753:7: error: ‘wmb’ was not declared in this scope
wmb();
^
/home/USER/Download/mysql-cluster-gpl-7.5.6/storage/ndb/src/kernel/vm/mt.cpp: In function ‘void flush_write_state_other(thr_data*, thr_job_queue_head*, thr_jb_write_state*, bool)’:
/home/USER/Download/mysql-cluster-gpl-7.5.6/storage/ndb/src/kernel/vm/mt.cpp:3464:7: error: ‘wmb’ was not declared in this scope
wmb();
^
/home/USER/Download/mysql-cluster-gpl-7.5.6/storage/ndb/src/kernel/vm/mt.cpp: In function ‘void flush_write_state_other_wakeup(thr_data*, thr_job_queue_head*, thr_jb_write_state*)’:
/home/USER/Download/mysql-cluster-gpl-7.5.6/storage/ndb/src/kernel/vm/mt.cpp:3525:7: error: ‘wmb’ was not declared in this scope
wmb();
^
/home/USER/Download/mysql-cluster-gpl-7.5.6/storage/ndb/src/kernel/vm/mt.cpp: In function ‘void flush_jbb_write_state(thr_data*)’:
/home/USER/Download/mysql-cluster-gpl-7.5.6/storage/ndb/src/kernel/vm/mt.cpp:3557:7: error: ‘wmb’ was not declared in this scope
wmb();
^
/home/USER/Download/mysql-cluster-gpl-7.5.6/storage/ndb/src/kernel/vm/mt.cpp: In function ‘Uint32 link_thread_send_buffers(thr_repository::send_buffer*, Uint32)’:
/home/USER/Download/mysql-cluster-gpl-7.5.6/storage/ndb/src/kernel/vm/mt.cpp:3929:13: error: ‘rmb’ was not declared in this scope
rmb();
^
/home/USER/Download/mysql-cluster-gpl-7.5.6/storage/ndb/src/kernel/vm/mt.cpp: In function ‘void flush_send_buffer(thr_data*, Uint32)’:
/home/USER/Download/mysql-cluster-gpl-7.5.6/storage/ndb/src/kernel/vm/mt.cpp:4435:7: error: ‘wmb’ was not declared in this scope
wmb();
^
/home/USER/Download/mysql-cluster-gpl-7.5.6/storage/ndb/src/kernel/vm/mt.cpp: In member function ‘virtual bool mt_send_handle::forceSend(NodeId)’:
/home/USER/Download/mysql-cluster-gpl-7.5.6/storage/ndb/src/kernel/vm/mt.cpp:4477:8: error: ‘mb’ was not declared in this scope
mb();
^
/home/USER/Download/mysql-cluster-gpl-7.5.6/storage/ndb/src/kernel/vm/mt.cpp: In function ‘void try_send(thr_data*, Uint32)’:
/home/USER/Download/mysql-cluster-gpl-7.5.6/storage/ndb/src/kernel/vm/mt.cpp:4510:8: error: ‘mb’ was not declared in this scope
mb();
^
/home/USER/Download/mysql-cluster-gpl-7.5.6/storage/ndb/src/kernel/vm/mt.cpp: In function ‘bool do_send(thr_data*, bool, bool)’:
/home/USER/Download/mysql-cluster-gpl-7.5.6/storage/ndb/src/kernel/vm/mt.cpp:4877:10: error: ‘mb’ was not declared in this scope
mb();
^
/home/USER/Download/mysql-cluster-gpl-7.5.6/storage/ndb/src/kernel/vm/mt.cpp: In function ‘bool insert_signal(thr_job_queue*, thr_job_queue_head*, thr_jb_write_state*, Uint32, const SignalHeader*, const Uint32*, const Uint32*, thr_job_buffer*)’:
/home/USER/Download/mysql-cluster-gpl-7.5.6/storage/ndb/src/kernel/vm/mt.cpp:5085:9: error: ‘wmb’ was not declared in this scope
wmb();
^
/home/USER/Download/mysql-cluster-gpl-7.5.6/storage/ndb/src/kernel/vm/mt.cpp: In function ‘void read_jbb_state(thr_data*, Uint32)’:
/home/USER/Download/mysql-cluster-gpl-7.5.6/storage/ndb/src/kernel/vm/mt.cpp:5135:30: error: ‘read_barrier_depends’ was not declared in this scope
read_barrier_depends();
^
/home/USER/Download/mysql-cluster-gpl-7.5.6/storage/ndb/src/kernel/vm/mt.cpp: In function ‘bool read_jba_state(thr_data*)’:
/home/USER/Download/mysql-cluster-gpl-7.5.6/storage/ndb/src/kernel/vm/mt.cpp:5148:24: error: ‘read_barrier_depends’ was not declared in this scope
read_barrier_depends();
^
/home/USER/Download/mysql-cluster-gpl-7.5.6/storage/ndb/src/kernel/vm/mt.cpp: In function ‘Uint32 run_job_buffers(thr_data*, Signal*, Uint32&, Uint32&, bool&)’:
/home/USER/Download/mysql-cluster-gpl-7.5.6/storage/ndb/src/kernel/vm/mt.cpp:5430:7: error: ‘rmb’ was not declared in this scope
rmb();
^
storage/ndb/src/kernel/vm/CMakeFiles/ndbsched_mt.dir/build.make:158: recipe for target 'storage/ndb/src/kernel/vm/CMakeFiles/ndbsched_mt.dir/mt.cpp.o' failed
make[2]: *** [storage/ndb/src/kernel/vm/CMakeFiles/ndbsched_mt.dir/mt.cpp.o] Error 1
CMakeFiles/Makefile2:4749: recipe for target 'storage/ndb/src/kernel/vm/CMakeFiles/ndbsched_mt.dir/all' failed
make[1]: *** [storage/ndb/src/kernel/vm/CMakeFiles/ndbsched_mt.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2





Please, a little help.

Options: ReplyQuote




Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.