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
 
LinkBack Search this Thread
Old 05-19-2012, 03:29 PM   #1
lfs_newbie
LQ Newbie
 
Registered: May 2012
Posts: 10

Rep: Reputation: Disabled
LFS 7.1; 5.8 Error - dummy.c Sanity Check


I am really new to LFS; and have completed everything up to 5.8, but when I complete the sanity check on everything I had done up to that point; it fails to achieve the required result. Does anyone know what I did wrong?

Thanks for any help.

Code:
lfs@LFS-Development:/mnt/lfs/sources/gettext-0.18.1.1/gettext-tools$ SPECS=`dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/specs
lfs@LFS-Development:/mnt/lfs/sources/gettext-0.18.1.1/gettext-tools$ $LFS_TGT-gcc -dumpspecs | sed \
>   -e 's@/lib\(64\)\?/ld@/tools&@g' \
>   -e "/^\*cpp:$/{n;s,$, -isystem /tools/include,}" > $SPECS
lfs@LFS-Development:/mnt/lfs/sources/gettext-0.18.1.1/gettext-tools$ echo "New specs file is: $SPECS"
New specs file is: /tools/lib/gcc/i686-lfs-linux-gnu/4.6.2/specs
lfs@LFS-Development:/mnt/lfs/sources/gettext-0.18.1.1/gettext-tools$ unset SPECS
lfs@LFS-Development:/mnt/lfs/sources/gettext-0.18.1.1/gettext-tools$ echo 'main(){}' > dummy.c
lfs@LFS-Development:/mnt/lfs/sources/gettext-0.18.1.1/gettext-tools$ $LFS_TGT-gcc -B/tools/lib dummy.c
/tools/lib/gcc/i686-lfs-linux-gnu/4.6.2/../../../../i686-lfs-linux-gnu/bin/ld: cannot find crt1.o: No such file or directory
/tools/lib/gcc/i686-lfs-linux-gnu/4.6.2/../../../../i686-lfs-linux-gnu/bin/ld: cannot find crti.o: No such file or directory
/tools/lib/gcc/i686-lfs-linux-gnu/4.6.2/../../../../i686-lfs-linux-gnu/bin/ld: cannot find -lc
/tools/lib/gcc/i686-lfs-linux-gnu/4.6.2/../../../../i686-lfs-linux-gnu/bin/ld: cannot find crtn.o: No such file or directory
collect2: ld returned 1 exit status
lfs@LFS-Development:/mnt/lfs/sources/gettext-0.18.1.1/gettext-tools$ readelf -l a.out | grep ': /tools'
readelf: Error: 'a.out': No such file
lfs@LFS-Development:/mnt/lfs/sources/gettext-0.18.1.1/gettext-tools$ echo $LFS_TGT
i686-lfs-linux-gnu
 
Old 05-19-2012, 04:22 PM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,611
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
Hi

Did you copy and paste the BIG command in before the test (easy to make a typo) if not I would do that, I,m afraid thats all I can give at the moment

Also I noticed you are in /mnt/lfs/sources/gettext/gettext-tools dir??? which is chapter 5.23

Last edited by spiky0011; 05-19-2012 at 04:49 PM.
 
Old 05-19-2012, 06:08 PM   #3
lfs_newbie
LQ Newbie
 
Registered: May 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Yes I did copy and paste. Actually this was the second time I ran into this issue, and I copied every command.

Also I am using Ubuntu 9.04 for my distro to build this.
 
Old 05-20-2012, 01:21 AM   #4
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,611
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
Why are you in /mnt/lfs/sources/gettext-0.18.1.1/gettext-tools dir???
 
Old 05-20-2012, 01:26 AM   #5
lfs_newbie
LQ Newbie
 
Registered: May 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
That just happened to be the place I was at when I installed msgfmt from gettext. It happened the same when I move to the source sir.
 
Old 05-20-2012, 01:37 AM   #6
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,611
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
So you had a error with glibc about msgfmt it dose say that this is harmless.
Can you post the output of the version-check hereto make sure ubuntu in compatible.
 
Old 05-20-2012, 02:48 AM   #7
lfs_newbie
LQ Newbie
 
Registered: May 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Code:
lfs@LFS-Development:/mnt/lfs/sources$ bash version-check.sh
bash, version 3.2.48(1)-release
/bin/sh -> /bin/dash
Binutils: (GNU Binutils for Ubuntu) 2.19.1
version-check.sh: line 8: bison: command not found
yacc not found
bzip2,  Version 1.0.5, 10-Dec-2007.
Coreutils:  6.10
diff (GNU diffutils) 2.8.1
find (GNU findutils) 4.4.0
version-check.sh: line 17: gawk: command not found
/usr/bin/awk -> /usr/bin/mawk
gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3
(GNU libc) 2.9
GNU grep 2.5.3
gzip 1.3.12
Linux version 2.6.28-11-generic (buildd@palmer) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009
version-check.sh: line 27: m4: command not found
GNU Make 3.81
patch 2.6.1
Perl version='5.10.0';
GNU sed version 4.1.5
tar (GNU tar) 1.20
version-check.sh: line 33: makeinfo: command not found
Texinfo: 
version-check.sh: line 34: xz: command not found
gcc compilation OK
 
Old 05-20-2012, 03:04 AM   #8
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,611
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
Ok we need to sort out all the errors on here 1st
Code:
bash, version 3.2.48(1)-release
/bin/sh -> /bin/dash   << should be /bin/bash
Binutils: (GNU Binutils for Ubuntu) 2.19.1
version-check.sh: line 8: bison: command not found  <<bison needs to be installed
yacc not found
bzip2,  Version 1.0.5, 10-Dec-2007.
Coreutils:  6.10
diff (GNU diffutils) 2.8.1
find (GNU findutils) 4.4.0
version-check.sh: line 17: gawk: command not found  <<gawk needs to be installed
/usr/bin/awk -> /usr/bin/mawk <<this should point to /usr/bin/gawk
gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3
(GNU libc) 2.9
GNU grep 2.5.3
gzip 1.3.12
Linux version 2.6.28-11-generic (buildd@palmer) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009
version-check.sh: line 27: m4: command not found  <<this
GNU Make 3.81
patch 2.6.1
Perl version='5.10.0';
GNU sed version 4.1.5
tar (GNU tar) 1.20
version-check.sh: line 33: makeinfo: command not found <<this 
Texinfo: 
version-check.sh: line 34: xz: command not found << this
gcc compilation OK
These must be fixed before building
 
Old 06-10-2012, 05:44 PM   #9
lfs_newbie
LQ Newbie
 
Registered: May 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Spiky0011,

I redid with Debian and installed all necessary software before beginning; still had /bin/dash & /usr/bin/mawk but it worked. Thanks.
 
Old 06-11-2012, 06:27 AM   #10
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,611
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
you will to correct those 2 problems otherwise you will Get more trouble
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Sanity check LFS 7.0 - do I need to re-add packages in GCC pass 2? DrinkinHomeBrew Linux From Scratch 2 12-19-2011 10:23 AM
LFS 7.0 chapter 6.17 sanity check problem manzig Linux From Scratch 1 12-11-2011 04:19 AM
[SOLVED] "C preprocessor... ...fails sanity check" in LFS 7.0 chapter 6.17 nerdy117 Linux From Scratch 9 11-24-2011 11:38 PM
[SOLVED] LFS 6.8: Problem in Sanity Check in Chroot (chap 6.10) TKH Linux From Scratch 13 10-07-2011 03:48 AM
LFS 6 ch5.9 adjusting the toolchain failed sanity check totty79 Linux From Scratch 1 03-21-2005 02:58 PM


All times are GMT -5. The time now is 04:43 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration