Also please use the gcc-help list for questions like this.
On Sat, 8 Mar 2025, 08:24 Jonathan Wakely, <jwakely....@gmail.com> wrote: > > > On Sat, 8 Mar 2025, 06:34 Gwen Fu via Gcc, <gcc@gcc.gnu.org> wrote: > >> 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 ! >> > > I assume you copied this from https://GCC.gnu.org/wiki/InstallingGCC > > Those instructions were written when GCC 4.6 was a recent release, but now > it's very very old. Try a new release from some time this decade. > > I'll update the instructions. > > > >> .......(,omit unnecessary info) >> checking whether gcc -std=gnu99 supports -pedantic -Wlong-long... yes >> checking whether gcc -std=gnu99 supports -fno-exceptions... yes >> yes >> checking for vasprintf... checking whether gcc -std=gnu99 supports >> -fno-rtti... yes >> yes >> configure: error: C++ compiler missing or inoperational >> checking for vfprintf... make[2]: *** [configure-build-libcpp] 错误 1 >> make[2]: *** 正在等待未完成的任务.... >> yes >> ......(omit unnecessary info) >> checking for working mmap... yes >> checking for working strncmp... yes >> configure: updating cache ./config.cache >> configure: creating ./config.status >> config.status: creating Makefile >> config.status: creating testsuite/Makefile >> config.status: creating config.h >> config.status: executing default commands >> make[2]: 离开目录“/home/gwen/github_repo/objdir” >> make[1]: *** [stage1-bubble] error2 >> make[1]: 离开目录“/home/gwen/github_repo/objdir” >> make: *** [all] error 2 >> >