On Sat, 8 Mar 2025, 06:55 LIU Hao via Gcc, <gcc@gcc.gnu.org> wrote:

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


Eh? That says where to install GCC after it's built. The instructions are
copied from
https://gcc.gnu.org/wiki/InstallingGCC and ate correct.


Newer GCC
> versions require a C++14 compiler, and 4.6.2 is too old for that.
>

The --prefix has nothing to do with the bootstrap compiler.



> 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
>

Reply via email to