LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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


Reply
  Search this Thread
Old 04-26-2016, 03:12 AM   #1
Jigsaw
Member
 
Registered: Apr 2016
Location: Indonesia
Distribution: Debian
Posts: 77

Rep: Reputation: Disabled
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.
 
Old 04-26-2016, 09:13 AM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,554
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Search for and install the libmpfr-dev libmpc-dev, and libgmp-dev packages.

Last edited by ReaperX7; 04-26-2016 at 09:18 AM.
 
1 members found this post helpful.
Old 04-28-2016, 07:17 AM   #3
Jigsaw
Member
 
Registered: Apr 2016
Location: Indonesia
Distribution: Debian
Posts: 77

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ReaperX7 View Post
Search for and install the libmpfr-dev libmpc-dev, and libgmp-dev packages.
thank you sir for help me, this solved.
 
Old 04-28-2016, 02:33 PM   #4
hpmachining
LQ Newbie
 
Registered: Apr 2016
Posts: 15

Rep: Reputation: 1
Quote:
Originally Posted by ReaperX7 View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Make producing error 'Makefile:1669: recipe for target 'modules' failed' on Kali 2.0 qwertyatom100 Linux - Newbie 1 11-14-2015 11:12 PM
Recipe for target opncls.lo failed aqua123 Linux From Scratch 1 07-22-2014 09:20 PM
[SOLVED] otcl-1.14 make failed [recipe for target `libotcl.a' failed] for ns-allinone-2.35-RC8 pratikjoshi Linux - Newbie 4 08-23-2013 06:44 AM
makefile subdirectory target sancho1980 Linux - General 1 08-18-2008 05:25 PM
strange target name containing % in Makefile George2 Programming 2 04-25-2006 06:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration