[SOLVED] LFS 7.7: Problem while trying to compile Libstdc++
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.
LFS 7.7: Problem while trying to compile Libstdc++
Hi everyone, I've been building my first LFS system, I'm using Debian 7.8 and LFS 7.7, everything was compiling good, until I got to the point I had to compile Libstdc++, when I run 'make' I got some Errors. This is what I get:
Quote:
from /media/unitecos/sources/gcc-build/include/string:40,
from ../../gcc-4.9.2/libstdc++-v3/src/c++11/compatibility-c++0x.cc:26:
/media/unitecos/sources/gcc-build/include/type_traits:395:44: error: template argument 1 is invalid
/media/unitecos/sources/gcc-build/include/type_traits:399:45: error: template argument 1 is invalid
/media/unitecos/sources/gcc-build/include/type_traits:407:47: error: template argument 1 is invalid
/media/unitecos/sources/gcc-build/include/type_traits:411:48: error: template argument 1 is invalid
/media/unitecos/sources/gcc-build/include/type_traits:419:50: error: template argument 1 is invalid
/media/unitecos/sources/gcc-build/include/type_traits:423:51: error: template argument 1 is invalid
/media/unitecos/sources/gcc-build/include/type_traits:431:53: error: template argument 1 is invalid
/media/unitecos/sources/gcc-build/include/type_traits:435:54: error: template argument 1 is invalid
/media/unitecos/sources/gcc-build/include/type_traits:443:53: error: template argument 1 is invalid
/media/unitecos/sources/gcc-build/include/type_traits:447:54: error: template argument 1 is invalid
/media/unitecos/sources/gcc-build/include/type_traits:455:56: error: template argument 1 is invalid
/media/unitecos/sources/gcc-build/include/type_traits:459:57: error: template argument 1 is invalid
/media/unitecos/sources/gcc-build/include/type_traits:467:59: error: template argument 1 is invalid
/media/unitecos/sources/gcc-build/include/type_traits:471:60: error: template argument 1 is invalid
/media/unitecos/sources/gcc-build/include/type_traits:479:62: error: template argument 1 is invalid
/media/unitecos/sources/gcc-build/include/type_traits:483:63: error: template argument 1 is invalid
make[3]: *** [compatibility-c++0x.lo] Error 1
make[3]: Leaving directory `/media/unitecos/sources/gcc-build/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/media/unitecos/sources/gcc-build/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/media/unitecos/sources/gcc-build'
make: *** [all] Error 2
That's where I get the errors when I run 'make', by the way
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 3,137
Rep:
I notice you are using debian as the host, debian needs extra work to make it comlient for lfs, please post the output of the version.sh script, most common problem is having /bin/sh as a link to dash instead of bash.
GNU bash, version 4.2.37(1)-release (i486-pc-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
bash, version 4.2.37(1)-release
/bin/sh -> /bin/dash
Binutils: (GNU Binutils for Debian) 2.22
version-check.sh: line 8: bison: command not found
yacc not found
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.13
diff (GNU diffutils) 3.2
find (GNU findutils) 4.4.2
GNU Awk 4.0.1
/usr/bin/awk -> /usr/bin/gawk
gcc (Debian 4.7.2-5) 4.7.2
g++ (Debian 4.7.2-5) 4.7.2
(Debian EGLIBC 2.13-38+deb7u8) 2.13
grep (GNU grep) 2.12
gzip 1.5
Linux version 3.2.0-4-486 (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 Debian 3.2.65-1+deb7u2
version-check.sh: line 38: m4: command not found
GNU Make 3.81
patch 2.6.1
Perl version='5.14.2';
GNU sed version 4.2.1
tar (GNU tar) 1.26
makeinfo (GNU texinfo) 4.13
xz (XZ Utils) 5.1.0alpha
g++ compilation OK
And it seems you are right. Now how do I solve this?
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 3,137
Rep:
you're welcome, please mark the thread solved and remember to read through the book as you go, skipping ahead means you miss bits and bad things happen, good luck.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.