[ https://issues.apache.org/jira/browse/ACCUMULO-1819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13806503#comment-13806503 ]
Josh Elser commented on ACCUMULO-1819: -------------------------------------- Because I'm at a loss at the moment: {code} g++ -v -dynamiclib -O3 -I/System/Library/Frameworks/JavaVM.framework/Headers -I/Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/include/darwin -I/usr/include/c++/4.2.1 -m64 -o libNativeMap-Mac_OS_X-x86_64-64.jnilib org_apache_accumulo_server_tabletserver_NativeMap.cc util.cc Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) Target: x86_64-apple-darwin13.0.0 Thread model: posix "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.9.0 -emit-obj -disable-free -disable-llvm-verifier -main-file-name org_apache_accumulo_server_tabletserver_NativeMap.cc -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 224.1 -v -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.0 -I /System/Library/Frameworks/JavaVM.framework/Headers -I /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/include -I /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/include/darwin -I /usr/include/c++/4.2.1 -stdlib=libc++ -O3 -fdeprecated-macro -fdebug-compilation-dir /Users/jelser/projects/accumulo.git/server/src/main/c++/nativeMap -ferror-limit 19 -fmessage-length 208 -stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=macosx-10.9.0 -fobjc-dispatch-method=mixed -fobjc-default-synthesize-properties -fencode-extended-block-signature -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/cd/x6rcp8_x0md0kkh4lppmwj600000gp/T/org_apache_accumulo_server_tabletserver_NativeMap-tEV7us.o -x c++ org_apache_accumulo_server_tabletserver_NativeMap.cc clang -cc1 version 5.0 based upon LLVM 3.3svn default target x86_64-apple-darwin13.0.0 ignoring nonexistent directory "/usr/include/c++/v1" #include "..." search starts here: #include <...> search starts here: /System/Library/Frameworks/JavaVM.framework/Headers /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/include /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/include/darwin /usr/include/c++/4.2.1 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1 /usr/local/include /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.0/include /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include /usr/include /System/Library/Frameworks (framework directory) /Library/Frameworks (framework directory) End of search list. In file included from org_apache_accumulo_server_tabletserver_NativeMap.cc:20: ./NativeMap.h:40:13: warning: assigning field to itself [-Wself-assign-field] this->lba = lba; ^ 1 warning generated. "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.9.0 -emit-obj -disable-free -disable-llvm-verifier -main-file-name util.cc -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 224.1 -v -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.0 -I /System/Library/Frameworks/JavaVM.framework/Headers -I /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/include -I /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/include/darwin -I /usr/include/c++/4.2.1 -stdlib=libc++ -O3 -fdeprecated-macro -fdebug-compilation-dir /Users/jelser/projects/accumulo.git/server/src/main/c++/nativeMap -ferror-limit 19 -fmessage-length 208 -stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=macosx-10.9.0 -fobjc-dispatch-method=mixed -fobjc-default-synthesize-properties -fencode-extended-block-signature -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/cd/x6rcp8_x0md0kkh4lppmwj600000gp/T/util-pTWn83.o -x c++ util.cc clang -cc1 version 5.0 based upon LLVM 3.3svn default target x86_64-apple-darwin13.0.0 ignoring nonexistent directory "/usr/include/c++/v1" #include "..." search starts here: #include <...> search starts here: /System/Library/Frameworks/JavaVM.framework/Headers /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/include /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/include/darwin /usr/include/c++/4.2.1 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1 /usr/local/include /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.0/include /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include /usr/include /System/Library/Frameworks (framework directory) /Library/Frameworks (framework directory) End of search list. "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -dynamic -dylib -arch x86_64 -macosx_version_min 10.9.0 -o libNativeMap-Mac_OS_X-x86_64-64.jnilib /var/folders/cd/x6rcp8_x0md0kkh4lppmwj600000gp/T/org_apache_accumulo_server_tabletserver_NativeMap-tEV7us.o /var/folders/cd/x6rcp8_x0md0kkh4lppmwj600000gp/T/util-pTWn83.o -lc++ -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.0/lib/darwin/libclang_rt.osx.a Undefined symbols for architecture x86_64: "std::basic_ios<char, std::char_traits<char> >::widen(char) const", referenced from: Field::set(JNIEnv_*, _jbyteArray*, int) in org_apache_accumulo_server_tabletserver_NativeMap-tEV7us.o LinkedBlockAllocator::deleteLast(void*) in org_apache_accumulo_server_tabletserver_NativeMap-tEV7us.o Block::rollback(void*) in org_apache_accumulo_server_tabletserver_NativeMap-tEV7us.o "std::ostream::put(char)", referenced from: Field::set(JNIEnv_*, _jbyteArray*, int) in org_apache_accumulo_server_tabletserver_NativeMap-tEV7us.o LinkedBlockAllocator::deleteLast(void*) in org_apache_accumulo_server_tabletserver_NativeMap-tEV7us.o Block::rollback(void*) in org_apache_accumulo_server_tabletserver_NativeMap-tEV7us.o "std::ostream::flush()", referenced from: Field::set(JNIEnv_*, _jbyteArray*, int) in org_apache_accumulo_server_tabletserver_NativeMap-tEV7us.o LinkedBlockAllocator::deleteLast(void*) in org_apache_accumulo_server_tabletserver_NativeMap-tEV7us.o Block::rollback(void*) in org_apache_accumulo_server_tabletserver_NativeMap-tEV7us.o "std::ostream& std::ostream::_M_insert<void const*>(void const*)", referenced from: LinkedBlockAllocator::deleteLast(void*) in org_apache_accumulo_server_tabletserver_NativeMap-tEV7us.o Block::rollback(void*) in org_apache_accumulo_server_tabletserver_NativeMap-tEV7us.o "std::ostream::operator<<(int)", referenced from: Field::set(JNIEnv_*, _jbyteArray*, int) in org_apache_accumulo_server_tabletserver_NativeMap-tEV7us.o "std::ios_base::Init::Init()", referenced from: __GLOBAL__I_a in org_apache_accumulo_server_tabletserver_NativeMap-tEV7us.o "std::ios_base::Init::~Init()", referenced from: __GLOBAL__I_a in org_apache_accumulo_server_tabletserver_NativeMap-tEV7us.o "std::basic_ios<char, std::char_traits<char> >::clear(std::_Ios_Iostate)", referenced from: Block::rollback(void*) in org_apache_accumulo_server_tabletserver_NativeMap-tEV7us.o "std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)", referenced from: Field::set(JNIEnv_*, _jbyteArray*, int) in org_apache_accumulo_server_tabletserver_NativeMap-tEV7us.o LinkedBlockAllocator::deleteLast(void*) in org_apache_accumulo_server_tabletserver_NativeMap-tEV7us.o Block::rollback(void*) in org_apache_accumulo_server_tabletserver_NativeMap-tEV7us.o "std::_Rb_tree_decrement(std::_Rb_tree_node_base*)", referenced from: std::_Rb_tree<SubKey, std::pair<SubKey const, Field>, std::_Select1st<std::pair<SubKey const, Field> >, std::less<SubKey>, BlockAllocator<std::pair<SubKey const, Field> > >::_M_insert_unique(std::pair<SubKey const, Field> const&) in org_apache_accumulo_server_tabletserver_NativeMap-tEV7us.o std::_Rb_tree<Field, std::pair<Field const, std::map<SubKey, Field, std::less<SubKey>, BlockAllocator<std::pair<SubKey const, Field> > > >, std::_Select1st<std::pair<Field const, std::map<SubKey, Field, std::less<SubKey>, BlockAllocator<std::pair<SubKey const, Field> > > > >, std::less<Field>, BlockAllocator<std::pair<Field const, std::map<SubKey, Field, std::less<SubKey>, BlockAllocator<std::pair<SubKey const, Field> > > > > >::_M_insert_unique(std::pair<Field const, std::map<SubKey, Field, std::less<SubKey>, BlockAllocator<std::pair<SubKey const, Field> > > > const&) in org_apache_accumulo_server_tabletserver_NativeMap-tEV7us.o "std::_Rb_tree_increment(std::_Rb_tree_node_base*)", referenced from: _Java_org_apache_accumulo_server_tabletserver_NativeMap_createNMI__J_3I in org_apache_accumulo_server_tabletserver_NativeMap-tEV7us.o _Java_org_apache_accumulo_server_tabletserver_NativeMap_nmiNext in org_apache_accumulo_server_tabletserver_NativeMap-tEV7us.o Iterator::Iterator(NativeMapData&, Field&, SubKey&, int*) in org_apache_accumulo_server_tabletserver_NativeMap-tEV7us.o "std::__throw_length_error(char const*)", referenced from: std::vector<Block, std::allocator<Block> >::_M_insert_aux(__gnu_cxx::__normal_iterator<Block*, std::vector<Block, std::allocator<Block> > >, Block const&) in org_apache_accumulo_server_tabletserver_NativeMap-tEV7us.o std::vector<BigBlock, std::allocator<BigBlock> >::_M_insert_aux(__gnu_cxx::__normal_iterator<BigBlock*, std::vector<BigBlock, std::allocator<BigBlock> > >, BigBlock const&) in org_apache_accumulo_server_tabletserver_NativeMap-tEV7us.o "std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)", referenced from: std::_Rb_tree<SubKey, std::pair<SubKey const, Field>, std::_Select1st<std::pair<SubKey const, Field> >, std::less<SubKey>, BlockAllocator<std::pair<SubKey const, Field> > >::_M_insert_unique(std::pair<SubKey const, Field> const&) in org_apache_accumulo_server_tabletserver_NativeMap-tEV7us.o std::_Rb_tree<Field, std::pair<Field const, std::map<SubKey, Field, std::less<SubKey>, BlockAllocator<std::pair<SubKey const, Field> > > >, std::_Select1st<std::pair<Field const, std::map<SubKey, Field, std::less<SubKey>, BlockAllocator<std::pair<SubKey const, Field> > > > >, std::less<Field>, BlockAllocator<std::pair<Field const, std::map<SubKey, Field, std::less<SubKey>, BlockAllocator<std::pair<SubKey const, Field> > > > > >::_M_insert_unique(std::pair<Field const, std::map<SubKey, Field, std::less<SubKey>, BlockAllocator<std::pair<SubKey const, Field> > > > const&) in org_apache_accumulo_server_tabletserver_NativeMap-tEV7us.o "std::cerr", referenced from: Field::set(JNIEnv_*, _jbyteArray*, int) in org_apache_accumulo_server_tabletserver_NativeMap-tEV7us.o LinkedBlockAllocator::deleteLast(void*) in org_apache_accumulo_server_tabletserver_NativeMap-tEV7us.o Block::rollback(void*) in org_apache_accumulo_server_tabletserver_NativeMap-tEV7us.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [libNativeMap-Mac_OS_X-x86_64-64.jnilib] Error 1 {code} > NativeMap Makefile doesn't work with newest OSX/Xcode > ----------------------------------------------------- > > Key: ACCUMULO-1819 > URL: https://issues.apache.org/jira/browse/ACCUMULO-1819 > Project: Accumulo > Issue Type: Bug > Components: tserver > Affects Versions: 1.4.4, 1.5.0 > Reporter: Josh Elser > Assignee: Josh Elser > Fix For: 1.4.5, 1.5.1, 1.6.0 > > > Updated my machine from mountain lion to mavericks, which included an update > to Xcode. After, activating the `native` maven profile caused a failure due > to being unable to find the jni headers. -- This message was sent by Atlassian JIRA (v6.1#6144)