LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Makefile:910: recipe for target 'compatibility-c++0x.lo' failed (https://www.linuxquestions.org/questions/linux-from-scratch-13/makefile-910-recipe-for-target-compatibility-c-0x-lo-failed-4175578347/)

Jigsaw 04-26-2016 03:12 AM

Makefile:910: recipe for target 'compatibility-c++0x.lo' failed
 
I experienced problems at compile time libstdc ++ on lfs 7.9.

Code:

In file included from /mnt/lfs/sources/gcc-5.3.0/build/include/bits/move.h:57:0,
                from /mnt/lfs/sources/gcc-5.3.0/build/include/bits/stl_pair.h:59,
                from /mnt/lfs/sources/gcc-5.3.0/build/include/bits/stl_algobase.h:64,
                from /mnt/lfs/sources/gcc-5.3.0/build/include/bits/char_traits.h:39,
                from /mnt/lfs/sources/gcc-5.3.0/build/include/string:40,
                from ../../libstdc++-v3/src/c++11/compatibility-c++0x.cc:31:
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:644:65: error: there are no arguments to '__is_trivially_copyable' that depend on a template parameter, so a declaration of '__is_trivially_copyable' must be available [-fpermissive]
    : public integral_constant<bool, __is_trivially_copyable(_Tp)>
                                                                ^
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:644:65: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:644:66: error: template argument 2 is invalid
    : public integral_constant<bool, __is_trivially_copyable(_Tp)>
                                                                  ^
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1325:46: error: there are no arguments to '__is_trivially_constructible' that depend on a template parameter, so a declaration of '__is_trivially_constructible' must be available [-fpermissive]
    __is_trivially_constructible(_Tp, _Args...)>>::type
                                              ^
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1325:46: error: template argument 2 is invalid
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1325:47: error: template argument 2 is invalid
    __is_trivially_constructible(_Tp, _Args...)>>::type
                                              ^
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1325:51: error: expected '{' before 'type'
    __is_trivially_constructible(_Tp, _Args...)>>::type
                                                  ^
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1326:5: error: invalid type in declaration before '{' token
    { };
    ^
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1326:5: error: template declaration of 'int std::type'
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1339:48: error: there are no arguments to '__is_trivially_constructible' that depend on a template parameter, so a declaration of '__is_trivially_constructible' must be available [-fpermissive]
    __is_trivially_constructible(_Tp, const _Tp&)>>::type
                                                ^
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1339:48: error: template argument 2 is invalid
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1339:49: error: template argument 2 is invalid
    __is_trivially_constructible(_Tp, const _Tp&)>>::type
                                                ^
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1339:53: error: expected '{' before 'type'
    __is_trivially_constructible(_Tp, const _Tp&)>>::type
                                                    ^
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1340:5: error: invalid type in declaration before '{' token
    { };
    ^
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1340:5: error: template declaration of 'int std::type'
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1347:43: error: there are no arguments to '__is_trivially_constructible' that depend on a template parameter, so a declaration of '__is_trivially_constructible' must be available [-fpermissive]
    __is_trivially_constructible(_Tp, _Tp&&)>>::type
                                          ^
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1347:43: error: template argument 2 is invalid
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1347:44: error: template argument 2 is invalid
    __is_trivially_constructible(_Tp, _Tp&&)>>::type
                                            ^
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1347:48: error: expected '{' before 'type'
    __is_trivially_constructible(_Tp, _Tp&&)>>::type
                                                ^
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1348:5: error: invalid type in declaration before '{' token
    { };
    ^
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1348:5: error: template declaration of 'int std::type'
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1355:38: error: there are no arguments to '__is_trivially_assignable' that depend on a template parameter, so a declaration of '__is_trivially_assignable' must be available [-fpermissive]
    __is_trivially_assignable(_Tp, _Up)>>::type
                                      ^
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1355:38: error: template argument 2 is invalid
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1355:39: error: template argument 2 is invalid
    __is_trivially_assignable(_Tp, _Up)>>::type
                                      ^
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1355:43: error: expected '{' before 'type'
    __is_trivially_assignable(_Tp, _Up)>>::type
                                          ^
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1356:5: error: invalid type in declaration before '{' token
    { };
    ^
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1356:5: error: template declaration of 'int std::type'
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1363:46: error: there are no arguments to '__is_trivially_assignable' that depend on a template parameter, so a declaration of '__is_trivially_assignable' must be available [-fpermissive]
    __is_trivially_assignable(_Tp&, const _Tp&)>>::type
                                              ^
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1363:46: error: template argument 2 is invalid
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1363:47: error: template argument 2 is invalid
    __is_trivially_assignable(_Tp&, const _Tp&)>>::type
                                              ^
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1363:51: error: expected '{' before 'type'
    __is_trivially_assignable(_Tp&, const _Tp&)>>::type
                                                  ^
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1364:5: error: invalid type in declaration before '{' token
    { };
    ^
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1364:5: error: template declaration of 'int std::type'
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1371:41: error: there are no arguments to '__is_trivially_assignable' that depend on a template parameter, so a declaration of '__is_trivially_assignable' must be available [-fpermissive]
    __is_trivially_assignable(_Tp&, _Tp&&)>>::type
                                        ^
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1371:41: error: template argument 2 is invalid
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1371:42: error: template argument 2 is invalid
    __is_trivially_assignable(_Tp&, _Tp&&)>>::type
                                          ^
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1371:46: error: expected '{' before 'type'
    __is_trivially_assignable(_Tp&, _Tp&&)>>::type
                                              ^
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1372:5: error: invalid type in declaration before '{' token
    { };
    ^
/mnt/lfs/sources/gcc-5.3.0/build/include/type_traits:1372:5: error: template declaration of 'int std::type'
Makefile:910: recipe for target 'compatibility-c++0x.lo' failed
make[3]: *** [compatibility-c++0x.lo] Error 1
make[3]: Leaving directory '/mnt/lfs/sources/gcc-5.3.0/build/src'
Makefile:637: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/mnt/lfs/sources/gcc-5.3.0/build/src'
Makefile:507: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/mnt/lfs/sources/gcc-5.3.0/build'
Makefile:414: recipe for target 'all' failed
make: *** [all] Error 2

this is my version

Code:

bash version-check.sh
bash, version 4.3.30(1)-release
/bin/sh -> /bin/bash
Binutils: (GNU Binutils for Debian) 2.25
bison (GNU Bison) 3.0.2
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2,  Version 1.0.6, 6-Sept-2010.
Coreutils:  8.23
diff (GNU diffutils) 3.3
find (GNU findutils) 4.4.2
GNU Awk 4.1.1, API: 1.1 (GNU MPFR 3.1.2-p3, GNU MP 6.0.0)
/usr/bin/awk -> /usr/bin/gawk
gcc (Debian 4.9.2-10) 4.9.2
g++ (Debian 4.9.2-10) 4.9.2
(Debian GLIBC 2.19-18+deb8u4) 2.19
grep (GNU grep) 2.20
gzip 1.6
Linux version 3.16.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 SMP Debian 3.16.7-ckt25-1 (2016-03-06)
m4 (GNU M4) 1.4.17
GNU Make 4.0
GNU patch 2.7.5
Perl version='5.20.2';
sed (GNU sed) 4.2.2
tar (GNU tar) 1.27.1
makeinfo (GNU texinfo) 5.2
xz (XZ Utils) 5.1.0alpha
g++ compilation OK
root@debian:/home/user# bash library-check.sh
libgmp.la: not found
libmpfr.la: not found
libmpc.la: not found

please help me sir.

ReaperX7 04-26-2016 09:13 AM

Search for and install the libmpfr-dev libmpc-dev, and libgmp-dev packages.

Jigsaw 04-28-2016 07:17 AM

Quote:

Originally Posted by ReaperX7 (Post 5536749)
Search for and install the libmpfr-dev libmpc-dev, and libgmp-dev packages.

thank you sir for help me, this solved.

hpmachining 04-28-2016 02:33 PM

Quote:

Originally Posted by ReaperX7 (Post 5536749)
Search for and install the libmpfr-dev libmpc-dev, and libgmp-dev packages.

I see this solved the OP's problem. I am curious as to why these needed to be installed. According to the book:
Quote:

The files identified by this script should be all present or all absent, but not only one or two present.
Thank you.


All times are GMT -5. The time now is 01:50 PM.