make error when builing gcc

LIU Hao lh_mouse@126.com
Sat Mar 8 06:54:18 GMT 2025


在 2025-3-8 14:33, Gwen Fu via Gcc 写道:
> After I  finished  ../gcc/configure --prefix=$HOME/GCC-4.6.2
> --enable-languages=c,c++,fortran --disable-multilib , I executed "make -j
> 2" .  However , error occurred !
> 

What system are you using? You should not specify `--prefix` unless you know what it does. Newer GCC 
versions require a C++14 compiler, and 4.6.2 is too old for that.

For example, on Debian or Ubuntu or Mint, you may build GCC with these commands:

    ```
    sudo aptitude install gcc gettext python3 awk make flex lib{gmp,mpfr,mpc,isl,zstd}-dev
    ../gcc/configure --enable-languages=c,c++,fortran --disable-multilib
    make -j$(nproc)
    ```


-- 
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/ad00f7c0/attachment-0001.sig>


More information about the Gcc mailing list