在 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

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to