Error compiling SciPy for ARM

0

I am trying to compile the Python package, SciPy, to install it on a plate where I do not have a cross compiler; for this I am doing the compilation in a Beaglebone Black. I have installed the Numpy package using the sudo pip install numpy command, in addition I have also installed other packages and additional libraries required by SciPy (Cython, OpenBlas, Lapack, GFortran). I'm using version 3.6 of Python.

I have tried to compile SciPy in three ways, more or less similar. First I tried to generate the file .whl to pass it to the other board and install it directly, to generate this file I entered the command sudo pip wheel scipy==0.18.1 , after a while it gives an error and ends. The error message is as follows.

    arm-linux-gnueabihf-g++: internal compiler error: Killed (program cc1plus) Please Submit a full bug report, with preprocessed source if appropiate.
See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
error: Command "arm-linux-gnueabihf-g++ -Wno-unused-result _wsign-compare -DNDEBUG -g 
-fwrapv -O3 -Wall -fPIC -D_STDC_FORMAT_MACROS=1 -Iscipy/sparse/sparsetools 
-I/usr/lib/python3.6/site-packages/numpy/core/include -I/usr/include/python3.6m
-c scipy/sparse/sparse/tools/csr.cxx -o build/temp.linux-armv7l-3.6/scipy/sparse/sparsetools/csr.o
-MMD -MF build/temp.linux-armv7l-3.6/scipy/sparse/sparsetools/csr.o.d" failed with exit status 4

The second way in which I have tried it, has been downloading the SciPy sources and I have entered the sudo python setup.py dbist_wheel command but just like in the previous case, after a while it gives the same error and ends.

Finally I tried to follow the compilation and installation instructions that come in the SciPy documentation with the same results.

I have compiled other packages, including Numpy itself; in the same way to later install it on the other board, for this package do I need to do something else? Why is this error? Can I download the .whl for ARM somewhere?

Thank you very much in advance.

    
asked by Iñigo Monton 21.05.2018 в 08:02
source

1 answer

0

The problem was in the RAM, the beaglebone only has 512MB and reached a certain point in the compilation far exceeded that figure.

I have created a virtual RAM of 1 GB to have a total of 1'5GB and the compilation has concluded without problems. The compilation came to consume slightly more than 1 GB.

    
answered by 21.06.2018 в 16:34