Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 914416 - sys-devel/gcc-12.1.0::gentoo_prefix failed (compile phase) in bootstrap-prefix.sh stage3
Summary: sys-devel/gcc-12.1.0::gentoo_prefix failed (compile phase) in bootstrap-prefi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-18 23:41 UTC by Yadi Xiao
Modified: 2023-09-20 06:37 UTC (History)
1 user (show)

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


Attachments
build.log for sys-devel/gcc-12.1.0 (build_sys-devel:gcc-12.1.0.log,13.74 KB, application/octet-stream)
2023-09-18 23:43 UTC, Yadi Xiao
Details
stage3 log file when bootstrapping gentoo-prefix (stage3.log.zip,188.41 KB, application/zip)
2023-09-18 23:44 UTC, Yadi Xiao
Details
config.log for sys-devel/gcc-12.1.0 (config.log,88.76 KB, text/plain)
2023-09-19 13:02 UTC, Yadi Xiao
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yadi Xiao 2023-09-18 23:41:48 UTC
I tried to run the bootstrap-prefix.sh script (commit 10296d4b, 2023-09-11 12:37:44 +0200) with RAP support disabled. During stage3, I met the following error: 

configure: error: *** A compiler with support for C++11 language features is required.
 * ERROR: sys-devel/gcc-12.1.0::gentoo_prefix failed (configure phase):

I tried to add export CC="$(tc-getCC)" to the first line of multilib_src_configure function in sys-devel/gcc-12.1.0's ebuild file, but it doesn't help.

Reproducible: Always
Comment 1 Yadi Xiao 2023-09-18 23:43:01 UTC
Created attachment 870904 [details]
build.log for sys-devel/gcc-12.1.0
Comment 2 Yadi Xiao 2023-09-18 23:44:49 UTC
Created attachment 870905 [details]
stage3 log file when bootstrapping gentoo-prefix
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-19 08:43:19 UTC
Could you try find config.log in the build dir and upload it here? It should help with figuring out why the configure test fails.
Comment 4 Yadi Xiao 2023-09-19 13:02:06 UTC
Created attachment 870934 [details]
config.log for sys-devel/gcc-12.1.0
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-19 13:04:19 UTC
configure:6795: result: no
configure:6488: checking whether x86_64-pc-linux-gnu-g++ -lgcc_s supports C++11 features with -h std=c++0x
configure:6786: x86_64-pc-linux-gnu-g++ -lgcc_s -h std=c++0x -c   conftest.cpp >&5
/ocean/projects/sys890003p/xiaoy/gentoo_34fe8e37/var/tmp/portage/sys-devel/gcc-12.1.0/work/gcc-12.1.0/configure: line 1843: x86_64-pc-linux-gnu-g++: command not found
configure:6786: $? = 127
configure: failed program was:
Comment 6 Yadi Xiao 2023-09-19 19:41:29 UTC
I ran the latest script (commit 3fedadeb 2023-09-16 15:47:06 +0200). It successfully installed sys-devel/gcc-12.1.0 and completed without any other errors.
Comment 7 Fabian Groffen gentoo-dev 2023-09-20 06:37:07 UTC
ok, nice, thanks!