List:Cluster« Previous MessageNext Message »
From:Niekas Date:June 1 2012 9:58am
Subject:Building MySQL Cluster 7.2.6 with Clang fails
View as plain text  
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);
                        ^~~~~~~~~~~~~~~~~~
/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:339:22: error: call to
      non-static member function without an object argument
            J * ja = newJavaObjectArray(cls, len, env);            
                     ^~~~~~~~~~~~~~~~~~
/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:343:29: error: call to
      non-static member function without an object argument
                cstatus s = copyToJavaObjectArray(ja, c, len, env);
                            ^~~~~~~~~~~~~~~~~~~~~
[ 18%] Building CXX object 
storage/ndb/src/ndbapi/CMakeFiles/ndbapi.dir/NdbOperationSearch.cpp.o
[ 18%] Building CXX object 
storage/ndb/src/ndbapi/CMakeFiles/ndbapi.dir/NdbOperationScan.cpp.o
3 errors generated.
make[2]: *** [storage/ndb/src/ndbjtie/CMakeFiles/ndbjtie.dir/ndbjtie_lib.cpp.o] 
Error 1
make[1]: *** [storage/ndb/src/ndbjtie/CMakeFiles/ndbjtie.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 18%] Building CXX object 
storage/ndb/src/ndbapi/CMakeFiles/ndbapi.dir/NdbOperationInt.cpp.o
[ 18%] Building CXX object 
storage/ndb/src/ndbapi/CMakeFiles/ndbapi.dir/NdbOperationDefine.cpp.o
[ 18%] [ 18%] Building CXX object 
storage/ndb/src/ndbapi/CMakeFiles/ndbapi.dir/NdbOperationExec.cpp.o
Building CXX object 
storage/ndb/src/ndbapi/CMakeFiles/ndbapi.dir/NdbScanOperation.cpp.o
[ 18%] Building CXX object 
storage/ndb/src/ndbapi/CMakeFiles/ndbapi.dir/NdbScanFilter.cpp.o
[ 18%] Building CXX object 
storage/ndb/src/ndbapi/CMakeFiles/ndbapi.dir/NdbIndexOperation.cpp.o
[ 18%] Building CXX object 
storage/ndb/src/ndbapi/CMakeFiles/ndbapi.dir/NdbQueryBuilder.cpp.o
[ 18%] Building CXX object 
storage/ndb/src/ndbapi/CMakeFiles/ndbapi.dir/NdbQueryOperation.cpp.o
[ 18%] Building CXX object 
storage/ndb/src/ndbapi/CMakeFiles/ndbapi.dir/NdbApiSignal.cpp.o
[ 19%] Building CXX object 
storage/ndb/src/ndbapi/CMakeFiles/ndbapi.dir/NdbRecAttr.cpp.o
[ 19%] Building CXX object 
storage/ndb/src/ndbapi/CMakeFiles/ndbapi.dir/NdbUtil.cpp.o
[ 19%] Building CXX object 
storage/ndb/src/ndbapi/CMakeFiles/ndbapi.dir/NdbReceiver.cpp.o
[ 19%] Building CXX object 
storage/ndb/src/ndbapi/CMakeFiles/ndbapi.dir/NdbDictionary.cpp.o
[ 19%] Building CXX object 
storage/ndb/src/ndbapi/CMakeFiles/ndbapi.dir/NdbDictionaryImpl.cpp.o
[ 19%] Building CXX object 
storage/ndb/src/ndbapi/CMakeFiles/ndbapi.dir/DictCache.cpp.o
[ 19%] Building CXX object 
storage/ndb/src/ndbapi/CMakeFiles/ndbapi.dir/ndb_cluster_connection.cpp.o
[ 19%] Building CXX object 
storage/ndb/src/ndbapi/CMakeFiles/ndbapi.dir/NdbBlob.cpp.o
[ 19%] Building CXX object 
storage/ndb/src/ndbapi/CMakeFiles/ndbapi.dir/SignalSender.cpp.o
[ 19%] Building CXX object 
storage/ndb/src/ndbapi/CMakeFiles/ndbapi.dir/ObjectMap.cpp.o
[ 19%] Building CXX object 
storage/ndb/src/ndbapi/CMakeFiles/ndbapi.dir/NdbInfo.cpp.o
[ 20%] Building CXX object 
storage/ndb/src/ndbapi/CMakeFiles/ndbapi.dir/NdbInfoScanOperation.cpp.o
[ 20%] Building CXX object 
storage/ndb/src/ndbapi/CMakeFiles/ndbapi.dir/NdbWaitGroup.cpp.o
[ 20%] Building CXX object 
storage/ndb/src/ndbapi/CMakeFiles/ndbapi.dir/WakeupHandler.cpp.o
[ 20%] Building CXX object 
storage/ndb/src/ndbapi/CMakeFiles/ndbapi.dir/ndb_internal.cpp.o
[ 20%] [ 20%] Building CXX object 
storage/ndb/src/ndbapi/CMakeFiles/ndbapi.dir/trp_client.cpp.o
Building CXX object storage/ndb/src/ndbapi/CMakeFiles/ndbapi.dir/trp_node.cpp.o
[ 20%] Building CXX object 
storage/ndb/src/ndbapi/CMakeFiles/ndbapi.dir/trp_buffer.cpp.o
Linking CXX static library libndbapi.a
/usr/bin/ranlib: file: libndbapi.a(NdbOperationScan.cpp.o) has no symbols
/usr/bin/ranlib: file: libndbapi.a(NdbOperationScan.cpp.o) has no symbols
[ 20%] Built target ndbapi
make: *** [all] Error 2

==> 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?

Niekas

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