make error when builing gcc

LIU Hao lh_mouse@126.com
Sat Mar 8 08:41:53 GMT 2025


在 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.]

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20250308/478689d6/attachment.sig>


More information about the Gcc mailing list