jon--lee/neuralpy

Segmentation fault when building in Manjaro

Opened this issue · 0 comments

Cloned the repo and ran sudo python2 setup.py install, only for gcc to throw a segmentation fault.
Python 2.7.14
gcc (GCC) 7.2.0

Any ideas?

Here's my full traceback:

['neuralpy', 'neuralpy.layers', 'neuralpy.iterators']
running install
running bdist_egg
running egg_info
creating neuralpy.egg-info
writing requirements to neuralpy.egg-info/requires.txt
writing neuralpy.egg-info/PKG-INFO
writing top-level names to neuralpy.egg-info/top_level.txt
writing dependency_links to neuralpy.egg-info/dependency_links.txt
writing manifest file 'neuralpy.egg-info/SOURCES.txt'
reading manifest file 'neuralpy.egg-info/SOURCES.txt'
writing manifest file 'neuralpy.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/neuralpy
copying neuralpy/colors.py -> build/lib/neuralpy
copying neuralpy/costs.py -> build/lib/neuralpy
copying neuralpy/__init__.py -> build/lib/neuralpy
copying neuralpy/activations.py -> build/lib/neuralpy
copying neuralpy/data.py -> build/lib/neuralpy
copying neuralpy/neural2.py -> build/lib/neuralpy
creating build/lib/neuralpy/layers
copying neuralpy/layers/layer.py -> build/lib/neuralpy/layers
copying neuralpy/layers/mlp.py -> build/lib/neuralpy/layers
copying neuralpy/layers/__init__.py -> build/lib/neuralpy/layers
copying neuralpy/layers/input_.py -> build/lib/neuralpy/layers
creating build/lib/neuralpy/iterators
copying neuralpy/iterators/iterator.py -> build/lib/neuralpy/iterators
copying neuralpy/iterators/__init__.py -> build/lib/neuralpy/iterators
copying neuralpy/iterators/layer_iterator.py -> build/lib/neuralpy/iterators
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/neuralpy
creating build/bdist.linux-x86_64/egg/neuralpy/layers
copying build/lib/neuralpy/layers/layer.py -> build/bdist.linux-x86_64/egg/neuralpy/layers
copying build/lib/neuralpy/layers/mlp.py -> build/bdist.linux-x86_64/egg/neuralpy/layers
copying build/lib/neuralpy/layers/__init__.py -> build/bdist.linux-x86_64/egg/neuralpy/layers
copying build/lib/neuralpy/layers/input_.py -> build/bdist.linux-x86_64/egg/neuralpy/layers
copying build/lib/neuralpy/colors.py -> build/bdist.linux-x86_64/egg/neuralpy
copying build/lib/neuralpy/costs.py -> build/bdist.linux-x86_64/egg/neuralpy
copying build/lib/neuralpy/__init__.py -> build/bdist.linux-x86_64/egg/neuralpy
copying build/lib/neuralpy/activations.py -> build/bdist.linux-x86_64/egg/neuralpy
copying build/lib/neuralpy/data.py -> build/bdist.linux-x86_64/egg/neuralpy
copying build/lib/neuralpy/neural2.py -> build/bdist.linux-x86_64/egg/neuralpy
creating build/bdist.linux-x86_64/egg/neuralpy/iterators
copying build/lib/neuralpy/iterators/iterator.py -> build/bdist.linux-x86_64/egg/neuralpy/iterators
copying build/lib/neuralpy/iterators/__init__.py -> build/bdist.linux-x86_64/egg/neuralpy/iterators
copying build/lib/neuralpy/iterators/layer_iterator.py -> build/bdist.linux-x86_64/egg/neuralpy/iterators
byte-compiling build/bdist.linux-x86_64/egg/neuralpy/layers/layer.py to layer.pyc
byte-compiling build/bdist.linux-x86_64/egg/neuralpy/layers/mlp.py to mlp.pyc
byte-compiling build/bdist.linux-x86_64/egg/neuralpy/layers/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/neuralpy/layers/input_.py to input_.pyc
byte-compiling build/bdist.linux-x86_64/egg/neuralpy/colors.py to colors.pyc
byte-compiling build/bdist.linux-x86_64/egg/neuralpy/costs.py to costs.pyc
byte-compiling build/bdist.linux-x86_64/egg/neuralpy/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/neuralpy/activations.py to activations.pyc
byte-compiling build/bdist.linux-x86_64/egg/neuralpy/data.py to data.pyc
byte-compiling build/bdist.linux-x86_64/egg/neuralpy/neural2.py to neural2.pyc
byte-compiling build/bdist.linux-x86_64/egg/neuralpy/iterators/iterator.py to iterator.pyc
byte-compiling build/bdist.linux-x86_64/egg/neuralpy/iterators/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/neuralpy/iterators/layer_iterator.py to layer_iterator.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying neuralpy.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying neuralpy.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying neuralpy.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying neuralpy.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying neuralpy.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/neuralpy-1.3.0-py2.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing neuralpy-1.3.0-py2.7.egg
Removing /usr/lib/python2.7/site-packages/neuralpy-1.3.0-py2.7.egg
Copying neuralpy-1.3.0-py2.7.egg to /usr/lib/python2.7/site-packages
neuralpy 1.3.0 is already the active version in easy-install.pth

