Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 812020 - manual bootstrap-prefix.sh: stage 3 Failed to emerge sys-devel/gcc-10.3.0-r2: checking for the correct version of gmp.h... no
Summary: manual bootstrap-prefix.sh: stage 3 Failed to emerge sys-devel/gcc-10.3.0-r2:...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: ARM64 Other
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-07 15:27 UTC by fkhp
Modified: 2021-09-29 23:33 UTC (History)
0 users

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


Attachments
build.log (build.log.txt,16.46 KB, text/plain)
2021-09-07 15:44 UTC, fkhp
Details
environment (environment.txt,133.94 KB, text/plain)
2021-09-07 15:45 UTC, fkhp
Details
emerge --info (info.txt,4.32 KB, text/plain)
2021-09-07 15:47 UTC, fkhp
Details
emerge -pqv (pqv.txt,8.84 KB, text/plain)
2021-09-07 15:48 UTC, fkhp
Details
gcc-build-logs.tar.bz2 (gcc-build-logs.tar.bz2.txt,8.80 KB, text/plain)
2021-09-07 15:48 UTC, fkhp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fkhp 2021-09-07 15:27:39 UTC
hardware: huawei nova 5z mobile phone
OS: Harmony OS 2.0
termux like chroot container: 【AidLearning v0.87F3】
https://github.com/aidlearning/AidLearning-Framework

the CPPFLAGS is set in line 187 of bootstrap-prefix.sh: 
   export CPPFLAGS="-isystem ${ROOT}/usr/include"

but it is triped off by the src_configure, as the following emerge message shows:

>>> Configuring source in /data/gentoo/var/tmp/portage/sys-devel/gcc-10.3.0-r2/work/gcc-10.3.0 ...
 * strip-flags: CPPFLAGS: changed '-isystem /data/gentoo/usr/include' to ''



Reproducible: Always

Steps to Reproduce:
1.${EPREFIX}/bootstrap-prefix.sh ${EPREFIX} stage3
2.
3.
Actual Results:  
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ accepts -static-libstdc++ -static-libgcc... yes
checking for aarch64-unknown-linux-gnu-gnatbind... no
checking for gnatbind... no
checking for aarch64-unknown-linux-gnu-gnatmake... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for objdir... .libs
checking for the correct version of gmp.h... no
configure: error: Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
their locations.  Source code for these libraries can be found at
their respective hosting sites as well as at
https://gcc.gnu.org/pub/gcc/infrastructure/.  See also
http://gcc.gnu.org/install/prerequisites.html for additional info.  If
you obtained GMP, MPFR and/or MPC from a vendor distribution package,
make sure that you have installed both the libraries and the header
files.  They may be located in separate packages.
 * ERROR: sys-devel/gcc-10.3.0-r2::gentoo failed (configure phase):
 *   failed to run configure
 * 
 * Call stack:
 *     ebuild.sh, line  127:  Called src_configure
 *   environment, line 2793:  Called toolchain_src_configure
 *   environment, line 4101:  Called die
 * The specific snippet of code:
 *       CONFIG_SHELL="${EPREFIX}/bin/bash" bash "${S}"/configure "${confgcc[@]}" || die "failed to run configure";


Expected Results:  
yes to the "checking for the correct version of gmp.h" step in the configure phase. as gmp-6.2.1-r1 has been installed.
Comment 1 fkhp 2021-09-07 15:44:29 UTC
Created attachment 738046 [details]
build.log
Comment 2 fkhp 2021-09-07 15:45:18 UTC
Created attachment 738049 [details]
environment
Comment 3 fkhp 2021-09-07 15:47:40 UTC
Created attachment 738052 [details]
emerge --info
Comment 4 fkhp 2021-09-07 15:48:11 UTC
Created attachment 738055 [details]
emerge -pqv
Comment 5 fkhp 2021-09-07 15:48:46 UTC
Created attachment 738058 [details]
gcc-build-logs.tar.bz2
Comment 6 fkhp 2021-09-07 15:51:43 UTC
the file name of the attached files should be changed to which without the .txt suffix after downloading.
Comment 7 fkhp 2021-09-07 16:00:15 UTC
the CPPFLAGS is set in line 1887 of bootstrap-prefix.sh: 
   export CPPFLAGS="-isystem ${ROOT}/usr/include"