LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Problem with compile test after compiling glibc LFS 7.2 (http://www.linuxquestions.org/questions/linux-from-scratch-13/problem-with-compile-test-after-compiling-glibc-lfs-7-2-a-4175440832/)

joneschrisan 12-10-2012 11:52 AM

Problem with compile test after compiling glibc LFS 7.2
 
LFS Version: 7.2
Base System: Debian wheezy
Chapter: 5.7.2

Version Check:
Code:

bash, version 4.2.36(1)-release
/bin/sh -> /bin/bash
Binutils: coreutils) 8.13
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-4) 4.7.2
ldd (Debian EGLIBC 2.13-37) 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-12) ) #1 Debian 3.2.32-1
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
Texinfo: makeinfo (GNU texinfo) 4.13
xz (XZ Utils) 5.1.0alpha
gcc compilation OK

Command:
Code:

$ echo 'main(){}' > dummy.c
$ $LFS_TGT-gcc dummy.c

Error:
Code:

/mnt/LFS/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/bin/ld: cannot find crt1.o: No such file or directory
/mnt/LFS/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/bin/ld: cannot find crti.o: No such file or directory
/mnt/LFS/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/bin/ld: cannot find -lc
/mnt/LFS/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status


EDDY1 12-10-2012 01:29 PM

Did you login to new user or "su -lfs" before going to Chapter 4.2.

EDDY1 12-10-2012 01:33 PM

Look at this thread here
http://www.linuxquestions.org/questi...bc-4175419132/

joneschrisan 12-10-2012 02:49 PM

