List:Cluster« Previous MessageNext Message »
From:nanashi Date:May 27 2012 2:01pm
Subject:mysql-cluster-7.2.6 build failed GCC-4.7
View as plain text  
I'm using Slackware-current GCC-4.7 cmake-2.8.8 linux kernel 3.2.14

Although mysql-5.5.24 server built successfully, I'm trying to build 
mysql-cluster-gpl-7.2.6 and I'm getting a build failed with

[ 32%] Building CXX object 
storage/ndb/src/common/util/CMakeFiles/HashMap2-t.dir/HashMap2.cpp.o
/tmp/mysql-cluster-gpl-7.2.6/storage/ndb/src/common/util/HashMap2.cpp: 
In function ‘int HashMap2_test()’:
/tmp/mysql-cluster-gpl-7.2.6/storage/ndb/src/common/util/HashMap2.cpp:160:18: 
error: redeclaration of ‘IntIntKVPod* j’
/tmp/mysql-cluster-gpl-7.2.6/storage/ndb/src/common/util/HashMap2.cpp:117:12: 
error: ‘int j’ previously declared here
make[2]: *** 
[storage/ndb/src/common/util/CMakeFiles/HashMap2-t.dir/HashMap2.cpp.o] 
Error 1
make[1]: *** [storage/ndb/src/common/util/CMakeFiles/HashMap2-t.dir/all] 
Error 2
make: *** [all] Error 2

It must be gcc-4.7 related, according to
http://gcc.gnu.org/gcc-4.7/porting_to.html

regards

Thread
mysql-cluster-7.2.6 build failed GCC-4.7nanashi27 May
  • Fwd: mysql-cluster-7.2.6 build failed GCC-4.7Mauritz Sundell30 May
    • Re: mysql-cluster-7.2.6 build failed GCC-4.7nanashi31 May