List:Cluster« Previous MessageNext Message »
From:Magnus Blåudd Date:June 1 2012 10:16am
Subject:Re: Building MySQL Cluster 7.2.6 with Clang fails
View as plain text  
On 2012-06-01 11:58, Niekas wrote:
> Hi all,
> I am able to successfully build MySQL Cluster 7.2.6 on OS X Lion with both GCC
> and LLVM, but the same build fails with Clang. This is the output:
>
> […]
> Scanning dependencies of target ndbjtie
> [ 18%] Building CXX object
> storage/ndb/src/ndbapi/CMakeFiles/ndbapi.dir/NdbOperation.cpp.o
> [ 18%] Building CXX object
> storage/ndb/src/ndbjtie/CMakeFiles/ndbjtie.dir/ndbjtie_lib.cpp.o
> In file included from
> /tmp/homebrew-mysql-cluster-7.2.6-ZXi0/mysql-cluster-gpl-7.2.6/storage/ndb/src/nd
> bjtie/ndbjtie_lib.cpp:25:
> In file included from
> /tmp/homebrew-mysql-cluster-7.2.6-ZXi0/mysql-cluster-gpl-7.2.6/storage/ndb/src/nd
> bjtie/jtie/jtie.hpp:42:
> In file included from
> /tmp/homebrew-mysql-cluster-7.2.6-ZXi0/mysql-cluster-gpl-7.2.6/storage/ndb/src/nd
> bjtie/jtie/jtie_tconv_ptrbyval_impl.hpp:29:
> /tmp/homebrew-mysql-cluster-7.2.6-ZXi0/mysql-cluster-gpl-7.2.6/storage/ndb/src/nd
> bjtie/jtie/jtie_tconv_array_impl.hpp:298:25: error: call to
>        non-static member function without an object argument
>              cstatus s = copyToCObjectArray(ca, j, n, env);
>                          ^~~~~~~~~~~~~~~~~~

This is the module which we call ndbjtie which is a part of the NdbApi 
and makes it possible to call its functions from Java using JNI.

>
> ==>  Build Environment
> CPU: dual-core 64-bit penryn
> MacOS: 10.7.4-i386
> Xcode: 4.3.2
> CC: /usr/bin/clang
> CXX: /usr/bin/clang++ =>  /usr/bin/clang
> LD: /usr/bin/clang
> CFLAGS: -Os -w -pipe -march=native -Qunused-arguments
> CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments
> CPPFLAGS: -I/usr/local/Cellar/readline/6.2.2/include
> LDFLAGS: -L/usr/local/Cellar/readline/6.2.2/lib
> MAKEFLAGS: -j2
>
> Is this a known issue? Any idea how it can be fixed?

Not a known issue since we never build using this compiler.

You'd need to figure out how to solve this yourself and then file a bug 
with attached patch(hopefully no big change necessary).

/ Magnus
Thread
Building MySQL Cluster 7.2.6 with Clang failsNiekas1 Jun
  • Re: Building MySQL Cluster 7.2.6 with Clang failsMagnus Blåudd1 Jun
  • Re: Building MySQL Cluster 7.2.6 with Clang failsNiekas1 Jun
    • Re: Building MySQL Cluster 7.2.6 with Clang failsMagnus Blåudd1 Jun