Bug 1740539

Summary: internal compiler error: in build_int_cst_wide, at tree.c:1210
Product: Red Hat Enterprise Linux 7 Reporter: Susi Lehtola <susi.lehtola>
Component: gccAssignee: Marek Polacek <mpolacek>
Status: CLOSED ERRATA QA Contact: Alexandra Petlanová Hájková <ahajkova>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.7CC: bugproxy, dhorak, fnovak, fweimer, hannsj_uhl, jakub, law, ohudlick
Target Milestone: rcKeywords: Patch
Target Release: 7.9   
Hardware: ppc64le   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-29 19:55:25 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: 1729246, 1782203    
Attachments:
Description Flags
root.log
none
build.log
none
Preprocessed source from upstream, https://github.com/xianyi/OpenBLAS/issues/2254#issuecomment-530891558 none

Description Susi Lehtola 2019-08-13 08:47:17 UTC
Created attachment 1603249 [details]
root.log

The EPEL7 build of openblas-0.3.7-1 fails with an internal compiler error on the ppc64le architecture. I don't have access to a ppc64le machine, so I can't supply the preprocessed source. The error should be readily reproducible from the srpm.

koji build logs attached.

Comment 2 Susi Lehtola 2019-08-13 08:47:41 UTC
Created attachment 1603250 [details]
build.log

Comment 3 Susi Lehtola 2019-08-13 08:48:09 UTC
original koji build at https://koji.fedoraproject.org/koji/taskinfo?taskID=36953437

Comment 4 Susi Lehtola 2019-09-12 17:04:23 UTC
Created attachment 1614604 [details]
Preprocessed source from upstream, https://github.com/xianyi/OpenBLAS/issues/2254#issuecomment-530891558

While I don't have access to the hardware, upstream has produced a preprocessed source.

Comment 6 IBM Bug Proxy 2019-09-24 18:50:20 UTC
------- Comment From wschmidt.com 2019-09-24 14:45 EDT-------
*** Bug 181567 has been marked as a duplicate of this bug. ***

Comment 7 Jakub Jelinek 2019-09-24 18:51:11 UTC
Reduced testcase for -O2 -mvsx -mcpu=power8:
typedef __attribute__((altivec(vector__))) unsigned int V;
void foo (V *p)
{
  register V a = {4,4,4,4};
  register V b = a << 1;
  b = b << 1;
  *p = b;
}

I believe this has been fixed upstream with r198772 aka https://gcc.gnu.org/ml/gcc-patches/2013-05/msg00378.html

Comment 8 IBM Bug Proxy 2019-09-24 19:30:24 UTC
------- Comment From edelsohn.com 2019-09-24 15:29 EDT-------
There appears to be one bug that already has been fixed, and the patch should be considered for GCC 4.8.5 RH.

The OpenBLAS community uncovered a separate bug that reproduces in GCC 8.3 and is resolved with the same work-around that the OpenBLAS community applied for the first bug. I have asked the OpenBLAS community to create a reduced testcase and open an issue in GCC Bugzilla for the second issue.

Comment 12 Marek Polacek 2020-03-24 17:50:56 UTC
Patch commmitted.

Comment 17 errata-xmlrpc 2020-09-29 19:55:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (gcc bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:3926