LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-04-2010, 02:32 AM   #1
Lyle
Member
 
Registered: May 2010
Location: Guyana, South America
Distribution: Debian, Sabayon
Posts: 37

Rep: Reputation: 15
Question Why won't Glibc compile? (chapter 5.7.1)


Glibc won't compile in chapter 5.7.1 of the LFS 6.6 book
What's going wrong?

make
Code:
$ make
make -r PARALLELMFLAGS="" CVSOPTS="" -C ./glibc-2.11.1 objdir=`pwd` all
make[1]: Entering directory `/mnt/lfs/sources/glibc-build/glibc-2.11.1'
{ echo '#include "posix/bits/posix1_lim.h"';		\
	  echo '#define _LIBC 1';					\
	  echo '#include "misc/sys/uio.h"'; } |			\
	x86_64-lfs-linux-gnu-gcc -E -dM -MD -MP -MF /mnt/lfs/sources/glibc-build/bits/stdio_lim.dT -MT '/mnt/lfs/sources/glibc-build/bits/stdio_lim.h /mnt/lfs/sources/glibc-build/bits/stdio_lim.d' 	\
	      -Iinclude  -I/mnt/lfs/sources/glibc-build -Isysdeps/x86_64/elf -Inptl/sysdeps/unix/sysv/linux/x86_64 -Isysdeps/unix/sysv/linux/x86_64 -Isysdeps/unix/sysv/linux/wordsize-64 -Inptl/sysdeps/unix/sysv/linux -Inptl/sysdeps/pthread -Isysdeps/pthread -Isysdeps/unix/sysv/linux -Isysdeps/gnu -Isysdeps/unix/common -Isysdeps/unix/mman -Isysdeps/unix/inet -Inptl/sysdeps/unix/sysv -Isysdeps/unix/sysv -Isysdeps/unix/x86_64 -Inptl/sysdeps/unix -Isysdeps/unix -Isysdeps/posix -Isysdeps/x86_64/fpu -Inptl/sysdeps/x86_64 -Isysdeps/x86_64 -Isysdeps/wordsize-64 -Isysdeps/ieee754/ldbl-96 -Isysdeps/ieee754/dbl-64 -Isysdeps/ieee754/flt-32 -Isysdeps/ieee754 -Isysdeps/generic/elf -Isysdeps/generic -Inptl   -Ilibio -I. -nostdinc -isystem /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.4.3/include -isystem /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.4.3/include-fixed -isystem /tools/include -xc - -o /mnt/lfs/sources/glibc-build/bits/stdio_lim.hT
sed -e 's@ /mnt/lfs/sources/glibc-build/@ $(common-objpfx)@g' -e 's@^/mnt/lfs/sources/glibc-build/@$(common-objpfx)@g' -e 's@  *\([^ 	\/$][^ 	\]*\)@ $(..)\1@g' -e 's@^\([^ 	\/$][^ 	\]*\)@$(..)\1@g'			\
	    /mnt/lfs/sources/glibc-build/bits/stdio_lim.dT > /mnt/lfs/sources/glibc-build/bits/stdio_lim.dt
mv -f /mnt/lfs/sources/glibc-build/bits/stdio_lim.dt /mnt/lfs/sources/glibc-build/bits/stdio_lim.d
fopen_max=`sed -n 's/^#define OPEN_MAX //1p' /mnt/lfs/sources/glibc-build/bits/stdio_lim.hT`; 	\
	filename_max=`sed -n 's/^#define PATH_MAX //1p' /mnt/lfs/sources/glibc-build/bits/stdio_lim.hT`;	\
	iov_max=`sed -n 's/^#define UIO_MAXIOV //p' /mnt/lfs/sources/glibc-build/bits/stdio_lim.hT`;	\
	fopen_max=${fopen_max:-16};					\
	filename_max=${filename_max:-1024};				\
	if [ -z "$iov_max" ]; then					\
	  define_iov_max="# undef IOV_MAX";				\
	else								\
	  define_iov_max="# define IOV_MAX $iov_max";			\
	fi;								\
	sed -e "s/@FOPEN_MAX@/$fopen_max/"				\
	    -e "s/@FILENAME_MAX@/$filename_max/"			\
	    -e "s/@L_tmpnam@/20/"				\
	    -e "s/@TMP_MAX@/238328/"				\
	    -e "s/@L_ctermid@/9/"				\
	    -e "s/@L_cuserid@/9/"				\
	    -e "s/@define_IOV_MAX@/$define_iov_max/"			\
	    stdio-common/stdio_lim.h.in > /mnt/lfs/sources/glibc-build/bits/stdio_lim.h.new
/bin/sh scripts/move-if-change /mnt/lfs/sources/glibc-build/bits/stdio_lim.h.new /mnt/lfs/sources/glibc-build/bits/stdio_lim.h
/mnt/lfs/sources/glibc-build/bits/stdio_lim.h is unchanged
rm -f /mnt/lfs/sources/glibc-build/bits/stdio_lim.hT /mnt/lfs/sources/glibc-build/bits/stdio_lim.dT /mnt/lfs/sources/glibc-build/bits/stdio_lim.dt
touch /mnt/lfs/sources/glibc-build/bits/stdio_lim.st
(echo 'sysd-rules-sysdirs := sysdeps/x86_64/elf nptl/sysdeps/unix/sysv/linux/x86_64 sysdeps/unix/sysv/linux/x86_64 sysdeps/unix/sysv/linux/wordsize-64 nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet nptl/sysdeps/unix/sysv sysdeps/unix/sysv sysdeps/unix/x86_64 nptl/sysdeps/unix sysdeps/unix sysdeps/posix sysdeps/x86_64/fpu nptl/sysdeps/x86_64 sysdeps/x86_64 sysdeps/wordsize-64 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic';		      \
	 for dir in sysdeps/x86_64/elf nptl/sysdeps/unix/sysv/linux/x86_64 sysdeps/unix/sysv/linux/x86_64 sysdeps/unix/sysv/linux/wordsize-64 nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet nptl/sysdeps/unix/sysv sysdeps/unix/sysv sysdeps/unix/x86_64 nptl/sysdeps/unix sysdeps/unix sysdeps/posix sysdeps/x86_64/fpu nptl/sysdeps/x86_64 sysdeps/x86_64 sysdeps/wordsize-64 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic; do				      \
	   case "$dir" in						      \
	   /*) ;;							      \
	   *) dir="\$(..)$dir" ;;					      \
	   esac;							      \
	   asm='.S .s';							      \
	   						      \
	   for o in .o .os .op .og .ob .oS; do				      \
	     set % % rtld-% % m_% s_% ptw-% %;			      \
	     while [ $# -ge 2 ]; do					      \
	       t=$1; shift; 						      \
	       d=$1; shift;						      \
	       v=${t%%%}; [ x"$v" = x ] || v="\$(${v}CPPFLAGS)";	      \
	       for s in $asm .c; do					      \
		 echo "\$(objpfx)$t$o: $dir/$d$s \$(before-compile)";  \
		 echo "	\$(compile-command$s) $v";			      \
	       done;							      \
	     done;							      \
	   done;							      \
	   echo "\$(inst_includedir)/%.h: $dir/%.h \$(+force)";	      \
	   echo "	\$(do-install)"; 				      \
	 done;								      \
	 echo 'sysd-rules-done = t') > /mnt/lfs/sources/glibc-build/sysd-rulesT
mv -f /mnt/lfs/sources/glibc-build/sysd-rulesT /mnt/lfs/sources/glibc-build/sysd-rules
mawk -f scripts/gen-sorted.awk \
	       -v subdirs='csu assert ctype locale intl catgets math setjmp signal stdlib stdio-common libio malloc string wcsmbs time dirent grp pwd posix io termios resource misc socket sysvipc gmon gnulib iconv iconvdata wctype manual shadow gshadow po argp crypt nss localedata timezone rt conform debug libidn dlfcn elf' \
	       -v srcpfx='' \
	       nptl/sysdeps/pthread/Subdirs sysdeps/unix/inet/Subdirs sysdeps/unix/Subdirs assert/Depend intl/Depend catgets/Depend stdlib/Depend stdio-common/Depend libio/Depend malloc/Depend string/Depend wcsmbs/Depend time/Depend posix/Depend iconvdata/Depend nss/Depend localedata/Depend rt/Depend debug/Depend > /mnt/lfs/sources/glibc-build/sysd-sorted-tmp
mawk: scripts/gen-sorted.awk: line 19: regular expression compile failed (bad class -- [], [^] or [)
/[^
mawk: scripts/gen-sorted.awk: line 19: syntax error at or near ]
mawk: scripts/gen-sorted.awk: line 19: runaway regular expression /, "", subd ...
make[1]: Leaving directory `/mnt/lfs/sources/glibc-build/glibc-2.11.1'
make[1]: Entering directory `/mnt/lfs/sources/glibc-build/glibc-2.11.1'
mawk -f scripts/gen-sorted.awk \
	       -v subdirs='csu assert ctype locale intl catgets math setjmp signal stdlib stdio-common libio malloc string wcsmbs time dirent grp pwd posix io termios resource misc socket sysvipc gmon gnulib iconv iconvdata wctype manual shadow gshadow po argp crypt nss localedata timezone rt conform debug libidn dlfcn elf' \
	       -v srcpfx='' \
	       nptl/sysdeps/pthread/Subdirs sysdeps/unix/inet/Subdirs sysdeps/unix/Subdirs assert/Depend intl/Depend catgets/Depend stdlib/Depend stdio-common/Depend libio/Depend malloc/Depend string/Depend wcsmbs/Depend time/Depend posix/Depend iconvdata/Depend nss/Depend localedata/Depend rt/Depend debug/Depend > /mnt/lfs/sources/glibc-build/sysd-sorted-tmp
mawk: scripts/gen-sorted.awk: line 19: regular expression compile failed (bad class -- [], [^] or [)
/[^
mawk: scripts/gen-sorted.awk: line 19: syntax error at or near ]
mawk: scripts/gen-sorted.awk: line 19: runaway regular expression /, "", subd ...
make[1]: *** No rule to make target `/mnt/lfs/sources/glibc-build/Versions.all', needed by `/mnt/lfs/sources/glibc-build/abi-versions.h'.  Stop.
make[1]: Leaving directory `/mnt/lfs/sources/glibc-build/glibc-2.11.1'
make: *** [all] Error 2
configure
Code:
./configure --prefix=/tools --host=$LFS_TGT --build=$(../glibc-2.11.1/scripts/config.guess) --disable-profile --enable-add-ons --enable-kernel=2.6.18 --with-headers=/tools/include libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-lfs-linux-gnu
checking for x86_64-lfs-linux-gnu-gcc... x86_64-lfs-linux-gnu-gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-lfs-linux-gnu-gcc accepts -g... yes
checking for x86_64-lfs-linux-gnu-gcc option to accept ISO C89... unsupported
checking for gcc... gcc
checking how to run the C preprocessor... x86_64-lfs-linux-gnu-gcc -E
checking for x86_64-lfs-linux-gnu-g++... no
checking for x86_64-lfs-linux-gnu-c++... no
checking for x86_64-lfs-linux-gnu-gpp... no
checking for x86_64-lfs-linux-gnu-aCC... no
checking for x86_64-lfs-linux-gnu-CC... no
checking for x86_64-lfs-linux-gnu-cxx... no
checking for x86_64-lfs-linux-gnu-cc++... no
checking for x86_64-lfs-linux-gnu-cl.exe... no
checking for x86_64-lfs-linux-gnu-FCC... no
checking for x86_64-lfs-linux-gnu-KCC... no
checking for x86_64-lfs-linux-gnu-RCC... no
checking for x86_64-lfs-linux-gnu-xlC_r... no
checking for x86_64-lfs-linux-gnu-xlC... no
checking for g++... g++
configure: WARNING: using cross tools not prefixed with host triplet
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
configure: error: you must configure in a separate build directory
lfs@debian:/mnt/lfs/sources/glibc-build/glibc-2.11.1$ cd $LFS/sources/glibc-build
lfs@debian:/mnt/lfs/sources/glibc-build$ ./configure --prefix=/tools --host=$LFS_TGT --build=$(../glibc-2.11.1/scripts/config.guess) --disable-profile --enable-add-ons --enable-kernel=2.6.18 --with-headers=/tools/include libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes
bash: ../glibc-2.11.1/scripts/config.guess: No such file or directory
bash: ./configure: No such file or directory
lfs@debian:/mnt/lfs/sources/glibc-build$ .glibc-2.11.1/configure --prefix=/tools --host=$LFS_TGT --build=$(../glibc-2.11.1/scripts/config.guess) --disable-profile --enable-add-ons --enable-kernel=2.6.18 --with-headers=/tools/include libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes
bash: ../glibc-2.11.1/scripts/config.guess: No such file or directory
bash: .glibc-2.11.1/configure: No such file or directory
lfs@debian:/mnt/lfs/sources/glibc-build$ ls
Makefile  config.h    config.make    glibc-2.11.1  libc_nonshared.a  stamp.o   stamp.os    sysd-sorted-tmp
bits	  config.log  config.status  libc.a	   libc_pic.a	     stamp.oS  sysd-rules  sysd-syscalls
lfs@debian:/mnt/lfs/sources/glibc-build$ ./glibc-2.11.1/configure --prefix=/tools --host=$LFS_TGT --build=$(../glibc-2.11.1/scripts/config.guess) --disable-profile --enable-add-ons --enable-kernel=2.6.18 --with-headers=/tools/include libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes
bash: ../glibc-2.11.1/scripts/config.guess: No such file or directory
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-lfs-linux-gnu
checking for x86_64-lfs-linux-gnu-gcc... x86_64-lfs-linux-gnu-gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-lfs-linux-gnu-gcc accepts -g... yes
checking for x86_64-lfs-linux-gnu-gcc option to accept ISO C89... unsupported
checking for gcc... gcc
checking how to run the C preprocessor... x86_64-lfs-linux-gnu-gcc -E
checking for x86_64-lfs-linux-gnu-g++... no
checking for x86_64-lfs-linux-gnu-c++... no
checking for x86_64-lfs-linux-gnu-gpp... no
checking for x86_64-lfs-linux-gnu-aCC... no
checking for x86_64-lfs-linux-gnu-CC... no
checking for x86_64-lfs-linux-gnu-cxx... no
checking for x86_64-lfs-linux-gnu-cc++... no
checking for x86_64-lfs-linux-gnu-cl.exe... no
checking for x86_64-lfs-linux-gnu-FCC... no
checking for x86_64-lfs-linux-gnu-KCC... no
checking for x86_64-lfs-linux-gnu-RCC... no
checking for x86_64-lfs-linux-gnu-xlC_r... no
checking for x86_64-lfs-linux-gnu-xlC... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
configure: running configure fragment for add-on libidn
configure: running configure fragment for add-on nptl
checking sysdep dirs... sysdeps/x86_64/elf nptl/sysdeps/unix/sysv/linux/x86_64 sysdeps/unix/sysv/linux/x86_64 sysdeps/unix/sysv/linux/wordsize-64 nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet nptl/sysdeps/unix/sysv sysdeps/unix/sysv sysdeps/unix/x86_64 nptl/sysdeps/unix sysdeps/unix sysdeps/posix sysdeps/x86_64/fpu nptl/sysdeps/x86_64 sysdeps/x86_64 sysdeps/wordsize-64 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.4.3/../../../../x86_64-lfs-linux-gnu/bin/as is GNU as... yes
checking whether /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.4.3/../../../../x86_64-lfs-linux-gnu/bin/ld is GNU ld... yes
checking for /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.4.3/../../../../x86_64-lfs-linux-gnu/bin/as... /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.4.3/../../../../x86_64-lfs-linux-gnu/bin/as
checking version of /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.4.3/../../../../x86_64-lfs-linux-gnu/bin/as... 2.20, ok
checking for /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.4.3/../../../../x86_64-lfs-linux-gnu/bin/ld... /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.4.3/../../../../x86_64-lfs-linux-gnu/bin/ld
checking version of /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.4.3/../../../../x86_64-lfs-linux-gnu/bin/ld... 2.20, ok
checking for pwd... /bin/pwd
checking for x86_64-lfs-linux-gnu-gcc... (cached) x86_64-lfs-linux-gnu-gcc
checking version of x86_64-lfs-linux-gnu-gcc... 4.4.3, ok
checking for gnumake... no
checking for gmake... no
checking for make... make
checking version of make... 3.81, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for msgfmt... msgfmt
checking version of msgfmt... 0.17, ok
checking for makeinfo... makeinfo
checking version of makeinfo... 4.11, ok
checking for sed... sed
checking version of sed... 4.1.5, ok
checking for autoconf... autoconf
checking whether autoconf works... yes
checking whether ranlib is necessary... no
checking LD_LIBRARY_PATH variable... ok
checking whether GCC supports -static-libgcc... -static-libgcc
checking for bash... /bin/bash
checking for gawk... no
checking for mawk... mawk
checking for perl... /usr/bin/perl
checking for install-info... /usr/sbin/install-info
checking for bison... no
checking for signed size_t type... no
checking for libc-friendly stddef.h... yes
checking whether we need to use -P to assemble .S files... no
checking whether .text pseudo-op must be used... yes
checking for assembler global-symbol directive... .globl
checking for .set assembler directive... yes
checking for assembler .type directive prefix... @
checking for assembler gnu_unique_object symbol type... yes
checking for .symver assembler directive... yes
checking for ld --version-script... yes
checking for .previous assembler directive... yes
checking for .protected and .hidden assembler directive... yes
checking whether __attribute__((visibility())) is supported... yes
checking for broken __attribute__((visibility()))... no
checking for broken __attribute__((alias()))... no
checking whether to put _rtld_local into .sdata section... no
checking for .preinit_array/.init_array/.fini_array support... yes
checking for libunwind-support in compiler... no
checking for -z nodelete option... yes
checking for -z nodlopen option... yes
checking for -z initfirst option... yes
checking for -z relro option... yes
checking for -Bgroup option... yes
checking for libgcc_s suffix... 
checking for --as-needed option... no
checking whether --noexecstack is desirable for .S files... yes
checking for -z combreloc... yes
checking for -z execstack... yes
checking for -fpie... no
checking for --hash-style option... yes
checking for -fno-toplevel-reorder -fno-section-anchors... yes
checking for -fstack-protector... no
checking for -fgnu89-inline... yes
checking whether cc puts quotes around section names... no
checking for assembler .weak directive... yes
checking whether CFI directives are supported... yes
checking for ld --no-whole-archive... yes
checking for gcc -fexceptions... yes
checking for __builtin_expect... yes
checking for __builtin_memset... yes
checking for redirection of built-in functions... yes
checking for __thread... yes
checking for tls_model attribute... yes
checking for libgd... no
checking for is_selinux_enabled in -lselinux... no
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... no
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking size of long double... 0
running configure fragment for sysdeps/x86_64/elf
checking for x86-64 TLS support... yes
checking for AVX support... yes
running configure fragment for nptl/sysdeps/pthread
checking for forced unwind support... (cached) yes
checking for C cleanup handling... (cached) yes
running configure fragment for sysdeps/pthread
running configure fragment for sysdeps/unix/sysv/linux
checking for grep that handles long lines and -e... (cached) /bin/grep
checking for egrep... (cached) /bin/grep -E
checking installed Linux kernel header files... 2.0.10 or later
checking for kernel header at least 2.6.18... ok
running configure fragment for nptl/sysdeps/x86_64
checking for .cfi_personality and .cfi_lsda pseudo-ops... yes
running configure fragment for sysdeps/x86_64
checking for grep that handles long lines and -e... (cached) /bin/grep
checking for egrep... (cached) /bin/grep -E
checking for ANSI C header files... (cached) no
checking for sys/types.h... (cached) no
checking for sys/stat.h... (cached) no
checking for stdlib.h... (cached) no
checking for string.h... (cached) no
checking for memory.h... (cached) no
checking for strings.h... (cached) no
checking for inttypes.h... (cached) no
checking for stdint.h... (cached) no
checking for unistd.h... (cached) no
checking cpuid.h usability... no
checking cpuid.h presence... yes
configure: WARNING: cpuid.h: present but cannot be compiled
configure: WARNING: cpuid.h:     check for missing prerequisite headers?
configure: WARNING: cpuid.h: see the Autoconf documentation
configure: WARNING: cpuid.h:     section "Present But Cannot Be Compiled"
configure: WARNING: cpuid.h: proceeding with the preprocessor's result
configure: WARNING: cpuid.h: in the future, the compiler will take precedence
checking for cpuid.h... yes
checking if -g produces usable source locations for assembler-with-cpp... yes
checking for SSE4 support... yes
checking for old glibc 2.0.x headers... no
checking whether -fPIC is default... no
configure: creating ./config.status
config.status: creating config.make
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default commands
 
Old 05-04-2010, 03:08 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Your host doesn't comply to the LFS Host System Requirements.

I would suggest using the LFS liveCD as a host.

Hope this helps.
 
Old 05-04-2010, 06:02 AM   #3
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Hi,

some general advise first:
Code:
configure: error: you must configure in a separate build directory
lfs@debian:/mnt/lfs/sources/glibc-build/glibc-2.11.1$ cd $LFS/sources/glibc-build
lfs@debian:/mnt/lfs/sources/glibc-build$ ./configure --prefix=/tools --host=$LFS_TGT --build=$(../glibc-2.11.1/scripts/config.guess) --disable-profile --enable-add-ons --enable-kernel=2.6.18 --with-headers=/tools/include libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes
bash: ../glibc-2.11.1/scripts/config.guess: No such file or directory
bash: ./configure: No such file or directory
lfs@debian:/mnt/lfs/sources/glibc-build$ .glibc-2.11.1/configure --prefix=/tools --host=$LFS_TGT --build=$(../glibc-2.11.1/scripts/config.guess) --disable-profile --enable-add-ons --enable-kernel=2.6.18 --with-headers=/tools/include libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes
bash: ../glibc-2.11.1/scripts/config.guess: No such file or directory
bash: .glibc-2.11.1/configure: No such file or directory
lfs@debian:/mnt/lfs/sources/glibc-build$ ls
Makefile  config.h    config.make    glibc-2.11.1  libc_nonshared.a  stamp.o   stamp.os    sysd-sorted-tmp
bits	  config.log  config.status  libc.a	   libc_pic.a	     stamp.oS  sysd-rules  sysd-syscalls
lfs@debian:/mnt/lfs/sources/glibc-build$ ./glibc-2.11.1/configure --prefix=/tools --host=$LFS_TGT --build=$(../glibc-2.11.1/scripts/config.guess) --disable-profile --enable-add-ons --enable-kernel=2.6.18 --with-headers=/tools/include libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes
bash: ../glibc-2.11.1/scripts/config.guess: No such file or directory
I am not sure if it is okay to have the source directory as a subdirectory in the build directory. Also, after failing to configure you should start with a fresh untarred source.

Your problem in this case is - as already stated by druuna - a host requirements issue
Code:
mawk: scripts/gen-sorted.awk: line 19: regular expression compile failed (bad class -- [], [^] or [)
/[^
mawk: scripts/gen-sorted.awk: line 19: syntax error at or near ]
mawk: scripts/gen-sorted.awk: line 19: runaway regular expression /, "", subd ...
You need gawk and not mawk. Your host is probably Ubuntu, right?
 
Old 05-04-2010, 08:54 PM   #4
Lyle
Member
 
Registered: May 2010
Location: Guyana, South America
Distribution: Debian, Sabayon
Posts: 37

Original Poster
Rep: Reputation: 15
OK, thanks people. It compiled fine now that i installed gawk. Hopefully i didn't eff anything else up though before this that will come back to bite me in the arse.
 
Old 05-05-2010, 02:35 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Did you check the chapter I referred to in post #2? mawk/gawk isn't the only thing that needs changing.

It would be too bad if you find out late in the process and have to start over.

Hope this helps.
 
Old 05-05-2010, 06:03 PM   #6
Lyle
Member
 
Registered: May 2010
Location: Guyana, South America
Distribution: Debian, Sabayon
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by druuna View Post
Hi,

Did you check the chapter I referred to in post #2? mawk/gawk isn't the only thing that needs changing.

It would be too bad if you find out late in the process and have to start over.

Hope this helps.
yup
 
  


Reply



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
Chapter 5 glibc configure: as and ld too old? Linux_ftw Linux From Scratch 2 12-10-2009 05:16 AM
Glibc compile fails in chapter 5 Weedman Linux From Scratch 6 01-25-2007 11:04 AM
Problem with Glibc-2.3.4 chapter 6.11 adancoco Linux From Scratch 1 02-14-2005 12:04 PM
glibc in chapter 6: not use locales? davemar Linux From Scratch 5 04-20-2004 05:15 AM
Chapter 6 glibc-2.3.1 install gabebster Linux From Scratch 14 09-24-2003 10:38 PM

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

All times are GMT -5. The time now is 12:16 AM.

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