Package Details: shogun 4.0.0-2

Git Clone URL: https://aur.archlinux.org/shogun.git (read-only)
Package Base: shogun
Description: Shogun - A Large Scale Machine Learning Toolbox with the python interface
Upstream URL: http://www.shogun-toolbox.org
Licenses: GPLv3
Submitter: None
Maintainer: qwertzdenek
Last Packager: qwertzdenek
Votes: 4
Popularity: 0.056115
First Submitted: 2012-06-11 12:54
Last Updated: 2015-12-08 12:33

Latest Comments

qwertzdenek commented on 2015-12-08 12:38

Fixed in SWIG-git. Rebuild both.

qwertzdenek commented on 2015-11-10 12:53

No idea. Reported to upstream. https://github.com/shogun-toolbox/shogun/issues/2930

lan commented on 2015-11-10 09:12

Does not compile for me either.
Any fix for this?

aexl commented on 2015-10-14 17:14

It does not compile for me, i get the following error:
/home/aexl/builds/shogun/src/shogun-4.0.0/build/src/interfaces/python_modular/modshogunPYTHON_wrap.cxx:679604:1: error: too many initializers for ‘PyMappingMethods’
/home/aexl/builds/shogun/src/shogun-4.0.0/build/src/interfaces/python_modular/modshogunPYTHON_wrap.cxx:679604:1: error: invalid conversion from ‘binaryfunc {aka _object* (*)(_object*, _object*)}’ to ‘unaryfunc {aka _object* (*)(_object*)}’ [-fpermissive]
/home/aexl/builds/shogun/src/shogun-4.0.0/build/src/interfaces/python_modular/modshogunPYTHON_wrap.cxx:679604:1: error: invalid conversion from ‘binaryfunc {aka _object* (*)(_object*, _object*)}’ to ‘unaryfunc {aka _object* (*)(_object*)}’ [-fpermissive]
/home/aexl/builds/shogun/src/shogun-4.0.0/build/src/interfaces/python_modular/modshogunPYTHON_wrap.cxx:679604:1: error: invalid conversion from ‘binaryfunc {aka _object* (*)(_object*, _object*)}’ to ‘unaryfunc {aka _object* (*)(_object*)}’ [-fpermissive]
/home/aexl/builds/shogun/src/shogun-4.0.0/build/src/interfaces/python_modular/modshogunPYTHON_wrap.cxx:679604:1: error: invalid conversion from ‘lenfunc {aka long int (*)(_object*)}’ to ‘binaryfunc {aka _object* (*)(_object*, _object*)}’ [-fpermissive]
/home/aexl/builds/shogun/src/shogun-4.0.0/build/src/interfaces/python_modular/modshogunPYTHON_wrap.cxx:679604:1: error: invalid conversion from ‘objobjargproc {aka int (*)(_object*, _object*, _object*)}’ to ‘binaryfunc {aka _object* (*)(_object*, _object*)}’ [-fpermissive]
/home/aexl/builds/shogun/src/shogun-4.0.0/build/src/interfaces/python_modular/modshogunPYTHON_wrap.cxx:679604:1: error: invalid conversion from ‘ssizeargfunc {aka _object* (*)(_object*, long int)}’ to ‘objobjargproc {aka int (*)(_object*, _object*, _object*)}’ [-fpermissive]
/home/aexl/builds/shogun/src/shogun-4.0.0/build/src/interfaces/python_modular/modshogunPYTHON_wrap.cxx:679604:1: error: invalid conversion from ‘getbufferproc {aka int (*)(_object*, bufferinfo*, int)}’ to ‘lenfunc {aka long int (*)(_object*)}’ [-fpermissive]
/home/aexl/builds/shogun/src/shogun-4.0.0/build/src/interfaces/python_modular/modshogunPYTHON_wrap.cxx:679604:1: error: invalid conversion from ‘releasebufferproc {aka void (*)(_object*, bufferinfo*)}’ to ‘binaryfunc {aka _object* (*)(_object*, _object*)}’ [-fpermissive]
/home/aexl/builds/shogun/src/shogun-4.0.0/build/src/interfaces/python_modular/modshogunPYTHON_wrap.cxx:679604:1: error: cannot convert ‘PyObject* {aka _object*}’ to ‘getbufferproc {aka int (*)(_object*, bufferinfo*, int)}’ in initialization
/home/aexl/builds/shogun/src/shogun-4.0.0/build/src/interfaces/python_modular/modshogunPYTHON_wrap.cxx:679604:1: error: cannot convert ‘PyObject* {aka _object*}’ to ‘releasebufferproc {aka void (*)(_object*, bufferinfo*)}’ in initialization
cc1plus: warning: unrecognized command line option ‘-Wno-c++11-narrowing’
src/interfaces/python_modular/CMakeFiles/_python_modular.dir/build.make:322: recipe for target 'src/interfaces/python_modular/CMakeFiles/_python_modular.dir/modshogunPYTHON_wrap.cxx.o' failed
make[2]: *** [src/interfaces/python_modular/CMakeFiles/_python_modular.dir/modshogunPYTHON_wrap.cxx.o] Error 1
CMakeFiles/Makefile2:87: recipe for target 'src/interfaces/python_modular/CMakeFiles/_python_modular.dir/all' failed
make[1]: *** [src/interfaces/python_modular/CMakeFiles/_python_modular.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in package().
Aborting...

Is is possible, that something must be changed to be able to compile it with gcc 5?

qwertzdenek commented on 2015-02-12 17:20

Updated PKGBUILD for the new version. I added just python interface for start.

aurelien commented on 2014-06-05 15:26

And modify:

package() {
cd "${srcdir}/${pkgname}-${pkgver}/src"
make DESTDIR="$pkgdir/" .r-install.sh

aurelien commented on 2014-06-05 15:09

Here is last PKGBUILD

# Contributor (Arch) : Fabian Yamaguchi <fabian.yamaguchi@cs.uni-goettingen.de>
# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp>

# Based on shogun-git package by
# Alex Babescu <alex.babescu@gmail.com>

pkgname=shogun
pkgver=3.2.0
pkgrel=1
pkgdesc="Shogun - A Large Scale Machine Learning Toolbox"
arch=('i686' 'x86_64')
url="http://www.shogun-toolbox.org"
license=('GPLv3')
depends=('python2' 'python2-numpy' 'swig' 'hdf5' 'blas' 'lapack')
makedepends=('git' 'python2' 'lzo2' 'glpk' 'gcc' 'make' 'pkg-config' 'libxml2')
optdepends=('atlas-lapack' 'octave' 'doxygen' 'r')
provides=('shogun')
source=("http://shogun-toolbox.org/archives/shogun/releases/3.2/sources/shogun-3.2.0.tar.bz2")

build() {
cd "${srcdir}/${pkgname}-${pkgver}"
# msg "Starting make..."

# python2 fix
# sed -i 's/PYTHON=python/PYTHON=python2/g' src/configure
# sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
# -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
# $(find ./ -name '*.py')

# cd src
# ./configure --prefix=/usr
# make
}

package() {
cd "${srcdir}/${pkgname}-${pkgver}/src"
make DESTDIR="$pkgdir/" install
}