EDDY1, I did all steps as user lfs so lfs owns all the files created (su'ed to lfs). lfs owns the directorie /mount/LFS and all sub dirs so thats not the problem.

Also I saw that post first and was then told as the last post on that thred says, to start a new topic for the problem as that one is solved and is for LFS 7.1 where as I am stuck with LFS 7.2

I did get another error with my first attempt and then realised I miss read the version-info and /bin/sh was a sym link to /bin/dash not /bin/bash. I sorted that out then started again and now I get this problem.

I am rinning the host system (Debian Wheezy) on a virtual machine (virtual box) under Debian Squeeze if that makes any diference.

EDDY1 12-10-2012 03:14 PM

It will build in virtualbox
If you are on debian host you also created lfs user you can enter at login window, but I think that you missed something on you second go around, right now you are still a the early stages of your build I would just start over.

Lancelot1 12-11-2012 02:49 AM

I have the same issue

gcc (Debian 4.7.2-4) 4.7.2 > 4.7.1 might be the issue

dunno yet

joneschrisan 12-11-2012 04:58 AM

Lancelot1 Yea I thought maybe the same but I cant find out how to downgrade from 4.7.2 to 4.7.1
The only other version available for wheezy is 6.x.x, I can't figure out how to use that one instead and I can't uninstall 4.7.2 without messing up my system.

druuna 12-11-2012 05:27 AM

@joneschrisan: Can you post the output of the following commands (log in as user lfs):
Code:

cat ~/.bash_profile
cat ~/.bashrc
uname -m
echo $PATH
echo 'main(){}' > dummy.c
$LFS_TGT-gcc -v dummy.c


joneschrisan 12-11-2012 06:37 AM

$ cat ~/.bash_profile
Code:

exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
$ cat ~/.bashrc
Code:

set +h
umask 022
LFS=/mnt/LFS
LC_ALL=POSIX
LFS_TGT=$(uname -m)-lfs-linux-gnu
PATH=/tools/bin:/bin:/usr/bin
export LFS LC_ALL LFS_TGT PATH

$ uname -m
Code:

i686
$ echo $PATH
Code:

/tools/bin:/bin:/usr/bin
$ echo 'main(){}' > dummy.c
$ $LFS_TGT-gcc -v dummy.c
Code:

Using built-in specs.
COLLECT_GCC=i686-lfs-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/mnt/LFS/tools/bin/../libexec/gcc/i686-lfs-linux-gnu/4.7.1/lto-wrapper
Target: i686-lfs-linux-gnu
Configured with: ../gcc-4.7.1/configure --target=i686-lfs-linux-gnu --prefix=/tools --with-sysroot=/mnt/LFS --with-newlib --without-headers --with-local-prefix=/tools --with-native-system-header-dir=/tools/include --disable-nls --disable-shared --disable-multilib --disable-decimal-float --disable-threads --disable-libmudflap --disable-libssp --disable-libgomp --disable-libquadmath --enable-languages=c --with-mpfr-include=/mnt/LFS/sources/gcc-build/../gcc-4.7.1/mpfr/src --with-mpfr-lib=/mnt/LFS/sources/gcc-build/mpfr/src/.libs
Thread model: single
gcc version 4.7.1 (GCC)
COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=pentiumpro'
 /mnt/LFS/tools/bin/../libexec/gcc/i686-lfs-linux-gnu/4.7.1/cc1 -quiet -v -iprefix /mnt/LFS/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/ dummy.c -quiet -dumpbase dummy.c -mtune=generic -march=pentiumpro -auxbase dummy -version -o /tmp/ccOxXcNV.s
GNU C (GCC) version 4.7.1 (i686-lfs-linux-gnu)
        compiled by GNU C version 4.7.2, GMP version 5.0.5, MPFR version 3.1.1, MPC version 1.0
GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=129324
ignoring nonexistent directory "/mnt/LFS/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/include"
ignoring duplicate directory "/mnt/LFS/tools/bin/../lib/gcc/../../lib/gcc/i686-lfs-linux-gnu/4.7.1/include"
ignoring duplicate directory "/mnt/LFS/tools/bin/../lib/gcc/../../lib/gcc/i686-lfs-linux-gnu/4.7.1/include-fixed"
ignoring nonexistent directory "/mnt/LFS/tools/bin/../lib/gcc/../../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/include"
ignoring duplicate directory "/mnt/LFS/tools/include"
#include "..." search starts here:
#include <...> search starts here:
 /mnt/LFS/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/include
 /mnt/LFS/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/include-fixed
 /mnt/LFS/tools/include
End of search list.
GNU C (GCC) version 4.7.1 (i686-lfs-linux-gnu)
        compiled by GNU C version 4.7.2, GMP version 5.0.5, MPFR version 3.1.1, MPC version 1.0
GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=129324
Compiler executable checksum: 18c43f584ce4ba86e8560b14cdad5431
COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=pentiumpro'
 /mnt/LFS/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/bin/as -v --32 -o /tmp/cceWatal.o /tmp/ccOxXcNV.s
GNU assembler version 2.22 (i686-lfs-linux-gnu) using BFD version (GNU Binutils) 2.22
COMPILER_PATH=/mnt/LFS/tools/bin/../libexec/gcc/i686-lfs-linux-gnu/4.7.1/:/mnt/LFS/tools/bin/../libexec/gcc/:/mnt/LFS/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/bin/
LIBRARY_PATH=/mnt/LFS/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/:/mnt/LFS/tools/bin/../lib/gcc/:/mnt/LFS/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/lib/
COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=pentiumpro'
 /mnt/LFS/tools/bin/../libexec/gcc/i686-lfs-linux-gnu/4.7.1/collect2 --sysroot=/mnt/LFS --eh-frame-hdr -m elf_i386 -dynamic-linker /tools/lib/ld-linux.so.2 crt1.o crti.o /mnt/LFS/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/crtbegin.o -L/mnt/LFS/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1 -L/mnt/LFS/tools/bin/../lib/gcc -L/mnt/LFS/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/lib /tmp/cceWatal.o -lgcc -lc -lgcc /mnt/LFS/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/crtend.o crtn.o
/mnt/LFS/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/bin/ld: cannot find crt1.o: No such file or directory
/mnt/LFS/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/bin/ld: cannot find crti.o: No such file or directory
/mnt/LFS/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/bin/ld: cannot find -lc
/mnt/LFS/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status


druuna 12-11-2012 07:38 AM

Did you use /mnt/LFS in all the stages of the book (Why deviate from the book)?

Check to see if those 3 files mentioned are present on your system. As root, run the following commands from your host and post the output:
Code:

updatedb
locate -r "/crt[1in].o"


joneschrisan 12-11-2012 08:13 AM

I did use /mnt/LFS in all stages yes. How is that deviating from the book?

locate -r "/crt[1in].o" gives me no output.
But:

# find / -name "crt[1in].o"
Code:

/mnt/LFS/sources/glibc-build/nptl/crtn.o
/mnt/LFS/sources/glibc-build/nptl/crti.o
/mnt/LFS/sources/glibc-build/csu/crt1.o
/mnt/LFS/sources/glibc-build/csu/crtn.o
/mnt/LFS/sources/glibc-build/csu/crti.o
/mnt/LFS/tools/lib/crt1.o
/mnt/LFS/tools/lib/crtn.o
/mnt/LFS/tools/lib/crti.o
/usr/lib/i386-linux-gnu/crtn.o
/usr/lib/i386-linux-gnu/crti.o
/usr/lib/i386-linux-gnu/crt1.o

However:

# locate -r "/crt[1in]*"
Code:

/mnt/LFS/sources/glibc-2.16.0/sysdeps/i386/crti.S
/mnt/LFS/sources/glibc-2.16.0/sysdeps/i386/crtn.S
/mnt/LFS/sources/glibc-2.16.0/sysdeps/powerpc/powerpc32/crti.S
/mnt/LFS/sources/glibc-2.16.0/sysdeps/powerpc/powerpc32/crtn.S
/mnt/LFS/sources/glibc-2.16.0/sysdeps/powerpc/powerpc64/crti.S
/mnt/LFS/sources/glibc-2.16.0/sysdeps/powerpc/powerpc64/crtn.S
/mnt/LFS/sources/glibc-2.16.0/sysdeps/s390/s390-32/crti.S
/mnt/LFS/sources/glibc-2.16.0/sysdeps/s390/s390-32/crtn.S
/mnt/LFS/sources/glibc-2.16.0/sysdeps/s390/s390-64/crti.S
/mnt/LFS/sources/glibc-2.16.0/sysdeps/s390/s390-64/crtn.S
/mnt/LFS/sources/glibc-2.16.0/sysdeps/sh/crti.S
/mnt/LFS/sources/glibc-2.16.0/sysdeps/sh/crtn.S
/mnt/LFS/sources/glibc-2.16.0/sysdeps/sparc/crti.S
/mnt/LFS/sources/glibc-2.16.0/sysdeps/sparc/crtn.S
/mnt/LFS/sources/glibc-2.16.0/sysdeps/x86_64/crti.S
/mnt/LFS/sources/glibc-2.16.0/sysdeps/x86_64/crtn.S
/mnt/LFS/sources/glibc-build/csu/crt1.o
/mnt/LFS/sources/glibc-build/csu/crti.o
/mnt/LFS/sources/glibc-build/csu/crti.o.d
/mnt/LFS/sources/glibc-build/csu/crtn.o
/mnt/LFS/sources/glibc-build/csu/crtn.o.d
/mnt/LFS/sources/glibc-build/nptl/crti.o
/mnt/LFS/sources/glibc-build/nptl/crtn.o
/mnt/LFS/sources/glibc-build/nptl/crtn.o.d
/mnt/LFS/tools/lib/crt1.o
/mnt/LFS/tools/lib/crti.o
/mnt/LFS/tools/lib/crtn.o
/mnt/LFS/tools/lib/gcc/i686-lfs-linux-gnu/4.7.1/crtbegin.o
/mnt/LFS/tools/lib/gcc/i686-lfs-linux-gnu/4.7.1/crtbeginS.o
/mnt/LFS/tools/lib/gcc/i686-lfs-linux-gnu/4.7.1/crtbeginT.o
/mnt/LFS/tools/lib/gcc/i686-lfs-linux-gnu/4.7.1/crtend.o
/mnt/LFS/tools/lib/gcc/i686-lfs-linux-gnu/4.7.1/crtendS.o
/mnt/LFS/tools/lib/gcc/i686-lfs-linux-gnu/4.7.1/crtfastmath.o
/mnt/LFS/tools/lib/gcc/i686-lfs-linux-gnu/4.7.1/crtprec32.o
/mnt/LFS/tools/lib/gcc/i686-lfs-linux-gnu/4.7.1/crtprec64.o
/mnt/LFS/tools/lib/gcc/i686-lfs-linux-gnu/4.7.1/crtprec80.o
/usr/lib/gcc/i486-linux-gnu/4.6/crtbegin.o
/usr/lib/gcc/i486-linux-gnu/4.6/crtbeginS.o
/usr/lib/gcc/i486-linux-gnu/4.6/crtbeginT.o
/usr/lib/gcc/i486-linux-gnu/4.6/crtend.o
/usr/lib/gcc/i486-linux-gnu/4.6/crtendS.o
/usr/lib/gcc/i486-linux-gnu/4.6/crtfastmath.o
/usr/lib/gcc/i486-linux-gnu/4.6/crtprec32.o
/usr/lib/gcc/i486-linux-gnu/4.6/crtprec64.o
/usr/lib/gcc/i486-linux-gnu/4.6/crtprec80.o
/usr/lib/gcc/i486-linux-gnu/4.7/crtbegin.o
/usr/lib/gcc/i486-linux-gnu/4.7/crtbeginS.o
/usr/lib/gcc/i486-linux-gnu/4.7/crtbeginT.o
/usr/lib/gcc/i486-linux-gnu/4.7/crtend.o
/usr/lib/gcc/i486-linux-gnu/4.7/crtendS.o
/usr/lib/gcc/i486-linux-gnu/4.7/crtfastmath.o
/usr/lib/gcc/i486-linux-gnu/4.7/crtprec32.o
/usr/lib/gcc/i486-linux-gnu/4.7/crtprec64.o
/usr/lib/gcc/i486-linux-gnu/4.7/crtprec80.o
/usr/lib/i386-linux-gnu/crt1.o
/usr/lib/i386-linux-gnu/crti.o
/usr/lib/i386-linux-gnu/crtn.o
/usr/share/terminfo/c/crt
/usr/share/terminfo/c/crt-vt220


druuna 12-11-2012 08:51 AM

Quote:

Originally Posted by joneschrisan (Post 4846984)
I did use /mnt/LFS in all stages yes. How is that deviating from the book?

The book uses /mnt/lfs and not /mnt/LFS, which is easily mixed up.

Quote:

locate -r "/crt[1in].o" gives me no output.
You did update the locate database first (using updatedb)?

Quote:

# find / -name "crt[1in].o"
Code:

/mnt/LFS/sources/glibc-build/nptl/crtn.o
/mnt/LFS/sources/glibc-build/nptl/crti.o
/mnt/LFS/sources/glibc-build/csu/crt1.o
/mnt/LFS/sources/glibc-build/csu/crtn.o
/mnt/LFS/sources/glibc-build/csu/crti.o
/mnt/LFS/tools/lib/crt1.o
/mnt/LFS/tools/lib/crtn.o
/mnt/LFS/tools/lib/crti.o
/usr/lib/i386-linux-gnu/crtn.o
/usr/lib/i386-linux-gnu/crti.o
/usr/lib/i386-linux-gnu/crt1.o


That looks ok, although I'm not sure about the bold part (on debian squeeze they are located in /usr/lib, not /usr/lib/i386-linux-gnu).

It seems that it is looking in the wrong place, are you sure you did not make a mistake in chapter 5.5? Especially this part:
Code:

for file in \
 $(find gcc/config -name linux64.h -o -name linux.h -o -name sysv4.h)
do
  cp -uv $file{,.orig}
  sed -e 's@/lib\(64\)\?\(32\)\?/ld@/tools&@g' \
      -e 's@/usr@/tools@g' $file.orig > $file
  echo '
#undef STANDARD_STARTFILE_PREFIX_1
#undef STANDARD_STARTFILE_PREFIX_2
#define STANDARD_STARTFILE_PREFIX_1 "/tools/lib/"
#define STANDARD_STARTFILE_PREFIX_2 ""' >> $file
  touch $file.orig
done


joneschrisan 12-11-2012 12:04 PM

Ok then. Time to start again from th begining. I didnt realise I was doing it diferentle with LFS. Sorry. See you in a couple of days and I'll let you know if it works.

celticdevildog 01-12-2013 01:05 AM

Ok. I have the same problem as joneschrisan.

LFS version 7.2
Host: Backtrack5 (ubuntu 10.04)
Chapter 5.7.1

version-check.sh
Code:

bash, version 4.1.5(1)-release
/bin/sh -> /bin/bash
Binutils: (GNU Binutils for Ubuntu) 2.20.1-system.20100303
bison (GNU Bison) 2.4.1
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2,  Version 1.0.5, 10-Dec-2007.
Coreutils:  7.4
diff (GNU diffutils) 2.8.1
find (GNU findutils) 4.4.2
GNU Awk 3.1.6
/usr/bin/awk -> /usr/bin/gawk
gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
(Ubuntu EGLIBC 2.11.1-0ubuntu7.8) 2.11.1
GNU grep 2.5.4
gzip 1.3.12
Linux version 2.6.38 (root@bt) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #1 SMP Thu Mar 17 20:52:18 EDT 2011
m4 (GNU M4) 1.4.13
GNU Make 3.81
patch 2.6
Perl version='5.10.1';
GNU sed version 4.2.1
tar (GNU tar) 1.22
Texinfo: makeinfo (GNU texinfo) 4.13
xz (XZ Utils) 4.999.9beta
gcc compilation OK

cat ~/.bash_profile
Code:

exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
cat ~/.bashrc
Code:

set +h
umask 022
LFS=/mnt/lfs
LC_ALL=POSIX
LFS_TGT=$(uname -m)-lfs-linux-gnu
PATH=/tools/bin:/bin:/usr/bin
MAKEFLAGS='-j 2'
export LFS LC_ALL LFS_TGT MAKEFLAGS PATH

uname -m
Code:

i686
echo $PATH
Code:

/tools/bin:/bin:/usr/bin
echo 'main(){}' > dummy.c
Code:

lfs@bt:~$ cat dummy.c
main(){}

$LFS_TGT-gcc -v dummy.c
Code:

Using built-in specs.
COLLECT_GCC=i686-lfs-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/mnt/lfs/tools/bin/../libexec/gcc/i686-lfs-linux-gnu/4.7.1/lto-wrapper
Target: i686-lfs-linux-gnu
Configured with: ../gcc-4.7.1/configure --target=i686-lfs-linux-gnu --prefix=/tools --with-sysroot=/mnt/lfs --with-newlib --without-headers --with-local-prefix=/tools --with-native-system-header-dir=/tools/include --disable-nls --disable-shared --disable-multilib --disable-decimal-float --disable-threads --disable-libmudflap --disable-libssp --disable-libgomp --disable-libquadmath --enable-languages=c --with-mpfr-include=/mnt/lfs/sources/gcc-build/../gcc-4.7.1/mpfr/src --with-mpfr-lib=/mnt/lfs/sources/gcc-build/mpfr/src/.libs
Thread model: single
gcc version 4.7.1 (GCC)
COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=pentiumpro'
 /mnt/lfs/tools/bin/../libexec/gcc/i686-lfs-linux-gnu/4.7.1/cc1 -quiet -v -iprefix /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/ dummy.c -quiet -dumpbase dummy.c -mtune=generic -march=pentiumpro -auxbase dummy -version -o /tmp/cckjqJ0o.s
GNU C (GCC) version 4.7.1 (i686-lfs-linux-gnu)
        compiled by GNU C version 4.4.3, GMP version 5.0.5, MPFR version 3.1.1, MPC version 1.0
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/include"
ignoring duplicate directory "/mnt/lfs/tools/bin/../lib/gcc/../../lib/gcc/i686-lfs-linux-gnu/4.7.1/include"
ignoring duplicate directory "/mnt/lfs/tools/bin/../lib/gcc/../../lib/gcc/i686-lfs-linux-gnu/4.7.1/include-fixed"
ignoring nonexistent directory "/mnt/lfs/tools/bin/../lib/gcc/../../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/include"
ignoring duplicate directory "/mnt/lfs/tools/include"
#include "..." search starts here:
#include <...> search starts here:
 /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/include
 /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/include-fixed
 /mnt/lfs/tools/include
End of search list.
GNU C (GCC) version 4.7.1 (i686-lfs-linux-gnu)
        compiled by GNU C version 4.4.3, GMP version 5.0.5, MPFR version 3.1.1, MPC version 1.0
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 3a1e0805043e792a9daf0b342fab74f7
COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=pentiumpro'
 /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/bin/as -v --32 -o /tmp/cclXBTff.o /tmp/cckjqJ0o.s
GNU assembler version 2.22 (i686-lfs-linux-gnu) using BFD version (GNU Binutils) 2.22
COMPILER_PATH=/mnt/lfs/tools/bin/../libexec/gcc/i686-lfs-linux-gnu/4.7.1/:/mnt/lfs/tools/bin/../libexec/gcc/:/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/bin/
LIBRARY_PATH=/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/:/mnt/lfs/tools/bin/../lib/gcc/:/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/lib/:/mnt/lfs/tools/lib
COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=pentiumpro'
 /mnt/lfs/tools/bin/../libexec/gcc/i686-lfs-linux-gnu/4.7.1/collect2 --sysroot=/mnt/lfs --eh-frame-hdr -m elf_i386 -dynamic-linker /tools$-linux.so.2 crt1.o crti.o /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/crtbegin.o -L/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1 -L/mnt/lfs/tools/bin/../lib/gcc -L/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/lib -L/mnt/lfs/tools/lib /tmp/cclXBTff.o -lgcc -lc -lgcc /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/crtend.o crtn.o
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/bin/ld: cannot find crt1.o: No such file or directory
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/bin/ld: cannot find crti.o: No such file or directory
collect2: error: ld returned 1 exit status

updatedb; locate -r "/crt[1in].o"
Code:

/mnt/lfs/sources/glibc-build/csu/crt1.o
/mnt/lfs/sources/glibc-build/csu/crti.o
/mnt/lfs/sources/glibc-build/csu/crti.o.d
/mnt/lfs/sources/glibc-build/csu/crtn.o
/mnt/lfs/sources/glibc-build/csu/crtn.o.d
/mnt/lfs/sources/glibc-build/nptl/crti.o
/mnt/lfs/sources/glibc-build/nptl/crtn.o
/mnt/lfs/sources/glibc-build/nptl/crtn.o.d
/mnt/lfs/tools/lib/crt1.o
/mnt/lfs/tools/lib/crti.o
/mnt/lfs/tools/lib/crtn.o
/opt/AutoScan/usr/lib/crt1.o
/opt/AutoScan/usr/lib/crti.o
/opt/AutoScan/usr/lib/crtn.o
/root/.wine/drive_c/MinGW/lib/crt1.o
/usr/lib/crt1.o
/usr/lib/crti.o
/usr/lib/crtn.o

So, here is where I stand. I got 2/3 of the way through an LFS build had a segmentation fault and lost grep somehow and so I decided to rebuild from scratch.

My *second* attempt got me stuck in this same place and I thought I had cleared everything up wrong by just reformatting the partition.

My *third* attempt I deleted the partition and recreated it and I am still stuck at the exact same place.

Here is what joneschrisan says
Quote:

I did get another error with my first attempt and then realised I miss read the version-info and /bin/sh was a sym link to /bin/dash not /bin/bash. I sorted that out then started again and now I get this problem.
Now I'm wondering, is there an issue somehow with having to re-do the build from step 1?

celticdevildog 01-12-2013 11:36 AM

So I have an update to this now.

I, once again, blew away this try and started from scratch only THIS time I created a new user lfsuser and set everything up for that user exactly as the book says to do for lfs.

It worked!!

The only thing that I can think of is that somehow the profile information for lfs user is changed enough that when starting the build from scratch requires either to delete and recreate the lfs account or start with a new user account like I did.

I did not delete lfs and would love to know what caused this issue, but I am thankfully past this part and can move on and rebuild!

One part to note from the build this time is the last information that was displayed from make install of the glibc.

Code:

if test -r /tools/include/gnu/stubs-32.h && cmp -s /mnt/lfs/sources/glibc-build/stubs.h /tools/include/gnu/stubs-32.h; \
        then echo 'stubs.h unchanged'; \
        else /usr/bin/install -c -m 644 /mnt/lfs/sources/glibc-build/stubs.h /tools/include/gnu/stubs-32.h; fi
rm -f /mnt/lfs/sources/glibc-build/stubs.h
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.16.0'

The important thing to note here is that the test condition on my second and third attempts actually echoed 'stubs.h unchanged'. Where as from a new account you can see that it doesn't echo and actually proceeds with the install. I'm sure there are more of these throughout the install messages but this is one that is easy to see since it's at the end of the instal.

Hope this helps someone to get past this part.


All times are GMT -5. The time now is 08:47 AM.