Bug 2163025 - internal compiler error: in eliminate_unnecessary_stmts, at tree-ssa-dce.cc:1512
Summary: internal compiler error: in eliminate_unnecessary_stmts, at tree-ssa-dce.cc:1512
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 38
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2097935
TreeView+ depends on / blocked
 
Reported: 2023-01-23 00:39 UTC by Thomas Moschny
Modified: 2024-05-21 14:26 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-05-21 14:26:10 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Thomas Moschny 2023-01-23 00:39:09 UTC
Building lxc-5.0.2 in current rawhide yields an ICE (https://koji.fedoraproject.org/koji/taskinfo?taskID=96541621):

*** WARNING *** there are active plugins, do not report this as a bug unless you can reproduce it without enabling any plugins.
Event                            | Plugins
PLUGIN_FINISH_UNIT               | annobin: Generate final annotations
PLUGIN_START_UNIT                | annobin: Generate global annotations
PLUGIN_ALL_PASSES_START          | annobin: Generate per-function annotations
PLUGIN_ALL_PASSES_END            | annobin: Register per-function end symbols
during GIMPLE pass: dce
../src/lxc/attach.c: In function ‘lxc_attach’:
../src/lxc/attach.c:1433:5: internal compiler error: in eliminate_unnecessary_stmts, at tree-ssa-dce.cc:1512
 1433 | int lxc_attach(struct lxc_container *container, lxc_attach_exec_t exec_function,
      |     ^
Please submit a full bug report, with preprocessed source.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
make: *** [/tmp/ccGHF4Wn.mk:8: /tmp/ccr1AcUS.ltrans2.ltrans.o] Error 1
make: *** Waiting for unfinished jobs....
lto-wrapper: fatal error: make returned 2 exit status
compilation terminated.
/usr/bin/ld.gold: fatal error: lto-wrapper failed
collect2: error: ld returned 1 exit status

Seems to happen on all archs.

Perhaps related to https://gcc.gnu.org/bugzilla//show_bug.cgi?id=108449 ?

Comment 1 Thomas Moschny 2023-01-23 00:41:13 UTC
SRPM is here https://thm.fedorapeople.org/lxc-5.0.2-1.fc38.src.rpm .

Comment 2 Jakub Jelinek 2023-01-23 16:52:35 UTC
The upstream PR has been fixed today, so I think it will be easiest to upgrade gcc in rawhide and retry.
I'll need to figure out what to do with PR106746 / PR108463 though.

Comment 3 Jakub Jelinek 2023-01-30 19:11:17 UTC
gcc-13.0.1-0.2.fc38 should have that fix in, can you please retry?

Comment 4 Thomas Moschny 2023-01-30 21:01:56 UTC
Doesn't seem to help: https://koji.fedoraproject.org/koji/taskinfo?taskID=96889566

Comment 5 Jakub Jelinek 2023-02-06 15:27:26 UTC
Could be also https://gcc.gnu.org/PR108656 , the package uses inline returns_twice functions and one not explicitly inline, but with early conditionals on it, so it could very well be IPA split.

Comment 6 Ben Cotton 2023-02-07 15:06:12 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle.
Changing version to 38.

Comment 7 Aoife Moloney 2024-05-07 15:55:51 UTC
This message is a reminder that Fedora Linux 38 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 38 on 2024-05-21.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '38'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 38 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 8 Aoife Moloney 2024-05-21 14:26:10 UTC
Fedora Linux 38 entered end-of-life (EOL) status on 2024-05-21.

Fedora Linux 38 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.