Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build fail with shogun-master #25

Open
AlexBinder opened this issue Sep 26, 2020 · 1 comment
Open

build fail with shogun-master #25

AlexBinder opened this issue Sep 26, 2020 · 1 comment

Comments

@AlexBinder
Copy link
Member

binder@theworldisavampire:~/experiments/2020/26092020_shogun/sep2020master/shogun-develop/build$ make -j 6
[ 1%] Built target rxcpp
[ 1%] Built target ShogunVersionProtobuf
[ 1%] Built target ChunksProtobuf
[ 2%] Built target bitsery
[ 3%] Built target RapidJSON
[ 4%] Generating version header
[ 4%] Built target HeadersProtobuf
[ 6%] copying SWIG files
[ 6%] Built target version
[ 6%] Built target interface_python_src
[ 6%] Built target class_list
[ 6%] Building CXX object src/shogun/CMakeFiles/libshogun.dir//gpl/shogun/classifier/FeatureBlockLogisticRegression.cpp.o
[ 6%] Building CXX object src/shogun/CMakeFiles/libshogun.dir/
/gpl/shogun/lib/external/brent.cpp.o
[ 6%] Building CXX object src/shogun/CMakeFiles/libshogun.dir//gpl/shogun/classifier/svm/SVMLin.cpp.o
[ 6%] Building CXX object src/shogun/CMakeFiles/libshogun.dir/
/gpl/shogun/classifier/svm/SVMSGD.cpp.o
[ 6%] Building CXX object src/shogun/CMakeFiles/libshogun.dir//gpl/shogun/kernel/string/DistantSegmentsKernel.cpp.o
[ 6%] Building CXX object src/shogun/CMakeFiles/libshogun.dir/
/gpl/shogun/latent/LatentSOSVM.cpp.o
[ 6%] Building CXX object src/shogun/CMakeFiles/libshogun.dir//gpl/shogun/lib/external/gpdt.cpp.o
In file included from /home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/gpl/shogun/classifier/svm/SVMLin.cpp:11:0:
/home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/gpl/shogun/classifier/svm/SVMLin.h:97:16: error: ‘virtual bool shogun::SVMLin::train_machine(const std::shared_ptrshogun::DotFeatures&, const std::shared_ptrshogun::Labels&)’ marked ‘override’, but does not override
virtual bool train_machine(const std::shared_ptr& data,
^~~~~~~~~~~~~
In file included from /home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/gpl/shogun/classifier/FeatureBlockLogisticRegression.cpp:10:0:
/home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/gpl/shogun/classifier/FeatureBlockLogisticRegression.h:71:13: error: ‘float64_t shogun::FeatureBlockLogisticRegression::apply_one(const std::shared_ptrshogun::DotFeatures&, int32_t)’ marked ‘override’, but does not override
float64_t apply_one(const std::shared_ptr& features, int32_t vec_idx) override;
^~~~~~~~~
/home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/gpl/shogun/classifier/FeatureBlockLogisticRegression.h:104:8: error: ‘bool shogun::FeatureBlockLogisticRegression::train_machine(const std::shared_ptrshogun::DotFeatures&, const std::shared_ptrshogun::Labels&)’ marked ‘override’, but does not override
bool train_machine(const std::shared_ptr& data, const std::shared_ptr& labs) override;
^~~~~~~~~~~~~
/home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/gpl/shogun/classifier/svm/SVMLin.cpp: In member function ‘virtual bool shogun::SVMLin::train_machine(const std::shared_ptrshogun::DotFeatures&, const std::shared_ptrshogun::Labels&)’:
/home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/gpl/shogun/classifier/svm/SVMLin.cpp:54:37: warning: declaration of ‘features’ shadows a member of ‘shogun::SVMLin’ [-Wshadow]
const std::shared_ptr& labs)
^
In file included from /home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/gpl/shogun/classifier/svm/SVMLin.h:15:0,
from /home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/gpl/shogun/classifier/svm/SVMLin.cpp:11:
/home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/shogun/machine/LinearMachine.h:157:32: note: shadowed declaration is here
std::shared_ptr features;
^~~~~~~~
/home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/gpl/shogun/classifier/FeatureBlockLogisticRegression.cpp: In member function ‘bool shogun::FeatureBlockLogisticRegression::train_machine(const std::shared_ptrshogun::DotFeatures&, const std::shared_ptrshogun::Labels&)’:
/home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/gpl/shogun/classifier/FeatureBlockLogisticRegression.cpp:145:38: warning: declaration of ‘features’ shadows a member of ‘shogun::FeatureBlockLogisticRegression’ [-Wshadow]
const std::shared_ptr& labs)
^
In file included from /home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/gpl/shogun/classifier/FeatureBlockLogisticRegression.h:16:0,
from /home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/gpl/shogun/classifier/FeatureBlockLogisticRegression.cpp:10:
/home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/shogun/machine/LinearMachine.h:157:32: note: shadowed declaration is here
std::shared_ptr features;
^~~~~~~~
/home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/gpl/shogun/classifier/FeatureBlockLogisticRegression.cpp: In member function ‘float64_t shogun::FeatureBlockLogisticRegression::apply_one(const std::shared_ptrshogun::DotFeatures&, int32_t)’:
/home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/gpl/shogun/classifier/FeatureBlockLogisticRegression.cpp:228:17: warning: declaration of ‘features’ shadows a member of ‘shogun::FeatureBlockLogisticRegression’ [-Wshadow]
int32_t vec_idx)
^
In file included from /home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/gpl/shogun/classifier/FeatureBlockLogisticRegression.h:16:0,
from /home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/gpl/shogun/classifier/FeatureBlockLogisticRegression.cpp:10:
/home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/shogun/machine/LinearMachine.h:157:32: note: shadowed declaration is here
std::shared_ptr features;
^~~~~~~~
/home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/gpl/shogun/classifier/FeatureBlockLogisticRegression.cpp: In member function ‘virtual shogun::SGVector shogun::FeatureBlockLogisticRegression::apply_get_outputs(std::shared_ptrshogun::Features)’:
/home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/gpl/shogun/classifier/FeatureBlockLogisticRegression.cpp:236:13: warning: declaration of ‘features’ shadows a member of ‘shogun::FeatureBlockLogisticRegression’ [-Wshadow]
const auto features = data->as();
^~~~~~~~
In file included from /home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/gpl/shogun/classifier/FeatureBlockLogisticRegression.h:16:0,
from /home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/gpl/shogun/classifier/FeatureBlockLogisticRegression.cpp:10:
/home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/shogun/machine/LinearMachine.h:157:32: note: shadowed declaration is here
std::shared_ptr features;
^~~~~~~~
In file included from /home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/gpl/shogun/classifier/svm/SVMSGD.cpp:23:0:
/home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/gpl/shogun/classifier/svm/SVMSGD.h:138:8: error: ‘bool shogun::SVMSGD::train_machine(const std::shared_ptrshogun::DotFeatures&, const std::shared_ptrshogun::Labels&)’ marked ‘override’, but does not override
bool train_machine(const std::shared_ptr& data, const std::shared_ptr& labs) override;
^~~~~~~~~~~~~
src/shogun/CMakeFiles/libshogun.dir/build.make:16219: recipe for target 'src/shogun/CMakeFiles/libshogun.dir/
/gpl/shogun/classifier/svm/SVMLin.cpp.o' failed
make[2]: *** [src/shogun/CMakeFiles/libshogun.dir//gpl/shogun/classifier/svm/SVMLin.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
src/shogun/CMakeFiles/libshogun.dir/build.make:16147: recipe for target 'src/shogun/CMakeFiles/libshogun.dir/
/gpl/shogun/classifier/FeatureBlockLogisticRegression.cpp.o' failed
make[2]: *** [src/shogun/CMakeFiles/libshogun.dir//gpl/shogun/classifier/FeatureBlockLogisticRegression.cpp.o] Error 1
/home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/gpl/shogun/classifier/svm/SVMSGD.cpp: In member function ‘bool shogun::SVMSGD::train_machine(const std::shared_ptrshogun::DotFeatures&, const std::shared_ptrshogun::Labels&)’:
/home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/gpl/shogun/classifier/svm/SVMSGD.cpp:60:37: warning: declaration of ‘features’ shadows a member of ‘shogun::SVMSGD’ [-Wshadow]
const std::shared_ptr& labs)
^
In file included from /home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/gpl/shogun/classifier/svm/SVMSGD.h:28:0,
from /home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/gpl/shogun/classifier/svm/SVMSGD.cpp:23:
/home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/shogun/machine/LinearMachine.h:157:32: note: shadowed declaration is here
std::shared_ptr features;
^~~~~~~~
/home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/gpl/shogun/classifier/svm/SVMSGD.cpp:65:10: warning: unused variable ‘num_train_labels’ [-Wunused-variable]
int32_t num_train_labels = labels->get_num_labels();
^~~~~~~~~~~~~~~~
/home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/gpl/shogun/classifier/svm/SVMSGD.cpp: In member function ‘void shogun::SVMSGD::calibrate(const std::shared_ptrshogun::DotFeatures&)’:
/home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/gpl/shogun/classifier/svm/SVMSGD.cpp:140:68: warning: declaration of ‘features’ shadows a member of ‘shogun::SVMSGD’ [-Wshadow]
void SVMSGD::calibrate(const std::shared_ptr& features)
^
In file included from /home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/gpl/shogun/classifier/svm/SVMSGD.h:28:0,
from /home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/gpl/shogun/classifier/svm/SVMSGD.cpp:23:
/home/binder/experiments/2020/26092020_shogun/sep2020master/shogun-develop/src/shogun/machine/LinearMachine.h:157:32: note: shadowed declaration is here
std::shared_ptr features;
^~~~~~~~
src/shogun/CMakeFiles/libshogun.dir/build.make:16243: recipe for target 'src/shogun/CMakeFiles/libshogun.dir/
/gpl/shogun/classifier/svm/SVMSGD.cpp.o' failed
make[2]: *** [src/shogun/CMakeFiles/libshogun.dir/__/gpl/shogun/classifier/svm/SVMSGD.cpp.o] Error 1
CMakeFiles/Makefile2:174: recipe for target 'src/shogun/CMakeFiles/libshogun.dir/all' failed
make[1]: *** [src/shogun/CMakeFiles/libshogun.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

@karlnapf
Copy link
Member

Hi! Is this develop or master? The last release did not have shared pointers so it seems develop. The error appears to be due to some mixing of versions of the submodule and the develop branch. If that is not the case, could you post the commands used and the output of the cmake config script?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants