LinuxQuestions.org
Visit Jeremy's Blog.
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-19-2015, 05:34 PM   #1
GabLFS
LQ Newbie
 
Registered: Apr 2015
Posts: 17

Rep: Reputation: Disabled
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
Quote:
../gcc-4.9.2/libstdc++-v3/configure --host=$LFS_TGT --prefix=/tools --disable-multilib --disable-shared --disable-nls --disable-libstdcxx-threads --disable-libstdcxx-pch --with-gxx-include-dir=/tools/$LFS_TGT/include/c++/4.9.2
runs fine. I don't know if I have to install anything else in the host system.

Last edited by GabLFS; 04-19-2015 at 05:36 PM.
 
Old 04-19-2015, 07:46 PM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,732

Rep: Reputation: 683Reputation: 683Reputation: 683Reputation: 683Reputation: 683Reputation: 683
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.
 
1 members found this post helpful.
Old 04-19-2015, 08:10 PM   #3
GabLFS
LQ Newbie
 
Registered: Apr 2015
Posts: 17

Original Poster
Rep: Reputation: Disabled
Hi Keith. Do you mean this?

Quote:
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>
 
Old 04-19-2015, 08:13 PM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,732

Rep: Reputation: 683Reputation: 683Reputation: 683Reputation: 683Reputation: 683Reputation: 683
http://www.linuxfromscratch.org/lfs/.../hostreqs.html
No this about half way down the page
 
1 members found this post helpful.
Old 04-19-2015, 08:22 PM   #5
GabLFS
LQ Newbie
 
Registered: Apr 2015
Posts: 17

Original Poster
Rep: Reputation: Disabled
OK, here it is:
Quote:
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?
 
Old 04-19-2015, 08:23 PM   #6
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,732

Rep: Reputation: 683Reputation: 683Reputation: 683Reputation: 683Reputation: 683Reputation: 683
fix all the errors and start again from scratch
 
1 members found this post helpful.
Old 04-19-2015, 08:32 PM   #7
GabLFS
LQ Newbie
 
Registered: Apr 2015
Posts: 17

Original Poster
Rep: Reputation: Disabled
Will, whatever happens, I'll let you know. Thanks!
 
Old 04-19-2015, 08:36 PM   #8
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,732

Rep: Reputation: 683Reputation: 683Reputation: 683Reputation: 683Reputation: 683Reputation: 683
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.
 
1 members found this post helpful.
Old 04-19-2015, 08:45 PM   #9
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-Current
Posts: 6,449
Blog Entries: 15

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
Relink /bin/sh to /bin/bash.

Code:
ln -sfv /bin/sh /bin/bash
 
1 members found this post helpful.
Old 04-19-2015, 09:58 PM   #10
GabLFS
LQ Newbie
 
Registered: Apr 2015
Posts: 17

Original Poster
Rep: Reputation: Disabled
Thanks Reaper, I just did that, and it worked! also I needed to install some packages since I did a minimal Debian installation. Thank you both.
 
  


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
LInux from scratch: Libstdc++v3 compile problem tristan401 Linux From Scratch 5 12-15-2013 11:17 PM
[SOLVED] [LFS 7.4 r.c.1] Chapter 5.8. Libstdc++-4.8.1 DeeGee Linux From Scratch 8 08-28-2013 04:15 AM
Problem with compile test after compiling glibc LFS 7.2 joneschrisan Linux From Scratch 16 01-12-2013 10:35 PM
Need older libraries: libstdc++-3.2.4, libstdc++-libc6.-1.so.2, & compat-2004.7.1 al_moline SUSE / openSUSE 2 10-19-2007 08:01 AM
GIMP Compile Problem, LFS 6.0 & BLFS 5.1 drowbot Linux From Scratch 2 12-10-2004 02:37 PM

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

All times are GMT -5. The time now is 08:59 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration