Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1063999

Summary: internal compiler error: in rs6000_secondary_reload_fail, at config/rs6000/rs6000.c:15222
Product: Red Hat Enterprise Linux 7 Reporter: Orion Poplawski <orion>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED CURRENTRELEASE QA Contact: qe-baseos-tools-bugs
Severity: high Docs Contact:
Priority: high    
Version: 7.0CC: law, mfranc, mnewsome, mpolacek, orion
Target Milestone: rc   
Target Release: ---   
Hardware: ppc64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-31 18:30:01 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:
Bug Depends On:    
Bug Blocks: 1110700, 1191021, 1205796    

Description Orion Poplawski 2014-02-11 18:26:05 UTC
Description of problem:

Trying to compile eigen3 for EPEL7/ppc64 I get:

/usr/bin/c++   -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches  -m64 -mcpu=power7 -mtune=power7  -fexceptions -pedantic -Wall -Wextra -Wundef -Wcast-align -Wchar-subscripts -Wnon-virtual-dtor -Wunused-local-typedefs -Wpointer-arith -Wwrite-strings -Wformat-security -Wno-psabi -Wno-variadic-macros -Wno-long-long -fno-check-new -fno-common -fstrict-aliasing -ansi  -g2 -g0 -O2  -fno-inline-functions   -Wl,-z,relro  CMakeFiles/product_mmtr_4.dir/product_mmtr.cpp.o  -o product_mmtr_4 -rdynamic 
/usr/bin/c++   -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches  -m64 -mcpu=power7 -mtune=power7  -fexceptions -pedantic -Wall -Wextra -Wundef -Wcast-align -Wchar-subscripts -Wnon-virtual-dtor -Wunused-local-typedefs -Wpointer-arith -Wwrite-strings -Wformat-security -Wno-psabi -Wno-variadic-macros -Wno-long-long -fno-check-new -fno-common -fstrict-aliasing -ansi  -g2 -g0 -O2  -fno-inline-functions   -Wl,-z,relro  CMakeFiles/mapstaticmethods_6.dir/mapstaticmethods.cpp.o  -o mapstaticmethods_6 -rdynamic 
rs6000_secondary_reload_inner:15249, type = load
(parallel [
        (set (reg:V4SI 77 0)
            (reg:V4SI 32 0))
        (clobber (reg:DI 3 3))
    ])
/builddir/build/BUILD/eigen-eigen-ffa86ffb5570/test/product_extra.cpp: In function 'void product_extra(const MatrixType&) [with MatrixType = Eigen::Matrix<std::complex<float>, -1, -1>]':
/builddir/build/BUILD/eigen-eigen-ffa86ffb5570/test/product_extra.cpp:101:1: internal compiler error: in rs6000_secondary_reload_fail, at config/rs6000/rs6000.c:15222
 }
 ^

http://koji.fedoraproject.org/koji/taskinfo?taskID=6518273

Version-Release number of selected component (if applicable):
4.8.2-3.el7

Comment 1 Orion Poplawski 2014-02-11 18:38:42 UTC
Possibly related?
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57936

Comment 3 Jakub Jelinek 2014-03-11 11:07:10 UTC
I suppose -mno-vsx and/or -mno-altivec could work around this.

Comment 4 Orion Poplawski 2014-03-11 18:27:54 UTC
-mno-vsx appears to work, thanks.  Although I suspect that this will make for a significant performance hit on a matrix manipulation library.

Comment 8 Marek Polacek 2014-09-16 11:47:03 UTC
I've just tried this on a ppc64 box, using gcc-4.8.3-6.el7.ppc64.  I removed the -mno-vsx line from the spec file, and eigen3 seems to build fine, including the testsuite.  The .cpp file that we previously ICEd on seems to be compiled correctly now:

/usr/bin/c++   -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mcpu=power7 -mtune=power7  -fexceptions -pedantic -Wall -Wextra -Wundef -Wcast-align -Wchar-subscripts -Wnon-virtual-dtor -Wunused-local-typedefs -Wpointer-arith -Wwrite-strings -Wformat-security -Wno-psabi -Wno-variadic-macros -Wno-long-long -fno-check-new -fno-common -fstrict-aliasing -ansi  -g2 -g0 -O2  -fno-inline-functions   -Wl,-z,relro  CMakeFiles/mapstaticmethods_6.dir/mapstaticmethods.cpp.o  -o mapstaticmethods_6 -rdynamic
make[3]: Leaving directory `/root/rpmbuild/BUILD/eigen-eigen-6b38706d90a9/ppc64-redhat-linux-gnu'
/usr/bin/cmake -E cmake_progress_report /root/rpmbuild/BUILD/eigen-eigen-6b38706d90a9/ppc64-redhat-linux-gnu/CMakeFiles
[ 22%] Built target mapstaticmethods_6

So, can you try to build eigen3 with newer gcc, please?

Comment 9 Orion Poplawski 2014-09-17 03:33:54 UTC
The EPEL builders still have gcc-4.8.2-16.2.el7_0.  Is this an update somewhere?

Comment 10 Marek Polacek 2014-09-18 11:56:49 UTC
You could either build eigen3 locally (in mock) with a new gcc (I hope I could upload the rpms somewhere for you), or just wait until RHEL7.1 is released - then the EPEL builders should be updated, though I'm not sure about EPEL builders at all.