Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 806482 - <sys-devel/gcc-11.2.1_p20211127: ICE when compiling sys-libs/libstdc++-v3-3.3.6-r4 (.../cdefs.h:1: internal compiler error:<snip> Segmentation fault)
Summary: <sys-devel/gcc-11.2.1_p20211127: ICE when compiling sys-libs/libstdc++-v3-3.3...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: https://gcc.gnu.org/bugzilla/show_bug...
Whiteboard: ICE in GCC 11; fixed in 11.2.1_p20211127
Keywords:
Depends on: 833357
Blocks: gcc-11
  Show dependency tree
 
Reported: 2021-08-05 07:04 UTC by Toralf Förster
Modified: 2022-05-11 01:51 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.16 KB, text/plain)
2021-08-05 07:04 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,102.36 KB, text/plain)
2021-08-05 07:04 UTC, Toralf Förster
Details
environment (environment,69.94 KB, text/plain)
2021-08-05 07:04 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,17.45 KB, application/x-bzip)
2021-08-05 07:04 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,7.42 KB, application/x-bzip)
2021-08-05 07:04 UTC, Toralf Förster
Details
sys-libs:libstdc++-v3-3.3.6-r4:20210805-062813.log (sys-libs:libstdc++-v3-3.3.6-r4:20210805-062813.log,29.50 KB, text/plain)
2021-08-05 07:04 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,25.37 KB, application/x-bzip)
2021-08-05 07:04 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-08-05 07:04:26 UTC
                 from /usr/include/sys/types.h:25,
                 from /var/tmp/portage/sys-libs/libstdc++-v3-3.3.6-r4/work/gcc-3.3.6/libiberty/cplus-dem.c:48:
/usr/include/sys/cdefs.h:1: internal compiler error: Segmentation fault
    1 | /* Copyright (C) 1992-2021 Free Software Foundation, Inc.
      | 
In file included from /usr/include/features.h:488,
                 from /usr/include/bits/libc-header-start.h:33,

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-j3-20210804-131442

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.0 *
clang version 12.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
/usr/lib/llvm/12
12.0.1
Python 3.9.6
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.53.0 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK JRE 8.292_p10 [openjdk-jre-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-jre-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
  [1]   php7.3
  [2]   php7.4
  [3]   php8.0 *

  HEAD of ::gentoo
commit d4a75c4650d322b56e261e3d85fdbf4af40ec4f9
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Aug 5 05:07:24 2021 +0000

    2021-08-05 05:07:22 UTC

emerge -qpvO sys-libs/libstdc++-v3
[ebuild  N    ] sys-libs/libstdc++-v3-3.3.6-r4  USE="multilib nls"
Comment 1 Toralf Förster gentoo-dev 2021-08-05 07:04:27 UTC
Created attachment 730254 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-08-05 07:04:29 UTC
Created attachment 730256 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-08-05 07:04:30 UTC
Created attachment 730258 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-08-05 07:04:31 UTC
Created attachment 730260 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-08-05 07:04:32 UTC
Created attachment 730262 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-08-05 07:04:33 UTC
Created attachment 730264 [details]
sys-libs:libstdc++-v3-3.3.6-r4:20210805-062813.log
Comment 7 Toralf Förster gentoo-dev 2021-08-05 07:04:35 UTC
Created attachment 730266 [details]
temp.tar.bz2
Comment 8 Martijn Schmidt 2021-11-17 21:10:54 UTC
@Toralf, is it possible this build-time bug is related to glibc-2.34, e.g. https://bugs.gentoo.org/show_bug.cgi?id=glibc-2.34 ? I saw some other weird build issues with packages and it refers to libc in the error log, so..
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-25 22:57:13 UTC
(In reply to Martijn Schmidt from comment #8)
> @Toralf, is it possible this build-time bug is related to glibc-2.34, e.g.
> https://bugs.gentoo.org/show_bug.cgi?id=glibc-2.34 ? I saw some other weird
> build issues with packages and it refers to libc in the error log, so..

Nah, this is a GCC bug.
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-25 23:00:52 UTC
Should be fixed in https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=b1c4b1c100889c0f0b11dd79ca083dfb3bc00f4a and should therefore be fixed by our upcoming GCC 11 snapshot.
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-26 02:05:53 UTC
(In reply to Sam James from comment #10)
> Should be fixed in
> https://gcc.gnu.org/git/?p=gcc.git;a=commit;
> h=b1c4b1c100889c0f0b11dd79ca083dfb3bc00f4a and should therefore be fixed by
> our upcoming GCC 11 snapshot.

"user1" from #gentoo confirmed this fixes their issue.
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-28 18:32:06 UTC
commit c397cbff26bf100ae36eefe886497e8238e53515
Author: David Seifert <soap@gentoo.org>
Date:   Sun Nov 28 00:04:10 2021 +0100

    sys-devel/gcc: add 11.2.1_p20211127

    upstream has indicated that 11.3 is unlikely to be
    released soon, and 11.2 has accumulated enough bugs
    to require an intermediate release for Gentoo.

    Bug: https://bugs.gentoo.org/806482
    Bug: https://bugs.gentoo.org/811867
    Bug: https://bugs.gentoo.org/823780
    Signed-off-by: David Seifert <soap@gentoo.org>
    Signed-off-by: Sam James <sam@gentoo.org>