List:Cluster« Previous MessageNext Message »
From:nanashi Date:May 31 2012 4:38pm
Subject:Re: mysql-cluster-7.2.6 build failed GCC-4.7
View as plain text  
Thanks for the patch...
Mysql-cluster-gpl built successfully now.

regards

On 05/30/2012 02:39 PM, Mauritz Sundell wrote:
> Hi nanashi,
> yes it looks related to gcc-4.7.
>
> I have a patch below that should fix at least the compilation
> error in HashMap2.cpp.  But since I not for the moment have
> access to a build environment with gcc-4.7 where could be more
> errors related to gcc-4.7.
>
> Regards,
> Mauritz Sundell,
> MySQL Cluster Developer
>
> === modified file 'storage/ndb/src/common/util/HashMap2.cp
> --- storage/ndb/src/common/util/HashMap2.cpp    2011-09-07
> +++ storage/ndb/src/common/util/HashMap2.cpp    2012-05-28
> @@ -157,14 +157,14 @@ TAPTEST(HashMap2)
>       /* Test iterator Api */
>       HashMap2<IntIntKVPod, true, TestHeapAllocator, IntInt
>
> -    IntIntKVPod* j;
> +    IntIntKVPod* k;
>       for (int i=0; i<  2; i++)
>       {
>         int count = 0;
> -      while((j = it.next()))
> +      while((k = it.next()))
>         {
> -        OK( j->b == ((j->a * 3) - i) );
> -        j->b--;
> +        OK( k->b == ((k->a * 3) - i) );
> +        k->b--;
>           count++;
>         }
>         OK( count == 100 );
>
>
>
> -------- Original Message --------
> Subject: mysql-cluster-7.2.6 build failed GCC-4.7
> Date: Sun, 27 May 2012 17:01:03 +0300
> From: nanashi<nanashi@stripped>
> To: cluster@stripped
>
> 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