LinuxQuestions.org
Help answer threads with 0 replies.
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 08-27-2013, 07:28 AM   #1
DeeGee
Member
 
Registered: Apr 2013
Distribution: Debian, Linux From Scratch, Mint
Posts: 118

Rep: Reputation: 24
[LFS 7.4 r.c.1] Chapter 5.8. Libstdc++-4.8.1


Hi! Started with LFS 7.4 and got stuck right in the toolchain :s

Thanks in advance for anyone who can help me resolve this issue. I'm using Ubuntu 13.04 as the host system, and no virtualbox this time.

The culprit code is:

Code:
make[3]:../../../gcc-4.8.1/libstdc++-v3/src/c++98/strstream.cc:324:63: error: 'INT_MAX' was not declared in this scope
  size_t N = n > 0 ? size_t(n) : n == 0 ? strlen(get) : size_t(INT_MAX);
                                                               ^
make[3]: *** [strstream.lo] Error 1
make[3]: Leaving directory `/mnt/chill/sources/gcc-build/src/c++98'
Making all in c++11
make[3]: Entering directory `/mnt/chill/sources/gcc-build/src/c++11'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/mnt/chill/sources/gcc-build/src/c++11'
make[3]: Entering directory `/mnt/chill/sources/gcc-build/src'
make[3]: *** No rule to make target `../src/c++98/libc++98convenience.la', needed by `libstdc++.la'.  Stop.
make[3]: Leaving directory `/mnt/chill/sources/gcc-build/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/chill/sources/gcc-build/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/chill/sources/gcc-build'
make: *** [all] Error 2
The only discrepacy with version check is that /bin/sh symlinks to dash instead of bash.

Thanks again!
 
Old 08-27-2013, 09:13 AM   #2
basica
Member
 
Registered: Nov 2011
Location: Australia
Distribution: Arch, LFS
Posts: 166

Rep: Reputation: 38
You need to change the symlink, dash won't cut it.

Run the following:

rm /bin/sh
ln -s /bin/bash /bin/sh

Dash doesn't have all of the bash features which are depended on in the build process. Once you've symlinked it, try again but you may need to go back to the start.

While you're at it, check your other sym links as well. My post here may be of help:

http://www.linuxquestions.org/questi...st-4175474870/

Last edited by basica; 08-27-2013 at 09:15 AM.
 
1 members found this post helpful.
Old 08-27-2013, 09:15 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393
Quote:
Originally Posted by DeeGee View Post
The only discrepacy with version check is that /bin/sh symlinks to dash instead of bash.
/bin/sh _must_ be linked to bash, otherwise you'll get into trouble.

Make sure that all of the Host System Requirements are met, they are there for a reason!
 
1 members found this post helpful.
Old 08-27-2013, 09:55 AM   #4
DeeGee
Member
 
Registered: Apr 2013
Distribution: Debian, Linux From Scratch, Mint
Posts: 118

Original Poster
Rep: Reputation: 24
Sad to say, but despite changing the symlink, the problem is still the same :s.
 
Old 08-27-2013, 10:08 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393
2 questions:

- Can you post the output of the version-check.sh script?
- Did you only redo 5.8. Libstdc++-4.8.1 after changing the link or did you start again from 5.4. Binutils-2.23.2 and onward?

You aren't too far into the build. I would remove what you have, make 100% sure all Host System Requirements are met and start again. Using dash instead of bash might have foobarred some stuff in the chapters leading upto 5.8.
 
Old 08-27-2013, 04:40 PM   #6
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
Yes, if you used Dash at any time up till now rather than Bash, you'll need to completely rebuild from scratch all over from the first package.

Bash is listed as a required build package for a reason.

You have to follow the book exactly.
 
Old 08-27-2013, 06:17 PM   #7
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
Quote:
Originally Posted by druuna View Post
...foobarred...
Actually it's fubar it's an acronym from I think the second world war, if you can't work it out pm me I won't post it on here
 
Old 08-28-2013, 03:18 AM   #8
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393
Quote:
Originally Posted by Keith Hedger View Post
Actually it's fubar it's an acronym from I think the second world war, if you can't work it out pm me I won't post it on here
Actually, its both correct: foobar, fubar (FUBAR), foo, bar, baz, qux, quux

No need to PM me.
 
Old 08-28-2013, 04:15 AM   #9
DeeGee
Member
 
Registered: Apr 2013
Distribution: Debian, Linux From Scratch, Mint
Posts: 118

Original Poster
Rep: Reputation: 24
Recompiling with bash worked like a charm. Finished with the toolchain

And valuable lesson learnt!
 
1 members found this post helpful.
  


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
LFS chapter-by-chapter complete commands with notes DrinkinHomeBrew Linux From Scratch 6 03-16-2012 02:57 AM
LFS 6.3, messed up somewhere prior to chapter 6.12 (gcc), how to restart chapter 6? Funkster Linux From Scratch 2 12-24-2008 07:30 AM
lfs chapter 6.12 deucedlt Linux From Scratch 1 08-13-2006 11:03 AM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 01:31 AM
LFS 5.0 Chapter 5 cuco76 Linux From Scratch 1 11-23-2003 11:28 PM

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

All times are GMT -5. The time now is 06:55 AM.

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