Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 920322 - >=sys-devel/gcc-12: ICE when building dev-util/build2-0.14.0
Summary: >=sys-devel/gcc-12: ICE when building dev-util/build2-0.14.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-19 13:26 UTC by Toralf Förster
Modified: 2024-02-15 23:36 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.50 KB, text/plain)
2023-12-19 13:26 UTC, Toralf Förster
Details
dev-util:build2-0.14.0:20231219-104915.log.xz (dev-util:build2-0.14.0:20231219-104915.log.xz,29.21 KB, application/x-xz)
2023-12-19 13:27 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,245.56 KB, text/plain)
2023-12-19 13:27 UTC, Toralf Förster
Details
environment (environment,66.71 KB, text/plain)
2023-12-19 13:27 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.13 KB, application/x-xz)
2023-12-19 13:27 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,31.30 KB, application/x-xz)
2023-12-19 13:27 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,61.73 KB, application/x-xz)
2023-12-19 13:27 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,44.28 KB, application/x-xz)
2023-12-19 13:27 UTC, Toralf Förster
Details
preprocessed file (manifest-utility.o.ii.bz2,739.89 KB, text/plain)
2024-01-21 20:27 UTC, Christopher Fore
Details
minimized file with cvise (manifest-utility.o.ii,326 bytes, text/plain)
2024-01-22 04:16 UTC, Christopher Fore
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-12-19 13:26:58 UTC
too long lines were shrinked:

x86_64-pc-linux-gnu-g++ -I/var/tmp/portage/dev-util/build2-0.14.0/work/build2-toolchain-0.14.0/bpkg -I/var/tmp/portage/dev-util/build2-0.14.0/work/build2-toolchain-0.14.0/bpkg -I/var/tmp/portage/dev-util/build2-0.14.0/work/build2-toolchain-0.14.0/libbpkg -I/var/tmp/portage/dev-util/build2-0.14.0/wor
x86_64-pc-linux-gnu-g++ -I/var/tmp/portage/dev-util/build2-0.14.0/work/build2-toolchain-0.14.0/libbutl -I/var/tmp/portage/dev-util/build2-0.14.0/work/build2-toolchain-0.14.0/libbutl -DLIBBUTL_SHARED_BUILD -O2 -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -
x86_64-pc-linux-gnu-g++ -I/var/tmp/portage/dev-util/build2-0.14.0/work/build2-toolchain-0.14.0/bdep -I/var/tmp/portage/dev-util/build2-0.14.0/work/build2-toolchain-0.14.0/bdep -I/var/tmp/portage/dev-util/build2-0.14.0/work/build2-toolchain-0.14.0/libbpkg -I/var/tmp/portage/dev-util/build2-0.14.0/wor
x86_64-pc-linux-gnu-g++ -I/var/tmp/portage/dev-util/build2-0.14.0/work/build2-toolchain-0.14.0/libbutl -I/var/tmp/portage/dev-util/build2-0.14.0/work/build2-toolchain-0.14.0/libbutl -DLIBBUTL_SHARED_BUILD -O2 -pipe -march=native -fno-diagnostics-color -O2 -pipe -march=native -fno-diagnostics-color -
x86_64-pc-linux-gnu-g++ -I/var/tmp/portage/dev-util/build2-0.14.0/work/build2-toolchain-0.14.0/build2 -I/var/tmp/portage/dev-util/build2-0.14.0/work/build2-toolchain-0.14.0/build2 -DLIBODB_BUILD2 -DLIBODB_SQLITE_BUILD2 -I/usr/include/pkgconf -DLIBBUILD2_SHARED_BUILD -I/var/tmp/portage/dev-util/build
In function 'std::vector<butl::b_project_info> bpkg::package_b_info(const common_options&, const dir_paths&, bool)':
cc1plus: internal compiler error: Segmentation fault
0x2a09c55 internal_error(char const*, ...)
	???:0

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-20231214-171515

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6
Python 3.11.7
Available Rust versions:
  [1]   rust-bin-1.74.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.20.1_p1 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.21.5 linux/amd64

  HEAD of ::gentoo
commit 67b11a0fe5a0021a561e4de6f03f202314451e24
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Dec 19 10:01:55 2023 +0000

    Merge updates from master

emerge -qpvO dev-util/build2
[ebuild  N    ] dev-util/build2-0.14.0  USE="-test"
Comment 1 Toralf Förster gentoo-dev 2023-12-19 13:26:59 UTC
Created attachment 879966 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-19 13:27:00 UTC
Created attachment 879967 [details]
dev-util:build2-0.14.0:20231219-104915.log.xz
Comment 3 Toralf Förster gentoo-dev 2023-12-19 13:27:02 UTC
Created attachment 879968 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2023-12-19 13:27:03 UTC
Created attachment 879969 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-12-19 13:27:04 UTC
Created attachment 879970 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-19 13:27:05 UTC
Created attachment 879971 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-19 13:27:06 UTC
Created attachment 879972 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2023-12-19 13:27:07 UTC
Created attachment 879973 [details]
temp.tar.xz
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-11 13:33:30 UTC
toralf, can you reproduce this?
Comment 10 Christopher Fore 2024-01-21 20:27:54 UTC
Created attachment 882804 [details]
preprocessed file

I can reproduce this with the attached preprocessed file and the following command:

x86_64-pc-linux-gnu-g++ -march=native -O2 -std=c++23 -c -fdirectives-only manifest-utility.o.ii
Comment 11 Christopher Fore 2024-01-22 04:16:29 UTC
Created attachment 882812 [details]
minimized file with cvise

Here's the minimized version of the previous preprocessed file.
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-28 23:20:21 UTC
commit b4311467026f58c499082963adfd2863f3400f6f
Author: Sam James <sam@gentoo.org>
Date:   Sun Jan 28 23:10:26 2024 +0000

    sys-devel/gcc: add 14.0.1_pre20240128

    Signed-off-by: Sam James <sam@gentoo.org>

commit 5938db34e83ae93ffcd601a733c773d8ef766db7
Author: Sam James <sam@gentoo.org>
Date:   Sat Jan 27 22:52:24 2024 +0000

    sys-devel/gcc: add 13.2.1_p20240127

    Signed-off-by: Sam James <sam@gentoo.org>

commit 3d67646ce77e063b6c2a4a0c5494ff81be45313d
Author: Sam James <sam@gentoo.org>
Date:   Sat Jan 27 11:11:51 2024 +0000

    sys-devel/gcc: add 12.3.1_p20240126

    Signed-off-by: Sam James <sam@gentoo.org>
Comment 13 Larry the Git Cow gentoo-dev 2024-02-15 23:36:40 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66e148175147a3956b978b8346f27b0a9cc075da

commit 66e148175147a3956b978b8346f27b0a9cc075da
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-02-15 23:35:54 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-02-15 23:35:54 +0000

    sys-devel/gcc: keyword 13.2.1_p20240210
    
    Bug: https://bugs.gentoo.org/920322
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/gcc/gcc-13.2.1_p20240210.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed62089a8b7d650025831d25ca858926cec5a092

commit ed62089a8b7d650025831d25ca858926cec5a092
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-02-15 23:35:34 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-02-15 23:35:34 +0000

    sys-devel/gcc: keyword 12.3.1_p20240209
    
    Bug: https://bugs.gentoo.org/920322
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/gcc/gcc-12.3.1_p20240209.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)