LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-26-2015, 02:22 PM   #1
Xenanthropy
Member
 
Registered: Mar 2015
Posts: 34

Rep: Reputation: Disabled
Question Errors trying to compile glibc 2.21 book version 7.7 (Not the mawk-gawk problem)


As the title states, i'm having issues with compiling glibc. I've tried googling for a solution, but all I could see were people that just didn't have gawk installed, which I don't understand, as they tell you at the beginning of the book to have those basic programs installed. But I digress. Either way, here is the output of "sudo make" inside the glibc-build directory (didn't compile it in the source directory since it told me not to)

Code:
lfs@debian:/mnt/lfs/sources/glibc-build$ sudo make
[sudo] password for lfs: 
make -r PARALLELMFLAGS="" -C ../glibc-2.21 objdir=`pwd` all
make[1]: Entering directory `/mnt/lfs/sources/glibc-2.21'
{ 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/unix/sysv/linux/x86_64/64  -Isysdeps/unix/sysv/linux/x86_64  -Isysdeps/unix/sysv/linux/x86  -Isysdeps/unix/sysv/linux/wordsize-64  -Isysdeps/x86_64/nptl  -Isysdeps/unix/sysv/linux/include -Isysdeps/unix/sysv/linux  -Isysdeps/nptl  -Isysdeps/pthread  -Isysdeps/gnu  -Isysdeps/unix/inet  -Isysdeps/unix/sysv  -Isysdeps/unix/x86_64  -Isysdeps/unix  -Isysdeps/posix  -Isysdeps/x86_64/64  -Isysdeps/x86_64/fpu/multiarch  -Isysdeps/x86_64/fpu  -Isysdeps/x86/fpu/include -Isysdeps/x86/fpu  -Isysdeps/x86_64/multiarch  -Isysdeps/x86_64  -Isysdeps/x86  -Isysdeps/ieee754/ldbl-96  -Isysdeps/ieee754/dbl-64/wordsize-64  -Isysdeps/ieee754/dbl-64  -Isysdeps/ieee754/flt-32  -Isysdeps/wordsize-64  -Isysdeps/ieee754  -Isysdeps/generic   -Ilibio -I. -nostdinc -isystem /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.9.2/include -isystem /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.9.2/include-fixed -isystem /tools/include -xc - -o /mnt/lfs/sources/glibc-build/bits/stdio_lim.hT
/bin/sh: 4: x86_64-lfs-linux-gnu-gcc: not found
sed '/^[ 	]*%/!s/#.*$//;/^[ 	]*$/d;s/^[ 	]*%/#/' \
	    sysdeps/unix/sysv/linux/x86_64/64/shlib-versions sysdeps/unix/sysv/linux/shlib-versions nptl/shlib-versions libidn/shlib-versions nptl_db/shlib-versions shlib-versions \
	| x86_64-lfs-linux-gnu-gcc -E -undef     -Iinclude   -I/mnt/lfs/sources/glibc-build  -Isysdeps/unix/sysv/linux/x86_64/64  -Isysdeps/unix/sysv/linux/x86_64  -Isysdeps/unix/sysv/linux/x86  -Isysdeps/unix/sysv/linux/wordsize-64  -Isysdeps/x86_64/nptl  -Isysdeps/unix/sysv/linux/include -Isysdeps/unix/sysv/linux  -Isysdeps/nptl  -Isysdeps/pthread  -Isysdeps/gnu  -Isysdeps/unix/inet  -Isysdeps/unix/sysv  -Isysdeps/unix/x86_64  -Isysdeps/unix  -Isysdeps/posix  -Isysdeps/x86_64/64  -Isysdeps/x86_64/fpu/multiarch  -Isysdeps/x86_64/fpu  -Isysdeps/x86/fpu/include -Isysdeps/x86/fpu  -Isysdeps/x86_64/multiarch  -Isysdeps/x86_64  -Isysdeps/x86  -Isysdeps/ieee754/ldbl-96  -Isysdeps/ieee754/dbl-64/wordsize-64  -Isysdeps/ieee754/dbl-64  -Isysdeps/ieee754/flt-32  -Isysdeps/wordsize-64  -Isysdeps/ieee754  -Isysdeps/generic   -Ilibio -I. -nostdinc -isystem /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.9.2/include -isystem /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.9.2/include-fixed -isystem /tools/include  -D_LIBC_REENTRANT   -include include/libc-symbols.h       -x assembler-with-cpp - \
		   > /mnt/lfs/sources/glibc-build/shlib-versions.v.iT
/bin/sh: 3: x86_64-lfs-linux-gnu-gcc: not found
LC_ALL=C gawk -f scripts/sysd-rules.awk > /mnt/lfs/sources/glibc-build/sysd-rulesT \
			-v all_object_suffixes='.o .os .op .og .oS' \
			-v inhibit_sysdep_asm='' \
			-v sysd_rules_patterns='%:% rtld-%:rtld-% rtld-%:% m_%:s_% ptw-%:%' \
			-v config_sysdirs='sysdeps/unix/sysv/linux/x86_64/64 sysdeps/unix/sysv/linux/x86_64 sysdeps/unix/sysv/linux/x86 sysdeps/unix/sysv/linux/wordsize-64 sysdeps/x86_64/nptl sysdeps/unix/sysv/linux sysdeps/nptl sysdeps/pthread sysdeps/gnu sysdeps/unix/inet sysdeps/unix/sysv sysdeps/unix/x86_64 sysdeps/unix sysdeps/posix sysdeps/x86_64/64 sysdeps/x86_64/fpu/multiarch sysdeps/x86_64/fpu sysdeps/x86/fpu sysdeps/x86_64/multiarch sysdeps/x86_64 sysdeps/x86 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64/wordsize-64 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/wordsize-64 sysdeps/ieee754 sysdeps/generic'
mv -f /mnt/lfs/sources/glibc-build/sysd-rulesT /mnt/lfs/sources/glibc-build/sysd-rules
gawk -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 localedata timezone rt conform debug libidn dlfcn elf' \
	       -v srcpfx='' \
	       sysdeps/nptl/Subdirs sysdeps/unix/inet/Subdirs sysdeps/unix/Subdirs assert/Depend catgets/Depend debug/Depend hesiod/Depend iconvdata/Depend intl/Depend libio/Depend localedata/Depend malloc/Depend nis/Depend nscd/Depend nss/Depend posix/Depend resolv/Depend rt/Depend stdio-common/Depend stdlib/Depend string/Depend time/Depend wcsmbs/Depend > /mnt/lfs/sources/glibc-build/sysd-sorted-tmp
mv -f /mnt/lfs/sources/glibc-build/sysd-sorted-tmp /mnt/lfs/sources/glibc-build/sysd-sorted
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.21'
make[1]: Entering directory `/mnt/lfs/sources/glibc-2.21'
{ 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/unix/sysv/linux/x86_64/64  -Isysdeps/unix/sysv/linux/x86_64  -Isysdeps/unix/sysv/linux/x86  -Isysdeps/unix/sysv/linux/wordsize-64  -Isysdeps/x86_64/nptl  -Isysdeps/unix/sysv/linux/include -Isysdeps/unix/sysv/linux  -Isysdeps/nptl  -Isysdeps/pthread  -Isysdeps/gnu  -Isysdeps/unix/inet  -Isysdeps/unix/sysv  -Isysdeps/unix/x86_64  -Isysdeps/unix  -Isysdeps/posix  -Isysdeps/x86_64/64  -Isysdeps/x86_64/fpu/multiarch  -Isysdeps/x86_64/fpu  -Isysdeps/x86/fpu/include -Isysdeps/x86/fpu  -Isysdeps/x86_64/multiarch  -Isysdeps/x86_64  -Isysdeps/x86  -Isysdeps/ieee754/ldbl-96  -Isysdeps/ieee754/dbl-64/wordsize-64  -Isysdeps/ieee754/dbl-64  -Isysdeps/ieee754/flt-32  -Isysdeps/wordsize-64  -Isysdeps/ieee754  -Isysdeps/generic   -Ilibio -I. -nostdinc -isystem /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.9.2/include -isystem /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.9.2/include-fixed -isystem /tools/include -xc - -o /mnt/lfs/sources/glibc-build/bits/stdio_lim.hT
/bin/sh: 4: x86_64-lfs-linux-gnu-gcc: not found
sed '/^[ 	]*%/!s/#.*$//;/^[ 	]*$/d;s/^[ 	]*%/#/' \
	    sysdeps/unix/sysv/linux/x86_64/64/shlib-versions sysdeps/unix/sysv/linux/shlib-versions nptl/shlib-versions libidn/shlib-versions nptl_db/shlib-versions shlib-versions \
	| x86_64-lfs-linux-gnu-gcc -E -undef     -Iinclude   -I/mnt/lfs/sources/glibc-build  -Isysdeps/unix/sysv/linux/x86_64/64  -Isysdeps/unix/sysv/linux/x86_64  -Isysdeps/unix/sysv/linux/x86  -Isysdeps/unix/sysv/linux/wordsize-64  -Isysdeps/x86_64/nptl  -Isysdeps/unix/sysv/linux/include -Isysdeps/unix/sysv/linux  -Isysdeps/nptl  -Isysdeps/pthread  -Isysdeps/gnu  -Isysdeps/unix/inet  -Isysdeps/unix/sysv  -Isysdeps/unix/x86_64  -Isysdeps/unix  -Isysdeps/posix  -Isysdeps/x86_64/64  -Isysdeps/x86_64/fpu/multiarch  -Isysdeps/x86_64/fpu  -Isysdeps/x86/fpu/include -Isysdeps/x86/fpu  -Isysdeps/x86_64/multiarch  -Isysdeps/x86_64  -Isysdeps/x86  -Isysdeps/ieee754/ldbl-96  -Isysdeps/ieee754/dbl-64/wordsize-64  -Isysdeps/ieee754/dbl-64  -Isysdeps/ieee754/flt-32  -Isysdeps/wordsize-64  -Isysdeps/ieee754  -Isysdeps/generic   -Ilibio -I. -nostdinc -isystem /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.9.2/include -isystem /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.9.2/include-fixed -isystem /tools/include  -D_LIBC_REENTRANT   -include include/libc-symbols.h       -x assembler-with-cpp - \
		   > /mnt/lfs/sources/glibc-build/shlib-versions.v.iT
/bin/sh: 3: x86_64-lfs-linux-gnu-gcc: not found
make  subdir=csu -C csu ..=../ subdir_lib
make[2]: Entering directory `/mnt/lfs/sources/glibc-2.21/csu'
{ 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' 	\
	       -I../include -I/mnt/lfs/sources/glibc-build/csu  -I/mnt/lfs/sources/glibc-build  -I../sysdeps/unix/sysv/linux/x86_64/64  -I../sysdeps/unix/sysv/linux/x86_64  -I../sysdeps/unix/sysv/linux/x86  -I../sysdeps/unix/sysv/linux/wordsize-64  -I../sysdeps/x86_64/nptl  -I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux  -I../sysdeps/nptl  -I../sysdeps/pthread  -I../sysdeps/gnu  -I../sysdeps/unix/inet  -I../sysdeps/unix/sysv  -I../sysdeps/unix/x86_64  -I../sysdeps/unix  -I../sysdeps/posix  -I../sysdeps/x86_64/64  -I../sysdeps/x86_64/fpu/multiarch  -I../sysdeps/x86_64/fpu  -I../sysdeps/x86/fpu/include -I../sysdeps/x86/fpu  -I../sysdeps/x86_64/multiarch  -I../sysdeps/x86_64  -I../sysdeps/x86  -I../sysdeps/ieee754/ldbl-96  -I../sysdeps/ieee754/dbl-64/wordsize-64  -I../sysdeps/ieee754/dbl-64  -I../sysdeps/ieee754/flt-32  -I../sysdeps/wordsize-64  -I../sysdeps/ieee754  -I../sysdeps/generic  -I.. -I../libio -I. -nostdinc -isystem /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.9.2/include -isystem /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.9.2/include-fixed -isystem /tools/include -xc - -o /mnt/lfs/sources/glibc-build/bits/stdio_lim.hT
/bin/sh: 4: x86_64-lfs-linux-gnu-gcc: not found
sed '/^[ 	]*%/!s/#.*$//;/^[ 	]*$/d;s/^[ 	]*%/#/' \
	    ../sysdeps/unix/sysv/linux/x86_64/64/shlib-versions ../sysdeps/unix/sysv/linux/shlib-versions ../nptl/shlib-versions ../libidn/shlib-versions ../nptl_db/shlib-versions ../shlib-versions \
	| x86_64-lfs-linux-gnu-gcc -E -undef     -I../include -I/mnt/lfs/sources/glibc-build/csu  -I/mnt/lfs/sources/glibc-build  -I../sysdeps/unix/sysv/linux/x86_64/64  -I../sysdeps/unix/sysv/linux/x86_64  -I../sysdeps/unix/sysv/linux/x86  -I../sysdeps/unix/sysv/linux/wordsize-64  -I../sysdeps/x86_64/nptl  -I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux  -I../sysdeps/nptl  -I../sysdeps/pthread  -I../sysdeps/gnu  -I../sysdeps/unix/inet  -I../sysdeps/unix/sysv  -I../sysdeps/unix/x86_64  -I../sysdeps/unix  -I../sysdeps/posix  -I../sysdeps/x86_64/64  -I../sysdeps/x86_64/fpu/multiarch  -I../sysdeps/x86_64/fpu  -I../sysdeps/x86/fpu/include -I../sysdeps/x86/fpu  -I../sysdeps/x86_64/multiarch  -I../sysdeps/x86_64  -I../sysdeps/x86  -I../sysdeps/ieee754/ldbl-96  -I../sysdeps/ieee754/dbl-64/wordsize-64  -I../sysdeps/ieee754/dbl-64  -I../sysdeps/ieee754/flt-32  -I../sysdeps/wordsize-64  -I../sysdeps/ieee754  -I../sysdeps/generic  -I.. -I../libio -I. -nostdinc -isystem /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.9.2/include -isystem /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.9.2/include-fixed -isystem /tools/include  -D_LIBC_REENTRANT   -include ../include/libc-symbols.h       -x assembler-with-cpp - \
		   > /mnt/lfs/sources/glibc-build/shlib-versions.v.iT
/bin/sh: 3: x86_64-lfs-linux-gnu-gcc: not found
make[2]: *** No rule to make target `/mnt/lfs/sources/glibc-build/csu/init-first.o', needed by `/mnt/lfs/sources/glibc-build/csu/stamp.o'.  Stop.
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.21/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.21'
make: *** [all] Error 2
The only thing I can see that might be some sort of error is "x86_64-lfs-linux-gnu-gcc not found" i'm not 100% sure what that's referring to, I do already have gcc compiled and installed, if that's what it's looking for. Then I get to the line "no rule to make target ..." I tried to look up information on that init-first.o file, but I couldn't find anything, that seems to be what's stopping it from finishing. Any help would be appreciated. I should also note that i've had no problems compiling and installing any other program up until this point, and i've followed the book to a T. I'll also post my ".configure/..." output, in case that might help.

Code:
lfs@debian:/mnt/lfs/sources/glibc-build$ ../glibc-2.21/configure \
> --prefix=/tools \
> --host=$LFS_TGT \
> --build=$(../glibc-2.21/scripts/config.guess) \
> --disable-profile \
> --enable-kernel=2.6.32 \
> --with-headers=/tools/include \
> libc_cv_forced_unwind=yes \
> libc_cv_ctors_header=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 gcc... gcc
checking for x86_64-lfs-linux-gnu-g++... x86_64-lfs-linux-gnu-g++
checking whether we are using the GNU C++ compiler... yes
checking whether x86_64-lfs-linux-gnu-g++ accepts -g... yes
checking for x86_64-lfs-linux-gnu-readelf... x86_64-lfs-linux-gnu-readelf
checking for sysdeps preconfigure fragments... aarch64 alpha arm hppa i386 m68k microblaze mips nios2 powerpc s390 sh sparc tile x86_64 checking whether x86_64-lfs-linux-gnu-gcc compiles in -mx32 mode by default... no

configure: running configure fragment for add-on libidn
checking for assembler and linker STT_GNU_IFUNC support... yes
checking whether .text pseudo-op must be used... yes
checking sysdep dirs... sysdeps/unix/sysv/linux/x86_64/64 sysdeps/unix/sysv/linux/x86_64 sysdeps/unix/sysv/linux/x86 sysdeps/unix/sysv/linux/wordsize-64 sysdeps/x86_64/nptl sysdeps/unix/sysv/linux sysdeps/nptl sysdeps/pthread sysdeps/gnu sysdeps/unix/inet sysdeps/unix/sysv sysdeps/unix/x86_64 sysdeps/unix sysdeps/posix sysdeps/x86_64/64 sysdeps/x86_64/fpu/multiarch sysdeps/x86_64/fpu sysdeps/x86/fpu sysdeps/x86_64/multiarch sysdeps/x86_64 sysdeps/x86 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64/wordsize-64 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/wordsize-64 sysdeps/ieee754 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.9.2/../../../../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.9.2/../../../../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.9.2/../../../../x86_64-lfs-linux-gnu/bin/as... /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.9.2/../../../../x86_64-lfs-linux-gnu/bin/as
checking version of /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.9.2/../../../../x86_64-lfs-linux-gnu/bin/as... 2.25, ok
checking for /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.9.2/../../../../x86_64-lfs-linux-gnu/bin/ld... /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.9.2/../../../../x86_64-lfs-linux-gnu/bin/ld
checking version of /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.9.2/../../../../x86_64-lfs-linux-gnu/bin/ld... 2.25, 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... no
checking for makeinfo... makeinfo
checking version of makeinfo... 4.13, ok
checking for sed... sed
checking version of sed... 4.2.1, ok
checking for gawk... gawk
checking version of gawk... 4.0.1, ok
checking if x86_64-lfs-linux-gnu-gcc is sufficient to build libc... yes
checking for x86_64-lfs-linux-gnu-nm... x86_64-lfs-linux-gnu-nm
configure: WARNING:
*** These auxiliary programs are missing or incompatible versions: msgfmt
*** some features will be disabled.
*** Check the INSTALL file for required versions.
checking LD_LIBRARY_PATH variable... ok
checking whether GCC supports -static-libgcc... -static-libgcc
checking for bash... /bin/bash
checking for perl... /usr/bin/perl
checking for install-info... /usr/bin/install-info
checking for bison... bison
checking version of bison... 2.5, bad
checking for libc-friendly stddef.h... yes
checking whether we need to use -P to assemble .S files... no
checking for .set assembler directive... yes
checking for assembler gnu_unique_object symbol type... 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 whether to use .ctors/.dtors header and trailer... (cached) yes
checking for libunwind-support in compiler... no
checking for linker that supports -z nodelete... yes
checking for linker that supports -z nodlopen... yes
checking for linker that supports -z initfirst... yes
checking for -Bgroup option... yes
checking whether --noexecstack is desirable for .S files... yes
checking for -z combreloc... yes
checking for linker that supports -z execstack... yes
checking for -fpie... yes
checking for --hash-style option... yes
checking for sufficient default -shared layout... no
checking linker output format... elf64-x86-64
checking for -fno-toplevel-reorder -fno-section-anchors... yes
checking for -fstack-protector... yes
checking for -fgnu89-inline... yes
checking whether cc puts quotes around section names... no
checking for assembler .weak directive... yes
checking for ld --no-whole-archive... yes
checking for gcc -fexceptions... 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 compiler option to disable generation of FMA instructions... -ffp-contract=off
checking if x86_64-lfs-linux-gnu-gcc accepts -fno-tree-loop-distribute-patterns with __attribute__ ((__optimize__))... yes
checking for libgd... no
checking for is_selinux_enabled in -lselinux... no
checking size of long double... 16
checking for _FORTIFY_SOURCE predefine... no
checking whether x86_64-lfs-linux-gnu-gcc implicitly enables -fstack-protector... no
checking whether the linker provides working __ehdr_start... yes
checking for __builtin_trap with no external dependencies... yes
running configure fragment for sysdeps/unix/sysv/linux/x86_64/64
running configure fragment for sysdeps/unix/sysv/linux/x86_64
running configure fragment for sysdeps/unix/sysv/linux
checking installed Linux kernel header files... 2.6.32 or later
checking for kernel header at least 2.6.32... ok
checking for linux/fanotify.h... yes
running configure fragment for sysdeps/nptl
checking for forced unwind support... (cached) yes
checking for C cleanup handling... (cached) yes
running configure fragment for sysdeps/gnu
running configure fragment for sysdeps/x86_64
checking for cpuid.h... yes
checking for SSE4 support... yes
checking for AVX support... yes
checking for AVX512 support in assembler... yes
checking for AVX512 support... yes
checking for AVX encoding of SSE instructions... yes
checking for FMA4 support... yes
checking for -mno-vzeroupper support... yes
checking for Intel MPX support... yes
checking for AVX2 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
I'm skimming through the ./configure and I see some things that stick out. First, the line "checking version of bison... 2.5, bad" Does that mean I have a bad/corrupt version of bison? or that I have too old/new of a version or something? also, I noticed I don't have some programs installed, like gnumake, gmake, as well as gnumsgfmt, gmsgfmt, etc. I don't think I need those since I have the normal make and msgfmt installed, but i'm not sure. It should also be noted that the "warning message" it gives me about msgfmt is apparently nothing to worry about, according to the book, and I can ignore it. Any help is appreciated guys.
 
Old 03-26-2015, 02:34 PM   #2
Toroso
Member
 
Registered: Mar 2015
Distribution: Mint Linux 17.1 64 Xfce
Posts: 31

Rep: Reputation: 4
You're using 'sudo make' to compile? I believe you should be logged in as the LFS user to get the correct compile environment.

I would also think that Bison needs to be updated from that error.

Last edited by Toroso; 03-26-2015 at 02:38 PM.
 
Old 03-26-2015, 02:54 PM   #3
Xenanthropy
Member
 
Registered: Mar 2015
Posts: 34

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Toroso View Post
You're using 'sudo make' to compile? I believe you should be logged in as the LFS user to get the correct compile environment.

I would also think that Bison needs to be updated from that error.
I am, as seen by the "lfs@debian" at the command prompt. I just used sudo in case I have some problems with permission errors.
And possibly, i'll check what version I have and see what version they're recommending.

Edit: It seems I have Bison version 2.5, and LFS 7.7 says I need at least Bison version 2.3, so i'm good on that. Not sure why it's saying bad though, I didn't even install bison manually, I guess it came with Debian when I first installed it.

Last edited by Xenanthropy; 03-26-2015 at 02:58 PM. Reason: Adding updated info
 
Old 03-26-2015, 03:16 PM   #4
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

Do you have lib and lib64 in tools
 
Old 03-26-2015, 03:25 PM   #5
Xenanthropy
Member
 
Registered: Mar 2015
Posts: 34

Original Poster
Rep: Reputation: Disabled
Indeed I do. What I have in the tools folder so far is just folders, bin, include, lib, lib64, libexec, share, and x86_64-lfs-linux-gnu
 
Old 03-26-2015, 03:33 PM   #6
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Can you post the output of the version check
 
Old 03-26-2015, 03:36 PM   #7
Xenanthropy
Member
 
Registered: Mar 2015
Posts: 34

Original Poster
Rep: Reputation: Disabled
Yep, here you go:

Code:
bash, version 4.2.37(1)-release
/bin/sh -> /bin/dash
Binutils: (GNU Binutils for Debian) 2.22
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-5) 4.7.2
g++ (Debian 4.7.2-5) 4.7.2
(Debian EGLIBC 2.13-38+deb7u8) 2.13
grep (GNU grep) 2.12
gzip 1.5
Linux version 3.2.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.65-1+deb7u2
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
makeinfo (GNU texinfo) 4.13
xz (XZ Utils) 5.1.0alpha
g++ compilation OK
 
Old 03-26-2015, 03:37 PM   #8
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
fix this

/bin/sh -> /bin/dash
should be
/bin/sh -> /bin/bash

and start again
 
Old 03-26-2015, 03:41 PM   #9
Xenanthropy
Member
 
Registered: Mar 2015
Posts: 34

Original Poster
Rep: Reputation: Disabled
Done.

Code:
bash, version 4.2.37(1)-release
/bin/sh -> /bin/bash
Binutils: (GNU Binutils for Debian) 2.22
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-5) 4.7.2
g++ (Debian 4.7.2-5) 4.7.2
(Debian EGLIBC 2.13-38+deb7u8) 2.13
grep (GNU grep) 2.12
gzip 1.5
Linux version 3.2.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.65-1+deb7u2
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
makeinfo (GNU texinfo) 4.13
xz (XZ Utils) 5.1.0alpha
g++ compilation OK
Should I try compiling again now?
 
