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

Compilation error #4182

Closed
goldturtle opened this issue Feb 20, 2018 · 6 comments
Closed

Compilation error #4182

goldturtle opened this issue Feb 20, 2018 · 6 comments
Labels

Comments

@goldturtle
Copy link

I am using Ubuntu 16.04 and did the following:

git clone https://github.com/shogun-toolbox/shogun.git
cd shogun
git submodule update --init
mkdir build; cd build; cmake ..; make -j 8 ; make install

I got the following error:

[ 71%] Building CXX object src/shogun/CMakeFiles/libshogun.dir/base/class_list.cpp.o
In file included from /shogun/src/shogun/kernel/normalizer/KernelNormalizer.h:12:0,
from /shogun/src/shogun/transfer/multitask/MultitaskKernelMaskPairNormalizer.h:12,
from /shogun/build/src/shogun/base/class_list.cpp:62:
/shogun/src/shogun/kernel/Kernel.h: In member function 'float64_t shogun::CKernel::kernel(int32_t, int32_t)':
/shogun/src/shogun/kernel/Kernel.h:213:21: error: invalid use of incomplete type 'class shogun::CKernelNormalizer'
return normalizer->normalize(compute(idx_a, idx_b), idx_a, idx_b);
^
In file included from /shogun/src/shogun/kernel/normalizer/KernelNormalizer.h:12:0,
from /shogun/src/shogun/transfer/multitask/MultitaskKernelMaskPairNormalizer.h:12,
from /shogun/build/src/shogun/base/class_list.cpp:62:
/shogun/src/shogun/kernel/Kernel.h:35:8: note: forward declaration of 'class shogun::CKernelNormalizer'
class CKernelNormalizer;
^
src/shogun/CMakeFiles/libshogun.dir/build.make:17409: recipe for target 'src/shogun/CMakeFiles/libshogun.dir/base/class_list.cpp.o' failed
make[2]: *** [src/shogun/CMakeFiles/libshogun.dir/base/class_list.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:126: recipe for target 'src/shogun/CMakeFiles/libshogun.dir/all' failed
make[1]: *** [src/shogun/CMakeFiles/libshogun.dir/all] Error 2
Makefile:149: recipe for target 'all' failed

What should I do?
Michael.

@vigsterkr
Copy link
Member

@goldturtle in case you just want to use shogun out of box you can simply use the conda-forge package or the ppa from here: https://launchpad.net/~shogun-toolbox/+archive/ubuntu/stable

otherwise i'll try to reproduce this error but based on our buildbot 16.04 build should be working:
http://buildbot.shogun-toolbox.org:8080/#/builders/16

@goldturtle
Copy link
Author

Looks like this happened to other people too:

#2841

Reading the last comment, though, I wouldn't know how to change the include path in a proper way.

@vigsterkr
Copy link
Member

vigsterkr commented Feb 20, 2018 via email

@goldturtle
Copy link
Author

No. I'd like to compile it from scratch because I want to play around.

@stale
Copy link

stale bot commented Feb 26, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Feb 26, 2020
@gf712
Copy link
Member

gf712 commented Feb 26, 2020

I'm guessing this can be closed

@gf712 gf712 closed this as completed Feb 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants