X64 with LFS 7.0 any one?

Dan Tran dantran at gmail.com
Wed Mar 25 23:21:15 PDT 2009


Hello LFS experts,

Sorry for the noise,  I have come up with my own scripts to build
latest LFS, 7.0 for chapter 5 and 6.  I am successfully finished the
32 bit.  I also complete 64 bit chapter 5 and moving on to chapter 6
but crash landing there with great pain

It fails at glibc build ( my host build CentOS release 5.2 , uname -a
= Linux fdbxen64 2.6.18-92.el5xen #1 SMP Tue Jun 10 19:20:18 EDT 2008
x86_64 x86_64 x86_64 GNU/Linux

any one get this babe built with x64, a helping hand is greatly appreciated

Thanks


my /tools contents are
================


root:/# ls -l tools
total 40
drwxr-xr-x  2 root 500 4096 Mar 26 05:20 bin
drwxr-xr-x  2 root 500 4096 Mar 26 04:41 etc
drwxr-xr-x 37 root 500 4096 Mar 26 05:11 include
drwxr-xr-x  9 root 500 4096 Mar 26 05:20 lib
lrwxrwxrwx  1 root 500    3 Mar 26 05:50 lib64 -> lib
drwxr-xr-x  5 root 500 4096 Mar 26 05:19 libexec
drwxr-xr-x  2 root 500 4096 Mar 26 05:20 sbin
drwxr-xr-x 14 root 500 4096 Mar 26 05:20 share
drwxr-xr-x  2 root 500 4096 Mar 26 05:12 var
drwxr-xr-x  4 root 500 4096 Mar 26 04:19 x86_64-lfs-linux-gnu
drwxr-xr-x  4 root 500 4096 Mar 26 04:44 x86_64-unknown-linux-gnu
<!--- does it look right?    -->



Here is last part of my error log
======================

gawk: ../scripts/versions.awk:72: (FILENAME=- FNR=3) warning: pipe to
`sort > /root/fdb-env/target/build/build-glibc/Versions.tmp': could
not set close-on-exec: (fcntl: Bad file descriptor)
gawk: ../scripts/versions.awk:72: (FILENAME=- FNR=3) fatal: printf to
"sort > /root/fdb-env/target/build/build-glibc/Versions.tmp" failed
(Bad file descriptor)
.././scripts/mkinstalldirs /root/fdb-env/target/build/build-glibc/csu
mkdir /root/fdb-env/target/build/build-glibc/csu
(case linux-gnu in \
           linux*) version=`(printf '%s\n%s\n' \
                                    '#include <linux/version.h>' \
                                    UTS_RELEASE \
                             | gcc  -I../include
-I/root/fdb-env/target/build/build-glibc/csu
-I/root/fdb-env/target/build/build-glibc -I../sysdeps/x86_64/elf
-I../nptl/sysdeps/unix/sysv/linux/x86_64
-I../sysdeps/unix/sysv/linux/x86_64
-I../sysdeps/unix/sysv/linux/wordsize-64
-I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread
-I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu
-I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet
-I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv
-I../sysdeps/unix/x86_64 -I../nptl/sysdeps/unix -I../sysdeps/unix
-I../sysdeps/posix -I../sysdeps/x86_64/fpu -I../nptl/sysdeps/x86_64
-I../sysdeps/x86_64 -I../sysdeps/wordsize-64
-I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64
-I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754
-I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl  -I..
-I../libio -I.  -D_LIBC_REENTRANT -include ../include/libc-symbols.h
    -DHAVE_INITFINI -E -P - -DNOT_IN_libc=1 | \
                             sed -e 's/"\([^"]*\)".*/\1/p' -e d) 2>/dev/null`;\
                   if [ -z "$version" ]; then \
                     if [ -r /proc/version ]; then \
                       version=`sed 's/.*Linux version \([^ ]*\) .*/>>\1<</' \
                                < /proc/version`; \
                     else \
                       version=`uname -r`; \
                     fi; \
                   fi; \
                   os=`uname -s 2> /dev/null`; \
                   if [ -z "$os" ]; then \
                     os=Linux; \
                   fi; \
                   printf '"Compiled on a %s %s system on %s.\\n"\n' \
                          "$os" "$version" "`date +%Y-%m-%d`";; \
           *) ;; \
         esac; \
         files="../crypt/Banner ../nptl/Banner ../resolv/Banner";
                         \
         if test -n "$files"; then                              \
           printf '"Available extensions:\\n"\n';               \
           sed -e '/^#/d' -e 's/^[[:space:]]*/  /'              \
               -e 's/^\(.*\)$/\"\1\\n\"/' $files;               \
         fi) > /root/fdb-env/target/build/build-glibc/csu/version-info.hT
mv -f /root/fdb-env/target/build/build-glibc/csu/version-info.hT
/root/fdb-env/target/build/build-glibc/csu/version-info.h
LC_ALL=C gawk -f ../scripts/lib-names.awk
/root/fdb-env/target/build/build-glibc/soversions.i >
/root/fdb-env/target/build/build-glibc/gnu/lib-names.T
gawk: ../scripts/lib-names.awk:55:
(FILENAME=/root/fdb-env/target/build/build-glibc/soversions.i FNR=40)
warning: pipe to `LC_ALL=C sort': could not set close-on-exec: (fcntl:
Bad file descriptor)
gawk: ../scripts/lib-names.awk:55:
(FILENAME=/root/fdb-env/target/build/build-glibc/soversions.i FNR=40)
fatal: print to "LC_ALL=C sort" failed (Bad file descriptor)
make[2]: *** [/root/fdb-env/target/build/build-glibc/gnu/lib-names.stmp] Error 2
make[2]: Leaving directory `/root/fdb-env/target/build/glibc-2.9/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/root/fdb-env/target/build/glibc-2.9'
make: *** [all] Error 2



More information about the lfs-support mailing list