Bug 2169364

Summary: internal compiler error: in gimplify_var_or_parm_decl, at gimplify.cc:3058 compiling ceph
Product: [Fedora] Fedora Reporter: Kaleb KEITHLEY <kkeithle>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: aoliva, dmalcolm, fweimer, jakub, jlaw, jwakely, mcermak, mpolacek, msebor, nickc, sipoyare
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-04-24 12:04:16 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 output from compilation none

Description Kaleb KEITHLEY 2023-02-13 12:47:29 UTC
Description of problem:

see https://koji.fedoraproject.org/koji/taskinfo?taskID=97426819

gcc throws compiler error during compilation of ...ceph/src/rgw/driver/rados/rgw_sync_trace.cc in ceph snapshot from https://1.chacra.ceph.com/r/ceph/main/9754cafc029e1da83f5ddd4332b69066fe6b3ffb/centos/8/flavors/default/SRPMS/ceph-18.0.0-2148.g9754cafc.el8.src.rpm


Version-Release number of selected component (if applicable):

13.0.1-0.2.fc38

How reproducible:

See preprocessed output in the attachment

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Kaleb KEITHLEY 2023-02-13 12:55:30 UTC
Created attachment 1943849 [details]
preprocessed output from compilation

Comment 2 Siddhesh Poyarekar 2023-02-13 15:33:54 UTC
I made sure that this is not due to _FORTIFY_SOURCE=3 by replacing all __bdos calls with __bos.  It is reproducible by attempting to build the preprocessed source with:

gcc/cc1plus -quiet /tmp/ceph.ii -std=c++20 -fno-strict-aliasing -o /dev/null

on gcc trunk as of Feb 6th.  Most likely a c++ issue.

Comment 3 Marek Polacek 2023-02-13 15:47:11 UTC
(In reply to Siddhesh Poyarekar from comment #2)
> I made sure that this is not due to _FORTIFY_SOURCE=3 by replacing all
> __bdos calls with __bos.  It is reproducible by attempting to build the
> preprocessed source with:
> 
> gcc/cc1plus -quiet /tmp/ceph.ii -std=c++20 -fno-strict-aliasing -o /dev/null
> 
> on gcc trunk as of Feb 6th.  Most likely a c++ issue.

Yes, it was bisected to a C++ FE change.

Comment 4 Kaleb KEITHLEY 2023-03-13 18:08:14 UTC
Can confirm that the fix included in gcc-13.0.1-07 works and I have now successfully built ceph in koji. 

https://koji.fedoraproject.org/koji/taskinfo?taskID=98654634