Thank you! After replacing the outdated centOS operating system and compiling for eight hours(That's carzy to me), I have successfully installed and built gcc😂😂
Jonathan Wakely <jwakely....@gmail.com> 于 2025年3月8日周六 下午5:25写道: > > > On Sat, 8 Mar 2025, 08:43 LIU Hao via Gcc, <gcc@gcc.gnu.org> wrote: > >> 在 2025-3-8 15:20, Gwen Fu 写道: >> > OS : CentOS7 >> > The official documentation doesn't mention any installation requirement >> about lib{isl , zstd} . >> >> [please reply to all.] >> > > But not on this list, it belongs on gcc-help > > > >> They are mentioned, but are optional: >> https://gcc.gnu.org/install/prerequisites.html >> >> >> > And I run "../gcc/configure --enable-languages=c,c++,fortran >> --disable-multilib" and then rerun"make -j 2" >> > the same error occurred . >> > >> > Here is the gcc version: >> > [gwen@localhost objdir]$ gcc -v >> > 使用内建 specs。 >> > COLLECT_GCC=gcc >> > >> COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper >> >> This is caused by failure to compile a simple C++ program, but the cause >> can vary: Your system might have >> no c++ compiler (which i think is unlikely), or the existent c++ compiler >> rejected the program due to an >> unknown option. You can take a look at the end of config.log. >> >> >> >> >> -- >> Best regards, >> LIU Hao >> >