Article 52X4W fail to build libstdc++v3 in lfs9.1

fail to build libstdc++v3 in lfs9.1

by
songpeng22
from LinuxQuestions.org on (#52X4W)
I have followed the steps , so far so good until libstdc++v3 make .
It said "declaration of '__is_constructible' must be available".
I thought this is kind of header missing , but libstdc++v3 looks like the header itself , what else ?
can someone help me out of this ?

0. libstdc++v3 report errors as follows:
Code:make[2]: Entering directory '/mnt/lfs/sources/gcc-9.2.0/build/libsupc++'
/bin/sh ../libtool --tag CXX --tag disable-shared --mode=compile g++ -I/mnt/lfs/sources/gcc-9.2.0/libstdc++-v3/../libgcc -I/mnt/lfs/sources/gcc-9.2.0/build/include/x86_64-lfs-linux-gnu -I/mnt/lfs/sources/gcc-9.2.0/build/include -I/mnt/lfs/sources/gcc-9.2.0/libstdc++-v3/libsupc++ -prefer-pic -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2 -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=atexit_thread.lo -c -o atexit_thread.lo ../../libstdc++-v3/libsupc++/atexit_thread.cc
libtool: compile: g++ -I/mnt/lfs/sources/gcc-9.2.0/libstdc++-v3/../libgcc -I/mnt/lfs/sources/gcc-9.2.0/build/include/x86_64-lfs-linux-gnu -I/mnt/lfs/sources/gcc-9.2.0/build/include -I/mnt/lfs/sources/gcc-9.2.0/libstdc++-v3/libsupc++ -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2 -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=atexit_thread.lo -c ../../libstdc++-v3/libsupc++/atexit_thread.cc -fPIC -DPIC -D_GLIBCXX_SHARED -o atexit_thread.o
In file included from /mnt/lfs/sources/gcc-9.2.0/build/include/bits/move.h:55:0,
from /mnt/lfs/sources/gcc-9.2.0/build/include/bits/nested_exception.h:40,
from /mnt/lfs/sources/gcc-9.2.0/libstdc++-v3/libsupc++/exception:144,
from /mnt/lfs/sources/gcc-9.2.0/libstdc++-v3/libsupc++/new:40,
from ../../libstdc++-v3/libsupc++/atexit_thread.cc:26:
/mnt/lfs/sources/gcc-9.2.0/build/include/type_traits:884:64: error: there are no arguments to '__is_constructible' that depend on a template parameter, so a declaration of '__is_constructible' must be available [-fpermissive]
: public __bool_constant<__is_constructible(_Tp, _Args...)>
^
/mnt/lfs/sources/gcc-9.2.0/build/include/type_traits:884:64: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/mnt/lfs/sources/gcc-9.2.0/build/include/type_traits:884:65: error: template argument 1 is invalid
: public __bool_constant<__is_constructible(_Tp, _Args...)>
^
/mnt/lfs/sources/gcc-9.2.0/build/include/type_traits:1018:56: error: there are no arguments to '__is_assignable' that depend on a template parameter, so a declaration of '__is_assignable' must be available [-fpermissive]
: public __bool_constant<__is_assignable(_Tp, _Up)>
^
/mnt/lfs/sources/gcc-9.2.0/build/include/type_traits:1018:57: error: template argument 1 is invalid
: public __bool_constant<__is_assignable(_Tp, _Up)>1.my host distribution is debian9.12 , lfs version is 9.1 stable

2.here is my version-check.sh result:
Code:lfs@peng:/mnt/lfs/sources$ ./version-check.sh
bash, version 4.4.12(1)-release
/bin/sh -> /bin/bash
Binutils: (GNU Binutils for Debian) 2.28
bison (GNU Bison) 3.0.4
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.26
diff (GNU diffutils) 3.5
find (GNU findutils) 4.7.0-git
GNU Awk 4.1.4, API: 1.1 (GNU MPFR 3.1.5, GNU MP 6.1.2)
/usr/bin/awk -> /usr/bin/gawk
gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
g++ (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
(GNU libc) 2.31
grep (GNU grep) 2.27
gzip 1.6
Linux version 4.9.0-11-amd64 (debian-kernel@lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) ) #1 SMP Debian 4.9.189-3+deb9u2 (2019-11-11)
m4 (GNU M4) 1.4.18
GNU Make 4.1
GNU patch 2.7.5
Perl version='5.24.1';
Python 3.5.3
sed (GNU sed) 4.4
tar (GNU tar) 1.29
texi2any (GNU texinfo) 6.3
xz (XZ Utils) 5.2.2
g++ compilation OK3. following is my glibc test result:
Code:lfs@peng:/mnt/lfs/sources$ echo 'int main(){}' > dummy.c
lfs@peng:/mnt/lfs/sources$ $LFS_TGT-gcc dummy.c
lfs@peng:/mnt/lfs/sources$ readelf -l a.out | grep ': /tools'
[Requesting program interpreter: /tools/lib64/ld-linux-x86-64.so.2]latest?d=yIl2AUoC8zA latest?i=fb8eLFPbzlU:UgkRnX35CmU:F7zBnMy latest?i=fb8eLFPbzlU:UgkRnX35CmU:V_sGLiP latest?d=qj6IDK7rITs latest?i=fb8eLFPbzlU:UgkRnX35CmU:gIN9vFwfb8eLFPbzlU
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