rhbase on Mac Yesomite?

104 views
Skip to first unread message

Aaron Benz

unread,
Jan 13, 2015, 4:30:02 PM1/13/15
to rha...@googlegroups.com
To my understanding, only linux is supported, but has anyone been able to successfully build rhbase on a Mac?

I installed thrift (although 0.9.2 as versions seems to have been deprecated) and hbase (which also does contain thrift) via homebrew. I added the thrift.pc to the path as instructed via the revo page, and when I try to install, I'm getting some pretty weird warnings and an error. But again, not sure if it is even possible yet.

devtools::install_local("/Users/Aaron/Google Drive/R/rhbase/build//rhbase_1.2.1.tar.gz" )
Installing rhbase
'/Library/Frameworks/R.framework/Resources/bin/R' --vanilla CMD INSTALL  \
  '/private/var/folders/dv/crh9jb3x6fx9z66lp9d6m9hr0000gn/T/Rtmphy8Szu/devtools3e7464095755/rhbase'  \
  --library='/Library/Frameworks/R.framework/Versions/3.1/Resources/library' --install-tests 

* installing *source* package ‘rhbase’ ...
** libs
clang++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG  -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -DPLATFORM_PKGTYPE='"mac.binary.mavericks"'   -I. -g  -DHAVE_UINTPTR_T -DHAVE_NETDB_H=1 -fpermissive -DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H -I./gen_cpp `pkg-config --cflags thrift` -Wall -fPIC  -Wall -mtune=core2 -g -O2  -c Hbase.cpp -o Hbase.o
In file included from Hbase.cpp:7:
./Hbase.h:5583:3: warning: control may reach end of non-void function [-Wreturn-type]
  }
  ^
./Hbase.h:5818:3: warning: control may reach end of non-void function [-Wreturn-type]
  }
  ^
./Hbase.h:5857:3: warning: control may reach end of non-void function [-Wreturn-type]
  }
  ^
./Hbase.h:5868:3: warning: control may reach end of non-void function [-Wreturn-type]
  }
  ^
./Hbase.h:5879:3: warning: control may reach end of non-void function [-Wreturn-type]
  }
  ^
./Hbase.h:5890:3: warning: control may reach end of non-void function [-Wreturn-type]
  }
  ^
./Hbase.h:5901:3: warning: control may reach end of non-void function [-Wreturn-type]
  }
  ^
./Hbase.h:5912:3: warning: control may reach end of non-void function [-Wreturn-type]
  }
  ^
8 warnings generated.
clang++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG  -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -DPLATFORM_PKGTYPE='"mac.binary.mavericks"'   -I. -g  -DHAVE_UINTPTR_T -DHAVE_NETDB_H=1 -fpermissive -DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H -I./gen_cpp `pkg-config --cflags thrift` -Wall -fPIC  -Wall -mtune=core2 -g -O2  -c Hbase_constants.cpp -o Hbase_constants.o
In file included from Hbase_constants.cpp:7:
In file included from ./Hbase_constants.h:10:
In file included from ./Hbase_types.h:12:
/usr/local/Cellar/thrift/0.9.2/include/thrift/protocol/TProtocol.h:132:11: warning: 'ntohll' macro redefined
#  define ntohll(n) ( (((uint64_t)ntohl((uint32_t)n)) << 32) + ntohl((uint32_t)(n >> 32)) )
          ^
/usr/include/sys/_endian.h:140:9: note: previous definition is here
#define ntohll(x)       __DARWIN_OSSwapInt64(x)
        ^
In file included from Hbase_constants.cpp:7:
In file included from ./Hbase_constants.h:10:
In file included from ./Hbase_types.h:12:
/usr/local/Cellar/thrift/0.9.2/include/thrift/protocol/TProtocol.h:133:11: warning: 'htonll' macro redefined
#  define htonll(n) ( (((uint64_t)htonl((uint32_t)n)) << 32) + htonl((uint32_t)(n >> 32)) )
          ^
/usr/include/sys/_endian.h:141:9: note: previous definition is here
#define htonll(x)       __DARWIN_OSSwapInt64(x)
        ^
2 warnings generated.
clang++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG  -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -DPLATFORM_PKGTYPE='"mac.binary.mavericks"'   -I. -g  -DHAVE_UINTPTR_T -DHAVE_NETDB_H=1 -fpermissive -DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H -I./gen_cpp `pkg-config --cflags thrift` -Wall -fPIC  -Wall -mtune=core2 -g -O2  -c Hbase_types.cpp -o Hbase_types.o
In file included from Hbase_types.cpp:7:
In file included from ./Hbase_types.h:12:
/usr/local/Cellar/thrift/0.9.2/include/thrift/protocol/TProtocol.h:132:11: warning: 'ntohll' macro redefined
#  define ntohll(n) ( (((uint64_t)ntohl((uint32_t)n)) << 32) + ntohl((uint32_t)(n >> 32)) )
          ^
/usr/include/sys/_endian.h:140:9: note: previous definition is here
#define ntohll(x)       __DARWIN_OSSwapInt64(x)
        ^
In file included from Hbase_types.cpp:7:
In file included from ./Hbase_types.h:12:
/usr/local/Cellar/thrift/0.9.2/include/thrift/protocol/TProtocol.h:133:11: warning: 'htonll' macro redefined
#  define htonll(n) ( (((uint64_t)htonl((uint32_t)n)) << 32) + htonl((uint32_t)(n >> 32)) )
          ^
/usr/include/sys/_endian.h:141:9: note: previous definition is here
#define htonll(x)       __DARWIN_OSSwapInt64(x)
        ^
2 warnings generated.
clang++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG  -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -DPLATFORM_PKGTYPE='"mac.binary.mavericks"'   -I. -g  -DHAVE_UINTPTR_T -DHAVE_NETDB_H=1 -fpermissive -DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H -I./gen_cpp `pkg-config --cflags thrift` -Wall -fPIC  -Wall -mtune=core2 -g -O2  -c tools.cc -o tools.o
In file included from tools.cc:18:
In file included from /usr/local/Cellar/thrift/0.9.2/include/thrift/transport/TSocket.h:27:
In file included from /usr/local/include/thrift/transport/TServerSocket.h:25:
/usr/local/include/thrift/cxxfunctional.h:93:18: error: no member named 'bind' in namespace 'std'; did you mean 'find'?
    using ::std::bind;
          ~~~~~~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:843:1: note: 'find' declared here
find(_InputIterator __first, _InputIterator __last, const _Tp& __value_)
^
1 error generated.
make: *** [tools.o] Error 1
ERROR: compilation failed for package ‘rhbase’
* removing ‘/Library/Frameworks/R.framework/Versions/3.1/Resources/library/rhbase’
Error: Command failed (1)

Antonio Piccolboni

unread,
Jan 27, 2015, 6:11:08 PM1/27/15
to rha...@googlegroups.com
I can build on Mavericks, but I am holding off installing Yesomite because of the dreaded wireless issues. I use brew to get the deps. For now you seem to be the trailblazer.
Reply all
Reply to author
Forward
0 new messages