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.
Created attachment 738046 [details] build.log
Created attachment 738049 [details] environment
Created attachment 738052 [details] emerge --info
Created attachment 738055 [details] emerge -pqv
Created attachment 738058 [details] gcc-build-logs.tar.bz2
the file name of the attached files should be changed to which without the .txt suffix after downloading.
the CPPFLAGS is set in line 1887 of bootstrap-prefix.sh: export CPPFLAGS="-isystem ${ROOT}/usr/include"