Bug 1349129 - Internal compiler error while compiling SWIG-generated code
Summary: Internal compiler error while compiling SWIG-generated code
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 24
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-22 18:33 UTC by Ben Webb
Modified: 2016-06-26 20:54 UTC (History)
5 users (show)

Fixed In Version: gcc-6.1.1-3.fc24
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-26 20:54:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Preprocessed source dumped by g++ (17.78 MB, text/x-csrc)
2016-06-22 18:33 UTC, Ben Webb
no flags Details

Description Ben Webb 2016-06-22 18:33:19 UTC
Created attachment 1171028 [details]
Preprocessed source dumped by g++

Description of problem:

g++ fails with an ICE while trying to compile some SWIG-generated wrapper code (preprocessed source attached). This is on latest patched Fedora 24.

Version-Release number of selected component (if applicable):
# gcc --version
gcc (GCC) 6.1.1 20160510 (Red Hat 6.1.1-2)


How reproducible:
Always.

Steps to Reproduce:
1. Download latest srpm from http://integrativemodeling.org/nightly/download/ (I used the .el6.src.rpm)

2. Rebuild with rpmbuild or mock

Actual results:
Compilation fails with output similar to the following:

/builddir/build/BUILD/imp-20160622.develop.8795f4a/build/src/algebra_swig/wrap.cpp: In function ‘PyObject* _wrap_DenseDoubleGrid3D_add_voxel(PyObject*, PyObject*)’:
/builddir/build/BUILD/imp-20160622.develop.8795f4a/build/src/algebra_swig/wrap.cpp:69846:33: internal compiler error: in assign_temp, at function.c:961
       result = (arg1)->add_voxel((IMP::algebra::ExtendedGridIndexD< 3 > const &)*arg2,(double const &)*arg3);
                ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/cccTsakr.out file, please attach this to your bugreport.


Expected results:
Compilation succeeds.

Additional info:
As requested by g++, preprocessed source is attached.

Comment 1 Marek Polacek 2016-06-23 11:16:54 UTC
This seems to be fixed on the trunk, but I'm trying to bisect this to a particular commit.  Unfortunately, the source code is humongous, so it's taking time.

Comment 2 Marek Polacek 2016-06-23 12:49:49 UTC
This was fixed in r236430.

Comment 3 Fedora Update System 2016-06-24 18:56:15 UTC
gcc-6.1.1-3.fc24 gcc-python-plugin-0.15-6.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-6db2423f35

Comment 4 Ben Webb 2016-06-24 19:38:42 UTC
Thanks for getting to this so quickly, and pinning it down to a precise commit (sorry, SWIG has a tendency to generate enormous wrapper files for C++ code). The updated package works fine for me, compiling our code without issues.

Comment 5 Fedora Update System 2016-06-26 00:27:07 UTC
gcc-6.1.1-3.fc24, gcc-python-plugin-0.15-6.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-6db2423f35

Comment 6 Fedora Update System 2016-06-26 20:54:16 UTC
gcc-6.1.1-3.fc24, gcc-python-plugin-0.15-6.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.