LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-03-2015, 12:23 AM   #1
Erich
LQ Newbie
 
Registered: May 2015
Posts: 3

Rep: Reputation: Disabled
LFS Libstdc++ make error [ Help! ]


So things were running smoothly, I passed the requirements.
I have all the stuff I need installed then when attempting to run the make command on libstc++, It returns:

Code:
make[3]: *** [compatibility-thread-c++0x.lo] Error 1
make[3]: *** [compatibility-atomic-c++0x.lo] Error 1
make[3]: Leaving directory `/mnt/lfs/sources/gcc-build/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
make: *** [all] Error 2
Can someone help?
I've already reinstalled Gcc
 
Old 05-03-2015, 01:01 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
You should input few more lines before error text.
 
Old 05-03-2015, 06:42 AM   #3
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 3,137

Rep: Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855
what host are you using is it a VM what is the result of version.sh et etc etc, gets boring after a while trying to get people to post basic information.
 
Old 05-03-2015, 10:52 AM   #4
Erich
LQ Newbie
 
Registered: May 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Keith Hedger View Post
what host are you using is it a VM what is the result of version.sh et etc etc, gets boring after a while trying to get people to post basic information.
I'm using Debian 7 Weezy ( Not VM )
here's a few lines before
and This is a result of make

Code:
l>]
/mnt/lfs/sources/gcc-build/include/chrono:252:12: note:   candidate expects 0 arguments, 1 provided
make[3]: *** [compatibility-atomic-c++0x.lo] Error 1
make[3]: *** [compatibility-thread-c++0x.lo] Error 1
make[3]: Leaving directory `/mnt/lfs/sources/gcc-build/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
make: *** [all] Error 2


And here's the Host Requirements test
Code:
bash, version 4.2.37(1)-release
/bin/sh -> /bin/dash
Binutils: (GNU Binutils for Debian) 2.22
bison (GNU Bison) 2.5
/usr/bin/yacc -> /usr/bin/bison.yacc
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-amd64 (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.68-1+deb7u1
m4 (GNU M4) 1.4.16
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
 
Old 05-03-2015, 11:17 AM   #5
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Quote:
Originally Posted by Erich View Post
I'm using Debian 7 Weezy
Have you symlinked bash to /bin/sh?

What is the output of:
Code:
ls -l /bin/sh
EDIT: You haven't.

Run this:
Code:
# ln -sfT bash /bin/sh

Last edited by Head_on_a_Stick; 05-03-2015 at 11:18 AM.
 
Old 05-03-2015, 11:37 AM   #6
Erich
LQ Newbie
 
Registered: May 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Head_on_a_Stick View Post
Have you symlinked bash to /bin/sh?

What is the output of:
Code:
ls -l /bin/sh
EDIT: You haven't.

Run this:
Code:
# ln -sfT bash /bin/sh
Code:
ls -l /bin/sh
Returned

Code:
lrwxrwxrwx 1 root root 4 May  3 12:25 /bin/sh -> bash
Then I ran
Code:
# ln -sfT bash /bin/sh
.. Still not working.
 
Old 05-03-2015, 12:18 PM   #7
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 3,137

Rep: Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855
/bin/sh MUST point to /bin/bash
 
Old 05-03-2015, 03:49 PM   #8
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Perhaps you made a typo in the `./configure` options -- try using Copy&Paste from the on-line manual to your terminal screen to eliminate possible errors.

BTW, your "Host Requirements test" [sic] showed /bin/sh symlinked to dash (standard Debian practice) so I don't understand why the output of `ls -l /bin/sh` showed the bash symlink before you ran my suggested command...
 
Old 05-05-2015, 02:38 AM   #9
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
You'll also have to start over once you retune dash to bash. The shell used by bash is a requirement to build gcc and binutils. You also should be using traditional glibc rather than eglibc.
 
Old 05-05-2015, 09:18 AM   #10
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

Rep: Reputation: Disabled
Quote:
Originally Posted by ReaperX7 View Post
You also should be using traditional glibc rather than eglibc.
Not true. Eglibc is/was just a Glibc fork that accepted support for more architectures than the original Glibc used to. The projects were more or less merged together once the Glibc steering committee was dissolved.
 
Old 05-05-2015, 03:32 PM   #11
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
Ah. I stand corrected. Carry on.
 
  


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
Binutils make error LFS 7.7 Toroso Linux From Scratch 5 03-30-2015 04:09 AM
Glibc2.16.0 make error LFS 7.2 aniketmeshram Linux From Scratch 1 04-10-2013 11:28 AM
error : make-3.82 Lfs 7.1 chapter 6 nourib Linux From Scratch 1 07-30-2012 04:30 AM
LFS 7.1 Glibc-2.14.1 make error samuraixp Linux From Scratch 3 03-18-2012 05:21 AM
make glibc error (LFS) gatblast45 Linux - Software 3 12-21-2004 11:30 AM

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

All times are GMT -5. The time now is 05:55 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