Package Details: python-scipy-mkl 1.3.1-1

Git Clone URL: https://aur.archlinux.org/python-scipy-mkl.git (read-only)
Package Base: python-scipy-mkl
Description: SciPy is open-source software for mathematics, science, and engineering.
Upstream URL: http://www.scipy.org/
Licenses: BSD
Conflicts: python-scipy
Provides: python-scipy=1.3.1
Submitter: bred
Maintainer: petronny
Last Packager: petronny
Votes: 27
Popularity: 0.028897
First Submitted: 2012-09-06 19:34
Last Updated: 2019-08-15 13:08

Required by (309)

Sources (2)

Pinned Comments

petronny commented on 2019-06-26 08:47

Prebuilt binaries of this package can be found in arch4edu.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

bred commented on 2017-11-07 19:26

Now it works also with icc.
Thanks to all for the suggestions and the PKGBUILD !!!


gwaterst commented on 2017-11-07 09:42

I can confirm the hack of invik is working. The problem appears to be that the C sources need the set environment variable while compiling the C++ sources with the set environment variables returns an error.

I have outsourced the ever-repeating builds into a shell script that make it possible to build the package with a single makepkg command.

I'll send this version the the package maintainer.

invik commented on 2017-11-05 19:18

There is a very dumb hack to get the package to compile with the 2018 Intel compiler (the one with the _Float128 error): loop-compile 8 or 10 times (sorry, lost count), one prepending the '__INTEL_PRE_CFLAGS="$__INTEL_PRE_CFLAGS -D_Float128=__float128"' variable, one without. I.e.:

__INTEL_PRE_CFLAGS=" -D_Float128=__float128" python3 setup.py config --compiler=intelem --fcompiler=intelem build_clib --compiler=intelem --fcompiler=intelem build_ext --compiler=intelem --fcompiler=intelem
python3 setup.py config --compiler=intelem --fcompiler=intelem build_clib --compiler=intelem --fcompiler=intelem build_ext --compiler=intelem --fcompiler=intelem
[repeat these two another 4 times, to be sure, and it should be ready for packaging]

In other words: try compiling setting the __INTEL_PRE_CFLAGS, and as soon as it fails, launch compilation WITHOUT setting the environment variable. It will continue from where the first try failed, and so on, until it gets it done.

By the way: there is also a bug in the "package_python*-scipy-mkl()" functions in the PKGBUILD. Where it says:

python* setup.py config_fc --fcompiler=intel install --prefix=/usr --root=${pkgdir} --optimize=1

It should be "--fcompiler=intelem". It needs to be corrected, or else the packaging will fail.


You can find a fully working PKGBUILD here: https://pastebin.com/ncpPC1xY

bred commented on 2017-11-05 12:15

Added 1.0

Unfortunately the fix for the _Float128 error does not works with scipy.
So at the moment the solutions seems to compile with gcc (edit PKGBUILD) or downgrade the glibc.


gwaterst commented on 2017-10-09 20:52

For numpy adding

export __INTEL_PRE_CFLAGS="$__INTEL_PRE_CFLAGS -D_Float128=__float128"

to the PKGBUILD solved the _Float128 error.
(compare https://aur.archlinux.org/packages/python-numpy-mkl/)

Here the build process quits at a later stage with the same error, so I wonder if the FLAG is overridden somewhere?

arvidsaur commented on 2017-10-04 07:56

Hello,
I get the following error when trying to install this pkg:
/usr/include/bits/floatn.h(73): error: invalid combination of type specifiers
typedef __float128 _Float128;

I am guessing this has something to do with this: https://software.intel.com/en-us/forums/intel-c-compiler/topic/742701

The full error: https://pastebin.com/L1GEKwWq

Anyone got any ideas what I can do to solve this?

tsumina commented on 2017-01-20 07:10

Install recently and got ifort warnings. My icc and ifort also use a AUR make version.

ifort: command line remark #10148: option '-w90' not supported
ifort: command line remark #10148: option '-w95' not supported
ifort: command line remark #10411: option '-openmp' is deprecated and will be removed in a future release. Please use the replacement option '-qopenmp'

I know this warnings are not problems and should be fixed easily :)

invik commented on 2016-10-16 11:09

No site.cfg file included in this package: I had to copy over the site.cfg from python-numpy-mkl to be able to compile with mkl support.

analca3 commented on 2016-03-26 16:11

@white1033 I had the same problem, edit PKGBUILD with --fcompiler=intelem if you use 64bit and --fcompiler=intel if you use 32bit.
@trovao thanks for updating the PKGBUILD :)

trovao commented on 2016-02-25 12:39

@bred
scipy 0.17 has been released. Would you be so kind and and update the PKGBUILD? Thanks.

I've built mine by changing the following variables:

pkgver=0.17.0
source=("https://github.com/scipy/scipy/releases/download/v${pkgver}/scipy-${pkgver}.tar.xz" )
md5sums=('ef0949640ee73f845dde6dd7f84d7691')