Article 6M6XP Make error in libstdc++-v3

Make error in libstdc++-v3

by
HridayKh
from LinuxQuestions.org on (#6M6XP)
I am using the LFS Book 12.1 and have reached section 5.6 with no problems until `libstdc++-v3`. I ran all commands as said in book until the `make` command for `libstdc++-v3`. It gave me this error:
Code:In file included from /mnt/LFS/sources/gcc-13.2.0/build/include/bits/move.h:37,
from /mnt/LFS/sources/gcc-13.2.0/build/include/bits/exception_ptr.h:41,
from /mnt/LFS/sources/gcc-13.2.0/libstdc++-v3/libsupc++/exception:164,
from ../../libstdc++-v3/libsupc++/unwind-cxx.h:34,
from ../../libstdc++-v3/libsupc++/eh_arm.cc:26:
/mnt/LFS/sources/gcc-13.2.0/build/include/type_traits:3363:66: error: expected primary-expression before ',' token
3363 | inline constexpr bool is_convertible_v = __is_convertible(_From, _To);
| ^
In file included from /mnt/LFS/sources/gcc-13.2.0/build/include/bits/move.h:37,
from /mnt/LFS/sources/gcc-13.2.0/build/include/bits/exception_ptr.h:41,
from ../../libstdc++-v3/libsupc++/exception:164,
from ../../libstdc++-v3/libsupc++/eh_aux_runtime.cc:26:
/mnt/LFS/sources/gcc-13.2.0/build/include/type_traits:3363:66: error: expected primary-expression before ',' token
3363 | inline constexpr bool is_convertible_v = __is_convertible(_From, _To);
| ^
In file included from /mnt/LFS/sources/gcc-13.2.0/build/include/bits/move.h:37,
from /mnt/LFS/sources/gcc-13.2.0/build/include/bits/exception_ptr.h:41,
from /mnt/LFS/sources/gcc-13.2.0/libstdc++-v3/libsupc++/exception:164,
from ../../libstdc++-v3/libsupc++/unwind-cxx.h:34,
from ../../libstdc++-v3/libsupc++/eh_call.cc:28:
/mnt/LFS/sources/gcc-13.2.0/build/include/type_traits:3363:66: error: expected primary-expression before ',' token
3363 | inline constexpr bool is_convertible_v = __is_convertible(_From, _To);
| ^
/mnt/LFS/sources/gcc-13.2.0/build/include/type_traits:3363:71: error: expected primary-expression before ')' token
3363 | inline constexpr bool is_convertible_v = __is_convertible(_From, _To);
| ^
/mnt/LFS/sources/gcc-13.2.0/build/include/type_traits:3363:71: error: expected primary-expression before ')' token
3363 | inline constexpr bool is_convertible_v = __is_convertible(_From, _To);
| ^
/mnt/LFS/sources/gcc-13.2.0/build/include/type_traits:3363:44: error: there are no arguments to '__is_convertible' that depend on a template parameter, so a declaration of '__is_convertible' must be available [-fpermissive]
3363 | inline constexpr bool is_convertible_v = __is_convertible(_From, _To);
| ^~~~~~~~~~~~~~~~
/mnt/LFS/sources/gcc-13.2.0/build/include/type_traits:3363:71: error: expected primary-expression before ')' token
3363 | inline constexpr bool is_convertible_v = __is_convertible(_From, _To);
| ^
/mnt/LFS/sources/gcc-13.2.0/build/include/type_traits:3363:44: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/mnt/LFS/sources/gcc-13.2.0/build/include/type_traits:3363:44: error: there are no arguments to '__is_convertible' that depend on a template parameter, so a declaration of '__is_convertible' must be available [-fpermissive]
3363 | inline constexpr bool is_convertible_v = __is_convertible(_From, _To);
| ^~~~~~~~~~~~~~~~
/mnt/LFS/sources/gcc-13.2.0/build/include/type_traits:3363:44: error: there are no arguments to '__is_convertible' that depend on a template parameter, so a declaration of '__is_convertible' must be available [-fpermissive]
3363 | inline constexpr bool is_convertible_v = __is_convertible(_From, _To);
| ^~~~~~~~~~~~~~~~
/mnt/LFS/sources/gcc-13.2.0/build/include/type_traits:3363:44: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/mnt/LFS/sources/gcc-13.2.0/build/include/type_traits:3363:44: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
make[2]: *** [Makefile:777: eh_arm.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /mnt/LFS/sources/gcc-13.2.0/build/include/bits/move.h:37,
from /mnt/LFS/sources/gcc-13.2.0/build/include/bits/exception_ptr.h:41,
from /mnt/LFS/sources/gcc-13.2.0/libstdc++-v3/libsupc++/exception:164,
from ../../libstdc++-v3/libsupc++/eh_alloc.cc:33:
/mnt/LFS/sources/gcc-13.2.0/build/include/type_traits:3363:66: error: expected primary-expression before ',' token
3363 | inline constexpr bool is_convertible_v = __is_convertible(_From, _To);
| ^
/mnt/LFS/sources/gcc-13.2.0/build/include/type_traits:3363:71: error: expected primary-expression before ')' token
3363 | inline constexpr bool is_convertible_v = __is_convertible(_From, _To);
| ^
/mnt/LFS/sources/gcc-13.2.0/build/include/type_traits:3363:44: error: there are no arguments to '__is_convertible' that depend on a template parameter, so a declaration of '__is_convertible' must be available [-fpermissive]
3363 | inline constexpr bool is_convertible_v = __is_convertible(_From, _To);
| ^~~~~~~~~~~~~~~~
/mnt/LFS/sources/gcc-13.2.0/build/include/type_traits:3363:44: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
make[2]: *** [Makefile:777: eh_call.lo] Error 1
make[2]: *** [Makefile:777: eh_aux_runtime.lo] Error 1
make[2]: *** [Makefile:777: eh_alloc.lo] Error 1
make[2]: Leaving directory '/mnt/LFS/sources/gcc-13.2.0/build/libsupc++'
make[1]: *** [Makefile:576: all-recursive] Error 1
make[1]: Leaving directory '/mnt/LFS/sources/gcc-13.2.0/build'
make: *** [Makefile:501: all] Error 2The full log for the make command before the error is:
Code:lfs:/mnt/LFS/sources/gcc-13.2.0/build$ make
make "AR_FLAGS=" "CC_FOR_BUILD=" "CC_FOR_TARGET=" "CFLAGS=-g -O2" "CXXFLAGS=" "CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS=" "LIBCFLAGS=" "LIBCFLAGS_FOR_TARGET=" "MAKE=make" "MAKEINFO=/bin/sh /mnt/LFS/sources/gcc-13.2.0/missing makeinfo " "SHELL=/bin/sh" "RUNTESTFLAGS=" "exec_prefix=/usr" "infodir=/usr/share/info" "libdir=/usr/lib" "includedir=/usr/include" "prefix=/usr" "tooldir=" "gxx_include_dir=/tools/x86_64-lfs-linux-gnu/include/c++/13.2.0" "AR=ar" "AS=as" "LD=/usr/bin/ld -m elf_x86_64" "RANLIB=ranlib" "NM=nm" "NM_FOR_BUILD=" "NM_FOR_TARGET=" "DESTDIR=" "WERROR=" all-recursive
make[1]: Entering directory '/mnt/LFS/sources/gcc-13.2.0/build'
Making all in include
make[2]: Entering directory '/mnt/LFS/sources/gcc-13.2.0/build/include'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/mnt/LFS/sources/gcc-13.2.0/build/include'
Making all in libsupc++
make[2]: Entering directory '/mnt/LFS/sources/gcc-13.2.0/build/libsupc++'
/bin/sh ../libtool --tag CXX --tag disable-shared --mode=compile g++ -I/mnt/LFS/sources/gcc-13.2.0/libstdc++-v3/../libgcc -I/mnt/LFS/sources/gcc-13.2.0/build/include/x86_64-lfs-linux-gnu -I/mnt/LFS/sources/gcc-13.2.0/build/include -I/mnt/LFS/sources/gcc-13.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=eh_alloc.lo -fcf-protection -mshstk -c -o eh_alloc.lo ../../libstdc++-v3/libsupc++/eh_alloc.cc
/bin/sh ../libtool --tag CXX --tag disable-shared --mode=compile g++ -I/mnt/LFS/sources/gcc-13.2.0/libstdc++-v3/../libgcc -I/mnt/LFS/sources/gcc-13.2.0/build/include/x86_64-lfs-linux-gnu -I/mnt/LFS/sources/gcc-13.2.0/build/include -I/mnt/LFS/sources/gcc-13.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=eh_arm.lo -fcf-protection -mshstk -c -o eh_arm.lo ../../libstdc++-v3/libsupc++/eh_arm.cc
/bin/sh ../libtool --tag CXX --tag disable-shared --mode=compile g++ -I/mnt/LFS/sources/gcc-13.2.0/libstdc++-v3/../libgcc -I/mnt/LFS/sources/gcc-13.2.0/build/include/x86_64-lfs-linux-gnu -I/mnt/LFS/sources/gcc-13.2.0/build/include -I/mnt/LFS/sources/gcc-13.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=eh_aux_runtime.lo -fcf-protection -mshstk -c -o eh_aux_runtime.lo ../../libstdc++-v3/libsupc++/eh_aux_runtime.cc
/bin/sh ../libtool --tag CXX --tag disable-shared --mode=compile g++ -I/mnt/LFS/sources/gcc-13.2.0/libstdc++-v3/../libgcc -I/mnt/LFS/sources/gcc-13.2.0/build/include/x86_64-lfs-linux-gnu -I/mnt/LFS/sources/gcc-13.2.0/build/include -I/mnt/LFS/sources/gcc-13.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=eh_call.lo -fcf-protection -mshstk -c -o eh_call.lo ../../libstdc++-v3/libsupc++/eh_call.cc
libtool: compile: g++ -I/mnt/LFS/sources/gcc-13.2.0/libstdc++-v3/../libgcc -I/mnt/LFS/sources/gcc-13.2.0/build/include/x86_64-lfs-linux-gnu -I/mnt/LFS/sources/gcc-13.2.0/build/include -I/mnt/LFS/sources/gcc-13.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=eh_arm.lo -fcf-protection -mshstk -c ../../libstdc++-v3/libsupc++/eh_arm.cc -fPIC -DPIC -D_GLIBCXX_SHARED -o eh_arm.o
libtool: compile: g++ -I/mnt/LFS/sources/gcc-13.2.0/libstdc++-v3/../libgcc -I/mnt/LFS/sources/gcc-13.2.0/build/include/x86_64-lfs-linux-gnu -I/mnt/LFS/sources/gcc-13.2.0/build/include -I/mnt/LFS/sources/gcc-13.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=eh_alloc.lo -fcf-protection -mshstk -c ../../libstdc++-v3/libsupc++/eh_alloc.cc -fPIC -DPIC -D_GLIBCXX_SHARED -o eh_alloc.o
libtool: compile: g++ -I/mnt/LFS/sources/gcc-13.2.0/libstdc++-v3/../libgcc -I/mnt/LFS/sources/gcc-13.2.0/build/include/x86_64-lfs-linux-gnu -I/mnt/LFS/sources/gcc-13.2.0/build/include -I/mnt/LFS/sources/gcc-13.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=eh_call.lo -fcf-protection -mshstk -c ../../libstdc++-v3/libsupc++/eh_call.cc -fPIC -DPIC -D_GLIBCXX_SHARED -o eh_call.o
libtool: compile: g++ -I/mnt/LFS/sources/gcc-13.2.0/libstdc++-v3/../libgcc -I/mnt/LFS/sources/gcc-13.2.0/build/include/x86_64-lfs-linux-gnu -I/mnt/LFS/sources/gcc-13.2.0/build/include -I/mnt/LFS/sources/gcc-13.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=eh_aux_runtime.lo -fcf-protection -mshstk -c ../../libstdc++-v3/libsupc++/eh_aux_runtime.cc -fPIC -DPIC -D_GLIBCXX_SHARED -o eh_aux_runtime.o
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