jubatus / jubatus_core

Jubatus algorithm component
GNU Lesser General Public License v2.1
20 stars 29 forks source link

build error with --disable-eigen #361

Closed kazuki closed 7 years ago

kazuki commented 7 years ago
$ ./waf configure --disable-eigen
Setting top to                           : /home/kazuki/projects/jubatus_core 
Setting out to                           : /home/kazuki/projects/jubatus_core/build 
Checking for 'g++' (C++ compiler)        : /usr/bin/g++ 
Unpacking gtest                          : yes 
Checking for library pthread             : yes 
Checking for library pthread             : yes 
Checking for library msgpack             : yes 
Checking for function multiversioning    : yes 
Checking for header stdint.h             : yes 
Checking for header unordered_map        : not found 
Checking for header tr1/unordered_map    : yes 
Checking for header ext/hash_map         : yes 
Checking for header unordered_set        : not found 
Checking for header tr1/unordered_set    : yes 
Checking for header ext/hash_set         : yes 
Checking for library onig                : yes 
Checking for library dl                  : yes 
'configure' finished successfully (1.817s)
$ ./waf build
....
../jubatus/core/clustering/storage_factory.cpp:105:5: error: expected unqualified-id before ‘else’
   } else {
     ^
../jubatus/core/clustering/storage_factory.cpp:109:3: error: expected unqualified-id before ‘return’
   return ret;
   ^
../jubatus/core/clustering/storage_factory.cpp:114:1: error: expected declaration before ‘}’ token
 }  // namespace jubatus
 ^
../jubatus/core/clustering/storage_factory.cpp: In static member function ‘static jubatus::util::lang::shared_ptr<jubatus::core::clustering::storage> jubatus::core::clustering::storage_factory::create(const string&, const string&, const string&, const jubatus::core::common::jsonconfig::config&)’:
../jubatus/core/clustering/storage_factory.cpp:105:3: warning: control reaches end of non-void function [-Wreturn-type]
   } else {
   ^

../jubatus/core/anomaly/light_lof.cpp: In member function ‘virtual bool jubatus::core::anomaly::light_lof::set_row(const string&, const sfv_t&)’:
../jubatus/core/anomaly/light_lof.cpp:181:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (nn_result.size() == (config_.nearest_neighbor_num - 1) &&
                          ^

Waf: Leaving directory `/home/kazuki/projects/jubatus_core/build'
Build failed
 -> task in 'jubatus_core' failed with exit status 1 (run with -v to display more information)
kmaehashi commented 7 years ago

Fixed via #362