Old 03-26-2015, 03:42 PM   #10
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
I would start again empty tools start at binutils
 
Old 03-26-2015, 03:45 PM   #11
Xenanthropy
Member
 
Registered: Mar 2015
Posts: 34

Original Poster
Rep: Reputation: Disabled
Ok, will do. I'll post back my results once I get back to glibc.
 
Old 03-26-2015, 04:02 PM   #12
Toroso
Member
 
Registered: Mar 2015
Distribution: Mint Linux 17.1 64 Xfce
Posts: 31

Rep: Reputation: 4
Quote:
Originally Posted by spiky0011 View Post
fix this

/bin/sh -> /bin/dash
should be
/bin/sh -> /bin/bash

and start again
Yep, that is what got me too. After fixing it I have been golden.

OK, I was under the impression that sudo ran as root? If not, it's not the first time I've been wrong.
 
Old 03-26-2015, 04:42 PM   #13
Xenanthropy
Member
 
Registered: Mar 2015
Posts: 34

Original Poster
Rep: Reputation: Disabled
That's probably why I didn't catch that error, Bash and Dash, I wasn't looking for something so simple lol. Didn't even know dash was a thing. And you're right, it does run the command as root, but I was having trouble with permissions earlier so I was using sudo, but this time it worked without it, guess I don't need it.
 
Old 03-26-2015, 04:43 PM   #14
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
No sudo No root in Chapter 5, glad it,s all working now
 
Old 03-26-2015, 04:44 PM   #15
Xenanthropy
Member
 
Registered: Mar 2015
Posts: 34

Original Poster
Rep: Reputation: Disabled
Any idea why that would cause such obscure errors? I don't really have any idea on what the different between bash and dash is, since i've always just used what's provided with whatever distro I decide to run. And thanks for the help. Much appreciated.
 
  


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
[SOLVED] Glibc - make check errors not mentioned in the book tuxkarl Linux From Scratch 5 10-24-2012 05:50 AM
[SOLVED] awk / gawk / mawk optimisation rusty_acorn Linux - General 3 10-06-2011 06:06 PM
Glibc won't compile in chapter 5.7.1 of the LFS 6.6 book bigaurian Linux From Scratch 5 09-10-2010 01:14 PM
telling glibc to use gawk instead of mawk Virtuality Linux - Newbie 6 01-12-2008 01:22 PM
Gawk Compile Errors johnnabn Linux From Scratch 4 04-26-2003 03:25 PM

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

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

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