Article 5CZ20 Problem compiling gcc 10.2.0 Pass 2 LFS 10

Problem compiling gcc 10.2.0 Pass 2 LFS 10

by
germainm
from LinuxQuestions.org on (#5CZ20)
make in the step 6.18. GCC-10.2.0 - Pass 2 produce this error:

make[2]: Entering directory '/mnt/lfs/sources/gcc-10.2.0/host-x86_64-lfs-linux-gnu/libcpp'
x86_64-lfs-linux-gnu-g++ -I../.././libcpp -I. -I../.././libcpp/../include -I../.././libcpp/include -g -O2 -W -Wall -Wno-narrowing -Wwrite-strings -Wmissing-format-attribute -pedantic -Wno-long-long -fno-exceptions -fno-rtti -I../.././libcpp -I. -I../.././libcpp/../include -I../.././libcpp/include -c -o charset.o -MT charset.o -MMD -MP -MF .deps/charset.Tpo ../.././libcpp/charset.c
In file included from ../.././libcpp/charset.c:21:
../.././libcpp/system.h:41:10: fatal error: new: No such file or directory
41 | #include <new>
| ^~~~~
compilation terminated.
Makefile:224: recipe for target 'charset.o' failed
make[2]: *** [charset.o] Error 1
make[2]: Leaving directory '/mnt/lfs/sources/gcc-10.2.0/host-x86_64-lfs-linux-gnu/libcpp'
Makefile:7955: recipe for target 'all-libcpp' failed
make[1]: *** [all-libcpp] Error 2
make[1]: Leaving directory '/mnt/lfs/sources/gcc-10.2.0'
Makefile:944: recipe for target 'all' failed
make: *** [all] Error 2

Somebody has suggestion to fix the compile issue ?

my system is ubuntu 18.04.5

thankslatest?d=yIl2AUoC8zA latest?i=TIMDs7A5qLk:t4m4oUttKzg:F7zBnMy latest?i=TIMDs7A5qLk:t4m4oUttKzg:V_sGLiP latest?d=qj6IDK7rITs latest?i=TIMDs7A5qLk:t4m4oUttKzg:gIN9vFwTIMDs7A5qLk
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments