Bug 1349129

Summary: Internal compiler error while compiling SWIG-generated code
Product: [Fedora] Fedora Reporter: Ben Webb <benmwebb>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 24CC: davejohansen, jakub, jwakely, law, mpolacek
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: gcc-6.1.1-3.fc24 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-26 20:54:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Preprocessed source dumped by g++ none

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.