Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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/usr/src/gcc-11.2.0/missing makeinfo " "SHELL=/bin/sh" "RUNTESTFLAGS=" "exec_prefix=/mnt/usr" "infodir=/mnt/usr/share/info" "libdir=/mnt/usr/lib" "includedir=/mnt/usr/include" "prefix=/mnt/usr" "tooldir=" "gxx_include_dir=/mnt/usr/include/c++/11.2.0" "AR=ar" "AS=as" "LD=/usr/bin/ld" "RANLIB=ranlib" "NM=/usr/bin/nm -B" "NM_FOR_BUILD=" "NM_FOR_TARGET=" "DESTDIR=" "WERROR=" all-recursive
make[1]: Entering directory '/mnt/usr/src/gcc-11.2.0/build'
Making all in include
make[2]: Entering directory '/mnt/usr/src/gcc-11.2.0/build/include'
mkdir -p .//bits/stdc++.h.gch
g++ -x c++-header -nostdinc++ -I/mnt/usr/src/gcc-11.2.0/build/include/ -I/mnt/usr/src/gcc-11.2.0/build/include -I/mnt/usr/src/gcc-11.2.0/libstdc++-v3/libsupc++ -O2 -g -std=gnu++0x /mnt/usr/src/gcc-11.2.0/libstdc++-v3/include/precompiled/stdc++.h \
-o bits/stdc++.h.gch/O2ggnu++0x.gch
In file included from /mnt/usr/src/gcc-11.2.0/build/include/bits/move.h:57,
from /mnt/usr/src/gcc-11.2.0/build/include/bits/nested_exception.h:40,
from /mnt/usr/src/gcc-11.2.0/libstdc++-v3/libsupc++/exception:148,
from /mnt/usr/src/gcc-11.2.0/build/include/ios:39,
from /mnt/usr/src/gcc-11.2.0/build/include/istream:38,
from /mnt/usr/src/gcc-11.2.0/build/include/sstream:38,
from /mnt/usr/src/gcc-11.2.0/build/include/complex:45,
from /mnt/usr/src/gcc-11.2.0/build/include/ccomplex:39,
from /mnt/usr/src/gcc-11.2.0/libstdc++-v3/include/precompiled/stdc++.h:54:
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:971:25: error: there are no arguments to ‘__is_nothrow_constructible’ that depend on a template parameter, so a declaration of ‘__is_nothrow_constructible’ must be available [-fpermissive]
971 | = __bool_constant<__is_nothrow_constructible(_Tp, _Args...)>;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:971:25: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:971:66: error: template argument 1 is invalid
971 | = __bool_constant<__is_nothrow_constructible(_Tp, _Args...)>;
| ^
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:976:45: error: expected template-name before ‘<’ token
976 | : public __is_nothrow_constructible_impl<_Tp, _Args...>::type
| ^
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:976:45: error: expected ‘{’ before ‘<’ token
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:985:30: error: there are no arguments to ‘__is_nothrow_constructible’ that depend on a template parameter, so a declaration of ‘__is_nothrow_constructible’ must be available [-fpermissive]
985 | : public __bool_constant<__is_nothrow_constructible(_Tp)>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:985:61: error: template argument 1 is invalid
985 | : public __bool_constant<__is_nothrow_constructible(_Tp)>
| ^
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1001:45: error: expected template-name before ‘<’ token
1001 | : public __is_nothrow_constructible_impl<_Tp, const _Tp&>
| ^
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1001:45: error: expected ‘{’ before ‘<’ token
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1022:45: error: expected template-name before ‘<’ token
1022 | : public __is_nothrow_constructible_impl<_Tp, _Tp&&>
| ^
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1022:45: error: expected ‘{’ before ‘<’ token
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1087:25: error: there are no arguments to ‘__is_nothrow_assignable’ that depend on a template parameter, so a declaration of ‘__is_nothrow_assignable’ must be available [-fpermissive]
1087 | = __bool_constant<__is_nothrow_assignable(_Tp, _Up)>;
| ^~~~~~~~~~~~~~~~~~~~~~~
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1087:58: error: template argument 1 is invalid
1087 | = __bool_constant<__is_nothrow_assignable(_Tp, _Up)>;
| ^
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1092:42: error: expected template-name before ‘<’ token
1092 | : public __is_nothrow_assignable_impl<_Tp, _Up>
| ^
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1092:42: error: expected ‘{’ before ‘<’ token
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1107:42: error: expected template-name before ‘<’ token
1107 | : public __is_nothrow_assignable_impl<_Tp&, const _Tp&>
| ^
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1107:42: error: expected ‘{’ before ‘<’ token
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1128:42: error: expected template-name before ‘<’ token
1128 | : public __is_nothrow_assignable_impl<_Tp&, _Tp&&>
| ^
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1128:42: error: expected ‘{’ before ‘<’ token
/mnt/usr/src/gcc-11.2.0/build/include/type_traits: In instantiation of ‘struct std::is_nothrow_move_constructible<_IO_FILE*>’:
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:138:12: required from ‘struct std::__and_<std::is_nothrow_move_constructible<_IO_FILE*>, std::is_nothrow_move_assignable<_IO_FILE*> >’
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:2615:48: required from ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = _IO_FILE*; std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’
/mnt/usr/src/gcc-11.2.0/build/include/bits/basic_file.h:79:34: required from here
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1027:12: error: invalid use of incomplete type ‘struct std::__is_nothrow_move_constructible_impl<_IO_FILE*, true>’
1027 | struct is_nothrow_move_constructible
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1014:12: note: declaration of ‘struct std::__is_nothrow_move_constructible_impl<_IO_FILE*, true>’
1014 | struct __is_nothrow_move_constructible_impl;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/usr/src/gcc-11.2.0/build/include/type_traits: In instantiation of ‘struct std::__and_<std::is_nothrow_move_constructible<_IO_FILE*>, std::is_nothrow_move_assignable<_IO_FILE*> >’:
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:2615:48: required from ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = _IO_FILE*; std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’
/mnt/usr/src/gcc-11.2.0/build/include/bits/basic_file.h:79:34: required from here
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:138:12: error: ‘value’ is not a member of ‘std::is_nothrow_move_constructible<_IO_FILE*>’
138 | struct __and_<_B1, _B2>
| ^~~~~~~~~~~~~~~~
/mnt/usr/src/gcc-11.2.0/build/include/type_traits: In instantiation of ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = _IO_FILE*; std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’:
/mnt/usr/src/gcc-11.2.0/build/include/bits/basic_file.h:79:34: required from here
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:2615:48: error: ‘value’ is not a member of ‘std::__and_<std::is_nothrow_move_constructible<_IO_FILE*>, std::is_nothrow_move_assignable<_IO_FILE*> >’
2615 | is_nothrow_move_assignable<_Tp>>::value);
| ^~~~~
/mnt/usr/src/gcc-11.2.0/build/include/type_traits: In instantiation of ‘struct std::is_nothrow_move_constructible<bool>’:
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:138:12: required from ‘struct std::__and_<std::is_nothrow_move_constructible<bool>, std::is_nothrow_move_assignable<bool> >’
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:2615:48: required from ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = bool; std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’
/mnt/usr/src/gcc-11.2.0/build/include/bits/basic_file.h:80:50: required from here
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1027:12: error: invalid use of incomplete type ‘struct std::__is_nothrow_move_constructible_impl<bool, true>’
1027 | struct is_nothrow_move_constructible
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1014:12: note: declaration of ‘struct std::__is_nothrow_move_constructible_impl<bool, true>’
1014 | struct __is_nothrow_move_constructible_impl;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/usr/src/gcc-11.2.0/build/include/type_traits: In instantiation of ‘struct std::__and_<std::is_nothrow_move_constructible<bool>, std::is_nothrow_move_assignable<bool> >’:
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:2615:48: required from ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = bool; std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’
/mnt/usr/src/gcc-11.2.0/build/include/bits/basic_file.h:80:50: required from here
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:138:12: error: ‘value’ is not a member of ‘std::is_nothrow_move_constructible<bool>’
138 | struct __and_<_B1, _B2>
| ^~~~~~~~~~~~~~~~
/mnt/usr/src/gcc-11.2.0/build/include/type_traits: In instantiation of ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = bool; std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’:
/mnt/usr/src/gcc-11.2.0/build/include/bits/basic_file.h:80:50: required from here
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:2615:48: error: ‘value’ is not a member of ‘std::__and_<std::is_nothrow_move_constructible<bool>, std::is_nothrow_move_assignable<bool> >’
2615 | is_nothrow_move_assignable<_Tp>>::value);
| ^~~~~
/mnt/usr/src/gcc-11.2.0/build/include/type_traits: In instantiation of ‘struct std::is_nothrow_move_constructible<std::thread::id>’:
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:138:12: required from ‘struct std::__and_<std::is_nothrow_move_constructible<std::thread::id>, std::is_nothrow_move_assignable<std::thread::id> >’
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:2615:48: required from ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = std::thread::id; std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’
/mnt/usr/src/gcc-11.2.0/build/include/bits/std_thread.h:172:33: required from here
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1027:12: error: invalid use of incomplete type ‘struct std::__is_nothrow_move_constructible_impl<std::thread::id, true>’
1027 | struct is_nothrow_move_constructible
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1014:12: note: declaration of ‘struct std::__is_nothrow_move_constructible_impl<std::thread::id, true>’
1014 | struct __is_nothrow_move_constructible_impl;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/usr/src/gcc-11.2.0/build/include/type_traits: In instantiation of ‘struct std::__and_<std::is_nothrow_move_constructible<std::thread::id>, std::is_nothrow_move_assignable<std::thread::id> >’:
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:2615:48: required from ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = std::thread::id; std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’
/mnt/usr/src/gcc-11.2.0/build/include/bits/std_thread.h:172:33: required from here
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:138:12: error: ‘value’ is not a member of ‘std::is_nothrow_move_constructible<std::thread::id>’
138 | struct __and_<_B1, _B2>
| ^~~~~~~~~~~~~~~~
/mnt/usr/src/gcc-11.2.0/build/include/type_traits: In instantiation of ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = std::thread::id; std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’:
/mnt/usr/src/gcc-11.2.0/build/include/bits/std_thread.h:172:33: required from here
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:2615:48: error: ‘value’ is not a member of ‘std::__and_<std::is_nothrow_move_constructible<std::thread::id>, std::is_nothrow_move_assignable<std::thread::id> >’
2615 | is_nothrow_move_assignable<_Tp>>::value);
| ^~~~~
In file included from /mnt/usr/src/gcc-11.2.0/build/include/cassert:43,
from /mnt/usr/src/gcc-11.2.0/libstdc++-v3/include/precompiled/stdc++.h:33:
/mnt/usr/src/gcc-11.2.0/build/include/bits/stl_vector.h: In instantiation of ‘std::_Vector_base<_Tp, _Alloc>::_Vector_impl::_Vector_impl() [with _Tp = unsigned int; _Alloc = std::allocator<unsigned int>]’:
/mnt/usr/src/gcc-11.2.0/build/include/bits/random.h:6073:12: recursively required from ‘std::vector<_Tp, _Alloc>::vector() [with _Tp = unsigned int; _Alloc = std::allocator<unsigned int>]’
/mnt/usr/src/gcc-11.2.0/build/include/bits/random.h:6073:12: required from here
/mnt/usr/src/gcc-11.2.0/build/include/bits/stl_vector.h:131:17: error: ‘value’ is not a member of ‘std::is_nothrow_default_constructible<std::allocator<unsigned int> >’
131 | _Vector_impl() _GLIBCXX_NOEXCEPT_IF(
| ^~~~~~~~~~~~~~~~~~~~
/mnt/usr/src/gcc-11.2.0/build/include/bits/stl_vector.h: In instantiation of ‘std::_Vector_base<_Tp, _Alloc>::_Vector_impl::_Vector_impl() [with _Tp = long unsigned int; _Alloc = std::allocator<long unsigned int>]’:
/mnt/usr/src/gcc-11.2.0/build/include/bits/regex_automaton.h:192:25: recursively required from ‘std::vector<_Tp, _Alloc>::vector() [with _Tp = long unsigned int; _Alloc = std::allocator<long unsigned int>]’
/mnt/usr/src/gcc-11.2.0/build/include/bits/regex_automaton.h:192:25: required from here
/mnt/usr/src/gcc-11.2.0/build/include/bits/stl_vector.h:131:17: error: ‘value’ is not a member of ‘std::is_nothrow_default_constructible<std::allocator<long unsigned int> >’
make[2]: *** [Makefile:1862: bits/stdc++.h.gch/O2ggnu++0x.gch] Error 1
make[2]: Leaving directory '/mnt/usr/src/gcc-11.2.0/build/include'
make[1]: *** [Makefile:568: all-recursive] Error 1
make[1]: Leaving directory '/mnt/usr/src/gcc-11.2.0/build'
make: *** [Makefile:493: all] Error 2
/mnt/usr/src/gcc-11.2.0/build $
Since yesterday I'm trying to build LFS in an auto mode (about a dozen times so far). At least 2 times both gcc and libstdc++ failed to build, some makefile error maybe the same as yours. Just try and build it again. First remove the old directory and untar the tarball again and give it another try.
And why post all of these lines? Only the last few lines are required to understand this, where it says 'error'.
you seem to be using LFS=/mnt rather than LFS=/mnt/lfs as described in the book. while this in and of itself shouldn’t be much of an issue, since you are having troubles i would suggest starting over and following the instructions in the book verbatim
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/usr/src/gcc-11.2.0/missing makeinfo " "SHELL=/bin/sh" "RUNTESTFLAGS=" "exec_prefix=/mnt/usr" "infodir=/mnt/usr/share/info" "libdir=/mnt/usr/lib" "includedir=/mnt/usr/include" "prefix=/mnt/usr" "tooldir=" "gxx_include_dir=/mnt/usr/include/c++/11.2.0" "AR=ar" "AS=as" "LD=/usr/bin/ld" "RANLIB=ranlib" "NM=/usr/bin/nm -B" "NM_FOR_BUILD=" "NM_FOR_TARGET=" "DESTDIR=" "WERROR=" all-recursive
make[1]: Entering directory '/mnt/usr/src/gcc-11.2.0/build'
Making all in include
make[2]: Entering directory '/mnt/usr/src/gcc-11.2.0/build/include'
mkdir -p .//bits/stdc++.h.gch
g++ -x c++-header -nostdinc++ -I/mnt/usr/src/gcc-11.2.0/build/include/ -I/mnt/usr/src/gcc-11.2.0/build/include -I/mnt/usr/src/gcc-11.2.0/libstdc++-v3/libsupc++ -O2 -g -std=gnu++0x /mnt/usr/src/gcc-11.2.0/libstdc++-v3/include/precompiled/stdc++.h \
-o bits/stdc++.h.gch/O2ggnu++0x.gch
In file included from /mnt/usr/src/gcc-11.2.0/build/include/bits/move.h:57,
from /mnt/usr/src/gcc-11.2.0/build/include/bits/nested_exception.h:40,
from /mnt/usr/src/gcc-11.2.0/libstdc++-v3/libsupc++/exception:148,
from /mnt/usr/src/gcc-11.2.0/build/include/ios:39,
from /mnt/usr/src/gcc-11.2.0/build/include/istream:38,
from /mnt/usr/src/gcc-11.2.0/build/include/sstream:38,
from /mnt/usr/src/gcc-11.2.0/build/include/complex:45,
from /mnt/usr/src/gcc-11.2.0/build/include/ccomplex:39,
from /mnt/usr/src/gcc-11.2.0/libstdc++-v3/include/precompiled/stdc++.h:54:
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:971:25: error: there are no arguments to ‘__is_nothrow_constructible’ that depend on a template parameter, so a declaration of ‘__is_nothrow_constructible’ must be available [-fpermissive]
971 | = __bool_constant<__is_nothrow_constructible(_Tp, _Args...)>;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:971:25: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:971:66: error: template argument 1 is invalid
971 | = __bool_constant<__is_nothrow_constructible(_Tp, _Args...)>;
| ^
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:976:45: error: expected template-name before ‘<’ token
976 | : public __is_nothrow_constructible_impl<_Tp, _Args...>::type
| ^
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:976:45: error: expected ‘{’ before ‘<’ token
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:985:30: error: there are no arguments to ‘__is_nothrow_constructible’ that depend on a template parameter, so a declaration of ‘__is_nothrow_constructible’ must be available [-fpermissive]
985 | : public __bool_constant<__is_nothrow_constructible(_Tp)>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:985:61: error: template argument 1 is invalid
985 | : public __bool_constant<__is_nothrow_constructible(_Tp)>
| ^
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1001:45: error: expected template-name before ‘<’ token
1001 | : public __is_nothrow_constructible_impl<_Tp, const _Tp&>
| ^
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1001:45: error: expected ‘{’ before ‘<’ token
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1022:45: error: expected template-name before ‘<’ token
1022 | : public __is_nothrow_constructible_impl<_Tp, _Tp&&>
| ^
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1022:45: error: expected ‘{’ before ‘<’ token
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1087:25: error: there are no arguments to ‘__is_nothrow_assignable’ that depend on a template parameter, so a declaration of ‘__is_nothrow_assignable’ must be available [-fpermissive]
1087 | = __bool_constant<__is_nothrow_assignable(_Tp, _Up)>;
| ^~~~~~~~~~~~~~~~~~~~~~~
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1087:58: error: template argument 1 is invalid
1087 | = __bool_constant<__is_nothrow_assignable(_Tp, _Up)>;
| ^
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1092:42: error: expected template-name before ‘<’ token
1092 | : public __is_nothrow_assignable_impl<_Tp, _Up>
| ^
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1092:42: error: expected ‘{’ before ‘<’ token
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1107:42: error: expected template-name before ‘<’ token
1107 | : public __is_nothrow_assignable_impl<_Tp&, const _Tp&>
| ^
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1107:42: error: expected ‘{’ before ‘<’ token
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1128:42: error: expected template-name before ‘<’ token
1128 | : public __is_nothrow_assignable_impl<_Tp&, _Tp&&>
| ^
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1128:42: error: expected ‘{’ before ‘<’ token
/mnt/usr/src/gcc-11.2.0/build/include/type_traits: In instantiation of ‘struct std::is_nothrow_move_constructible<_IO_FILE*>’:
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:138:12: required from ‘struct std::__and_<std::is_nothrow_move_constructible<_IO_FILE*>, std::is_nothrow_move_assignable<_IO_FILE*> >’
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:2615:48: required from ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = _IO_FILE*; std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’
/mnt/usr/src/gcc-11.2.0/build/include/bits/basic_file.h:79:34: required from here
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1027:12: error: invalid use of incomplete type ‘struct std::__is_nothrow_move_constructible_impl<_IO_FILE*, true>’
1027 | struct is_nothrow_move_constructible
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1014:12: note: declaration of ‘struct std::__is_nothrow_move_constructible_impl<_IO_FILE*, true>’
1014 | struct __is_nothrow_move_constructible_impl;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/usr/src/gcc-11.2.0/build/include/type_traits: In instantiation of ‘struct std::__and_<std::is_nothrow_move_constructible<_IO_FILE*>, std::is_nothrow_move_assignable<_IO_FILE*> >’:
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:2615:48: required from ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = _IO_FILE*; std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’
/mnt/usr/src/gcc-11.2.0/build/include/bits/basic_file.h:79:34: required from here
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:138:12: error: ‘value’ is not a member of ‘std::is_nothrow_move_constructible<_IO_FILE*>’
138 | struct __and_<_B1, _B2>
| ^~~~~~~~~~~~~~~~
/mnt/usr/src/gcc-11.2.0/build/include/type_traits: In instantiation of ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = _IO_FILE*; std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’:
/mnt/usr/src/gcc-11.2.0/build/include/bits/basic_file.h:79:34: required from here
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:2615:48: error: ‘value’ is not a member of ‘std::__and_<std::is_nothrow_move_constructible<_IO_FILE*>, std::is_nothrow_move_assignable<_IO_FILE*> >’
2615 | is_nothrow_move_assignable<_Tp>>::value);
| ^~~~~
/mnt/usr/src/gcc-11.2.0/build/include/type_traits: In instantiation of ‘struct std::is_nothrow_move_constructible<bool>’:
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:138:12: required from ‘struct std::__and_<std::is_nothrow_move_constructible<bool>, std::is_nothrow_move_assignable<bool> >’
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:2615:48: required from ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = bool; std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’
/mnt/usr/src/gcc-11.2.0/build/include/bits/basic_file.h:80:50: required from here
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1027:12: error: invalid use of incomplete type ‘struct std::__is_nothrow_move_constructible_impl<bool, true>’
1027 | struct is_nothrow_move_constructible
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1014:12: note: declaration of ‘struct std::__is_nothrow_move_constructible_impl<bool, true>’
1014 | struct __is_nothrow_move_constructible_impl;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/usr/src/gcc-11.2.0/build/include/type_traits: In instantiation of ‘struct std::__and_<std::is_nothrow_move_constructible<bool>, std::is_nothrow_move_assignable<bool> >’:
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:2615:48: required from ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = bool; std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’
/mnt/usr/src/gcc-11.2.0/build/include/bits/basic_file.h:80:50: required from here
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:138:12: error: ‘value’ is not a member of ‘std::is_nothrow_move_constructible<bool>’
138 | struct __and_<_B1, _B2>
| ^~~~~~~~~~~~~~~~
/mnt/usr/src/gcc-11.2.0/build/include/type_traits: In instantiation of ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = bool; std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’:
/mnt/usr/src/gcc-11.2.0/build/include/bits/basic_file.h:80:50: required from here
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:2615:48: error: ‘value’ is not a member of ‘std::__and_<std::is_nothrow_move_constructible<bool>, std::is_nothrow_move_assignable<bool> >’
2615 | is_nothrow_move_assignable<_Tp>>::value);
| ^~~~~
/mnt/usr/src/gcc-11.2.0/build/include/type_traits: In instantiation of ‘struct std::is_nothrow_move_constructible<std::thread::id>’:
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:138:12: required from ‘struct std::__and_<std::is_nothrow_move_constructible<std::thread::id>, std::is_nothrow_move_assignable<std::thread::id> >’
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:2615:48: required from ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = std::thread::id; std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’
/mnt/usr/src/gcc-11.2.0/build/include/bits/std_thread.h:172:33: required from here
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1027:12: error: invalid use of incomplete type ‘struct std::__is_nothrow_move_constructible_impl<std::thread::id, true>’
1027 | struct is_nothrow_move_constructible
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:1014:12: note: declaration of ‘struct std::__is_nothrow_move_constructible_impl<std::thread::id, true>’
1014 | struct __is_nothrow_move_constructible_impl;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/usr/src/gcc-11.2.0/build/include/type_traits: In instantiation of ‘struct std::__and_<std::is_nothrow_move_constructible<std::thread::id>, std::is_nothrow_move_assignable<std::thread::id> >’:
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:2615:48: required from ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = std::thread::id; std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’
/mnt/usr/src/gcc-11.2.0/build/include/bits/std_thread.h:172:33: required from here
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:138:12: error: ‘value’ is not a member of ‘std::is_nothrow_move_constructible<std::thread::id>’
138 | struct __and_<_B1, _B2>
| ^~~~~~~~~~~~~~~~
/mnt/usr/src/gcc-11.2.0/build/include/type_traits: In instantiation of ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = std::thread::id; std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’:
/mnt/usr/src/gcc-11.2.0/build/include/bits/std_thread.h:172:33: required from here
/mnt/usr/src/gcc-11.2.0/build/include/type_traits:2615:48: error: ‘value’ is not a member of ‘std::__and_<std::is_nothrow_move_constructible<std::thread::id>, std::is_nothrow_move_assignable<std::thread::id> >’
2615 | is_nothrow_move_assignable<_Tp>>::value);
| ^~~~~
In file included from /mnt/usr/src/gcc-11.2.0/build/include/cassert:43,
from /mnt/usr/src/gcc-11.2.0/libstdc++-v3/include/precompiled/stdc++.h:33:
/mnt/usr/src/gcc-11.2.0/build/include/bits/stl_vector.h: In instantiation of ‘std::_Vector_base<_Tp, _Alloc>::_Vector_impl::_Vector_impl() [with _Tp = unsigned int; _Alloc = std::allocator<unsigned int>]’:
/mnt/usr/src/gcc-11.2.0/build/include/bits/random.h:6073:12: recursively required from ‘std::vector<_Tp, _Alloc>::vector() [with _Tp = unsigned int; _Alloc = std::allocator<unsigned int>]’
/mnt/usr/src/gcc-11.2.0/build/include/bits/random.h:6073:12: required from here
/mnt/usr/src/gcc-11.2.0/build/include/bits/stl_vector.h:131:17: error: ‘value’ is not a member of ‘std::is_nothrow_default_constructible<std::allocator<unsigned int> >’
131 | _Vector_impl() _GLIBCXX_NOEXCEPT_IF(
| ^~~~~~~~~~~~~~~~~~~~
/mnt/usr/src/gcc-11.2.0/build/include/bits/stl_vector.h: In instantiation of ‘std::_Vector_base<_Tp, _Alloc>::_Vector_impl::_Vector_impl() [with _Tp = long unsigned int; _Alloc = std::allocator<long unsigned int>]’:
/mnt/usr/src/gcc-11.2.0/build/include/bits/regex_automaton.h:192:25: recursively required from ‘std::vector<_Tp, _Alloc>::vector() [with _Tp = long unsigned int; _Alloc = std::allocator<long unsigned int>]’
/mnt/usr/src/gcc-11.2.0/build/include/bits/regex_automaton.h:192:25: required from here
/mnt/usr/src/gcc-11.2.0/build/include/bits/stl_vector.h:131:17: error: ‘value’ is not a member of ‘std::is_nothrow_default_constructible<std::allocator<long unsigned int> >’
make[2]: *** [Makefile:1862: bits/stdc++.h.gch/O2ggnu++0x.gch] Error 1
make[2]: Leaving directory '/mnt/usr/src/gcc-11.2.0/build/include'
make[1]: *** [Makefile:568: all-recursive] Error 1
make[1]: Leaving directory '/mnt/usr/src/gcc-11.2.0/build'
make: *** [Makefile:493: all] Error 2
/mnt/usr/src/gcc-11.2.0/build $
Posting a huge chunk of stuff without ANY context at all, is pointless...and when posting such things, use CODE tags and post the *RELEVANT* parts of things. Aside from the advice given, and the fact that you mention Ubuntu and Debian in your previous posts, and now you're in LFS, how about clarifying what you've got, from where, and what instructions you're going by???
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.