Installed /usr/lib/python2.7/site-packages/neuralpy-1.3.0-py2.7.egg
Processing dependencies for neuralpy==1.3.0
Searching for matplotlib==1.4.3
Reading https://pypi.python.org/simple/matplotlib/
Downloading https://pypi.python.org/packages/bb/ac/485df0ecb15aa6fec1991945dc0cabfeb724a64f6729e34bab3c6a766813/matplotlib-1.4.3.tar.gz#md5=86af2e3e3c61849ac7576a6f5ca44267
Best match: matplotlib 1.4.3
Processing matplotlib-1.4.3.tar.gz
Writing /tmp/easy_install-OfgvAD/matplotlib-1.4.3/setup.cfg
Running matplotlib-1.4.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-OfgvAD/matplotlib-1.4.3/egg-dist-tmp-OD2DOr
============================================================================
Edit setup.cfg to change the build options

BUILDING MATPLOTLIB
            matplotlib: yes [1.4.3]
                python: yes [2.7.14 (default, Sep 20 2017, 01:25:59)  [GCC
                        7.2.0]]
              platform: yes [linux2]

REQUIRED DEPENDENCIES AND EXTENSIONS
                 numpy: yes [version 1.9.2]
                   six: yes [using six version 1.11.0]
              dateutil: yes [using dateutil version 2.6.1]
                  pytz: yes [using pytz version 2017.2]
               tornado: yes [tornado was not found. It is required for the
                        WebAgg backend. pip/easy_install may attempt to
                        install it after matplotlib.]
             pyparsing: yes [using pyparsing version 2.2.0]
                 pycxx: yes [Couldn't import.  Using local copy.]
                libagg: yes [pkg-config information for 'libagg' could not
                        be found. Using local copy.]
              freetype: yes [version 2.8.1]
                   png: yes [version 1.6.34]
                 qhull: yes [pkg-config information for 'qhull' could not be
                        found. Using local copy.]

OPTIONAL SUBPACKAGES
           sample_data: yes [installing]
              toolkits: yes [installing]
                 tests: yes [using nose version 1.3.7 / using mock 2.0.0]
        toolkits_tests: yes [using nose version 1.3.7 / using mock 2.0.0]

OPTIONAL BACKEND EXTENSIONS
                macosx: no  [Mac OS-X only]
                qt5agg: no  [PyQt5 not found]
                qt4agg: no  [PyQt4 not found]
                pyside: no  [PySide not found]
               gtk3agg: yes [installing, version 3.24.22]
             gtk3cairo: yes [installing, version 3.24.22]
                gtkagg: yes [installing, Gtk: 2.24.31 pygtk: 2.24.0]
                 tkagg: no  [TKAgg requires Tkinter.]
/usr/lib64/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py:16629: UserWarning: wxPython/wxWidgets release number mismatch
  warnings.warn("wxPython/wxWidgets release number mismatch")
                 wxagg: yes [installing, version 3.0.2.0]
                   gtk: yes [installing, Gtk: 2.24.31 pygtk: 2.24.0]
                   agg: yes [installing]
                 cairo: yes [installing, pycairo version 1.13.3]
             windowing: no  [Microsoft Windows only]

OPTIONAL LATEX DEPENDENCIES
                dvipng: no
           ghostscript: yes [version 9.22]
                 latex: no
               pdftops: yes [version 0.60.1]

In file included from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1804:0,
                 from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                 from src/file_compat.h:7,
                 from src/ft2font.cpp:7:
/usr/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it by " \
  ^~~~~~~
In file included from src/ft2font.cpp:7:0:
src/file_compat.h:31:0: warning: "npy_fseek" redefined
     #define npy_fseek fseek
 
In file included from src/file_compat.h:6:0,
                 from src/ft2font.cpp:7:
/usr/lib/python2.7/site-packages/numpy/core/include/numpy/npy_common.h:127:0: note: this is the location of the previous definition
     #define npy_fseek fseeko
 
In file included from src/ft2font.cpp:7:0:
src/file_compat.h:32:0: warning: "npy_ftell" redefined
     #define npy_ftell ftell
 
In file included from src/file_compat.h:6:0,
                 from src/ft2font.cpp:7:
/usr/lib/python2.7/site-packages/numpy/core/include/numpy/npy_common.h:132:0: note: this is the location of the previous definition
     #define npy_ftell ftello
 
In file included from /usr/include/python2.7/Python.h:8:0,
                 from src/mplutils.h:18,
                 from src/mplutils.cpp:6:
/usr/include/python2.7/pyconfig.h:1193:0: warning: "_POSIX_C_SOURCE" redefined
 #define _POSIX_C_SOURCE 200112L
 
In file included from /usr/include/c++/7.2.0/x86_64-pc-linux-gnu/bits/os_defines.h:39:0,
                 from /usr/include/c++/7.2.0/x86_64-pc-linux-gnu/bits/c++config.h:533,
                 from /usr/include/c++/7.2.0/iostream:38,
                 from src/mplutils.cpp:3:
/usr/include/features.h:260:0: note: this is the location of the previous definition
 # define _POSIX_C_SOURCE 200809L
 
In file included from /usr/include/python2.7/Python.h:8:0,
                 from src/mplutils.h:18,
                 from src/mplutils.cpp:6:
/usr/include/python2.7/pyconfig.h:1215:0: warning: "_XOPEN_SOURCE" redefined
 #define _XOPEN_SOURCE 600
 
In file included from /usr/include/c++/7.2.0/x86_64-pc-linux-gnu/bits/os_defines.h:39:0,
                 from /usr/include/c++/7.2.0/x86_64-pc-linux-gnu/bits/c++config.h:533,
                 from /usr/include/c++/7.2.0/iostream:38,
                 from src/mplutils.cpp:3:
/usr/include/features.h:201:0: note: this is the location of the previous definition
 # define _XOPEN_SOURCE 700
 
In file included from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1804:0,
                 from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                 from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from src/_png.cpp:28:
/usr/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it by " \
  ^~~~~~~
In file included from src/_png.cpp:31:0:
src/file_compat.h:31:0: warning: "npy_fseek" redefined
     #define npy_fseek fseek
 
In file included from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:4:0,
                 from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                 from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from src/_png.cpp:28:
/usr/lib/python2.7/site-packages/numpy/core/include/numpy/npy_common.h:127:0: note: this is the location of the previous definition
     #define npy_fseek fseeko
 
In file included from src/_png.cpp:31:0:
src/file_compat.h:32:0: warning: "npy_ftell" redefined
     #define npy_ftell ftell
 
In file included from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:4:0,
                 from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                 from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from src/_png.cpp:28:
/usr/lib/python2.7/site-packages/numpy/core/include/numpy/npy_common.h:132:0: note: this is the location of the previous definition
     #define npy_ftell ftello
 
src/_png.cpp: In member function ‘Py::Object _png_module::write_png(const Py::Tuple&)’:
src/_png.cpp:103:12: internal compiler error: Segmentation fault
 Py::Object _png_module::write_png(const Py::Tuple& args)
            ^~~~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.archlinux.org/> for instructions.
error: Setup script exited with error: command 'gcc' failed with exit status 1