Bug 1816760

Summary: Internal compiler error on i686
Product: [Fedora] Fedora Reporter: Jaroslav Škarvada <jskarvad>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: aoliva, dmalcolm, fweimer, jakub, jwakely, law, mpolacek, msebor, nickc, sipoyare
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard:
Fixed In Version: gcc-10.0.1-0.11.fc32 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-01 16:33:48 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 file none

Description Jaroslav Škarvada 2020-03-24 16:34:02 UTC
Created attachment 1673170 [details]
Preprocessed file

Description of problem:
Internal compiler error on i686 when recompiling gnuradio-3.8.0.0-7.fc33.

Version-Release number of selected component (if applicable):
gcc-10.0.1-0.9.fc33

How reproducible:
Always

Steps to Reproduce:
1. fedpkg co gnuradio
2. cd gnuradio
3. fedpkg local

Actual results:
/builddir/build/BUILD/gnuradio-3.8.0.0/volk/kernels/volk/volk_32f_x2_dot_prod_32f.h:400:1: internal compiler error: in final_scan_insn_1, at final.c:3073
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
{standard input}: Assembler messages:
{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
Preprocessed source stored into /tmp/ccmkK3oA.out file, please attach this to your bugreport.


Expected results:
No internal compiler error

Additional info:
Reproduced 100% on different i686 machines.

Comment 1 Jakub Jelinek 2020-03-24 17:59:22 UTC
Reduced testcase -O2 -mfpmath=sse -mstackrealign -mavx2 -mfma:
#include <x86intrin.h>

void
foo (float *x, const float *y, const float *z, unsigned int w)
{
  unsigned int a;
  const unsigned int b = w / 8;
  const float *c = y;
  const float *d = z;
  __m256 e = _mm256_setzero_ps ();
  __m256 f, g;
  for (a = 0; a < b; a++)
    {
      f = _mm256_loadu_ps (c);
      g = _mm256_loadu_ps (d);
      c += 8;
      d += 8;
      e = _mm256_fmadd_ps (f, g, e);
    }
  __attribute__ ((aligned (32))) float h[8];
  _mm256_storeu_ps (h, e);
  _mm256_zeroupper ();
  float i = h[0] + h[1] + h[2] + h[3] + h[4] + h[5] + h[6] + h[7];
  for (a = b * 8; a < w; a++)
    i += (*c++) * (*d++);
  *x = i;
}

Comment 2 Fedora Update System 2020-03-26 10:23:38 UTC
FEDORA-2020-a5307273dd has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-a5307273dd

Comment 3 Fedora Update System 2020-03-27 15:57:58 UTC
FEDORA-2020-a5307273dd has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-a5307273dd`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-a5307273dd

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2020-03-30 11:10:07 UTC
FEDORA-2020-b2de059578 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-b2de059578

Comment 5 Fedora Update System 2020-03-31 01:52:07 UTC
FEDORA-2020-b2de059578 has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-b2de059578`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-b2de059578

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2020-04-01 16:33:48 UTC
FEDORA-2020-b2de059578 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.