LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   LFS 7.1; 5.8 Error - dummy.c Sanity Check (https://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-7-1%3B-5-8-error-dummy-c-sanity-check-945923/)

lfs_newbie 05-19-2012 03:29 PM

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


spiky0011 05-19-2012 04:22 PM

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

lfs_newbie 05-19-2012 06:08 PM

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.

spiky0011 05-20-2012 01:21 AM

Why are you in /mnt/lfs/sources/gettext-0.18.1.1/gettext-tools dir???

lfs_newbie 05-20-2012 01:26 AM

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.

spiky0011 05-20-2012 01:37 AM

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.

lfs_newbie 05-20-2012 02:48 AM

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


spiky0011 05-20-2012 03:04 AM

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

lfs_newbie 06-10-2012 05:44 PM

Spiky0011,

I redid with Debian and installed all necessary software before beginning; still had /bin/dash & /usr/bin/mawk but it worked. Thanks.

spiky0011 06-11-2012 06:27 AM

you will to correct those 2 problems otherwise you will Get more trouble


All times are GMT -5. The time now is 02:34 PM.