Skip to content

Instantly share code, notes, and snippets.

@PirosB3
Created March 14, 2014 11:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PirosB3/9546152 to your computer and use it in GitHub Desktop.
Save PirosB3/9546152 to your computer and use it in GitHub Desktop.
danielpiros@monkey:~/docker/shared/shogun/build$ make _python_modular
[ 0%] Built target class_list
[ 0%] Built target Eigen3
[ 1%] Generating version header
[ 1%] Built target version
[ 2%] Built target JSON
[ 98%] Built target libshogun
[ 98%] Built target shogun
Scanning dependencies of target python_modular_src
[ 98%] copying SWIG files
[ 98%] Built target python_modular_src
[ 98%] Swig source
/Users/danielpiros/docker/shared/shogun/src/shogun/lib/SGVector.h:57: Warning 503: Can't wrap 'operator long long*' unless renamed to a valid identifier.
/Users/danielpiros/docker/shared/shogun/src/shogun/lib/SGVector.h:57: Warning 503: Can't wrap 'operator unsigned long long*' unless renamed to a valid identifier.
/Users/danielpiros/docker/shared/shogun/src/shogun/lib/SGVector.h:57: Warning 503: Can't wrap 'operator std::complex< double >*' unless renamed to a valid identifier.
Scanning dependencies of target _python_modular
[ 98%] Building CXX object src/interfaces/python_modular/CMakeFiles/_python_modular.dir/modshogunPYTHON_wrap.cxx.o
clang: warning: argument unused during compilation: '-I /Users/danielpiros/docker/shared/shogun/src'
clang: warning: argument unused during compilation: '-I /Users/danielpiros/docker/shared/shogun/src/shogun'
clang: warning: argument unused during compilation: '-I /Users/danielpiros/docker/shared/shogun/build/src'
clang: warning: argument unused during compilation: '-I /Users/danielpiros/docker/shared/shogun/build/src/shogun'
clang: warning: argument unused during compilation: '-I /System/Library/Frameworks/Python.framework/Headers'
clang: warning: argument unused during compilation: '-I /usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include'
clang: warning: argument unused during compilation: '-isystem /Users/danielpiros/docker/shared/shogun/third_party/include/eigen'
clang: warning: argument unused during compilation: '-I /usr/local/include'
clang: warning: argument unused during compilation: '-I /Users/danielpiros/docker/shared/shogun/third_party/include/json/json-c'
clang: warning: argument unused during compilation: '-I /usr/include/libxml2'
/Users/danielpiros/docker/shared/shogun/build/src/interfaces/python_modular/modshogunPYTHON_wrap.cxx:1473:25: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
if (((obj)->ob_type == &PyClass_Type)) {
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/Users/danielpiros/docker/shared/shogun/build/src/interfaces/python_modular/modshogunPYTHON_wrap.cxx:1473:25: note: remove extraneous parentheses around the comparison to silence this warning
if (((obj)->ob_type == &PyClass_Type)) {
~ ^ ~
/Users/danielpiros/docker/shared/shogun/build/src/interfaces/python_modular/modshogunPYTHON_wrap.cxx:1473:25: note: use '=' to turn this equality comparison into an assignment
if (((obj)->ob_type == &PyClass_Type)) {
^~
=
/Users/danielpiros/docker/shared/shogun/build/src/interfaces/python_modular/modshogunPYTHON_wrap.cxx:6205:26: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
if (((py_obj)->ob_type == &PyInstance_Type)) return "instance";
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/Users/danielpiros/docker/shared/shogun/build/src/interfaces/python_modular/modshogunPYTHON_wrap.cxx:6205:26: note: remove extraneous parentheses around the comparison to silence this warning
if (((py_obj)->ob_type == &PyInstance_Type)) return "instance";
~ ^ ~
/Users/danielpiros/docker/shared/shogun/build/src/interfaces/python_modular/modshogunPYTHON_wrap.cxx:6205:26: note: use '=' to turn this equality comparison into an assignment
if (((py_obj)->ob_type == &PyInstance_Type)) return "instance";
^~
=
/Users/danielpiros/docker/shared/shogun/build/src/interfaces/python_modular/modshogunPYTHON_wrap.cxx:10004:38: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
if (((((PyObject*)(item))->ob_type) == &PySlice_Type))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/Users/danielpiros/docker/shared/shogun/build/src/interfaces/python_modular/modshogunPYTHON_wrap.cxx:10004:38: note: remove extraneous parentheses around the comparison to silence this warning
if (((((PyObject*)(item))->ob_type) == &PySlice_Type))
~ ^ ~
/Users/danielpiros/docker/shared/shogun/build/src/interfaces/python_modular/modshogunPYTHON_wrap.cxx:10004:38: note: use '=' to turn this equality comparison into an assignment
if (((((PyObject*)(item))->ob_type) == &PySlice_Type))
^~
=
/Users/danielpiros/docker/shared/shogun/build/src/interfaces/python_modular/modshogunPYTHON_wrap.cxx:23889:42: error: cannot initialize a parameter of type 'struct dirent *' with an rvalue of type 'const dirent *'
result = (int)shogun::SGIO::filter((dirent const *)arg1);
^~~~~~~~~~~~~~~~~~~~
/Users/danielpiros/docker/shared/shogun/src/shogun/io/SGIO.h:478:36: note: passing argument to parameter 'd' here
static int filter(struct dirent* d);
^
3 warnings and 1 error generated.
make[3]: *** [src/interfaces/python_modular/CMakeFiles/_python_modular.dir/modshogunPYTHON_wrap.cxx.o] Error 1
make[2]: *** [src/interfaces/python_modular/CMakeFiles/_python_modular.dir/all] Error 2
make[1]: *** [src/interfaces/python_modular/CMakeFiles/_python_modular.dir/rule] Error 2
make: *** [_python_modular] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment