https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82492

            Bug ID: 82492
           Summary: ICE Segmentation fault
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gcc at lanrules dot de
  Target Milestone: ---

Created attachment 42328
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42328&action=edit
gcc stderr

I build a python package, matplotlib 1.4.3, obtainable at
https://github.com/matplotlib/matplotlib/archive/v1.4.3.tar.gz

The call to `python2 setup.py build` in the extracted directory leads to this
call:

gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe
-fstack-protector-strong -fno-plt -DNDEBUG -march=x86-64 -mtune=generic -O2
-pipe -fstack-protector-strong -fno-plt -fPIC
-PY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib__png_ARRAY_API -DPYCXX_ISO_CPP_LIB=1
-I/usr/lib/python2.7/site-packages/numpy/core/include
-I/usr/lib/python2.7/site-packages/numpy/core/include -I/usr/include/libpng16
-I/usr/local/include -I/usr/include -I. -Iextern -I/usr/include/python2.7 -c
src/_png.cpp -o build/temp.linux-x86_64-2.7/src/_png.o

This call leads to the output:
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 find the full output (with -v -save-temps) attached, as well as the
corresponding .ii file.

Reply via email to